vendor: 4,098 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FestivalSite-Blzj5sSl.js","assets/PublicCall-CHR5NW9r.js","assets/CallApplications-Da52l-Ym.js","assets/FestivalManage-pYPytoi6.js","assets/Calls-jYTVgVNm.js"])))=>i.map(i=>d[i]); 2var Lg=Object.defineProperty;var qg=(e,a,s)=>a in e?Lg(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s;var Iu=(e,a,s)=>qg(e,typeof a!="symbol"?a+"":a,s);function Mg(e,a){for(var s=0;s<a.length;s++){const r=a[s];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const o=Object.getOwnPropertyDescriptor(r,n);o&&Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function s(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(n){if(n.ep)return;n.ep=!0;const o=s(n);fetch(n.href,o)}})();function Kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yp={exports:{}},fi={},Jp={exports:{}},ee={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var zn=Symbol.for("react.element"),Rg=Symbol.for("react.portal"),Fg=Symbol.for("react.fragment"),Og=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),Gg=Symbol.for("react.context"),Vg=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),Wg=Symbol.for("react.memo"),Hg=Symbol.for("react.lazy"),$u=Symbol.iterator;function Qg(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xp=Object.assign,eh={};function ir(e,a,s){this.props=e,this.context=a,this.refs=eh,this.updater=s||Zp}ir.prototype.isReactComponent={};ir.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function th(){}th.prototype=ir.prototype;function ad(e,a,s){this.props=e,this.context=a,this.refs=eh,this.updater=s||Zp}var sd=ad.prototype=new th;sd.constructor=ad;Xp(sd,ir.prototype);sd.isPureReactComponent=!0;var Lu=Array.isArray,ah=Object.prototype.hasOwnProperty,rd={current:null},sh={key:!0,ref:!0,__self:!0,__source:!0};function rh(e,a,s){var r,n={},o=null,i=null;if(a!=null)for(r in a.ref!==void 0&&(i=a.ref),a.key!==void 0&&(o=""+a.key),a)ah.call(a,r)&&!sh.hasOwnProperty(r)&&(n[r]=a[r]);var c=arguments.length-2;if(c===1)n.children=s;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps,c)n[r]===void 0&&(n[r]=c[r]);return{$$typeof:zn,type:e,key:o,ref:i,props:n,_owner:rd.current}}function Kg(e,a){return{$$typeof:zn,type:e.type,key:a,ref:e.ref,props:e.props,_owner:e._owner}}function nd(e){return typeof e=="object"&&e!==null&&e.$$typeof===zn}function Yg(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(s){return a[s]})}var qu=/\/+/g;function Zi(e,a){return typeof e=="object"&&e!==null&&e.key!=null?Yg(""+e.key):a.toString(36)}
vendor: 4,407 bytes, line 10
10function co(e,a,s,r,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case zn:case Rg:i=!0}}if(i)return i=e,n=n(i),e=r===""?"."+Zi(i,0):r,Lu(n)?(s="",e!=null&&(s=e.replace(qu,"$&/")+"/"),co(n,a,s,"",function(d){return d})):n!=null&&(nd(n)&&(n=Kg(n,s+(!n.key||i&&i.key===n.key?"":(""+n.key).replace(qu,"$&/")+"/")+e)),a.push(n)),1;if(i=0,r=r===""?".":r+":",Lu(e))for(var c=0;c<e.length;c++){o=e[c];var l=r+Zi(o,c);i+=co(o,a,s,l,n)}else if(l=Qg(e),typeof l=="function")for(e=l.call(e),c=0;!(o=e.next()).done;)o=o.value,l=r+Zi(o,c++),i+=co(o,a,s,l,n);else if(o==="object")throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.");return i}function On(e,a,s){if(e==null)return e;var r=[],n=0;return co(e,r,"","",function(o){return a.call(s,o,n++)}),r}function Jg(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(s){(e._status===0||e._status===-1)&&(e._status=1,e._result=s)},function(s){(e._status===0||e._status===-1)&&(e._status=2,e._result=s)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},uo={transition:null},Zg={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:uo,ReactCurrentOwner:rd};function nh(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:On,forEach:function(e,a,s){On(e,function(){a.apply(this,arguments)},s)},count:function(e){var a=0;return On(e,function(){a++}),a},toArray:function(e){return On(e,function(a){return a})||[]},only:function(e){if(!nd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=ir;ee.Fragment=Fg;ee.Profiler=Dg;ee.PureComponent=ad;ee.StrictMode=Og;ee.Suspense=Ug;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zg;ee.act=nh;ee.cloneElement=function(e,a,s){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Xp({},e.props),n=e.key,o=e.ref,i=e._owner;if(a!=null){if(a.ref!==void 0&&(o=a.ref,i=rd.current),a.key!==void 0&&(n=""+a.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in a)ah.call(a,l)&&!sh.hasOwnProperty(l)&&(r[l]=a[l]===void 0&&c!==void 0?c[l]:a[l])}var l=arguments.length-2;if(l===1)r.children=s;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];r.children=c}return{$$typeof:zn,type:e.type,key:n,ref:o,props:r,_owner:i}};ee.createContext=function(e){return e={$$typeof:Gg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bg,_context:e},e.Consumer=e};ee.createElement=rh;ee.createFactory=function(e){var a=rh.bind(null,e);return a.type=e,a};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:Vg,render:e}};ee.isValidElement=nd;ee.lazy=function(e){return{$$typeof:Hg,_payload:{_status:-1,_result:e},_init:Jg}};ee.memo=function(e,a){return{$$typeof:Wg,type:e,compare:a===void 0?null:a}};ee.startTransition=function(e){var a=uo.transition;uo.transition={};try{e()}finally{uo.transition=a}};ee.unstable_act=nh;ee.useCallback=function(e,a){return Xe.current.useCallback(e,a)};ee.useContext=function(e){return Xe.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};ee.useEffect=function(e,a){return Xe.current.useEffect(e,a)};ee.useId=function(){return Xe.current.useId()};ee.useImperativeHandle=function(e,a,s){return Xe.current.useImperativeHandle(e,a,s)};ee.useInsertionEffect=function(e,a){return Xe.current.useInsertionEffect(e,a)};ee.useLayoutEffect=function(e,a){return Xe.current.useLayoutEffect(e,a)};ee.useMemo=function(e,a){return Xe.current.useMemo(e,a)};ee.useReducer=function(e,a,s){return Xe.current.useReducer(e,a,s)};ee.useRef=function(e){return Xe.current.useRef(e)};ee.useState=function(e){return Xe.current.useState(e)};ee.useSyncExternalStore=function(e,a,s){return Xe.current.useSyncExternalStore(e,a,s)};ee.useTransition=function(){return Xe.current.useTransition()};ee.version="18.3.1";Jp.exports=ee;var y=Jp.exports;const O=Kp(y),Xg=Mg({__proto__:null,default:O}
vendor: 2,402 bytes, lines 10-26
10,[y]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var ev=y,tv=Symbol.for("react.element"),av=Symbol.for("react.fragment"),sv=Object.prototype.hasOwnProperty,rv=ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nv={key:!0,ref:!0,__self:!0,__source:!0};function oh(e,a,s){var r,n={},o=null,i=null;s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),a.ref!==void 0&&(i=a.ref);for(r in a)sv.call(a,r)&&!nv.hasOwnProperty(r)&&(n[r]=a[r]);if(e&&e.defaultProps)for(r in a=e.defaultProps,a)n[r]===void 0&&(n[r]=a[r]);return{$$typeof:tv,type:e,key:o,ref:i,props:n,_owner:rv.current}}fi.Fragment=av;fi.jsx=oh;fi.jsxs=oh;Yp.exports=fi;var t=Yp.exports,Rl={},ih={exports:{}},ft={},lh={exports:{}},ch={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function a(I,R){var V=I.length;I.push(R);e:for(;0<V;){var B=V-1>>>1,se=I[B];if(0<n(se,R))I[B]=R,I[V]=se,V=B;else break e}}function s(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var R=I[0],V=I.pop();if(V!==R){I[0]=V;e:for(var B=0,se=I.length,ze=se>>>1;B<ze;){var oe=2*(B+1)-1,$e=I[oe],E=oe+1,Y=I[E];if(0>n($e,V))E<se&&0>n(Y,$e)?(I[B]=Y,I[E]=V,B=E):(I[B]=$e,I[oe]=V,B=oe);else if(E<se&&0>n(Y,V))I[B]=Y,I[E]=V,B=E;else break e}}return R}function n(I,R){var V=I.sortIndex-R.sortIndex;return V!==0?V:I.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var l=[],d=[],u=1,h=null,m=3,f=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(I){for(var R=s(d);R!==null;){if(R.callback===null)r(d);else if(R.startTime<=I)r(d),R.sortIndex=R.expirationTime,a(l,R);else break;R=s(d)}}
vendor: 9,413 bytes, lines 26-35
26function k(I){if(g=!1,j(I),!v)if(s(l)!==null)v=!0,K(N);else{var R=s(d);R!==null&&le(k,R.startTime-I)}}function N(I,R){v=!1,g&&(g=!1,p(A),A=-1),f=!0;var V=m;try{for(j(R),h=s(l);h!==null&&(!(h.expirationTime>R)||I&&!w());){var B=h.callback;if(typeof B=="function"){h.callback=null,m=h.priorityLevel;var se=B(h.expirationTime<=R);R=e.unstable_now(),typeof se=="function"?h.callback=se:h===s(l)&&r(l),j(R)}else r(l);h=s(l)}if(h!==null)var ze=!0;else{var oe=s(d);oe!==null&&le(k,oe.startTime-R),ze=!1}return ze}finally{h=null,m=V,f=!1}}var C=!1,_=null,A=-1,z=5,P=-1;function w(){return!(e.unstable_now()-P<z)}function L(){if(_!==null){var I=e.unstable_now();P=I;var R=!0;try{R=_(!0,I)}finally{R?$():(C=!1,_=null)}}else C=!1}var $;if(typeof x=="function")$=function(){x(L)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,re=H.port2;H.port1.onmessage=L,$=function(){re.postMessage(null)}}else $=function(){b(L,0)};function K(I){_=I,C||(C=!0,$())}function le(I,R){A=b(function(){I(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){v||f||(v=!0,K(N))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return s(l)},e.unstable_next=function(I){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var V=m;m=R;try{return I()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,R){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var V=m;m=I;try{return R()}finally{m=V}},e.unstable_scheduleCallback=function(I,R,V){var B=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?B+V:B):V=B,I){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=V+se,I={id:u++,callback:R,priorityLevel:I,startTime:V,expirationTime:se,sortIndex:-1},V>B?(I.sortIndex=V,a(d,I),s(l)===null&&I===s(d)&&(g?(p(A),A=-1):g=!0,le(k,V-B))):(I.sortIndex=se,a(l,I),v||f||(v=!0,K(N))),I},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(I){var R=m;return function(){var V=m;m=R;try{return I.apply(this,arguments)}finally{m=V}}}})(ch);lh.exports=ch;var ov=lh.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var iv=y,ht=ov;function G(e){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var dh=new Set,nn={};function ys(e,a){Ys(e,a),Ys(e+"Capture",a)}function Ys(e,a){for(nn[e]=a,e=0;e<a.length;e++)dh.add(a[e])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fl=Object.prototype.hasOwnProperty,lv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mu={},Ru={};function cv(e){return Fl.call(Ru,e)?!0:Fl.call(Mu,e)?!1:lv.test(e)?Ru[e]=!0:(Mu[e]=!0,!1)}function dv(e,a,s,r){if(s!==null&&s.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uv(e,a,s,r){if(a===null||typeof a>"u"||dv(e,a,s,r))return!0;if(r)return!1;if(s!==null)switch(s.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function et(e,a,s,r,n,o,i){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=r,this.attributeNamespace=n,this.mustUseProperty=s,this.propertyName=e,this.type=a,this.sanitizeURL=o,this.removeEmptyString=i}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var a=e[0];De[a]=new et(a,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var od=/[\-:]([a-z])/g;function id(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var a=e.replace(od,id);De[a]=new et(a,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var a=e.replace(od,id);De[a]=new et(a,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var a=e.replace(od,id);De[a]=new et(a,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function ld(e,a,s,r){var n=De.hasOwnProperty(a)?De[a]:null;(n!==null?n.type!==0:r||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(uv(a,s,n,r)&&(s=null),r||n===null?cv(a)&&(s===null?e.removeAttribute(a):e.setAttribute(a,""+s)):n.mustUseProperty?e[n.propertyName]=s===null?n.type===3?!1:"":s:(a=n.attributeName,r=n.attributeNamespace,s===null?e.removeAttribute(a):(n=n.type,s=n===3||n===4&&s===!0?"":""+s,r?e.setAttributeNS(r,a,s):e.setAttribute(a,s))))}var ma=iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dn=Symbol.for("react.element"),Es=Symbol.for("react.portal"),Ps=Symbol.for("react.fragment"),cd=Symbol.for("react.strict_mode"),Ol=Symbol.for("react.profiler"),uh=Symbol.for("react.provider"),mh=Symbol.for("react.context"),dd=Symbol.for("react.forward_ref"),Dl=Symbol.for("react.suspense"),Bl=Symbol.for("react.suspense_list"),ud=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),ph=Symbol.for("react.offscreen"),Fu=Symbol.iterator;function yr(e){return e===null||typeof e!="object"?null:(e=Fu&&e[Fu]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Xi;function Tr(e){if(Xi===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Xi=a&&a[1]||""}return` 35`+Xi+e}var el=!1;function tl(e,a){if(!e||el)return"";el=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(d){var r=d}Reflect.construct(e,[],a)}else{try{a.call()}catch(d){r=d}e.call(a.prototype)}else{try{throw Error()}catch(d){r=d}e()}}
vendor: 1,435 bytes, lines 35-38
35catch(d){if(d&&r&&typeof d.stack=="string"){for(var n=d.stack.split(` 36`),o=r.stack.split(` 37`),i=n.length-1,c=o.length-1;1<=i&&0<=c&&n[i]!==o[c];)c--;for(;1<=i&&0<=c;i--,c--)if(n[i]!==o[c]){if(i!==1||c!==1)do if(i--,c--,0>c||n[i]!==o[c]){var l=` 38`+n[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=c);break}}}finally{el=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?Tr(e):""}function mv(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function Gl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ps:return"Fragment";case Es:return"Portal";case Ol:return"Profiler";case cd:return"StrictMode";case Dl:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mh:return(e.displayName||"Context")+".Consumer";case uh:return(e._context.displayName||"Context")+".Provider";case dd:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ud:return a=e.displayName||null,a!==null?a:Gl(e.type)||"Memo";case ja:a=e._payload,e=e._init;
vendor: 14,162 bytes, line 38
38try{return Gl(e(a))}catch{}}return null}function pv(e){var a=e.type;switch(e.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=a.render,e=e.displayName||e.name||"",a.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(a);case 8:return a===cd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function hv(e){var a=hh(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),r=""+e[a];if(!e.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var n=s.get,o=s.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return n.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,a,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Bn(e){e._valueTracker||(e._valueTracker=hv(e))}function xh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var s=a.getValue(),r="";return e&&(r=hh(e)?e.checked?"true":"false":e.value),e=r,e!==s?(a.setValue(e),!0):!1}function So(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vl(e,a){var s=a.checked;return be({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Ou(e,a){var s=a.defaultValue==null?"":a.defaultValue,r=a.checked!=null?a.checked:a.defaultChecked;s=Va(a.value!=null?a.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function fh(e,a){a=a.checked,a!=null&&ld(e,"checked",a,!1)}function Ul(e,a){fh(e,a);var s=Va(a.value),r=a.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}a.hasOwnProperty("value")?Wl(e,a.type,s):a.hasOwnProperty("defaultValue")&&Wl(e,a.type,Va(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(e.defaultChecked=!!a.defaultChecked)}function Du(e,a,s){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var r=a.type;if(!(r!=="submit"&&r!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+e._wrapperState.initialValue,s||a===e.value||(e.value=a),e.defaultValue=a}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Wl(e,a,s){(a!=="number"||So(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Ir=Array.isArray;function Ds(e,a,s,r){if(e=e.options,a){a={};for(var n=0;n<s.length;n++)a["$"+s[n]]=!0;for(s=0;s<e.length;s++)n=a.hasOwnProperty("$"+e[s].value),e[s].selected!==n&&(e[s].selected=n),n&&r&&(e[s].defaultSelected=!0)}else{for(s=""+Va(s),a=null,n=0;n<e.length;n++){if(e[n].value===s){e[n].selected=!0,r&&(e[n].defaultSelected=!0);return}a!==null||e[n].disabled||(a=e[n])}a!==null&&(a.selected=!0)}}function Hl(e,a){if(a.dangerouslySetInnerHTML!=null)throw Error(G(91));return be({},a,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bu(e,a){var s=a.value;if(s==null){if(s=a.children,a=a.defaultValue,s!=null){if(a!=null)throw Error(G(92));if(Ir(s)){if(1<s.length)throw Error(G(93));s=s[0]}a=s}a==null&&(a=""),s=a}e._wrapperState={initialValue:Va(s)}}function gh(e,a){var s=Va(a.value),r=Va(a.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),a.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),r!=null&&(e.defaultValue=""+r)}function Gu(e){var a=e.textContent;a===e._wrapperState.initialValue&&a!==""&&a!==null&&(e.value=a)}function vh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ql(e,a){return e==null||e==="http://www.w3.org/1999/xhtml"?vh(a):e==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gn,jh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,r,n){MSApp.execUnsafeLocalFunction(function(){return e(a,s,r,n)})}:e}(function(e,a){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=a;else{for(Gn=Gn||document.createElement("div"),Gn.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=Gn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;a.firstChild;)e.appendChild(a.firstChild)}});function on(e,a){if(a){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=a;return}}e.textContent=a}var Fr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xv=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){xv.forEach(function(a){a=a+e.charAt(0).toUpperCase()+e.substring(1),Fr[a]=Fr[e]})});function yh(e,a,s){return a==null||typeof a=="boolean"||a===""?"":s||typeof a!="number"||a===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+a).trim():a+"px"}function bh(e,a){e=e.style;for(var s in a)if(a.hasOwnProperty(s)){var r=s.indexOf("--")===0,n=yh(s,a[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,n):e[s]=n}}var fv=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kl(e,a){if(a){if(fv[e]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(G(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(G(61))}if(a.style!=null&&typeof a.style!="object")throw Error(G(62))}}function Yl(e,a){if(e.indexOf("-")===-1)return typeof a.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jl=null;function md(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Bs=null,Gs=null;function Vu(e){if(e=$n(e)){if(typeof Zl!="function")throw Error(G(280));var a=e.stateNode;a&&(a=bi(a),Zl(e.stateNode,e.type,a))}}function Nh(e){Bs?Gs?Gs.push(e):Gs=[e]:Bs=e}function kh(){if(Bs){var e=Bs,a=Gs;if(Gs=Bs=null,Vu(e),a)for(e=0;e<a.length;e++)Vu(a[e])}}function wh(e,a){return e(a)}function Ch(){}var al=!1;function _h(e,a,s){if(al)return e(a,s);al=!0;try{return wh(e,a,s)}finally{al=!1,(Bs!==null||Gs!==null)&&(Ch(),kh())}}function ln(e,a){var s=e.stateNode;if(s===null)return null;var r=bi(s);if(r===null)return null;s=r[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(G(231,a,typeof s));return s}var Xl=!1;if(la)try{var br={};Object.defineProperty(br,"passive",{get:function(){Xl=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{Xl=!1}function gv(e,a,s,r,n,o,i,c,l){var d=Array.prototype.slice.call(arguments,3);try{a.apply(s,d)}catch(u){this.onError(u)}}var Or=!1,Eo=null,Po=!1,ec=null,vv={onError:function(e){Or=!0,Eo=e}};function jv(e,a,s,r,n,o,i,c,l){Or=!1,Eo=null,gv.apply(vv,arguments)}function yv(e,a,s,r,n,o,i,c,l){if(jv.apply(this,arguments),Or){if(Or){var d=Eo;Or=!1,Eo=null}else throw Error(G(198));Po||(Po=!0,ec=d)}}function bs(e){var a=e,s=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,a.flags&4098&&(s=a.return),e=a.return;while(e)}return a.tag===3?s:null}function Sh(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function Uu(e){if(bs(e)!==e)throw Error(G(188))}function bv(e){var a=e.alternate;if(!a){if(a=bs(e),a===null)throw Error(G(188));return a!==e?null:e}for(var s=e,r=a;;){var n=s.return;if(n===null)break;var o=n.alternate;if(o===null){if(r=n.return,r!==null){s=r;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===s)return Uu(n),e;if(o===r)return Uu(n),a;o=o.sibling}throw Error(G(188))}if(s.return!==r.return)s=n,r=o;else{for(var i=!1,c=n.child;c;){if(c===s){i=!0,s=n,r=o;break}if(c===r){i=!0,r=n,s=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===s){i=!0,s=o,r=n;break}if(c===r){i=!0,r=o,s=n;break}c=c.sibling}if(!i)throw Error(G(189))}}if(s.alternate!==r)throw Error(G(190))}if(s.tag!==3)throw Error(G(188));return s.stateNode.current===s?e:a}function Eh(e){return e=bv(e),e!==null?Ph(e):null}function Ph(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var a=Ph(e);if(a!==null)return a;e=e.sibling}return null}var Ah=ht.unstable_scheduleCallback,Wu=ht.unstable_cancelCallback,Nv=ht.unstable_shouldYield,kv=ht.unstable_requestPaint,_e=ht.unstable_now,wv=ht.unstable_getCurrentPriorityLevel,pd=ht.unstable_ImmediatePriority,zh=ht.unstable_UserBlockingPriority,Ao=ht.unstable_NormalPriority,Cv=ht.unstable_LowPriority,Th=ht.unstable_IdlePriority,gi=null,Qt=null;function _v(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Lt=Math.clz32?Math.clz32:Pv,Sv=Math.log,Ev=Math.LN2;function Pv(e){return e>>>=0,e===0?32:31-(Sv(e)/Ev|0)|0}var Vn=64,Un=4194304;function $r(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zo(e,a){var s=e.pendingLanes;if(s===0)return 0;var r=0,n=e.suspendedLanes,o=e.pingedLanes,i=s&268435455;if(i!==0){var c=i&~n;c!==0?r=$r(c):(o&=i,o!==0&&(r=$r(o)))}else i=s&~n,i!==0?r=$r(i):o!==0&&(r=$r(o));if(r===0)return 0;if(a!==0&&a!==r&&!(a&n)&&(n=r&-r,o=a&-a,n>=o||n===16&&(o&4194240)!==0))return a;if(r&4&&(r|=s&16),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=r;0<a;)s=31-Lt(a),n=1<<s,r|=e[s],a&=~n;return r}function Av(e,a){switch(e){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zv(e,a){for(var s=e.suspendedLanes,r=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Lt(o),c=1<<i,l=n[i];l===-1?(!(c&s)||c&r)&&(n[i]=Av(c,a)):l<=a&&(e.expiredLanes|=c),o&=~c}}function tc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ih(){var e=Vn;return Vn<<=1,!(Vn&4194240)&&(Vn=64),e}function sl(e){for(var a=[],s=0;31>s;s++)a.push(e);return a}function Tn(e,a,s){e.pendingLanes|=a,a!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,a=31-Lt(a),e[a]=s}function Tv(e,a){var s=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<s;){var n=31-Lt(s),o=1<<n;a[n]=0,r[n]=-1,e[n]=-1,s&=~o}}function hd(e,a){var s=e.entangledLanes|=a;for(e=e.entanglements;s;){var r=31-Lt(s),n=1<<r;n&a|e[r]&a&&(e[r]|=a),s&=~n}}var ie=0;function $h(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lh,xd,qh,Mh,Rh,ac=!1,Wn=[],Pa=null,Aa=null,za=null,cn=new Map,dn=new Map,Na=[],Iv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hu(e,a){switch(e){case"focusin":case"focusout":Pa=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":cn.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":dn.delete(a.pointerId)}}function Nr(e,a,s,r,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:a,domEventName:s,eventSystemFlags:r,nativeEvent:o,targetContainers:[n]},a!==null&&(a=$n(a),a!==null&&xd(a)),e):(e.eventSystemFlags|=r,a=e.targetContainers,n!==null&&a.indexOf(n)===-1&&a.push(n),e)}
vendor: 12,981 bytes, line 38
38function $v(e,a,s,r,n){switch(a){case"focusin":return Pa=Nr(Pa,e,a,s,r,n),!0;case"dragenter":return Aa=Nr(Aa,e,a,s,r,n),!0;case"mouseover":return za=Nr(za,e,a,s,r,n),!0;case"pointerover":var o=n.pointerId;return cn.set(o,Nr(cn.get(o)||null,e,a,s,r,n)),!0;case"gotpointercapture":return o=n.pointerId,dn.set(o,Nr(dn.get(o)||null,e,a,s,r,n)),!0}return!1}function Fh(e){var a=is(e.target);if(a!==null){var s=bs(a);if(s!==null){if(a=s.tag,a===13){if(a=Sh(s),a!==null){e.blockedOn=a,Rh(e.priority,function(){qh(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mo(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var s=sc(e.domEventName,e.eventSystemFlags,a[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var r=new s.constructor(s.type,s);Jl=r,s.target.dispatchEvent(r),Jl=null}else return a=$n(s),a!==null&&xd(a),e.blockedOn=s,!1;a.shift()}return!0}function Qu(e,a,s){mo(e)&&s.delete(a)}function Lv(){ac=!1,Pa!==null&&mo(Pa)&&(Pa=null),Aa!==null&&mo(Aa)&&(Aa=null),za!==null&&mo(za)&&(za=null),cn.forEach(Qu),dn.forEach(Qu)}function kr(e,a){e.blockedOn===a&&(e.blockedOn=null,ac||(ac=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,Lv)))}function un(e){function a(n){return kr(n,e)}if(0<Wn.length){kr(Wn[0],e);for(var s=1;s<Wn.length;s++){var r=Wn[s];r.blockedOn===e&&(r.blockedOn=null)}}for(Pa!==null&&kr(Pa,e),Aa!==null&&kr(Aa,e),za!==null&&kr(za,e),cn.forEach(a),dn.forEach(a),s=0;s<Na.length;s++)r=Na[s],r.blockedOn===e&&(r.blockedOn=null);for(;0<Na.length&&(s=Na[0],s.blockedOn===null);)Fh(s),s.blockedOn===null&&Na.shift()}var Vs=ma.ReactCurrentBatchConfig,To=!0;function qv(e,a,s,r){var n=ie,o=Vs.transition;Vs.transition=null;try{ie=1,fd(e,a,s,r)}finally{ie=n,Vs.transition=o}}function Mv(e,a,s,r){var n=ie,o=Vs.transition;Vs.transition=null;try{ie=4,fd(e,a,s,r)}finally{ie=n,Vs.transition=o}}function fd(e,a,s,r){if(To){var n=sc(e,a,s,r);if(n===null)pl(e,a,r,Io,s),Hu(e,r);else if($v(n,e,a,s,r))r.stopPropagation();else if(Hu(e,r),a&4&&-1<Iv.indexOf(e)){for(;n!==null;){var o=$n(n);if(o!==null&&Lh(o),o=sc(e,a,s,r),o===null&&pl(e,a,r,Io,s),o===n)break;n=o}n!==null&&r.stopPropagation()}else pl(e,a,r,null,s)}}var Io=null;function sc(e,a,s,r){if(Io=null,e=md(r),e=is(e),e!==null)if(a=bs(e),a===null)e=null;else if(s=a.tag,s===13){if(e=Sh(a),e!==null)return e;e=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null);return Io=e,null}function Oh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wv()){case pd:return 1;case zh:return 4;case Ao:case Cv:return 16;case Th:return 536870912;default:return 16}default:return 16}}var Ca=null,gd=null,po=null;function Dh(){if(po)return po;var e,a=gd,s=a.length,r,n="value"in Ca?Ca.value:Ca.textContent,o=n.length;for(e=0;e<s&&a[e]===n[e];e++);var i=s-e;for(r=1;r<=i&&a[s-r]===n[o-r];r++);return po=n.slice(e,1<r?1-r:void 0)}function ho(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Hn(){return!0}function Ku(){return!1}function gt(e){function a(s,r,n,o,i){this._reactName=s,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(s=e[c],this[c]=s?s(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Hn:Ku,this.isPropagationStopped=Ku,this}return be(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){},isPersistent:Hn}),a}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vd=gt(lr),In=be({},lr,{view:0,detail:0}),Rv=gt(In),rl,nl,wr,vi=be({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wr&&(wr&&e.type==="mousemove"?(rl=e.screenX-wr.screenX,nl=e.screenY-wr.screenY):nl=rl=0,wr=e),rl)},movementY:function(e){return"movementY"in e?e.movementY:nl}}),Yu=gt(vi),Fv=be({},vi,{dataTransfer:0}),Ov=gt(Fv),Dv=be({},In,{relatedTarget:0}),ol=gt(Dv),Bv=be({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Gv=gt(Bv),Vv=be({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uv=gt(Vv),Wv=be({},lr,{data:0}),Ju=gt(Wv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=Kv[e])?!!a[e]:!1}function jd(){return Yv}var Jv=be({},In,{key:function(e){if(e.key){var a=Hv[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=ho(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jd,charCode:function(e){return e.type==="keypress"?ho(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ho(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zv=gt(Jv),Xv=be({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zu=gt(Xv),ej=be({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jd}),tj=gt(ej),aj=be({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),sj=gt(aj),rj=be({},vi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nj=gt(rj),oj=[9,13,27,32],yd=la&&"CompositionEvent"in window,Dr=null;la&&"documentMode"in document&&(Dr=document.documentMode);var ij=la&&"TextEvent"in window&&!Dr,Bh=la&&(!yd||Dr&&8<Dr&&11>=Dr),Xu=" ",em=!1;function Gh(e,a){switch(e){case"keyup":return oj.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var As=!1;function lj(e,a){switch(e){case"compositionend":return Vh(a);case"keypress":return a.which!==32?null:(em=!0,Xu);case"textInput":return e=a.data,e===Xu&&em?null:e;default:return null}}function cj(e,a){if(As)return e==="compositionend"||!yd&&Gh(e,a)?(e=Dh(),po=gd=Ca=null,As=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Bh&&a.locale!=="ko"?null:a.data;default:return null}}var dj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tm(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!dj[e.type]:a==="textarea"}function Uh(e,a,s,r){Nh(r),a=$o(a,"onChange"),0<a.length&&(s=new vd("onChange","change",null,s,r),e.push({event:s,listeners:a}))}var Br=null,mn=null;function uj(e){ax(e,0)}function ji(e){var a=Is(e);if(xh(a))return e}function mj(e,a){if(e==="change")return a}var Wh=!1;if(la){var il;if(la){var ll="oninput"in document;if(!ll){var am=document.createElement("div");am.setAttribute("oninput","return;"),ll=typeof am.oninput=="function"}il=ll}else il=!1;Wh=il&&(!document.documentMode||9<document.documentMode)}function sm(){Br&&(Br.detachEvent("onpropertychange",Hh),mn=Br=null)}function Hh(e){if(e.propertyName==="value"&&ji(mn)){var a=[];Uh(a,mn,e,md(e)),_h(uj,a)}}function pj(e,a,s){e==="focusin"?(sm(),Br=a,mn=s,Br.attachEvent("onpropertychange",Hh)):e==="focusout"&&sm()}function hj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(mn)}function xj(e,a){if(e==="click")return ji(a)}function fj(e,a){if(e==="input"||e==="change")return ji(a)}function gj(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Mt=typeof Object.is=="function"?Object.is:gj;function pn(e,a){if(Mt(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var s=Object.keys(e),r=Object.keys(a);if(s.length!==r.length)return!1;for(r=0;r<s.length;r++){var n=s[r];if(!Fl.call(a,n)||!Mt(e[n],a[n]))return!1}return!0}function rm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nm(e,a){var s=rm(e);e=0;for(var r;s;){if(s.nodeType===3){if(r=e+s.textContent.length,e<=a&&r>=a)return{node:s,offset:a-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=rm(s)}}function Qh(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Qh(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Kh(){for(var e=window,a=So();a instanceof e.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)e=a.contentWindow;else break;a=So(e.document)}return a}function bd(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}function vj(e){var a=Kh(),s=e.focusedElem,r=e.selectionRange;if(a!==s&&s&&s.ownerDocument&&Qh(s.ownerDocument.documentElement,s)){if(r!==null&&bd(s)){if(a=r.start,e=r.end,e===void 0&&(e=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(e,s.value.length);else if(e=(a=s.ownerDocument||document)&&a.defaultView||window,e.getSelection){e=e.getSelection();var n=s.textContent.length,o=Math.min(r.start,n);r=r.end===void 0?o:Math.min(r.end,n),!e.extend&&o>r&&(n=r,r=o,o=n),n=nm(s,o);var i=nm(s,r);n&&i&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(a=a.createRange(),a.setStart(n.node,n.offset),e.removeAllRanges(),o>r?(e.addRange(a),e.extend(i.node,i.offset)):(a.setEnd(i.node,i.offset),e.addRange(a)))}}for(a=[],e=s;e=e.parentNode;)e.nodeType===1&&a.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)e=a[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jj=la&&"documentMode"in document&&11>=document.documentMode,zs=null,rc=null,Gr=null,nc=!1;function om(e,a,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;nc||zs==null||zs!==So(r)||(r=zs,"selectionStart"in r&&bd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&pn(Gr,r)||(Gr=r,r=$o(rc,"onSelect"),0<r.length&&(a=new vd("onSelect","select",null,a,s),e.push({event:a,listeners:r}),a.target=zs)))}function Qn(e,a){var s={};return s[e.toLowerCase()]=a.toLowerCase(),s["Webkit"+e]="webkit"+a,s["Moz"+e]="moz"+a,s}var Ts={animationend:Qn("Animation","AnimationEnd"),animationiteration:Qn("Animation","AnimationIteration"),animationstart:Qn("Animation","AnimationStart"),transitionend:Qn("Transition","TransitionEnd")},cl={},Yh={};la&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete Ts.animationend.animation,delete Ts.animationiteration.animation,delete Ts.animationstart.animation),"TransitionEvent"in window||delete Ts.transitionend.transition);function yi(e){if(cl[e])return cl[e];if(!Ts[e])return e;var a=Ts[e],s;for(s in a)if(a.hasOwnProperty(s)&&s in Yh)return cl[e]=a[s];return e}var Jh=yi("animationend"),Zh=yi("animationiteration"),Xh=yi("animationstart"),ex=yi("transitionend"),tx=new Map,im="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ha(e,a){tx.set(e,a),ys(a,[e])}for(var dl=0;dl<im.length;dl++){var ul=im[dl],yj=ul.toLowerCase(),bj=ul[0].toUpperCase()+ul.slice(1);Ha(yj,"on"+bj)}Ha(Jh,"onAnimationEnd");Ha(Zh,"onAnimationIteration");Ha(Xh,"onAnimationStart");Ha("dblclick","onDoubleClick");Ha("focusin","onFocus");Ha("focusout","onBlur");Ha(ex,"onTransitionEnd");Ys("onMouseEnter",["mouseout","mouseover"]);Ys("onMouseLeave",["mouseout","mouseover"]);Ys("onPointerEnter",["pointerout","pointerover"]);Ys("onPointerLeave",["pointerout","pointerover"]);ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ys("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ys("onBeforeInput",["compositionend","keypress","textInput","paste"]);ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function lm(e,a,s){var r=e.type||"unknown-event";e.currentTarget=s,yv(r,a,void 0,e),e.currentTarget=null}function ax(e,a){a=(a&4)!==0;for(var s=0;s<e.length;s++){var r=e[s],n=r.event;r=r.listeners;e:{var o=void 0;if(a)for(var i=r.length-1;0<=i;i--){var c=r[i],l=c.instance,d=c.currentTarget;if(c=c.listener,l!==o&&n.isPropagationStopped())break e;lm(n,c,d),o=l}else for(i=0;i<r.length;i++){if(c=r[i],l=c.instance,d=c.currentTarget,c=c.listener,l!==o&&n.isPropagationStopped())break e;lm(n,c,d),o=l}}}if(Po)throw e=ec,Po=!1,ec=null,e}function pe(e,a){var s=a[dc];s===void 0&&(s=a[dc]=new Set);var r=e+"__bubble";s.has(r)||(sx(a,e,2,!1),s.add(r))}function ml(e,a,s){var r=0;a&&(r|=4),sx(s,e,r,a)}var Kn="_reactListening"+Math.random().toString(36).slice(2);function hn(e){if(!e[Kn]){e[Kn]=!0,dh.forEach(function(s){s!=="selectionchange"&&(Nj.has(s)||ml(s,!1,e),ml(s,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Kn]||(a[Kn]=!0,ml("selectionchange",!1,a))}}function sx(e,a,s,r){switch(Oh(a)){case 1:var n=qv;break;case 4:n=Mv;break;default:n=fd}s=n.bind(null,a,s,e),n=void 0,!Xl||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(n=!0),r?n!==void 0?e.addEventListener(a,s,{capture:!0,passive:n}):e.addEventListener(a,s,!0):n!==void 0?e.addEventListener(a,s,{passive:n}):e.addEventListener(a,s,!1)}
vendor: 2,676 bytes, line 38
38function pl(e,a,s,r,n){var o=r;if(!(a&1)&&!(a&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var c=r.stateNode.containerInfo;if(c===n||c.nodeType===8&&c.parentNode===n)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;i=i.return}for(;c!==null;){if(i=is(c),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}c=c.parentNode}}r=r.return}_h(function(){var d=o,u=md(s),h=[];e:{var m=tx.get(e);if(m!==void 0){var f=vd,v=e;switch(e){case"keypress":if(ho(s)===0)break e;case"keydown":case"keyup":f=Zv;break;case"focusin":v="focus",f=ol;break;case"focusout":v="blur",f=ol;break;case"beforeblur":case"afterblur":f=ol;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=tj;break;case Jh:case Zh:case Xh:f=Gv;break;case ex:f=sj;break;case"scroll":f=Rv;break;case"wheel":f=nj;break;case"copy":case"cut":case"paste":f=Uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Zu}var g=(a&4)!==0,b=!g&&e==="scroll",p=g?m!==null?m+"Capture":null:m;g=[];for(var x=d,j;x!==null;){j=x;var k=j.stateNode;if(j.tag===5&&k!==null&&(j=k,p!==null&&(k=ln(x,p),k!=null&&g.push(xn(x,k,j)))),b)break;x=x.return}0<g.length&&(m=new f(m,v,null,s,u),h.push({event:m,listeners:g}))}}if(!(a&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&s!==Jl&&(v=s.relatedTarget||s.fromElement)&&(is(v)||v[ca]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(v=s.relatedTarget||s.toElement,f=d,v=v?is(v):null,v!==null&&(b=bs(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(f=null,v=d),f!==v)){if(g=Yu,k="onMouseLeave",p="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=Zu,k="onPointerLeave",p="onPointerEnter",x="pointer"),b=f==null?m:Is(f),j=v==null?m:Is(v),m=new g(k,x+"leave",f,s,u),m.target=b,m.relatedTarget=j,k=null,is(u)===d&&(g=new g(p,x+"enter",v,s,u),g.target=j,g.relatedTarget=b,k=g),b=k,f&&v)t:{for(g=f,p=v,x=0,j=g;j;j=Cs(j))x++;for(j=0,k=p;k;k=Cs(k))j++;for(;0<x-j;)g=Cs(g),x--;for(;0<j-x;)p=Cs(p),j--;for(;x--;){if(g===p||p!==null&&g===p.alternate)break t;g=Cs(g),p=Cs(p)}g=null}else g=null;f!==null&&cm(h,m,f,g,!1),v!==null&&b!==null&&cm(h,b,v,g,!0)}}
vendor: 5,341 bytes, lines 38-39
38e:{if(m=d?Is(d):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var N=mj;else if(tm(m))if(Wh)N=fj;else{N=hj;var C=pj}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(N=xj);if(N&&(N=N(e,d))){Uh(h,N,s,u);break e}C&&C(e,m,d),e==="focusout"&&(C=m._wrapperState)&&C.controlled&&m.type==="number"&&Wl(m,"number",m.value)}switch(C=d?Is(d):window,e){case"focusin":(tm(C)||C.contentEditable==="true")&&(zs=C,rc=d,Gr=null);break;case"focusout":Gr=rc=zs=null;break;case"mousedown":nc=!0;break;case"contextmenu":case"mouseup":case"dragend":nc=!1,om(h,s,u);break;case"selectionchange":if(jj)break;case"keydown":case"keyup":om(h,s,u)}var _;if(yd)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else As?Gh(e,s)&&(A="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(A="onCompositionStart");A&&(Bh&&s.locale!=="ko"&&(As||A!=="onCompositionStart"?A==="onCompositionEnd"&&As&&(_=Dh()):(Ca=u,gd="value"in Ca?Ca.value:Ca.textContent,As=!0)),C=$o(d,A),0<C.length&&(A=new Ju(A,e,null,s,u),h.push({event:A,listeners:C}),_?A.data=_:(_=Vh(s),_!==null&&(A.data=_)))),(_=ij?lj(e,s):cj(e,s))&&(d=$o(d,"onBeforeInput"),0<d.length&&(u=new Ju("onBeforeInput","beforeinput",null,s,u),h.push({event:u,listeners:d}),u.data=_))}ax(h,a)})}function xn(e,a,s){return{instance:e,listener:a,currentTarget:s}}function $o(e,a){for(var s=a+"Capture",r=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=ln(e,s),o!=null&&r.unshift(xn(e,o,n)),o=ln(e,a),o!=null&&r.push(xn(e,o,n))),e=e.return}return r}function Cs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cm(e,a,s,r,n){for(var o=a._reactName,i=[];s!==null&&s!==r;){var c=s,l=c.alternate,d=c.stateNode;if(l!==null&&l===r)break;c.tag===5&&d!==null&&(c=d,n?(l=ln(s,o),l!=null&&i.unshift(xn(s,l,c))):n||(l=ln(s,o),l!=null&&i.push(xn(s,l,c)))),s=s.return}i.length!==0&&e.push({event:a,listeners:i})}var kj=/\r\n?/g,wj=/\u0000|\uFFFD/g;function dm(e){return(typeof e=="string"?e:""+e).replace(kj,` 39`).replace(wj,"")}function Yn(e,a,s){if(a=dm(a),dm(e)!==a&&s)throw Error(G(425))}function Lo(){}var oc=null,ic=null;function lc(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var cc=typeof setTimeout=="function"?setTimeout:void 0,Cj=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,_j=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(Sj)}:cc;function Sj(e){setTimeout(function(){throw e})}function hl(e,a){var s=a,r=0;do{var n=s.nextSibling;if(e.removeChild(s),n&&n.nodeType===8)if(s=n.data,s==="/$"){if(r===0){e.removeChild(n),un(a);return}r--}else s!=="$"&&s!=="$?"&&s!=="$!"||r++;s=n}while(s);un(a)}function Ta(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return e}function mm(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return e;a--}else s==="/$"&&a++}e=e.previousSibling}return null}var cr=Math.random().toString(36).slice(2),Wt="__reactFiber$"+cr,fn="__reactProps$"+cr,ca="__reactContainer$"+cr,dc="__reactEvents$"+cr,Ej="__reactListeners$"+cr,Pj="__reactHandles$"+cr;function is(e){var a=e[Wt];if(a)return a;for(var s=e.parentNode;s;){if(a=s[ca]||s[Wt]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(e=mm(e);e!==null;){if(s=e[Wt])return s;e=mm(e)}return a}e=s,s=e.parentNode}return null}function $n(e){return e=e[Wt]||e[ca],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Is(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function bi(e){return e[fn]||null}var uc=[],$s=-1;function Qa(e){return{current:e}}function he(e){0>$s||(e.current=uc[$s],uc[$s]=null,$s--)}function ue(e,a){$s++,uc[$s]=e.current,e.current=a}var Ua={},Ke=Qa(Ua),ot=Qa(!1),hs=Ua;function Js(e,a){var s=e.type.contextTypes;if(!s)return Ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===a)return r.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in s)n[o]=a[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=n),n}function it(e){return e=e.childContextTypes,e!=null}function qo(){he(ot),he(Ke)}function pm(e,a,s){if(Ke.current!==Ua)throw Error(G(168));ue(Ke,a),ue(ot,s)}function rx(e,a,s){var r=e.stateNode;if(a=a.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var n in r)if(!(n in a))throw Error(G(108,pv(e)||"Unknown",n));return be({},s,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ua,hs=Ke.current,ue(Ke,e),ue(ot,ot.current),!0}function hm(e,a,s){var r=e.stateNode;if(!r)throw Error(G(169));s?(e=rx(e,a,hs),r.__reactInternalMemoizedMergedChildContext=e,he(ot),he(Ke),ue(Ke,e)):he(ot),ue(ot,s)}var ea=null,Ni=!1,xl=!1;function nx(e){ea===null?ea=[e]:ea.push(e)}function Aj(e){Ni=!0,nx(e)}
vendor: 13,845 bytes, line 39
39function Ka(){if(!xl&&ea!==null){xl=!0;var e=0,a=ie;try{var s=ea;for(ie=1;e<s.length;e++){var r=s[e];do r=r(!0);while(r!==null)}ea=null,Ni=!1}catch(n){throw ea!==null&&(ea=ea.slice(e+1)),Ah(pd,Ka),n}finally{ie=a,xl=!1}}return null}var Ls=[],qs=0,Ro=null,Fo=0,vt=[],jt=0,xs=null,ta=1,aa="";function ns(e,a){Ls[qs++]=Fo,Ls[qs++]=Ro,Ro=e,Fo=a}function ox(e,a,s){vt[jt++]=ta,vt[jt++]=aa,vt[jt++]=xs,xs=e;var r=ta;e=aa;var n=32-Lt(r)-1;r&=~(1<<n),s+=1;var o=32-Lt(a)+n;if(30<o){var i=n-n%5;o=(r&(1<<i)-1).toString(32),r>>=i,n-=i,ta=1<<32-Lt(a)+n|s<<n|r,aa=o+e}else ta=1<<o|s<<n|r,aa=e}function Nd(e){e.return!==null&&(ns(e,1),ox(e,1,0))}function kd(e){for(;e===Ro;)Ro=Ls[--qs],Ls[qs]=null,Fo=Ls[--qs],Ls[qs]=null;for(;e===xs;)xs=vt[--jt],vt[jt]=null,aa=vt[--jt],vt[jt]=null,ta=vt[--jt],vt[jt]=null}var mt=null,ut=null,fe=!1,$t=null;function ix(e,a){var s=yt(5,null,null,0);s.elementType="DELETED",s.stateNode=a,s.return=e,a=e.deletions,a===null?(e.deletions=[s],e.flags|=16):a.push(s)}function xm(e,a){switch(e.tag){case 5:var s=e.type;return a=a.nodeType!==1||s.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(e.stateNode=a,mt=e,ut=Ta(a.firstChild),!0):!1;case 6:return a=e.pendingProps===""||a.nodeType!==3?null:a,a!==null?(e.stateNode=a,mt=e,ut=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(s=xs!==null?{id:ta,overflow:aa}:null,e.memoizedState={dehydrated:a,treeContext:s,retryLane:1073741824},s=yt(18,null,null,0),s.stateNode=a,s.return=e,e.child=s,mt=e,ut=null,!0):!1;default:return!1}}function mc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pc(e){if(fe){var a=ut;if(a){var s=a;if(!xm(e,a)){if(mc(e))throw Error(G(418));a=Ta(s.nextSibling);var r=mt;a&&xm(e,a)?ix(r,s):(e.flags=e.flags&-4097|2,fe=!1,mt=e)}}else{if(mc(e))throw Error(G(418));e.flags=e.flags&-4097|2,fe=!1,mt=e}}}function fm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Jn(e){if(e!==mt)return!1;if(!fe)return fm(e),fe=!0,!1;var a;if((a=e.tag!==3)&&!(a=e.tag!==5)&&(a=e.type,a=a!=="head"&&a!=="body"&&!lc(e.type,e.memoizedProps)),a&&(a=ut)){if(mc(e))throw lx(),Error(G(418));for(;a;)ix(e,a),a=Ta(a.nextSibling)}if(fm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(G(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(a===0){ut=Ta(e.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++}e=e.nextSibling}ut=null}}else ut=mt?Ta(e.stateNode.nextSibling):null;return!0}function lx(){for(var e=ut;e;)e=Ta(e.nextSibling)}function Zs(){ut=mt=null,fe=!1}function wd(e){$t===null?$t=[e]:$t.push(e)}var zj=ma.ReactCurrentBatchConfig;function Cr(e,a,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(G(309));var r=s.stateNode}if(!r)throw Error(G(147,e));var n=r,o=""+e;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===o?a.ref:(a=function(i){var c=n.refs;i===null?delete c[o]:c[o]=i},a._stringRef=o,a)}if(typeof e!="string")throw Error(G(284));if(!s._owner)throw Error(G(290,e))}return e}function Zn(e,a){throw e=Object.prototype.toString.call(a),Error(G(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e))}function gm(e){var a=e._init;return a(e._payload)}function cx(e){function a(p,x){if(e){var j=p.deletions;j===null?(p.deletions=[x],p.flags|=16):j.push(x)}}function s(p,x){if(!e)return null;for(;x!==null;)a(p,x),x=x.sibling;return null}function r(p,x){for(p=new Map;x!==null;)x.key!==null?p.set(x.key,x):p.set(x.index,x),x=x.sibling;return p}function n(p,x){return p=qa(p,x),p.index=0,p.sibling=null,p}function o(p,x,j){return p.index=j,e?(j=p.alternate,j!==null?(j=j.index,j<x?(p.flags|=2,x):j):(p.flags|=2,x)):(p.flags|=1048576,x)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function c(p,x,j,k){return x===null||x.tag!==6?(x=Nl(j,p.mode,k),x.return=p,x):(x=n(x,j),x.return=p,x)}function l(p,x,j,k){var N=j.type;return N===Ps?u(p,x,j.props.children,k,j.key):x!==null&&(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ja&&gm(N)===x.type)?(k=n(x,j.props),k.ref=Cr(p,x,j),k.return=p,k):(k=bo(j.type,j.key,j.props,null,p.mode,k),k.ref=Cr(p,x,j),k.return=p,k)}function d(p,x,j,k){return x===null||x.tag!==4||x.stateNode.containerInfo!==j.containerInfo||x.stateNode.implementation!==j.implementation?(x=kl(j,p.mode,k),x.return=p,x):(x=n(x,j.children||[]),x.return=p,x)}function u(p,x,j,k,N){return x===null||x.tag!==7?(x=ms(j,p.mode,k,N),x.return=p,x):(x=n(x,j),x.return=p,x)}function h(p,x,j){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Nl(""+x,p.mode,j),x.return=p,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Dn:return j=bo(x.type,x.key,x.props,null,p.mode,j),j.ref=Cr(p,null,x),j.return=p,j;case Es:return x=kl(x,p.mode,j),x.return=p,x;case ja:var k=x._init;return h(p,k(x._payload),j)}if(Ir(x)||yr(x))return x=ms(x,p.mode,j,null),x.return=p,x;Zn(p,x)}return null}function m(p,x,j,k){var N=x!==null?x.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return N!==null?null:c(p,x,""+j,k);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Dn:return j.key===N?l(p,x,j,k):null;case Es:return j.key===N?d(p,x,j,k):null;case ja:return N=j._init,m(p,x,N(j._payload),k)}if(Ir(j)||yr(j))return N!==null?null:u(p,x,j,k,null);Zn(p,j)}return null}function f(p,x,j,k,N){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(j)||null,c(x,p,""+k,N);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Dn:return p=p.get(k.key===null?j:k.key)||null,l(x,p,k,N);case Es:return p=p.get(k.key===null?j:k.key)||null,d(x,p,k,N);case ja:var C=k._init;return f(p,x,j,C(k._payload),N)}if(Ir(k)||yr(k))return p=p.get(j)||null,u(x,p,k,N,null);Zn(x,k)}return null}function v(p,x,j,k){for(var N=null,C=null,_=x,A=x=0,z=null;_!==null&&A<j.length;A++){_.index>A?(z=_,_=null):z=_.sibling;var P=m(p,_,j[A],k);if(P===null){_===null&&(_=z);break}e&&_&&P.alternate===null&&a(p,_),x=o(P,x,A),C===null?N=P:C.sibling=P,C=P,_=z}if(A===j.length)return s(p,_),fe&&ns(p,A),N;if(_===null){for(;A<j.length;A++)_=h(p,j[A],k),_!==null&&(x=o(_,x,A),C===null?N=_:C.sibling=_,C=_);return fe&&ns(p,A),N}for(_=r(p,_);A<j.length;A++)z=f(_,p,A,j[A],k),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?A:z.key),x=o(z,x,A),C===null?N=z:C.sibling=z,C=z);return e&&_.forEach(function(w){return a(p,w)}),fe&&ns(p,A),N}function g(p,x,j,k){var N=yr(j);if(typeof N!="function")throw Error(G(150));if(j=N.call(j),j==null)throw Error(G(151));for(var C=N=null,_=x,A=x=0,z=null,P=j.next();_!==null&&!P.done;A++,P=j.next()){_.index>A?(z=_,_=null):z=_.sibling;var w=m(p,_,P.value,k);if(w===null){_===null&&(_=z);break}e&&_&&w.alternate===null&&a(p,_),x=o(w,x,A),C===null?N=w:C.sibling=w,C=w,_=z}if(P.done)return s(p,_),fe&&ns(p,A),N;if(_===null){for(;!P.done;A++,P=j.next())P=h(p,P.value,k),P!==null&&(x=o(P,x,A),C===null?N=P:C.sibling=P,C=P);return fe&&ns(p,A),N}for(_=r(p,_);!P.done;A++,P=j.next())P=f(_,p,A,P.value,k),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?A:P.key),x=o(P,x,A),C===null?N=P:C.sibling=P,C=P);return e&&_.forEach(function(L){return a(p,L)}),fe&&ns(p,A),N}function b(p,x,j,k){if(typeof j=="object"&&j!==null&&j.type===Ps&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Dn:e:{for(var N=j.key,C=x;C!==null;){if(C.key===N){if(N=j.type,N===Ps){if(C.tag===7){s(p,C.sibling),x=n(C,j.props.children),x.return=p,p=x;break e}}else if(C.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===ja&&gm(N)===C.type){s(p,C.sibling),x=n(C,j.props),x.ref=Cr(p,C,j),x.return=p,p=x;break e}s(p,C);break}else a(p,C);C=C.sibling}j.type===Ps?(x=ms(j.props.children,p.mode,k,j.key),x.return=p,p=x):(k=bo(j.type,j.key,j.props,null,p.mode,k),k.ref=Cr(p,x,j),k.return=p,p=k)}return i(p);case Es:e:{for(C=j.key;x!==null;){if(x.key===C)if(x.tag===4&&x.stateNode.containerInfo===j.containerInfo&&x.stateNode.implementation===j.implementation){s(p,x.sibling),x=n(x,j.children||[]),x.return=p,p=x;break e}else{s(p,x);break}else a(p,x);x=x.sibling}x=kl(j,p.mode,k),x.return=p,p=x}return i(p);case ja:return C=j._init,b(p,x,C(j._payload),k)}if(Ir(j))return v(p,x,j,k);if(yr(j))return g(p,x,j,k);Zn(p,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,x!==null&&x.tag===6?(s(p,x.sibling),x=n(x,j),x.return=p,p=x):(s(p,x),x=Nl(j,p.mode,k),x.return=p,p=x),i(p)):s(p,x)}return b}var Xs=cx(!0),dx=cx(!1),Oo=Qa(null),Do=null,Ms=null,Cd=null;function _d(){Cd=Ms=Do=null}function Sd(e){var a=Oo.current;he(Oo),e._currentValue=a}function hc(e,a,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,r!==null&&(r.childLanes|=a)):r!==null&&(r.childLanes&a)!==a&&(r.childLanes|=a),e===s)break;e=e.return}}function Us(e,a){Do=e,Cd=Ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&a&&(nt=!0),e.firstContext=null)}function Ct(e){var a=e._currentValue;if(Cd!==e)if(e={context:e,memoizedValue:a,next:null},Ms===null){if(Do===null)throw Error(G(308));Ms=e,Do.dependencies={lanes:0,firstContext:e}}else Ms=Ms.next=e;return a}var ls=null;function Ed(e){ls===null?ls=[e]:ls.push(e)}function ux(e,a,s,r){var n=a.interleaved;return n===null?(s.next=s,Ed(a)):(s.next=n.next,n.next=s),a.interleaved=s,da(e,r)}function da(e,a){e.lanes|=a;var s=e.alternate;for(s!==null&&(s.lanes|=a),s=e,e=e.return;e!==null;)e.childLanes|=a,s=e.alternate,s!==null&&(s.childLanes|=a),s=e,e=e.return;return s.tag===3?s.stateNode:null}var ya=!1;function Pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mx(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ra(e,a){return{eventTime:e,lane:a,tag:0,payload:null,callback:null,next:null}}function Ia(e,a,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var n=r.pending;return n===null?a.next=a:(a.next=n.next,n.next=a),r.pending=a,da(e,s)}return n=r.interleaved,n===null?(a.next=a,Ed(r)):(a.next=n.next,n.next=a),r.interleaved=a,da(e,s)}function xo(e,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194240)!==0)){var r=a.lanes;r&=e.pendingLanes,s|=r,a.lanes=s,hd(e,s)}}function vm(e,a){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var n=null,o=null;if(s=s.firstBaseUpdate,s!==null){do{var i={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};o===null?n=o=i:o=o.next=i,s=s.next}while(s!==null);o===null?n=o=a:o=o.next=a}else n=o=a;s={baseState:r.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=a:e.next=a,s.lastBaseUpdate=a}function Bo(e,a,s,r){var n=e.updateQueue;ya=!1;var o=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var l=c,d=l.next;l.next=null,i===null?o=d:i.next=d,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,c=u.lastBaseUpdate,c!==i&&(c===null?u.firstBaseUpdate=d:c.next=d,u.lastBaseUpdate=l))}if(o!==null){var h=n.baseState;i=0,u=d=l=null,c=o;do{var m=c.lane,f=c.eventTime;if((r&m)===m){u!==null&&(u=u.next={eventTime:f,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var v=e,g=c;switch(m=a,f=s,g.tag){case 1:if(v=g.payload,typeof v=="function"){h=v.call(f,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,m=typeof v=="function"?v.call(f,h,m):v,m==null)break e;h=be({},h,m);break e;case 2:ya=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,m=n.effects,m===null?n.effects=[c]:m.push(c))}else f={eventTime:f,lane:m,tag:c.tag,payload:c.payload,callback:c.callback,next:null},u===null?(d=u=f,l=h):u=u.next=f,i|=m;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;m=c,c=m.next,m.next=null,n.lastBaseUpdate=m,n.shared.pending=null}}while(!0);if(u===null&&(l=h),n.baseState=l,n.firstBaseUpdate=d,n.lastBaseUpdate=u,a=n.shared.interleaved,a!==null){n=a;do i|=n.lane,n=n.next;while(n!==a)}else o===null&&(n.shared.lanes=0);gs|=i,e.lanes=i,e.memoizedState=h}}function jm(e,a,s){if(e=a.effects,a.effects=null,e!==null)for(a=0;a<e.length;a++){var r=e[a],n=r.callback;if(n!==null){if(r.callback=null,r=s,typeof n!="function")throw Error(G(191,n));n.call(r)}}}var Ln={},Kt=Qa(Ln),gn=Qa(Ln),vn=Qa(Ln);function cs(e){if(e===Ln)throw Error(G(174));return e}function Ad(e,a){switch(ue(vn,a),ue(gn,e),ue(Kt,Ln),e=a.nodeType,e){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Ql(null,"");break;default:e=e===8?a.parentNode:a,a=e.namespaceURI||null,e=e.tagName,a=Ql(a,e)}he(Kt),ue(Kt,a)}function er(){he(Kt),he(gn),he(vn)}function px(e){cs(vn.current);var a=cs(Kt.current),s=Ql(a,e.type);a!==s&&(ue(gn,e),ue(Kt,s))}function zd(e){gn.current===e&&(he(Kt),he(gn))}var ve=Qa(0);function Go(e){for(var a=e;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var fl=[];function Td(){for(var e=0;e<fl.length;e++)fl[e]._workInProgressVersionPrimary=null;fl.length=0}var fo=ma.ReactCurrentDispatcher,gl=ma.ReactCurrentBatchConfig,fs=0,je=null,Te=null,Le=null,Vo=!1,Vr=!1,jn=0,Tj=0;function Ge(){throw Error(G(321))}function Id(e,a){if(a===null)return!1;for(var s=0;s<a.length&&s<e.length;s++)if(!Mt(e[s],a[s]))return!1;return!0}function $d(e,a,s,r,n,o){if(fs=o,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,fo.current=e===null||e.memoizedState===null?qj:Mj,e=s(r,n),Vr){o=0;
vendor: 5,451 bytes, line 39
39do{if(Vr=!1,jn=0,25<=o)throw Error(G(301));o+=1,Le=Te=null,a.updateQueue=null,fo.current=Rj,e=s(r,n)}while(Vr)}if(fo.current=Uo,a=Te!==null&&Te.next!==null,fs=0,Le=Te=je=null,Vo=!1,a)throw Error(G(300));return e}function Ld(){var e=jn!==0;return jn=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?je.memoizedState=Le=e:Le=Le.next=e,Le}function _t(){if(Te===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var a=Le===null?je.memoizedState:Le.next;if(a!==null)Le=a,Te=e;else{if(e===null)throw Error(G(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Le===null?je.memoizedState=Le=e:Le=Le.next=e}return Le}function yn(e,a){return typeof a=="function"?a(e):a}function vl(e){var a=_t(),s=a.queue;if(s===null)throw Error(G(311));s.lastRenderedReducer=e;var r=Te,n=r.baseQueue,o=s.pending;if(o!==null){if(n!==null){var i=n.next;n.next=o.next,o.next=i}r.baseQueue=n=o,s.pending=null}if(n!==null){o=n.next,r=r.baseState;var c=i=null,l=null,d=o;do{var u=d.lane;if((fs&u)===u)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(c=l=h,i=r):l=l.next=h,je.lanes|=u,gs|=u}d=d.next}while(d!==null&&d!==o);l===null?i=r:l.next=c,Mt(r,a.memoizedState)||(nt=!0),a.memoizedState=r,a.baseState=i,a.baseQueue=l,s.lastRenderedState=r}if(e=s.interleaved,e!==null){n=e;do o=n.lane,je.lanes|=o,gs|=o,n=n.next;while(n!==e)}else n===null&&(s.lanes=0);return[a.memoizedState,s.dispatch]}function jl(e){var a=_t(),s=a.queue;if(s===null)throw Error(G(311));s.lastRenderedReducer=e;var r=s.dispatch,n=s.pending,o=a.memoizedState;if(n!==null){s.pending=null;var i=n=n.next;do o=e(o,i.action),i=i.next;while(i!==n);Mt(o,a.memoizedState)||(nt=!0),a.memoizedState=o,a.baseQueue===null&&(a.baseState=o),s.lastRenderedState=o}return[o,r]}function hx(){}function xx(e,a){var s=je,r=_t(),n=a(),o=!Mt(r.memoizedState,n);if(o&&(r.memoizedState=n,nt=!0),r=r.queue,qd(vx.bind(null,s,r,e),[e]),r.getSnapshot!==a||o||Le!==null&&Le.memoizedState.tag&1){if(s.flags|=2048,bn(9,gx.bind(null,s,r,n,a),void 0,null),Me===null)throw Error(G(349));fs&30||fx(s,a,n)}return n}function fx(e,a,s){e.flags|=16384,e={getSnapshot:a,value:s},a=je.updateQueue,a===null?(a={lastEffect:null,stores:null},je.updateQueue=a,a.stores=[e]):(s=a.stores,s===null?a.stores=[e]:s.push(e))}function gx(e,a,s,r){a.value=s,a.getSnapshot=r,jx(a)&&yx(e)}function vx(e,a,s){return s(function(){jx(a)&&yx(e)})}function jx(e){var a=e.getSnapshot;e=e.value;try{var s=a();return!Mt(e,s)}catch{return!0}}function yx(e){var a=da(e,1);a!==null&&qt(a,e,1,-1)}function ym(e){var a=Vt();return typeof e=="function"&&(e=e()),a.memoizedState=a.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},a.queue=e,e=e.dispatch=Lj.bind(null,je,e),[a.memoizedState,e]}function bn(e,a,s,r){return e={tag:e,create:a,destroy:s,deps:r,next:null},a=je.updateQueue,a===null?(a={lastEffect:null,stores:null},je.updateQueue=a,a.lastEffect=e.next=e):(s=a.lastEffect,s===null?a.lastEffect=e.next=e:(r=s.next,s.next=e,e.next=r,a.lastEffect=e)),e}function bx(){return _t().memoizedState}function go(e,a,s,r){var n=Vt();je.flags|=e,n.memoizedState=bn(1|a,s,void 0,r===void 0?null:r)}function ki(e,a,s,r){var n=_t();r=r===void 0?null:r;var o=void 0;if(Te!==null){var i=Te.memoizedState;if(o=i.destroy,r!==null&&Id(r,i.deps)){n.memoizedState=bn(a,s,o,r);return}}je.flags|=e,n.memoizedState=bn(1|a,s,o,r)}function bm(e,a){return go(8390656,8,e,a)}function qd(e,a){return ki(2048,8,e,a)}function Nx(e,a){return ki(4,2,e,a)}function kx(e,a){return ki(4,4,e,a)}function wx(e,a){if(typeof a=="function")return e=e(),a(e),function(){a(null)};if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Cx(e,a,s){return s=s!=null?s.concat([e]):null,ki(4,4,wx.bind(null,a,e),s)}function Md(){}function _x(e,a){var s=_t();a=a===void 0?null:a;var r=s.memoizedState;return r!==null&&a!==null&&Id(a,r[1])?r[0]:(s.memoizedState=[e,a],e)}function Sx(e,a){var s=_t();a=a===void 0?null:a;var r=s.memoizedState;return r!==null&&a!==null&&Id(a,r[1])?r[0]:(e=e(),s.memoizedState=[e,a],e)}function Ex(e,a,s){return fs&21?(Mt(s,a)||(s=Ih(),je.lanes|=s,gs|=s,e.baseState=!0),a):(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=s)}function Ij(e,a){var s=ie;ie=s!==0&&4>s?s:4,e(!0);var r=gl.transition;gl.transition={};try{e(!1),a()}finally{ie=s,gl.transition=r}}function Px(){return _t().memoizedState}function $j(e,a,s){var r=La(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},Ax(e))zx(a,s);else if(s=ux(e,a,s,r),s!==null){var n=Je();qt(s,e,r,n),Tx(s,a,r)}}function Lj(e,a,s){var r=La(e),n={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ax(e))zx(a,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=a.lastRenderedReducer,o!==null))try{var i=a.lastRenderedState,c=o(i,s);if(n.hasEagerState=!0,n.eagerState=c,Mt(c,i)){var l=a.interleaved;l===null?(n.next=n,Ed(a)):(n.next=l.next,l.next=n),a.interleaved=n;return}}catch{}finally{}s=ux(e,a,n,r),s!==null&&(n=Je(),qt(s,e,r,n),Tx(s,a,r))}}function Ax(e){var a=e.alternate;return e===je||a!==null&&a===je}function zx(e,a){Vr=Vo=!0;var s=e.pending;
vendor: 6,689 bytes, lines 39-41
39s===null?a.next=a:(a.next=s.next,s.next=a),e.pending=a}function Tx(e,a,s){if(s&4194240){var r=a.lanes;r&=e.pendingLanes,s|=r,a.lanes=s,hd(e,s)}}var Uo={readContext:Ct,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},qj={readContext:Ct,useCallback:function(e,a){return Vt().memoizedState=[e,a===void 0?null:a],e},useContext:Ct,useEffect:bm,useImperativeHandle:function(e,a,s){return s=s!=null?s.concat([e]):null,go(4194308,4,wx.bind(null,a,e),s)},useLayoutEffect:function(e,a){return go(4194308,4,e,a)},useInsertionEffect:function(e,a){return go(4,2,e,a)},useMemo:function(e,a){var s=Vt();return a=a===void 0?null:a,e=e(),s.memoizedState=[e,a],e},useReducer:function(e,a,s){var r=Vt();return a=s!==void 0?s(a):a,r.memoizedState=r.baseState=a,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=$j.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var a=Vt();return e={current:e},a.memoizedState=e},useState:ym,useDebugValue:Md,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=ym(!1),a=e[0];return e=Ij.bind(null,e[1]),Vt().memoizedState=e,[a,e]},useMutableSource:function(){},useSyncExternalStore:function(e,a,s){var r=je,n=Vt();if(fe){if(s===void 0)throw Error(G(407));s=s()}else{if(s=a(),Me===null)throw Error(G(349));fs&30||fx(r,a,s)}n.memoizedState=s;var o={value:s,getSnapshot:a};return n.queue=o,bm(vx.bind(null,r,o,e),[e]),r.flags|=2048,bn(9,gx.bind(null,r,o,s,a),void 0,null),s},useId:function(){var e=Vt(),a=Me.identifierPrefix;if(fe){var s=aa,r=ta;s=(r&~(1<<32-Lt(r)-1)).toString(32)+s,a=":"+a+"R"+s,s=jn++,0<s&&(a+="H"+s.toString(32)),a+=":"}else s=Tj++,a=":"+a+"r"+s.toString(32)+":";return e.memoizedState=a},unstable_isNewReconciler:!1},Mj={readContext:Ct,useCallback:_x,useContext:Ct,useEffect:qd,useImperativeHandle:Cx,useInsertionEffect:Nx,useLayoutEffect:kx,useMemo:Sx,useReducer:vl,useRef:bx,useState:function(){return vl(yn)},useDebugValue:Md,useDeferredValue:function(e){var a=_t();return Ex(a,Te.memoizedState,e)},useTransition:function(){var e=vl(yn)[0],a=_t().memoizedState;return[e,a]},useMutableSource:hx,useSyncExternalStore:xx,useId:Px,unstable_isNewReconciler:!1},Rj={readContext:Ct,useCallback:_x,useContext:Ct,useEffect:qd,useImperativeHandle:Cx,useInsertionEffect:Nx,useLayoutEffect:kx,useMemo:Sx,useReducer:jl,useRef:bx,useState:function(){return jl(yn)},useDebugValue:Md,useDeferredValue:function(e){var a=_t();return Te===null?a.memoizedState=e:Ex(a,Te.memoizedState,e)},useTransition:function(){var e=jl(yn)[0],a=_t().memoizedState;return[e,a]},useMutableSource:hx,useSyncExternalStore:xx,useId:Px,unstable_isNewReconciler:!1};function zt(e,a){if(e&&e.defaultProps){a=be({},a),e=e.defaultProps;for(var s in e)a[s]===void 0&&(a[s]=e[s]);return a}return a}function xc(e,a,s,r){a=e.memoizedState,s=s(r,a),s=s==null?a:be({},a,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var wi={isMounted:function(e){return(e=e._reactInternals)?bs(e)===e:!1},enqueueSetState:function(e,a,s){e=e._reactInternals;var r=Je(),n=La(e),o=ra(r,n);o.payload=a,s!=null&&(o.callback=s),a=Ia(e,o,n),a!==null&&(qt(a,e,n,r),xo(a,e,n))},enqueueReplaceState:function(e,a,s){e=e._reactInternals;var r=Je(),n=La(e),o=ra(r,n);o.tag=1,o.payload=a,s!=null&&(o.callback=s),a=Ia(e,o,n),a!==null&&(qt(a,e,n,r),xo(a,e,n))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var s=Je(),r=La(e),n=ra(s,r);n.tag=2,a!=null&&(n.callback=a),a=Ia(e,n,r),a!==null&&(qt(a,e,r,s),xo(a,e,r))}};function Nm(e,a,s,r,n,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):a.prototype&&a.prototype.isPureReactComponent?!pn(s,r)||!pn(n,o):!0}function Ix(e,a,s){var r=!1,n=Ua,o=a.contextType;return typeof o=="object"&&o!==null?o=Ct(o):(n=it(a)?hs:Ke.current,r=a.contextTypes,o=(r=r!=null)?Js(e,n):Ua),a=new a(s,o),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=wi,e.stateNode=a,a._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),a}function km(e,a,s,r){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,r),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,r),a.state!==e&&wi.enqueueReplaceState(a,a.state,null)}function fc(e,a,s,r){var n=e.stateNode;n.props=s,n.state=e.memoizedState,n.refs={},Pd(e);var o=a.contextType;typeof o=="object"&&o!==null?n.context=Ct(o):(o=it(a)?hs:Ke.current,n.context=Js(e,o)),n.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(xc(e,a,o,s),n.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(a=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),a!==n.state&&wi.enqueueReplaceState(n,n.state,null),Bo(e,s,n,r),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function tr(e,a){try{var s="",r=a;do s+=mv(r),r=r.return;while(r);var n=s}catch(o){n=` 40Error generating stack: `+o.message+` 41`+o.stack}return{value:e,source:a,stack:n,digest:null}}function yl(e,a,s){return{value:e,source:null,stack:s??null,digest:a??null}}function gc(e,a){try{console.error(a.value)}catch(s){setTimeout(function(){throw s})}}var Fj=typeof WeakMap=="function"?WeakMap:Map;function $x(e,a,s){s=ra(-1,s),s.tag=3,s.payload={element:null};var r=a.value;return s.callback=function(){Ho||(Ho=!0,Sc=r),gc(e,a)},s}function Lx(e,a,s){s=ra(-1,s),s.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var n=a.value;s.payload=function(){return r(n)},s.callback=function(){gc(e,a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(s.callback=function(){gc(e,a),typeof r!="function"&&($a===null?$a=new Set([this]):$a.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:i!==null?i:""})}),s}function wm(e,a,s){var r=e.pingCache;if(r===null){r=e.pingCache=new Fj;var n=new Set;r.set(a,n)}else n=r.get(a),n===void 0&&(n=new Set,r.set(a,n));n.has(s)||(n.add(s),e=Xj.bind(null,e,a,s),a.then(e,e))}function Cm(e){do{var a;if((a=e.tag===13)&&(a=e.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return e;e=e.return}while(e!==null);return null}
vendor: 6,892 bytes, line 41
41function _m(e,a,s,r,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===a?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(a=ra(-1,1),a.tag=2,Ia(s,a,1))),s.lanes|=1),e)}var Oj=ma.ReactCurrentOwner,nt=!1;function Ye(e,a,s,r){a.child=e===null?dx(a,null,s,r):Xs(a,e.child,s,r)}function Sm(e,a,s,r,n){s=s.render;var o=a.ref;return Us(a,n),r=$d(e,a,s,r,o,n),s=Ld(),e!==null&&!nt?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,ua(e,a,n)):(fe&&s&&Nd(a),a.flags|=1,Ye(e,a,r,n),a.child)}function Em(e,a,s,r,n){if(e===null){var o=s.type;return typeof o=="function"&&!Ud(o)&&o.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(a.tag=15,a.type=o,qx(e,a,o,r,n)):(e=bo(s.type,null,r,a,a.mode,n),e.ref=a.ref,e.return=a,a.child=e)}if(o=e.child,!(e.lanes&n)){var i=o.memoizedProps;if(s=s.compare,s=s!==null?s:pn,s(i,r)&&e.ref===a.ref)return ua(e,a,n)}return a.flags|=1,e=qa(o,r),e.ref=a.ref,e.return=a,a.child=e}function qx(e,a,s,r,n){if(e!==null){var o=e.memoizedProps;if(pn(o,r)&&e.ref===a.ref)if(nt=!1,a.pendingProps=r=o,(e.lanes&n)!==0)e.flags&131072&&(nt=!0);else return a.lanes=e.lanes,ua(e,a,n)}return vc(e,a,s,r,n)}function Mx(e,a,s){var r=a.pendingProps,n=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Fs,dt),dt|=s;else{if(!(s&1073741824))return e=o!==null?o.baseLanes|s:s,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:e,cachePool:null,transitions:null},a.updateQueue=null,ue(Fs,dt),dt|=e,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:s,ue(Fs,dt),dt|=r}else o!==null?(r=o.baseLanes|s,a.memoizedState=null):r=s,ue(Fs,dt),dt|=r;return Ye(e,a,n,s),a.child}function Rx(e,a){var s=a.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(a.flags|=512,a.flags|=2097152)}function vc(e,a,s,r,n){var o=it(s)?hs:Ke.current;return o=Js(a,o),Us(a,n),s=$d(e,a,s,r,o,n),r=Ld(),e!==null&&!nt?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,ua(e,a,n)):(fe&&r&&Nd(a),a.flags|=1,Ye(e,a,s,n),a.child)}function Pm(e,a,s,r,n){if(it(s)){var o=!0;Mo(a)}else o=!1;if(Us(a,n),a.stateNode===null)vo(e,a),Ix(a,s,r),fc(a,s,r,n),r=!0;else if(e===null){var i=a.stateNode,c=a.memoizedProps;i.props=c;var l=i.context,d=s.contextType;typeof d=="object"&&d!==null?d=Ct(d):(d=it(s)?hs:Ke.current,d=Js(a,d));var u=s.getDerivedStateFromProps,h=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==r||l!==d)&&km(a,i,r,d),ya=!1;var m=a.memoizedState;i.state=m,Bo(a,r,i,n),l=a.memoizedState,c!==r||m!==l||ot.current||ya?(typeof u=="function"&&(xc(a,s,u,r),l=a.memoizedState),(c=ya||Nm(a,s,c,r,m,l,d))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(a.flags|=4194308)):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=r,a.memoizedState=l),i.props=r,i.state=l,i.context=d,r=c):(typeof i.componentDidMount=="function"&&(a.flags|=4194308),r=!1)}else{i=a.stateNode,mx(e,a),c=a.memoizedProps,d=a.type===a.elementType?c:zt(a.type,c),i.props=d,h=a.pendingProps,m=i.context,l=s.contextType,typeof l=="object"&&l!==null?l=Ct(l):(l=it(s)?hs:Ke.current,l=Js(a,l));var f=s.getDerivedStateFromProps;(u=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==h||m!==l)&&km(a,i,r,l),ya=!1,m=a.memoizedState,i.state=m,Bo(a,r,i,n);var v=a.memoizedState;c!==h||m!==v||ot.current||ya?(typeof f=="function"&&(xc(a,s,f,r),v=a.memoizedState),(d=ya||Nm(a,s,d,r,m,v,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,l)),typeof i.componentDidUpdate=="function"&&(a.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&m===e.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&m===e.memoizedState||(a.flags|=1024),a.memoizedProps=r,a.memoizedState=v),i.props=r,i.state=v,i.context=l,r=d):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&m===e.memoizedState||(a.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&m===e.memoizedState||(a.flags|=1024),r=!1)}return jc(e,a,s,r,o,n)}function jc(e,a,s,r,n,o){Rx(e,a);var i=(a.flags&128)!==0;if(!r&&!i)return n&&hm(a,s,!1),ua(e,a,o);r=a.stateNode,Oj.current=a;var c=i&&typeof s.getDerivedStateFromError!="function"?null:r.render();return a.flags|=1,e!==null&&i?(a.child=Xs(a,e.child,null,o),a.child=Xs(a,null,c,o)):Ye(e,a,c,o),a.memoizedState=r.state,n&&hm(a,s,!0),a.child}function Fx(e){var a=e.stateNode;a.pendingContext?pm(e,a.pendingContext,a.pendingContext!==a.context):a.context&&pm(e,a.context,!1),Ad(e,a.containerInfo)}function Am(e,a,s,r,n){return Zs(),wd(n),a.flags|=256,Ye(e,a,s,r),a.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ox(e,a,s){var r=a.pendingProps,n=ve.current,o=!1,i=(a.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(n&2)!==0),c?(o=!0,a.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),ue(ve,n&1),e===null)return pc(a),e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(a.mode&1?e.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(i=r.children,e=r.fallback,o?(r=a.mode,o=a.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Si(i,r,0,null),e=ms(e,r,s,null),o.return=a,e.return=a,o.sibling=e,a.child=o,a.child.memoizedState=bc(s),a.memoizedState=yc,e):Rd(a,i));if(n=e.memoizedState,n!==null&&(c=n.dehydrated,c!==null))return Dj(e,a,i,r,c,n,s);if(o){o=r.fallback,i=a.mode,n=e.child,c=n.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&a.child!==n?(r=a.child,r.childLanes=0,r.pendingProps=l,a.deletions=null):(r=qa(n,l),r.subtreeFlags=n.subtreeFlags&14680064),c!==null?o=qa(c,o):(o=ms(o,i,s,null),o.flags|=2),o.return=a,r.return=a,r.sibling=o,a.child=r,r=o,o=a.child,i=e.child.memoizedState,i=i===null?bc(s):{baseLanes:i.baseLanes|s,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~s,a.memoizedState=yc,r}return o=e.child,e=o.sibling,r=qa(o,{mode:"visible",children:r.children}),!(a.mode&1)&&(r.lanes=s),r.return=a,r.sibling=null,e!==null&&(s=a.deletions,s===null?(a.deleti
vendor: 5,758 bytes, line 41
41ons=[e],a.flags|=16):s.push(e)),a.child=r,a.memoizedState=null,r}function Rd(e,a){return a=Si({mode:"visible",children:a},e.mode,0,null),a.return=e,e.child=a}function Xn(e,a,s,r){return r!==null&&wd(r),Xs(a,e.child,null,s),e=Rd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Dj(e,a,s,r,n,o,i){if(s)return a.flags&256?(a.flags&=-257,r=yl(Error(G(422))),Xn(e,a,i,r)):a.memoizedState!==null?(a.child=e.child,a.flags|=128,null):(o=r.fallback,n=a.mode,r=Si({mode:"visible",children:r.children},n,0,null),o=ms(o,n,i,null),o.flags|=2,r.return=a,o.return=a,r.sibling=o,a.child=r,a.mode&1&&Xs(a,e.child,null,i),a.child.memoizedState=bc(i),a.memoizedState=yc,o);if(!(a.mode&1))return Xn(e,a,i,null);if(n.data==="$!"){if(r=n.nextSibling&&n.nextSibling.dataset,r)var c=r.dgst;return r=c,o=Error(G(419)),r=yl(o,r,void 0),Xn(e,a,i,r)}if(c=(i&e.childLanes)!==0,nt||c){if(r=Me,r!==null){switch(i&-i){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(r.suspendedLanes|i)?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,da(e,n),qt(r,e,n,-1))}return Vd(),r=yl(Error(G(421))),Xn(e,a,i,r)}return n.data==="$?"?(a.flags|=128,a.child=e.child,a=ey.bind(null,e),n._reactRetry=a,null):(e=o.treeContext,ut=Ta(n.nextSibling),mt=a,fe=!0,$t=null,e!==null&&(vt[jt++]=ta,vt[jt++]=aa,vt[jt++]=xs,ta=e.id,aa=e.overflow,xs=a),a=Rd(a,r.children),a.flags|=4096,a)}function zm(e,a,s){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a),hc(e.return,a,s)}function bl(e,a,s,r,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:r,tail:s,tailMode:n}:(o.isBackwards=a,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=s,o.tailMode=n)}function Dx(e,a,s){var r=a.pendingProps,n=r.revealOrder,o=r.tail;if(Ye(e,a,r.children,s),r=ve.current,r&2)r=r&1|2,a.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,s,a);else if(e.tag===19)zm(e,s,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(ve,r),!(a.mode&1))a.memoizedState=null;else switch(n){case"forwards":for(s=a.child,n=null;s!==null;)e=s.alternate,e!==null&&Go(e)===null&&(n=s),s=s.sibling;s=n,s===null?(n=a.child,a.child=null):(n=s.sibling,s.sibling=null),bl(a,!1,n,s,o);break;case"backwards":for(s=null,n=a.child,a.child=null;n!==null;){if(e=n.alternate,e!==null&&Go(e)===null){a.child=n;break}e=n.sibling,n.sibling=s,s=n,n=e}bl(a,!0,s,null,o);break;case"together":bl(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function vo(e,a){!(a.mode&1)&&e!==null&&(e.alternate=null,a.alternate=null,a.flags|=2)}function ua(e,a,s){if(e!==null&&(a.dependencies=e.dependencies),gs|=a.lanes,!(s&a.childLanes))return null;if(e!==null&&a.child!==e.child)throw Error(G(153));if(a.child!==null){for(e=a.child,s=qa(e,e.pendingProps),a.child=s,s.return=a;e.sibling!==null;)e=e.sibling,s=s.sibling=qa(e,e.pendingProps),s.return=a;s.sibling=null}return a.child}function Bj(e,a,s){switch(a.tag){case 3:Fx(a),Zs();break;case 5:px(a);break;case 1:it(a.type)&&Mo(a);break;case 4:Ad(a,a.stateNode.containerInfo);break;case 10:var r=a.type._context,n=a.memoizedProps.value;ue(Oo,r._currentValue),r._currentValue=n;break;case 13:if(r=a.memoizedState,r!==null)return r.dehydrated!==null?(ue(ve,ve.current&1),a.flags|=128,null):s&a.child.childLanes?Ox(e,a,s):(ue(ve,ve.current&1),e=ua(e,a,s),e!==null?e.sibling:null);ue(ve,ve.current&1);break;case 19:if(r=(s&a.childLanes)!==0,e.flags&128){if(r)return Dx(e,a,s);a.flags|=128}if(n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),ue(ve,ve.current),r)break;return null;case 22:case 23:return a.lanes=0,Mx(e,a,s)}return ua(e,a,s)}var Bx,Nc,Gx,Vx;Bx=function(e,a){for(var s=a.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return;s=s.return}s.sibling.return=s.return,s=s.sibling}};Nc=function(){};Gx=function(e,a,s,r){var n=e.memoizedProps;if(n!==r){e=a.stateNode,cs(Kt.current);var o=null;switch(s){case"input":n=Vl(e,n),r=Vl(e,r),o=[];break;case"select":n=be({},n,{value:void 0}),r=be({},r,{value:void 0}),o=[];break;case"textarea":n=Hl(e,n),r=Hl(e,r),o=[];break;default:typeof n.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Kl(s,r);var i;s=null;for(d in n)if(!r.hasOwnProperty(d)&&n.hasOwnProperty(d)&&n[d]!=null)if(d==="style"){var c=n[d];for(i in c)c.hasOwnProperty(i)&&(s||(s={}),s[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(nn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var l=r[d];if(c=n!=null?n[d]:void 0,r.hasOwnProperty(d)&&l!==c&&(l!=null||c!=null))if(d==="style")if(c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(s||(s={}),s[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(s||(s={}),s[i]=l[i])}else s||(o||(o=[]),o.push(d,s)),s=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o=o||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(nn.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&pe("scroll",e),o||c===l||(
vendor: 2,400 bytes, line 41
41o=[])):(o=o||[]).push(d,l))}s&&(o=o||[]).push("style",s);var d=o;(a.updateQueue=d)&&(a.flags|=4)}};Vx=function(e,a,s,r){s!==r&&(a.flags|=4)};function _r(e,a){if(!fe)switch(e.tailMode){case"hidden":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var r=null;s!==null;)s.alternate!==null&&(r=s),s=s.sibling;r===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ve(e){var a=e.alternate!==null&&e.alternate.child===e.child,s=0,r=0;if(a)for(var n=e.child;n!==null;)s|=n.lanes|n.childLanes,r|=n.subtreeFlags&14680064,r|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)s|=n.lanes|n.childLanes,r|=n.subtreeFlags,r|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=r,e.childLanes=s,a}function Gj(e,a,s){var r=a.pendingProps;switch(kd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(a),null;case 1:return it(a.type)&&qo(),Ve(a),null;case 3:return r=a.stateNode,er(),he(ot),he(Ke),Td(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Jn(a)?a.flags|=4:e===null||e.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,$t!==null&&(Ac($t),$t=null))),Nc(e,a),Ve(a),null;case 5:zd(a);var n=cs(vn.current);if(s=a.type,e!==null&&a.stateNode!=null)Gx(e,a,s,r,n),e.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!r){if(a.stateNode===null)throw Error(G(166));return Ve(a),null}if(e=cs(Kt.current),Jn(a)){r=a.stateNode,s=a.type;var o=a.memoizedProps;switch(r[Wt]=a,r[fn]=o,e=(a.mode&1)!==0,s){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(n=0;n<Lr.length;n++)pe(Lr[n],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Ou(r,o),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},pe("invalid",r);break;case"textarea":Bu(r,o),pe("invalid",r)}Kl(s,o),n=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?r.textContent!==c&&(o.suppressHydrationWarning!==!0&&Yn(r.textContent,c,e),n=["children",c]):typeof c=="number"&&r.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&Yn(r.textContent,c,e),n=["children",""+c
vendor: 29,275 bytes, line 41
41]):nn.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&pe("scroll",r)}switch(s){case"input":Bn(r),Du(r,o,!0);break;case"textarea":Bn(r),Gu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Lo)}r=n,a.updateQueue=r,r!==null&&(a.flags|=4)}else{i=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vh(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(s,{is:r.is}):(e=i.createElement(s),s==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,s),e[Wt]=a,e[fn]=r,Bx(e,a,!1,!1),a.stateNode=e;e:{switch(i=Yl(s,r),s){case"dialog":pe("cancel",e),pe("close",e),n=r;break;case"iframe":case"object":case"embed":pe("load",e),n=r;break;case"video":case"audio":for(n=0;n<Lr.length;n++)pe(Lr[n],e);n=r;break;case"source":pe("error",e),n=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),n=r;break;case"details":pe("toggle",e),n=r;break;case"input":Ou(e,r),n=Vl(e,r),pe("invalid",e);break;case"option":n=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},n=be({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Bu(e,r),n=Hl(e,r),pe("invalid",e);break;default:n=r}Kl(s,n),c=n;for(o in c)if(c.hasOwnProperty(o)){var l=c[o];o==="style"?bh(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&jh(e,l)):o==="children"?typeof l=="string"?(s!=="textarea"||l!=="")&&on(e,l):typeof l=="number"&&on(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nn.hasOwnProperty(o)?l!=null&&o==="onScroll"&&pe("scroll",e):l!=null&&ld(e,o,l,i))}switch(s){case"input":Bn(e),Du(e,r,!1);break;case"textarea":Bn(e),Gu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Va(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ds(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ds(e,!!r.multiple,r.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Lo)}switch(s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Ve(a),null;case 6:if(e&&a.stateNode!=null)Vx(e,a,e.memoizedProps,r);else{if(typeof r!="string"&&a.stateNode===null)throw Error(G(166));if(s=cs(vn.current),cs(Kt.current),Jn(a)){if(r=a.stateNode,s=a.memoizedProps,r[Wt]=a,(o=r.nodeValue!==s)&&(e=mt,e!==null))switch(e.tag){case 3:Yn(r.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yn(r.nodeValue,s,(e.mode&1)!==0)}o&&(a.flags|=4)}else r=(s.nodeType===9?s:s.ownerDocument).createTextNode(r),r[Wt]=a,a.stateNode=r}return Ve(a),null;case 13:if(he(ve),r=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&ut!==null&&a.mode&1&&!(a.flags&128))lx(),Zs(),a.flags|=98560,o=!1;else if(o=Jn(a),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(G(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(G(317));o[Wt]=a}else Zs(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ve(a),o=!1}else $t!==null&&(Ac($t),$t=null),o=!0;if(!o)return a.flags&65536?a:null}return a.flags&128?(a.lanes=s,a):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(a.child.flags|=8192,a.mode&1&&(e===null||ve.current&1?Ie===0&&(Ie=3):Vd())),a.updateQueue!==null&&(a.flags|=4),Ve(a),null);case 4:return er(),Nc(e,a),e===null&&hn(a.stateNode.containerInfo),Ve(a),null;case 10:return Sd(a.type._context),Ve(a),null;case 17:return it(a.type)&&qo(),Ve(a),null;case 19:if(he(ve),o=a.memoizedState,o===null)return Ve(a),null;if(r=(a.flags&128)!==0,i=o.rendering,i===null)if(r)_r(o,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=a.child;e!==null;){if(i=Go(e),i!==null){for(a.flags|=128,_r(o,!1),r=i.updateQueue,r!==null&&(a.updateQueue=r,a.flags|=4),a.subtreeFlags=0,r=s,s=a.child;s!==null;)o=s,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return ue(ve,ve.current&1|2),a.child}e=e.sibling}o.tail!==null&&_e()>ar&&(a.flags|=128,r=!0,_r(o,!1),a.lanes=4194304)}else{if(!r)if(e=Go(i),e!==null){if(a.flags|=128,r=!0,s=e.updateQueue,s!==null&&(a.updateQueue=s,a.flags|=4),_r(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!fe)return Ve(a),null}else 2*_e()-o.renderingStartTime>ar&&s!==1073741824&&(a.flags|=128,r=!0,_r(o,!1),a.lanes=4194304);o.isBackwards?(i.sibling=a.child,a.child=i):(s=o.last,s!==null?s.sibling=i:a.child=i,o.last=i)}return o.tail!==null?(a=o.tail,o.rendering=a,o.tail=a.sibling,o.renderingStartTime=_e(),a.sibling=null,s=ve.current,ue(ve,r?s&1|2:s&1),a):(Ve(a),null);case 22:case 23:return Gd(),r=a.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(a.flags|=8192),r&&a.mode&1?dt&1073741824&&(Ve(a),a.subtreeFlags&6&&(a.flags|=8192)):Ve(a),null;case 24:return null;case 25:return null}throw Error(G(156,a.tag))}function Vj(e,a){switch(kd(a),a.tag){case 1:return it(a.type)&&qo(),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return er(),he(ot),he(Ke),Td(),e=a.flags,e&65536&&!(e&128)?(a.flags=e&-65537|128,a):null;case 5:return zd(a),null;case 13:if(he(ve),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(G(340));Zs()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return he(ve),null;case 4:return er(),null;case 10:return Sd(a.type._context),null;case 22:case 23:return Gd(),null;case 24:return null;default:return null}}var eo=!1,We=!1,Uj=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Rs(e,a){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){we(e,a,r)}else s.current=null}function kc(e,a,s){try{s()}catch(r){we(e,a,r)}}var Tm=!1;function Wj(e,a){if(oc=To,e=Kh(),bd(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var n=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{s.nodeType,o.nodeType}catch{s=null;break e}var i=0,c=-1,l=-1,d=0,u=0,h=e,m=null;t:for(;;){for(var f;h!==s||n!==0&&h.nodeType!==3||(c=i+n),h!==o||r!==0&&h.nodeType!==3||(l=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===s&&++d===n&&(c=i),m===o&&++u===r&&(l=i),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}s=c===-1||l===-1?null:{start:c,end:l}}else s=null}s=s||{start:0,end:0}}else s=null;for(ic={focusedElem:e,selectionRange:s},To=!1,Q=a;Q!==null;)if(a=Q,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,Q=e;else for(;Q!==null;){a=Q;try{var v=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,b=v.memoizedState,p=a.stateNode,x=p.getSnapshotBeforeUpdate(a.elementType===a.type?g:zt(a.type,g),b);p.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var j=a.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(k){we(a,a.return,k)}if(e=a.sibling,e!==null){e.return=a.return,Q=e;break}Q=a.return}return v=Tm,Tm=!1,v}function Ur(e,a,s){var r=a.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&kc(a,s,o)}n=n.next}while(n!==r)}}function Ci(e,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var s=a=a.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==a)}}function wc(e){var a=e.ref;if(a!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof a=="function"?a(e):a.current=e}}function Ux(e){var a=e.alternate;a!==null&&(e.alternate=null,Ux(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&(delete a[Wt],delete a[fn],delete a[dc],delete a[Ej],delete a[Pj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wx(e){return e.tag===5||e.tag===3||e.tag===4}function Im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cc(e,a,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,a?s.nodeType===8?s.parentNode.insertBefore(e,a):s.insertBefore(e,a):(s.nodeType===8?(a=s.parentNode,a.insertBefore(e,s)):(a=s,a.appendChild(e)),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(Cc(e,a,s),e=e.sibling;e!==null;)Cc(e,a,s),e=e.sibling}function _c(e,a,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,a?s.insertBefore(e,a):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_c(e,a,s),e=e.sibling;e!==null;)_c(e,a,s),e=e.sibling}var Fe=null,Tt=!1;function ga(e,a,s){for(s=s.child;s!==null;)Hx(e,a,s),s=s.sibling}function Hx(e,a,s){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(gi,s)}catch{}switch(s.tag){case 5:We||Rs(s,a);case 6:var r=Fe,n=Tt;Fe=null,ga(e,a,s),Fe=r,Tt=n,Fe!==null&&(Tt?(e=Fe,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):Fe.removeChild(s.stateNode));break;case 18:Fe!==null&&(Tt?(e=Fe,s=s.stateNode,e.nodeType===8?hl(e.parentNode,s):e.nodeType===1&&hl(e,s),un(e)):hl(Fe,s.stateNode));break;case 4:r=Fe,n=Tt,Fe=s.stateNode.containerInfo,Tt=!0,ga(e,a,s),Fe=r,Tt=n;break;case 0:case 11:case 14:case 15:if(!We&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){n=r=r.next;do{var o=n,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&kc(s,a,i),n=n.next}while(n!==r)}ga(e,a,s);break;case 1:if(!We&&(Rs(s,a),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(c){we(s,a,c)}ga(e,a,s);break;case 21:ga(e,a,s);break;case 22:s.mode&1?(We=(r=We)||s.memoizedState!==null,ga(e,a,s),We=r):ga(e,a,s);break;default:ga(e,a,s)}}function $m(e){var a=e.updateQueue;if(a!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Uj),a.forEach(function(r){var n=ty.bind(null,e,r);s.has(r)||(s.add(r),r.then(n,n))})}}function At(e,a){var s=a.deletions;if(s!==null)for(var r=0;r<s.length;r++){var n=s[r];try{var o=e,i=a,c=i;e:for(;c!==null;){switch(c.tag){case 5:Fe=c.stateNode,Tt=!1;break e;case 3:Fe=c.stateNode.containerInfo,Tt=!0;break e;case 4:Fe=c.stateNode.containerInfo,Tt=!0;break e}c=c.return}if(Fe===null)throw Error(G(160));Hx(o,i,n),Fe=null,Tt=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(d){we(n,a,d)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)Qx(a,e),a=a.sibling}function Qx(e,a){var s=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(At(a,e),Gt(e),r&4){try{Ur(3,e,e.return),Ci(3,e)}catch(g){we(e,e.return,g)}try{Ur(5,e,e.return)}catch(g){we(e,e.return,g)}}break;case 1:At(a,e),Gt(e),r&512&&s!==null&&Rs(s,s.return);break;case 5:if(At(a,e),Gt(e),r&512&&s!==null&&Rs(s,s.return),e.flags&32){var n=e.stateNode;try{on(n,"")}catch(g){we(e,e.return,g)}}if(r&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,i=s!==null?s.memoizedProps:o,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&fh(n,o),Yl(c,i);var d=Yl(c,o);for(i=0;i<l.length;i+=2){var u=l[i],h=l[i+1];u==="style"?bh(n,h):u==="dangerouslySetInnerHTML"?jh(n,h):u==="children"?on(n,h):ld(n,u,h,d)}switch(c){case"input":Ul(n,o);break;case"textarea":gh(n,o);break;case"select":var m=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Ds(n,!!o.multiple,f,!1):m!==!!o.multiple&&(o.defaultValue!=null?Ds(n,!!o.multiple,o.defaultValue,!0):Ds(n,!!o.multiple,o.multiple?[]:"",!1))}n[fn]=o}catch(g){we(e,e.return,g)}}break;case 6:if(At(a,e),Gt(e),r&4){if(e.stateNode===null)throw Error(G(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(g){we(e,e.return,g)}}break;case 3:if(At(a,e),Gt(e),r&4&&s!==null&&s.memoizedState.isDehydrated)try{un(a.containerInfo)}catch(g){we(e,e.return,g)}break;case 4:At(a,e),Gt(e);break;case 13:At(a,e),Gt(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(Dd=_e())),r&4&&$m(e);break;case 22:if(u=s!==null&&s.memoizedState!==null,e.mode&1?(We=(d=We)||u,At(a,e),We=d):At(a,e),Gt(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(Q=e,u=e.child;u!==null;){for(h=Q=u;Q!==null;){switch(m=Q,f=m.child,m.tag){case 0:case 11:case 14:case 15:Ur(4,m,m.return);break;case 1:Rs(m,m.return);var v=m.stateNode;if(typeof v.componentWillUnmount=="function"){r=m,s=m.return;try{a=r,v.props=a.memoizedProps,v.state=a.memoizedState,v.componentWillUnmount()}catch(g){we(r,s,g)}}break;case 5:Rs(m,m.return);break;case 22:if(m.memoizedState!==null){qm(h);continue}}f!==null?(f.return=m,Q=f):qm(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{n=h.stateNode,d?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,c.style.display=yh("display",i))}catch(g){we(e,e.return,g)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(g){we(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:At(a,e),Gt(e),r&4&&$m(e);break;case 21:break;default:At(a,e),Gt(e)}}function Gt(e){var a=e.flags;if(a&2){try{e:{for(var s=e.return;s!==null;){if(Wx(s)){var r=s;break e}s=s.return}throw Error(G(160))}switch(r.tag){case 5:var n=r.stateNode;r.flags&32&&(on(n,""),r.flags&=-33);var o=Im(e);_c(e,o,n);break;case 3:case 4:var i=r.stateNode.containerInfo,c=Im(e);Cc(e,c,i);break;default:throw Error(G(161))}}catch(l){we(e,e.return,l)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Hj(e,a,s){Q=e,Kx(e)}function Kx(e,a,s){for(var r=(e.mode&1)!==0;Q!==null;){var n=Q,o=n.child;if(n.tag===22&&r){var i=n.memoizedState!==null||eo;if(!i){var c=n.alternate,l=c!==null&&c.memoizedState!==null||We;c=eo;var d=We;if(eo=i,(We=l)&&!d)for(Q=n;Q!==null;)i=Q,l=i.child,i.tag===22&&i.memoizedState!==null?Mm(n):l!==null?(l.return=i,Q=l):Mm(n);for(;o!==null;)Q=o,Kx(o),o=o.sibling;Q=n,eo=c,We=d}Lm(e)}else n.subtreeFlags&8772&&o!==null?(o.return=n,Q=o):Lm(e)}}function Lm(e){for(;Q!==null;){var a=Q;if(a.flags&8772){var s=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:We||Ci(5,a);break;case 1:var r=a.stateNode;if(a.flags&4&&!We)if(s===null)r.componentDidMount();else{var n=a.elementType===a.type?s.memoizedProps:zt(a.type,s.memoizedProps);r.componentDidUpdate(n,s.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=a.updateQueue;o!==null&&jm(a,o,r);break;case 3:var i=a.updateQueue;if(i!==null){if(s=null,a.child!==null)switch(a.child.tag){case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}jm(a,i,s)}break;case 5:var c=a.stateNode;if(s===null&&a.flags&4){s=c;var l=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break;case"img":l.src&&(s.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var d=a.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&un(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(G(163))}We||a.flags&512&&wc(a)}catch(m){we(a,a.return,m)}}if(a===e){Q=null;break}if(s=a.sibling,s!==null){s.return=a.return,Q=s;break}Q=a.return}}function qm(e){for(;Q!==null;){var a=Q;if(a===e){Q=null;break}var s=a.sibling;if(s!==null){s.return=a.return,Q=s;break}Q=a.return}}function Mm(e){for(;Q!==null;){var a=Q;try{switch(a.tag){case 0:case 11:case 15:var s=a.return;try{Ci(4,a)}catch(l){we(a,s,l)}break;case 1:var r=a.stateNode;if(typeof r.componentDidMount=="function"){var n=a.return;try{r.componentDidMount()}catch(l){we(a,n,l)}}var o=a.return;try{wc(a)}catch(l){we(a,o,l)}break;case 5:var i=a.return;try{wc(a)}catch(l){we(a,i,l)}}}catch(l){we(a,a.return,l)}if(a===e){Q=null;break}var c=a.sibling;if(c!==null){c.return=a.return,Q=c;break}Q=a.return}}var Qj=Math.ceil,Wo=ma.ReactCurrentDispatcher,Fd=ma.ReactCurrentOwner,Nt=ma.ReactCurrentBatchConfig,te=0,Me=null,Ee=null,Oe=0,dt=0,Fs=Qa(0),Ie=0,Nn=null,gs=0,_i=0,Od=0,Wr=null,rt=null,Dd=0,ar=1/0,Xt=null,Ho=!1,Sc=null,$a=null,to=!1,_a=null,Qo=0,Hr=0,Ec=null,jo=-1,yo=0;function Je(){return te&6?_e():jo!==-1?jo:jo=_e()}function La(e){return e.mode&1?te&2&&Oe!==0?Oe&-Oe:zj.transition!==null?(yo===0&&(yo=Ih()),yo):(e=ie,e!==0||(e=window.event,e=e===void 0?16:Oh(e.type)),e):1}function qt(e,a,s,r){if(50<Hr)throw Hr=0,Ec=null,Error(G(185));Tn(e,s,r),(!(te&2)||e!==Me)&&(e===Me&&(!(te&2)&&(_i|=s),Ie===4&&ka(e,Oe)),lt(e,r),s===1&&te===0&&!(a.mode&1)&&(ar=_e()+500,Ni&&Ka()))}function lt(e,a){var s=e.callbackNode;zv(e,a);var r=zo(e,e===Me?Oe:0);if(r===0)s!==null&&Wu(s),e.callbackNode=null,e.callbackPriority=0;else if(a=r&-r,e.callbackPriority!==a){if(s!=null&&Wu(s),a===1)e.tag===0?Aj(Rm.bind(null,e)):nx(Rm.bind(null,e)),_j(function(){!(te&6)&&Ka()}),s=null;else{switch($h(r)){case 1:s=pd;break;case 4:s=zh;break;case 16:s=Ao;break;case 536870912:s=Th;break;default:s=Ao}s=sf(s,Yx.bind(null,e))}e.callbackPriority=a,e.callbackNode=s}}function Yx(e,a){if(jo=-1,yo=0,te&6)throw Error(G(327));var s=e.callbackNode;if(Ws()&&e.callbackNode!==s)return null;var r=zo(e,e===Me?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||a)a=Ko(e,r);else{a=r;var n=te;te|=2;var o=Zx();(Me!==e||Oe!==a)&&(Xt=null,ar=_e()+500,us(e,a));do try{Jj();break}catch(c){Jx(e,c)}while(!0);_d(),Wo.current=o,te=n,Ee!==null?a=0:(Me=null,Oe=0,a=Ie)}if(a!==0){if(a===2&&(n=tc(e),n!==0&&(r=n,a=Pc(e,n))),a===1)throw s=Nn,us(e,0),ka(e,r),lt(e,_e()),s;if(a===6)ka(e,r);else{if(n=e.current.alternate,!(r&30)&&!Kj(n)&&(a=Ko(e,r),a===2&&(o=tc(e),o!==0&&(r=o,a=Pc(e,o))),a===1))throw s=Nn,us(e,0),ka(e,r),lt(e,_e()),s;switch(e.finishedWork=n,e.finishedLanes=r,a){case 0:case 1:throw Error(G(345));case 2:os(e,rt,Xt);break;case 3:if(ka(e,r),(r&130023424)===r&&(a=Dd+500-_e(),10<a)){if(zo(e,0)!==0)break;if(n=e.suspendedLanes,(n&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=cc(os.bind(null,e,rt,Xt),a);break}os(e,rt,Xt);break;case 4:if(ka(e,r),(r&4194240)===r)break;for(a=e.eventTimes,n=-1;0<r;){var i=31-Lt(r);o=1<<i,i=a[i],i>n&&(n=i),r&=~o}if(r=n,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qj(r/1960))-r,10<r){e.timeoutHandle=cc(os.bind(null,e,rt,Xt),r);break}os(e,rt,Xt);break;case 5:os(e,rt,Xt);break;default:throw Error(G(329))}}}return lt(e,_e()),e.callbackNode===s?Yx.bind(null,e):null}function Pc(e,a){var s=Wr;return e.current.memoizedState.isDehydrated&&(us(e,a).flags|=256),e=Ko(e,a),e!==2&&(a=rt,rt=s,a!==null&&Ac(a)),e}function Ac(e){rt===null?rt=e:rt.push.apply(rt,e)}function Kj(e){for(var a=e;;){if(a.flags&16384){var s=a.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var r=0;r<s.length;r++){var n=s[r],o=n.getSnapshot;n=n.value;try{if(!Mt(o(),n))return!1}catch{return!1}}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ka(e,a){for(a&=~Od,a&=~_i,e.suspendedLanes|=a,e.pingedLanes&=~a,e=e.expirationTimes;0<a;){var s=31-Lt(a),r=1<<s;e[s]=-1,a&=~r}}function Rm(e){if(te&6)throw Error(G(327));Ws();var a=zo(e,0);if(!(a&1))return lt(e,_e()),null;var s=Ko(e,a);if(e.tag!==0&&s===2){var r=tc(e);r!==0&&(a=r,s=Pc(e,r))}if(s===1)throw s=Nn,us(e,0),ka(e,a),lt(e,_e()),s;if(s===6)throw Error(G(345));return e.finishedWork=e.current.alternate,e.finishedLanes=a,os(e,rt,Xt),lt(e,_e()),null}function Bd(e,a){var s=te;te|=1;try{return e(a)}finally{te=s,te===0&&(ar=_e()+500,Ni&&Ka())}}function vs(e){_a!==null&&_a.tag===0&&!(te&6)&&Ws();var a=te;te|=1;var s=Nt.transition,r=ie;try{if(Nt.transition=null,ie=1,e)return e()}finally{ie=r,Nt.transition=s,te=a,!(te&6)&&Ka()}}function Gd(){dt=Fs.current,he(Fs)}function us(e,a){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,Cj(s)),Ee!==null)for(s=Ee.return;s!==null;){var r=s;switch(kd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qo();break;case 3:er(),he(ot),he(Ke),Td();break;case 5:zd(r);break;case 4:er();break;case 13:he(ve);break;case 19:he(ve);break;case 10:Sd(r.type._context);break;case 22:case 23:Gd()}s=s.return}if(Me=e,Ee=e=qa(e.current,null),Oe=dt=a,Ie=0,Nn=null,Od=_i=gs=0,rt=Wr=null,ls!==null){for(a=0;a<ls.length;a++)if(s=ls[a],r=s.interleaved,r!==null){s.interleaved=null;var n=r.next,o=s.pending;if(o!==null){var i=o.next;o.next=n,r.next=i}s.pending=r}ls=null}return e}function Jx(e,a){do{var s=Ee;try{if(_d(),fo.current=Uo,Vo){for(var r=je.memoizedState;r!==null;){var n=r.queue;n!==null&&(n.pending=null),r=r.next}Vo=!1}if(fs=0,Le=Te=je=null,Vr=!1,jn=0,Fd.current=null,s===null||s.return===null){Ie=1,Nn=a,Ee=null;break}e:{var o=e,i=s.return,c=s,l=a;if(a=Oe,c.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,u=c,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var m=u.alternate;m?(u.updateQueue=m.updateQueue,u.memoizedState=m.memoizedState,u.lanes=m.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Cm(i);if(f!==null){f.flags&=-257,_m(f,i,c,o,a),f.mode&1&&wm(o,d,a),a=f,l=d;var v=a.updateQueue;if(v===null){var g=new Set;g.add(l),a.updateQueue=g}else v.add(l);break e}else{if(!(a&1)){wm(o,d,a),Vd();break e}l=Error(G(426))}}else if(fe&&c.mode&1){var b=Cm(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),_m(b,i,c,o,a),wd(tr(l,c));break e}}o=l=tr(l,c),Ie!==4&&(Ie=2),Wr===null?Wr=[o]:Wr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,a&=-a,o.lanes|=a;var p=$x(o,l,a);vm(o,p);break e;case 1:c=l;var x=o.type,j=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&($a===null||!$a.has(j)))){o.flags|=65536,a&=-a,o.lanes|=a;var k=Lx(o,c,a);vm(o,k);break e}}o=o.return}while(o!==null)}ef(s)}catch(N){a=N,Ee===s&&s!==null&&(Ee=s=s.return);continue}break}while(!0)}function Zx(){var e=Wo.current;return Wo.current=Uo,e===null?Uo:e}function Vd(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Me===null||!(gs&268435455)&&!(_i&268435455)||ka(Me,Oe)}function Ko(e,a){var s=te;te|=2;var r=Zx();(Me!==e||Oe!==a)&&(Xt=null,us(e,a));do try{Yj();break}catch(n){Jx(e,n)}while(!0);if(_d(),te=s,Wo.current=r,Ee!==null)throw Error(G(261));return Me=null,Oe=0,Ie}function Yj(){for(;Ee!==null;)Xx(Ee)}function Jj(){for(;Ee!==null&&!Nv();)Xx(Ee)}function Xx(e){var a=af(e.alternate,e,dt);e.memoizedProps=e.pendingProps,a===null?ef(e):Ee=a,Fd.current=null}function ef(e){var a=e;do{var s=a.alternate;if(e=a.return,a.flags&32768){if(s=Vj(s,a),s!==null){s.flags&=32767,Ee=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Ee=null;return}}else if(s=Gj(s,a,dt),s!==null){Ee=s;return}if(a=a.sibling,a!==null){Ee=a;return}Ee=a=e}while(a!==null);Ie===0&&(Ie=5)}function os(e,a,s){var r=ie,n=Nt.transition;try{Nt.transition=null,ie=1,Zj(e,a,s,r)}finally{Nt.transition=n,ie=r}return null}function Zj(e,a,s,r){do Ws();while(_a!==null);if(te&6)throw Error(G(327));s=e.finishedWork;var n=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(G(177));e.callbackNode=null,e.callbackPriority=0;var o=s.lanes|s.childLanes;if(Tv(e,o),e===Me&&(Ee=Me=null,Oe=0),!(s.subtreeFlags&2064)&&!(s.flags&2064)||to||(to=!0,sf(Ao,function(){return Ws(),null})),o=(s.flags&15990)!==0,s.subtreeFlags&15990||o){o=Nt.transition,Nt.transition=null;var i=ie;ie=1;var c=te;te|=4,Fd.current=null,Wj(e,s),Qx(s,e),vj(ic),To=!!oc,ic=oc=null,e.current=s,Hj(s),kv(),te=c,ie=i,Nt.transition=o}else e.current=s;if(to&&(to=!1,_a=e,Qo=n),o=e.pendingLanes,o===0&&($a=null),_v(s.stateNode),lt(e,_e()),a!==null)for(r=e.onRecoverableError,s=0;s<a.length;s++)n=a[s],r(n.value,{componentStack:n.stack,digest:n.digest});if(Ho)throw Ho=!1,e=Sc,Sc=null,e;return Qo&1&&e.tag!==0&&Ws(),o=e.pendingLanes,o&1?e===Ec?Hr++:(Hr=0,Ec=e):Hr=0,Ka(),null}function Ws(){if(_a!==null){var e=$h(Qo),a=Nt.transition,s=ie;try{if(Nt.transition=null,ie=16>e?16:e,_a===null)var r=!1;else{if(e=_a,_a=null,Qo=0,te&6)throw Error(G(331));var n=te;for(te|=4,Q=e.current;Q!==null;){var o=Q,i=o.child;if(Q.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var d=c[l];for(Q=d;Q!==null;){var u=Q;switch(u.tag){case 0:case 11:case 15:Ur(8,u,o)}var h=u.child;if(h!==null)h.return=u,Q=h;else for(;Q!==null;){u=Q;var m=u.sibling,f=u.return;if(Ux(u),u===d){Q=null;break}if(m!==null){m.return=f,Q=m;break}Q=f}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}Q=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,Q=i;else e:for(;Q!==null;){if(o=Q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ur(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,Q=p;break e}Q=o.return}}var x=e.current;for(Q=x;Q!==null;){i=Q;var j=i.child;if(i.subtreeFlags&2064&&j!==null)j.return=i,Q=j;else e:for(i=x;Q!==null;){if(c=Q,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ci(9,c)}}catch(N){we(c,c.return,N)}if(c===i){Q=null;break e}var k=c.sibling;if(k!==null){k.return=c.return,Q=k;break e}Q=c.return}}if(te=n,Ka(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(gi,e)}catch{}r=!0}return r}finally{ie=s,Nt.transition=a}}return!1}function Fm(e,a,s){a=tr(s,a),a=$x(e,a,1),e=Ia(e,a,1),a=Je(),e!==null&&(Tn(e,1,a),lt(e,a))}function we(e,a,s){if(e.tag===3)Fm(e,e,s);else for(;a!==null;){if(a.tag===3){Fm(a,e,s);break}else if(a.tag===1){var r=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($a===null||!$a.has(r))){e=tr(s,e),e=Lx(a,e,1),a=Ia(a,e,1),e=Je(),a!==null&&(Tn(a,1,e),lt(a,e));break}}a=a.return}}function Xj(e,a,s){var r=e.pingCache;r!==null&&r.delete(a),a=Je(),e.pingedLanes|=e.suspendedLanes&s,Me===e&&(Oe&s)===s&&(Ie===4||Ie===3&&(Oe&130023424)===Oe&&500>_e()-Dd?us(e,0):Od|=s),lt(e,a)}function tf(e,a){a===0&&(e.mode&1?(a=Un,Un<<=1,!(Un&130023424)&&(Un=4194304)):a=1);var s=Je();e=da(e,a),e!==null&&(Tn(e,a,s),lt(e,s))}function ey(e){var a=e.memoizedState,s=0;a!==null&&(s=a.retryLane),tf(e,s)}function ty(e,a){var s=0;switch(e.tag){case 13:var r=e.stateNode,n=e.memoizedState;n!==null&&(s=n.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(G(314))}r!==null&&r.delete(a),tf(e,s)}var af;af=function(e,a,s){if(e!==null)if(e.memoizedProps!==a.pendingProps||ot.current)nt=!0;else{if(!(e.lanes&s)&&!(a.flags&128))return nt=!1,Bj(e,a,s);nt=!!(e.flags&131072)}else nt=!1,fe&&a.flags&1048576&&ox(a,Fo,a.index);switch(a.lanes=0,a.tag){case 2:var r=a.type;vo(e,a),e=a.pendingProps;var n=Js(a,Ke.current);Us(a,s),n=$d(null,a,r,e,n,s);var o=Ld();return a.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,it(r)?(o=!0,Mo(a)):o=!1,a.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Pd(a),n.updater=wi,a.stateNode=n,n._reactInternals=a,fc(a,r,e,s),a=jc(null,a,r,!0,o,s)):(a.tag=0,fe&&o&&Nd(a),Ye(null,a,n,s),a=a.child),a;case 16:r=a.elementType;e:{switch(vo(e,a),e=a.pendingProps,n=r._init,r=n(r._payload),a.type=r,n=a.tag=sy(r),e=zt(r,e),n){case 0:a=vc(null,a,r,e,s);break e;case 1:a=Pm(null,a,r,e,s);break e;case 11:a=Sm(null,a,r,e,s);break e;case 14:a=Em(null,a,r,zt(r.type,e),s);break e}throw Error(G(306,r,""))}return a;case 0:return r=a.type,n=a.pendingProps,n=a.elementType===r?n:zt(r,n),vc(e,a,r,n,s);case 1:return r=a.type,n=a.pendingProps,n=a.elementType===r?n:zt(r,n),Pm(e,a,r,n,s);case 3:e:{if(Fx(a),e===null)throw Error(G(387));r=a.pendingProps,o=a.memoizedState,n=o.element,mx(e,a),Bo(a,r,null,s);var i=a.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},a.updateQueue.baseState=o,a.memoizedState=o,a.flags&256){n=tr(Error(G(423)),a),a=Am(e,a,r,s,n);break e}else if(r!==n){n=tr(Error(G(424)),a),a=Am(e,a,r,s,n);break e}else for(ut=Ta(a.stateNode.containerInfo.firstChild),mt=a,fe=!0,$t=null,s=dx(a,null,r,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Zs(),r===n){a=ua(e,a,s);break e}Ye(e,a,r,s)}a=a.child}return a;
vendor: 4,290 bytes, line 41
41case 5:return px(a),e===null&&pc(a),r=a.type,n=a.pendingProps,o=e!==null?e.memoizedProps:null,i=n.children,lc(r,n)?i=null:o!==null&&lc(r,o)&&(a.flags|=32),Rx(e,a),Ye(e,a,i,s),a.child;case 6:return e===null&&pc(a),null;case 13:return Ox(e,a,s);case 4:return Ad(a,a.stateNode.containerInfo),r=a.pendingProps,e===null?a.child=Xs(a,null,r,s):Ye(e,a,r,s),a.child;case 11:return r=a.type,n=a.pendingProps,n=a.elementType===r?n:zt(r,n),Sm(e,a,r,n,s);case 7:return Ye(e,a,a.pendingProps,s),a.child;case 8:return Ye(e,a,a.pendingProps.children,s),a.child;case 12:return Ye(e,a,a.pendingProps.children,s),a.child;case 10:e:{if(r=a.type._context,n=a.pendingProps,o=a.memoizedProps,i=n.value,ue(Oo,r._currentValue),r._currentValue=i,o!==null)if(Mt(o.value,i)){if(o.children===n.children&&!ot.current){a=ua(e,a,s);break e}}else for(o=a.child,o!==null&&(o.return=a);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var l=c.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ra(-1,s&-s),l.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}o.lanes|=s,l=o.alternate,l!==null&&(l.lanes|=s),hc(o.return,s,a),c.lanes|=s;break}l=l.next}}else if(o.tag===10)i=o.type===a.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(G(341));i.lanes|=s,c=i.alternate,c!==null&&(c.lanes|=s),hc(i,s,a),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===a){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ye(e,a,n.children,s),a=a.child}return a;case 9:return n=a.type,r=a.pendingProps.children,Us(a,s),n=Ct(n),r=r(n),a.flags|=1,Ye(e,a,r,s),a.child;case 14:return r=a.type,n=zt(r,a.pendingProps),n=zt(r.type,n),Em(e,a,r,n,s);case 15:return qx(e,a,a.type,a.pendingProps,s);case 17:return r=a.type,n=a.pendingProps,n=a.elementType===r?n:zt(r,n),vo(e,a),a.tag=1,it(r)?(e=!0,Mo(a)):e=!1,Us(a,s),Ix(a,r,n),fc(a,r,n,s),jc(null,a,r,!0,e,s);case 19:return Dx(e,a,s);case 22:return Mx(e,a,s)}throw Error(G(156,a.tag))};function sf(e,a){return Ah(e,a)}function ay(e,a,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,a,s,r){return new ay(e,a,s,r)}function Ud(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sy(e){if(typeof e=="function")return Ud(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dd)return 11;if(e===ud)return 14}return 2}function qa(e,a){var s=e.alternate;return s===null?(s=yt(e.tag,a,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=a,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,a=e.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function bo(e,a,s,r,n,o){var i=2;if(r=e,typeof e=="function")Ud(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ps:return ms(s.children,n,o,a);case cd:i=8,n|=8;break;case Ol:return e=yt(12,s,a,n|2),e.elementType=Ol,e.lanes=o,e;case Dl:return e=yt(13,s,a,n),e.elementType=Dl,e.lanes=o,e;case Bl:return e=yt(19,s,a,n),e.elementType=Bl,e.lanes=o,e;case ph:return Si(s,n,o,a);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uh:i=10;break e;case mh:i=9;break e;case dd:i=11;break e;case ud:i=14;break e;case ja:i=16,r=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return a=yt(i,s,a,n),a.elementType=e,a.type=r,a.lanes=o,a}function ms(e,a,s,r){return e=yt(7,e,r,a),e.lanes=s,e}function Si(e,a,s,r){return e=yt(22,e,r,a),e.elementType=ph,e.lanes=s,e.stateNode={isHidden:!1},e}function Nl(e,a,s){return e=yt(6,e,null,a),e.lanes=s,e}function kl(e,a,s){return a=yt(4,e.children!==null?e.children:[],e.key,a),a.lanes=s,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}
vendor: 5,453 bytes, line 41
41function ry(e,a,s,r,n){this.tag=a,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=r,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Wd(e,a,s,r,n,o,i,c,l){return e=new ry(e,a,s,c,l),a===1?(a=1,o===!0&&(a|=8)):a=0,o=yt(3,null,null,a),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pd(o),e}function ny(e,a,s){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Es,key:r==null?null:""+r,children:e,containerInfo:a,implementation:s}}function rf(e){if(!e)return Ua;e=e._reactInternals;e:{if(bs(e)!==e||e.tag!==1)throw Error(G(170));var a=e;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(it(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(G(171))}if(e.tag===1){var s=e.type;if(it(s))return rx(e,s,a)}return a}function nf(e,a,s,r,n,o,i,c,l){return e=Wd(s,r,!0,e,n,o,i,c,l),e.context=rf(null),s=e.current,r=Je(),n=La(s),o=ra(r,n),o.callback=a??null,Ia(s,o,n),e.current.lanes=n,Tn(e,n,r),lt(e,r),e}function Ei(e,a,s,r){var n=a.current,o=Je(),i=La(n);return s=rf(s),a.context===null?a.context=s:a.pendingContext=s,a=ra(o,i),a.payload={element:e},r=r===void 0?null:r,r!==null&&(a.callback=r),e=Ia(n,a,i),e!==null&&(qt(e,n,i,o),xo(e,n,i)),i}function Yo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Om(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<a?s:a}}function Hd(e,a){Om(e,a),(e=e.alternate)&&Om(e,a)}function oy(){return null}var of=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qd(e){this._internalRoot=e}Pi.prototype.render=Qd.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(G(409));Ei(e,a,null,null)};Pi.prototype.unmount=Qd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;vs(function(){Ei(null,e,null,null)}),a[ca]=null}};function Pi(e){this._internalRoot=e}Pi.prototype.unstable_scheduleHydration=function(e){if(e){var a=Mh();e={blockedOn:null,target:e,priority:a};for(var s=0;s<Na.length&&a!==0&&a<Na[s].priority;s++);Na.splice(s,0,e),s===0&&Fh(e)}};function Kd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ai(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dm(){}function iy(e,a,s,r,n){if(n){if(typeof r=="function"){var o=r;r=function(){var d=Yo(i);o.call(d)}}var i=nf(a,r,e,0,null,!1,!1,"",Dm);return e._reactRootContainer=i,e[ca]=i.current,hn(e.nodeType===8?e.parentNode:e),vs(),i}for(;n=e.lastChild;)e.removeChild(n);if(typeof r=="function"){var c=r;r=function(){var d=Yo(l);c.call(d)}}var l=Wd(e,0,!1,null,null,!1,!1,"",Dm);return e._reactRootContainer=l,e[ca]=l.current,hn(e.nodeType===8?e.parentNode:e),vs(function(){Ei(a,l,s,r)}),l}function zi(e,a,s,r,n){var o=s._reactRootContainer;if(o){var i=o;if(typeof n=="function"){var c=n;n=function(){var l=Yo(i);c.call(l)}}Ei(a,i,e,n)}else i=iy(s,a,e,n,r);return Yo(i)}Lh=function(e){switch(e.tag){case 3:var a=e.stateNode;if(a.current.memoizedState.isDehydrated){var s=$r(a.pendingLanes);s!==0&&(hd(a,s|1),lt(a,_e()),!(te&6)&&(ar=_e()+500,Ka()))}break;case 13:vs(function(){var r=da(e,1);if(r!==null){var n=Je();qt(r,e,1,n)}}),Hd(e,1)}};xd=function(e){if(e.tag===13){var a=da(e,134217728);if(a!==null){var s=Je();qt(a,e,134217728,s)}Hd(e,134217728)}};qh=function(e){if(e.tag===13){var a=La(e),s=da(e,a);if(s!==null){var r=Je();qt(s,e,a,r)}Hd(e,a)}};Mh=function(){return ie};Rh=function(e,a){var s=ie;try{return ie=e,a()}finally{ie=s}};Zl=function(e,a,s){switch(a){case"input":if(Ul(e,s),a=s.name,s.type==="radio"&&a!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<s.length;a++){var r=s[a];if(r!==e&&r.form===e.form){var n=bi(r);if(!n)throw Error(G(90));xh(r),Ul(r,n)}}}break;case"textarea":gh(e,s);break;case"select":a=s.value,a!=null&&Ds(e,!!s.multiple,a,!1)}};wh=Bd;Ch=vs;var ly={usingClientEntryPoint:!1,Events:[$n,Is,bi,Nh,kh,Bd]},Sr={findFiberByHostInstance:is,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cy={bundleType:Sr.bundleType,version:Sr.version,rendererPackageName:Sr.rendererPackageName,rendererConfig:Sr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Eh(e),e===null?null:e.stateNode},findFiberByHostInstance:Sr.findFiberByHostInstance||oy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ao.isDisabled&&ao.supportsFiber)try{gi=ao.inject(cy),Qt=ao}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ly;ft.createPortal=function(e,a){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kd(a))throw Error(G(200));return ny(e,a,null,s)};ft.createRoot=function(e,a){if(!Kd(e))throw Error(G(299));var s=!1,r="",n=of;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onRecoverableError!==void 0&&(n=a.onRecoverableError)),a=Wd(e,1,!1,null,null,s,!1,r,n),e[ca]=a.current,hn(e.nodeType===8?e.parentNode:e),new Qd(a)};ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(G(188)):(e=Object.keys(e).join(","),Error(G(268,e)));return e=Eh(a),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return vs(e)};ft.hydrate=function(e,a,s){if(!Ai(a))throw Error(G(200));return zi(null,e,a,!0,s)};ft.hydrateRoot=function(e,a,s){if(!Kd(e))throw Error(G(405));var r=s!=null&&s.hydratedSources||null,n=!1,o="",i=of;if(s!=null&&(s.unstable_strictMode===!0&&(n=!0),s.identifierPrefix!==void 0&&(o=s.identifierPrefix),s.onRecoverableError!==void 0&&(i=s.onRecoverableError)),a=nf(a,null,e,1,s??null,n,!1,o,i),e[ca]=a.current,hn(e),r)for(e=0;e<r.length;e++)s=r[e],n=s._getVersion,n=n(s._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[s,n]:a.mutableSourceEagerHydrationData.push(s,n);return new Pi(a)};ft.render=function(e,a,s){if(!Ai(a))throw Error(G(200));return zi(null,e,a,!1,s)};ft.unmountComponentAtNode=function(e){if(!Ai(e))throw Error(G(40));return e._reactRootContainer?(vs(function(){zi(null,null,e,!1,function(){e._reactRootContainer=null,e[ca]=null})}),!0):!1};ft.unstable_batchedUpdates=Bd;ft.unstable_renderSubtreeIntoContainer=function(e,a,s,r){if(!Ai(s))throw Error(G(200));if(e==null||e._reactInternals===void 0)throw Error(G(38));return zi(e,a,s,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function lf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lf)}catch(e){console.error(e)}}lf(),ih.exports=ft;var cf=ih.exports;const lC=Kp(cf);var Bm=cf;Rl.createRoot=Bm.createRoot,Rl.hydrateRoot=Bm.hydrateRoot;/** 42 * @remix-run/router v1.23.3 43 * 44 * Copyright (c) Remix Software Inc. 45 * 46 * This source code is licensed under the MIT license found in the 47 * LICENSE.md file in the root directory of this source tree. 48 * 49 * @license MIT 50 */function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},kn.apply(null,arguments)}var Sa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Sa||(Sa={}));const Gm="popstate";function dy(e){e===void 0&&(e={});function a(r,n){let{pathname:o,search:i,hash:c}=r.location;return zc("",{pathname:o,search:i,hash:c},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function s(r,n){return typeof n=="string"?n:Jo(n)}return my(a,s,null,e)}function ye(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function Yd(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function uy(){return Math.random().toString(36).substr(2,8)}function Vm(e,a){return{usr:e.state,key:e.key,idx:a}}function zc(e,a,s,r){return s===void 0&&(s=null),kn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof a=="string"?dr(a):a,{state:s,key:a&&a.key||r||uy()})}function Jo(e){let{pathname:a="/",search:s="",hash:r=""}=e;return s&&s!=="?"&&(a+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function dr(e){let a={};if(e){let s=e.indexOf("#");s>=0&&(a.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(a.search=e.substr(r),e=e.substr(0,r)),e&&(a.pathname=e)}return a}function my(e,a,s,r){r===void 0&&(r={});let{window:n=document.defaultView,v5Compat:o=!1}=r,i=n.history,c=Sa.Pop,l=null,d=u();d==null&&(d=0,i.replaceState(kn({},i.state,{idx:d}),""));function u(){return(i.state||{idx:null}).idx}function h(){c=Sa.Pop;let b=u(),p=b==null?null:b-d;d=b,l&&l({action:c,location:g.location,delta:p})}function m(b,p){c=Sa.Push;let x=zc(g.location,b,p);d=u()+1;let j=Vm(x,d),k=g.createHref(x);try{i.pushState(j,"",k)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;n.location.assign(k)}o&&l&&l({action:c,location:g.location,delta:1})}function f(b,p){c=Sa.Replace;let x=zc(g.location,b,p);d=u();let j=Vm(x,d),k=g.createHref(x);i.replaceState(j,"",k),o&&l&&l({action:c,location:g.location,delta:0})}function v(b){let p=n.location.origin!=="null"?n.location.origin:n.location.href,x=typeof b=="string"?b:Jo(b);return x=x.replace(/ $/,"%20"),ye(p,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,p)}let g={get action(){return c},get location(){return e(n,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(Gm,h),l=b,()=>{n.removeEventListener(Gm,h),l=null}},createHref(b){return a(n,b)},createURL:v,encodeLocation(b){let p=v(b);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:f,go(b){return i.go(b)}};return g}var Um;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Um||(Um={}));function py(e,a,s){return s===void 0&&(s="/"),hy(e,a,s)}
vendor: 2,114 bytes, line 50
50function hy(e,a,s,r){let n=typeof a=="string"?dr(a):a,o=sr(n.pathname||"/",s);if(o==null)return null;let i=df(e);xy(i);let c=null,l=_y(o);for(let d=0;c==null&&d<i.length;++d)c=wy(i[d],l);return c}function df(e,a,s,r){a===void 0&&(a=[]),s===void 0&&(s=[]),r===void 0&&(r="");let n=(o,i,c)=>{let l={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(ye(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let d=Ma([r,l.relativePath]),u=s.concat(l);o.children&&o.children.length>0&&(ye(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),df(o.children,a,u,d)),!(o.path==null&&!o.index)&&a.push({path:d,score:Ny(d,o.index),routesMeta:u})};return e.forEach((o,i)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))n(o,i);else for(let l of uf(o.path))n(o,i,l)}),a}function uf(e){let a=e.split("/");if(a.length===0)return[];let[s,...r]=a,n=s.endsWith("?"),o=s.replace(/\?$/,"");if(r.length===0)return n?[o,""]:[o];let i=uf(r.join("/")),c=[];return c.push(...i.map(l=>l===""?o:[o,l].join("/"))),n&&c.push(...i),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function xy(e){e.sort((a,s)=>a.score!==s.score?s.score-a.score:ky(a.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}const fy=/^:[\w-]+$/,gy=3,vy=2,jy=1,yy=10,by=-2,Wm=e=>e==="*";function Ny(e,a){let s=e.split("/"),r=s.length;return s.some(Wm)&&(r+=by),a&&(r+=vy),s.filter(n=>!Wm(n)).reduce((n,o)=>n+(fy.test(o)?gy:o===""?jy:yy),r)}function ky(e,a){return e.length===a.length&&e.slice(0,-1).every((r,n)=>r===a[n])?e[e.length-1]-a[a.length-1]:0}function wy(e,a,s){let{routesMeta:r}=e,n={},o="/",i=[];for(let c=0;c<r.length;++c){let l=r[c],d=c===r.length-1,u=o==="/"?a:a.slice(o.length)||"/",h=Tc({path:l.relativePath,caseSensitive:l.caseSensitive,end:d},u),m=l.route;if(!h)return null;
vendor: 1,641 bytes, line 50
50Object.assign(n,h.params),i.push({params:n,pathname:Ma([o,h.pathname]),pathnameBase:zy(Ma([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=Ma([o,h.pathnameBase]))}return i}function Tc(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=Cy(e.path,e.caseSensitive,e.end),n=a.match(s);if(!n)return null;let o=n[0],i=o.replace(/(.)\/+$/,"$1"),c=n.slice(1);return{params:r.reduce((d,u,h)=>{let{paramName:m,isOptional:f}=u;if(m==="*"){let g=c[h]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const v=c[h];return f&&!v?d[m]=void 0:d[m]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:i,pattern:e}}function Cy(e,a,s){a===void 0&&(a=!1),s===void 0&&(s=!0),Yd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,l)=>(r.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,a?void 0:"i"),r]}function _y(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Yd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+
vendor: 4,686 bytes, lines 50-59
50a+").")),e}}function sr(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,r=e.charAt(s);return r&&r!=="/"?null:e.slice(s)||"/"}const Sy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ey=e=>Sy.test(e);function Py(e,a){a===void 0&&(a="/");let{pathname:s,search:r="",hash:n=""}=typeof e=="string"?dr(e):e,o;if(s)if(Ey(s))o=s;else{if(s.includes("//")){let i=s;s=mf(s),Yd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+s))}s.startsWith("/")?o=Hm(s.substring(1),"/"):o=Hm(s,a)}else o=a;return{pathname:o,search:Ty(r),hash:Iy(n)}}function Hm(e,a){let s=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?s.length>1&&s.pop():n!=="."&&s.push(n)}),s.length>1?s.join("/"):"/"}function wl(e,a,s,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ay(e){return e.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function Jd(e,a){let s=Ay(e);return a?s.map((r,n)=>n===s.length-1?r.pathname:r.pathnameBase):s.map(r=>r.pathnameBase)}function Zd(e,a,s,r){r===void 0&&(r=!1);let n;typeof e=="string"?n=dr(e):(n=kn({},e),ye(!n.pathname||!n.pathname.includes("?"),wl("?","pathname","search",n)),ye(!n.pathname||!n.pathname.includes("#"),wl("#","pathname","hash",n)),ye(!n.search||!n.search.includes("#"),wl("#","search","hash",n)));let o=e===""||n.pathname==="",i=o?"/":n.pathname,c;if(i==null)c=s;else{let h=a.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;n.pathname=m.join("/")}c=h>=0?a[h]:"/"}let l=Py(n,c),d=i&&i!=="/"&&i.endsWith("/"),u=(o||i===".")&&s.endsWith("/");return!l.pathname.endsWith("/")&&(d||u)&&(l.pathname+="/"),l}const mf=e=>e.replace(/\/\/+/g,"/"),Ma=e=>mf(e.join("/")),zy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ty=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Iy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $y(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pf=["post","put","patch","delete"];new Set(pf);const Ly=["get",...pf];new Set(Ly);/** 51 * React Router v6.30.4 52 * 53 * Copyright (c) Remix Software Inc. 54 * 55 * This source code is licensed under the MIT license found in the 56 * LICENSE.md file in the root directory of this source tree. 57 * 58 * @license MIT 59 */function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},wn.apply(null,arguments)}const Ti=y.createContext(null),hf=y.createContext(null),pa=y.createContext(null),Ii=y.createContext(null),Yt=y.createContext({outlet:null,matches:[],isDataRoute:!1}),xf=y.createContext(null);function qy(e,a){let{relative:s}=a===void 0?{}:a;ur()||ye(!1);let{basename:r,navigator:n}=y.useContext(pa),{hash:o,pathname:i,search:c}=$i(e,{relative:s}),l=i;return r!=="/"&&(l=i==="/"?r:Ma([r,i])),n.createHref({pathname:l,search:c,hash:o})}function ur(){return y.useContext(Ii)!=null}function Pe(){return ur()||ye(!1),y.useContext(Ii).location}function ff(e){y.useContext(pa).static||y.useLayoutEffect(e)}function J(){let{isDataRoute:e}=y.useContext(Yt);return e?Jy():My()}function My(){ur()||ye(!1);let e=y.useContext(Ti),{basename:a,future:s,navigator:r}=y.useContext(pa),{matches:n}=y.useContext(Yt),{pathname:o}=Pe(),i=JSON.stringify(Jd(n,s.v7_relativeSplatPath)),c=y.useRef(!1);return ff(()=>{c.current=!0}),y.useCallback(function(d,u){if(u===void 0&&(u={}),!c.current)return;if(typeof d=="number"){r.go(d);return}let h=Zd(d,JSON.parse(i),o,u.relative==="path");e==null&&a!=="/"&&(h.pathname=h.pathname==="/"?a:Ma([a,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[a,r,i,o,e])}const gf=y.createContext(null);function Ry(){return y.useContext(gf)}function Fy(e){let a=y.useContext(Yt).outlet;return a&&y.createElement(gf.Provider,{value:e},a)}function ne(){let{matches:e}=y.useContext(Yt),a=e[e.length-1];return a?a.params:{}}function $i(e,a){let{relative:s}=a===void 0?{}:a,{future:r}=y.useContext(pa),{matches:n}=y.useContext(Yt),{pathname:o}=Pe(),i=JSON.stringify(Jd(n,r.v7_relativeSplatPath));return y.useMemo(()=>Zd(e,JSON.parse(i),o,s==="path"),[e,i,o,s])}function Oy(e,a){return Dy(e,a)}function Dy(e,a,s,r){ur()||ye(!1);let{navigator:n}=y.useContext(pa),{matches:o}=y.useContext(Yt),i=o[o.length-1],c=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let d=Pe(),u;if(a){var h;
vendor: 4,528 bytes, line 59
59let b=typeof a=="string"?dr(a):a;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||ye(!1),u=b}else u=d;let m=u.pathname||"/",f=m;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=py(e,{pathname:f}),g=Wy(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:Ma([l,n.encodeLocation?n.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Ma([l,n.encodeLocation?n.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,s,r);return a&&g?y.createElement(Ii.Provider,{value:{location:wn({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Sa.Pop}},g):g}function By(){let e=Yy(),a=$y(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},a),s?y.createElement("pre",{style:n},s):null,null)}const Gy=y.createElement(By,null);class Vy extends y.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,s){return s.location!==a.location||s.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:s.error,location:s.location,revalidation:a.revalidation||s.revalidation}}componentDidCatch(a,s){console.error("React Router caught the following error during render",a,s)}render(){return this.state.error!==void 0?y.createElement(Yt.Provider,{value:this.props.routeContext},y.createElement(xf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Uy(e){let{routeContext:a,match:s,children:r}=e,n=y.useContext(Ti);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),y.createElement(Yt.Provider,{value:a},r)}function Wy(e,a,s,r){var n;if(a===void 0&&(a=[]),s===void 0&&(s=null),r===void 0&&(r=null),e==null){var o;if(!s)return null;if(s.errors)e=s.matches;else if((o=r)!=null&&o.v7_partialHydration&&a.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let i=e,c=(n=s)==null?void 0:n.errors;if(c!=null){let u=i.findIndex(h=>h.route.id&&(c==null?void 0:c[h.route.id])!==void 0);u>=0||ye(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,d=-1;if(s&&r&&r.v7_partialHydration)for(let u=0;u<i.length;u++){let h=i[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:m,errors:f}=s,v=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||v){l=!0,d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((u,h,m)=>{let f,v=!1,g=null,b=null;s&&(f=c&&h.route.id?c[h.route.id]:void 0,g=h.route.errorElement||Gy,l&&(d<0&&m===0?(Zy("route-fallback"),v=!0,b=null):d===m&&(v=!0,b=h.route.hydrateFallbackElement||null)));let p=a.concat(i.slice(0,m+1)),x=()=>{let j;return f?j=g:v?j=b:h.route.Component?j=y.createElement(h.route.Component,null):h.route.element?j=h.route.element:j=u,y.createElement(Uy,{match:h,routeContext:{outlet:u,matches:p,isDataRoute:s!=null},children:j})};return s&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(Vy,{location:s.location,revalidation:s.revalidation,component:g,error:f,children:x(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):x()},null)}var vf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vf||{}),jf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(jf||{});function Hy(e){let a=y.useContext(Ti);return a||ye(!1),a}function Qy(e){let a=y.useContext(hf);return a||ye(!1),a}function Ky(e){let a=y.useContext(Yt);return a||ye(!1),a}function yf(e){let a=Ky(),s=a.matches[a.matches.length-1];return s.route.id||ye(!1),s.route.id}function Yy(){var e;let a=y.useContext(xf),s=Qy(),r=yf();return a!==void 0?a:(e=s.errors)==null?void 0:e[r]}function Jy(){let{router:e}
59=Hy(vf.UseNavigateStable),a=yf(jf.UseNavigateStable),s=y.useRef(!1);return ff(()=>{s.current=!0}),y.useCallback(function(n,o){o===void 0&&(o={}),s.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,wn({fromRouteId:a},o)))},[e,a])}const Qm={};function Zy(e,a,s){Qm[e]||(Qm[e]=!0)}function Xy(e,a){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function pt(e){let{to:a,replace:s,state:r,relative:n}=e;ur()||ye(!1);let{future:o,static:i}=y.useContext(pa),{matches:c}=y.useContext(Yt),{pathname:l}=Pe(),d=J(),u=Zd(a,Jd(c,o.v7_relativeSplatPath),l,n==="path"),h=JSON.stringify(u);return y.useEffect(()=>d(JSON.parse(h),{replace:s,state:r,relative:n}),[d,h,n,s,r]),null}function Li(e){return Fy(e.context)}function M(e){ye(!1)}function eb(e){let{basename:a="/",children:s=null,location:r,navigationType:n=Sa.Pop,navigator:o,static:i=!1,future:c}=e;ur()&&ye(!1);let l=a.replace(/^\/*/,"/"),d=y.useMemo(()=>({basename:l,navigator:o,static:i,future:wn({v7_relativeSplatPath:!1},c)}),[l,c,o,i]);typeof r=="string"&&(r=dr(r));let{pathname:u="/",search:h="",hash:m="",state:f=null,key:v="default"}=r,g=y.useMemo(()=>{let b=sr(u,l);return b==null?null:{location:{pathname:b,search:h,hash:m,state:f,key:v},navigationType:n}},[l,u,h,m,f,v,n]);return g==null?null:y.createElement(pa.Provider,{value:d},y.createElement(Ii.Provider,{children:s,value:g}))}function tb(e){let{children:a,location:s}=e;return Oy(Ic(a),s)}new Promise(()=>{});function Ic(e,a){a===void 0&&(a=[]);let s=[];return y.Children.forEach(e,(r,n)=>{if(!y.isValidElement(r))return;let o=[...a,n];if(r.type===y.Fragment){s.push.apply(s,Ic(r.props.children,o));return}r.type!==M&&ye(!1),!r.props.index||!r.props.children||ye(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ic(r.props.children,o)),s.push(i)}),s}/** 60 * React Router DOM v6.30.4 61 * 62 * Copyright (c) Remix Software Inc. 63 * 64 * This source code is licensed under the MIT license found in the 65 * LICENSE.md file in the root directory of this source tree. 66 * 67 * @license MIT 68 */function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Zo.apply(null,arguments)}function bf(e,a){if(e==null)return{};var s={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(a.indexOf(r)!==-1)continue;s[r]=e[r]}return s}function ab(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sb(e,a){return e.button===0&&(!a||a==="_self")&&!ab(e)}function $c(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((a,s)=>{let r=e[s];return a.concat(Array.isArray(r)?r.map(n=>[s,n]):[[s,r]])},[]))}function rb(e,a){let s=$c(e);return a&&a.forEach((r,n)=>{s.has(n)||a.getAll(n).forEach(o=>{s.append(n,o)})}),s}const nb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ob=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ib="6";try{window.__reactRouterVersion=ib}catch{}const lb=y.createContext({isTransitioning:!1}),cb="startTransition",Km=Xg[cb];function db(e){let{basename:a,children:s,future:r,window:n}=e,o=y.useRef();o.current==null&&(o.current=dy({window:n,v5Compat:!0}));let i=o.current,[c,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:d}=r||{},u=y.useCallback(h=>{d&&Km?Km(()=>l(h)):l(h)},[l,d]);return y.useLayoutEffect(()=>i.listen(u),[i,u]),y.useEffect(()=>Xy(r),[r]),y.createElement(eb,{basename:a,children:s,location:c.location,navigationType:c.action,navigator:i,future:r})}const ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U=y.forwardRef(function(a,s){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:c,target:l,to:d,preventScrollReset:u,viewTransition:h}
68=a,m=bf(a,nb),{basename:f}=y.useContext(pa),v,g=!1;if(typeof d=="string"&&mb.test(d)&&(v=d,ub))try{let j=new URL(window.location.href),k=d.startsWith("//")?new URL(j.protocol+d):new URL(d),N=sr(k.pathname,f);k.origin===j.origin&&N!=null?d=N+k.search+k.hash:g=!0}catch{}let b=qy(d,{relative:n}),p=hb(d,{replace:i,state:c,target:l,preventScrollReset:u,relative:n,viewTransition:h});function x(j){r&&r(j),j.defaultPrevented||p(j)}return y.createElement("a",Zo({},m,{href:v||b,onClick:g||o?r:x,ref:s,target:l}))}),na=y.forwardRef(function(a,s){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:c,to:l,viewTransition:d,children:u}=a,h=bf(a,ob),m=$i(l,{relative:h.relative}),f=Pe(),v=y.useContext(hf),{navigator:g,basename:b}=y.useContext(pa),p=v!=null&&xb(m)&&d===!0,x=g.encodeLocation?g.encodeLocation(m).pathname:m.pathname,j=f.pathname,k=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(j=j.toLowerCase(),k=k?k.toLowerCase():null,x=x.toLowerCase()),k&&b&&(k=sr(k,b)||k);const N=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let C=j===x||!i&&j.startsWith(x)&&j.charAt(N)==="/",_=k!=null&&(k===x||!i&&k.startsWith(x)&&k.charAt(x.length)==="/"),A={isActive:C,isPending:_,isTransitioning:p},z=C?r:void 0,P;typeof o=="function"?P=o(A):P=[o,C?"active":null,_?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let w=typeof c=="function"?c(A):c;return y.createElement(U,Zo({},h,{"aria-current":z,className:P,ref:s,style:w,to:l,viewTransition:d}),typeof u=="function"?u(A):u)});var Lc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Lc||(Lc={}));var Ym;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ym||(Ym={}));function pb(e){let a=y.useContext(Ti);return a||ye(!1),a}function hb(e,a){let{target:s,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:c}=a===void 0?{}:a,l=J(),d=Pe(),u=$i(e,{relative:i});return y.useCallback(h=>{if(sb(h,s)){h.preventDefault();let m=r!==void 0?r:Jo(d)===Jo(u);l(e,{replace:m,state:n,preventScrollReset:o,relative:i,viewTransition:c})}},[d,l,u,r,n,s,e,o,i,c])}function mr(e){let a=y.useRef($c(e)),s=y.useRef(!1),r=Pe(),n=y.useMemo(()=>rb(r.search,s.current?null:a.current),[r.search]),o=J(),i=y.useCallback((c,l)=>{const d=$c(typeof c=="function"?c(n):c);s.current=!0,o("?"+d,l)},[o,n]);return[n,i]}function xb(e,a){a===void 0&&(a={});let s=y.useContext(lb);s==null&&ye(!1);let{basename:r}=pb(Lc.useViewTransitionState),n=$i(e,{relative:a.relative});if(!s.isTransitioning)return!1;let o=sr(s.currentLocation.pathname,r)||s.currentLocation.pathname,i=sr(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Tc(n.pathname,i)!=null||Tc(n.pathname,o)!=null}const fb="modulepreload",gb=function(e){return"/"+e},Jm={},Ns=function(a,s,r){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.allSettled(s.map(l=>{if(l=gb(l),l in Jm)return;Jm[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":fb,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};/** 69 * @license lucide-react v0.456.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const vb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nf=(...e)=>e.filter((a,s,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===s).join(" ").trim();/** 74 * @license lucide-react v0.456.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var jb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 79 * @license lucide-react v0.456.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const yb=y.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:n="",children:o,iconNode:i,...c},l)=>y.createElement("svg",{ref:l,...jb,width:a,height:a,stroke:e,strokeWidth:r?Number(s)*24/Number(a):s,className:Nf("lucide",n),...c},[...i.map(([d,u])=>y.createElement(d,u)),...Array.isArray(o)?o:[o]]));/** 84 * @license lucide-react v0.456.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const q=(e,a)=>{const s=y.forwardRef(({className:r,...n},o)=>y.createElement(yb,{ref:o,iconNode:a,className:Nf(`lucide-${vb(e)}`,r),...n}));return s.displayName=`${e}`,s};/** 89 * @license lucide-react v0.456.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const bb=q("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 94 * @license lucide-react v0.456.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const Xd=q("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 99 * @license lucide-react v0.456.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const ae=q("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 104 * @license lucide-react v0.456.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const qr=q("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 109 * @license lucide-react v0.456.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const kf=q("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 114 * @license lucide-react v0.456.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const Nb=q("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 119 * @license lucide-react v0.456.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const wf=q("BadgePercent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 124 * @license lucide-react v0.456.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const kb=q("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** 129 * @license lucide-react v0.456.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Cf=q("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 134 * @license lucide-react v0.456.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const wb=q("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 139 * @license lucide-react v0.456.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const Cb=q("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
143],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/** 144 * @license lucide-react v0.456.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const _b=q("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 149 * @license lucide-react v0.456.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const Sb=q("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 154 * @license lucide-react v0.456.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const eu=q("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 159 * @license lucide-react v0.456.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const _f=q("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 164 * @license lucide-react v0.456.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const Eb=q("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 169 * @license lucide-react v0.456.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const Ze=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 174 * @license lucide-react v0.456.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const Sf=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 179 * @license lucide-react v0.456.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const Pb=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 184 * @license lucide-react v0.456.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const Ab=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 189 * @license lucide-react v0.456.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const zb=q("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]);/** 194 * @license lucide-react v0.456.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const Tb=q("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/** 199 * @license lucide-react v0.456.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const bt=q("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 204 * @license lucide-react v0.456.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Xo=q("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** 209 * @license lucide-react v0.456.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const Ib=q("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}
213],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/** 214 * @license lucide-react v0.456.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const tu=q("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 219 * @license lucide-react v0.456.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const au=q("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 224 * @license lucide-react v0.456.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const qi=q("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 229 * @license lucide-react v0.456.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const Ef=q("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 234 * @license lucide-react v0.456.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const Pf=q("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 239 * @license lucide-react v0.456.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const $b=q("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 244 * @license lucide-react v0.456.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const Lb=q("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/** 249 * @license lucide-react v0.456.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const Ya=q("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 254 * @license lucide-react v0.456.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const su=q("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 259 * @license lucide-react v0.456.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const qb=q("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 264 * @license lucide-react v0.456.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree.
268 */const ru=q("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 269 * @license lucide-react v0.456.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const Mb=q("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** 274 * @license lucide-react v0.456.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const rr=q("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 279 * @license lucide-react v0.456.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const Af=q("Drama",[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]]);/** 284 * @license lucide-react v0.456.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const nu=q("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 289 * @license lucide-react v0.456.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const qc=q("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 294 * @license lucide-react v0.456.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const ei=q("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 299 * @license lucide-react v0.456.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const Rb=q("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 304 * @license lucide-react v0.456.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const Fb=q("FileQuestion",[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]);/** 309 * @license lucide-react v0.456.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const Ob=q("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 314 * @license lucide-react v0.456.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const ks=q("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 319 * @license lucide-react v0.456.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const Db=q("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/** 324 * @license lucide-react v0.456.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const Bb=q("FolderClock",[["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}
328],["path",{d:"M16 14v2l1 1",key:"xth2jh"}]]);/** 329 * @license lucide-react v0.456.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const Gb=q("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 334 * @license lucide-react v0.456.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const Vb=q("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 339 * @license lucide-react v0.456.0 - ISC 340 * 341 * This source code is licensed under the ISC license. 342 * See the LICENSE file in the root directory of this source tree. 343 */const Ja=q("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 344 * @license lucide-react v0.456.0 - ISC 345 * 346 * This source code is licensed under the ISC license. 347 * See the LICENSE file in the root directory of this source tree. 348 */const ou=q("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 349 * @license lucide-react v0.456.0 - ISC 350 * 351 * This source code is licensed under the ISC license. 352 * See the LICENSE file in the root directory of this source tree. 353 */const Ub=q("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/** 354 * @license lucide-react v0.456.0 - ISC 355 * 356 * This source code is licensed under the ISC license. 357 * See the LICENSE file in the root directory of this source tree. 358 */const Mi=q("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 359 * @license lucide-react v0.456.0 - ISC 360 * 361 * This source code is licensed under the ISC license. 362 * See the LICENSE file in the root directory of this source tree. 363 */const zf=q("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/** 364 * @license lucide-react v0.456.0 - ISC 365 * 366 * This source code is licensed under the ISC license. 367 * See the LICENSE file in the root directory of this source tree. 368 */const Wb=q("IdCard",[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]);/** 369 * @license lucide-react v0.456.0 - ISC 370 * 371 * This source code is licensed under the ISC license. 372 * See the LICENSE file in the root directory of this source tree. 373 */const Mc=q("Import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]);/** 374 * @license lucide-react v0.456.0 - ISC 375 * 376 * This source code is licensed under the ISC license. 377 * See the LICENSE file in the root directory of this source tree. 378 */const iu=q("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 379 * @license lucide-react v0.456.0 - ISC 380 * 381 * This source code is licensed under the ISC license. 382 * See the LICENSE file in the root directory of this source tree. 383 */const Ri=q("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 384 * @license lucide-react v0.456.0 - ISC 385 * 386 * This source code is licensed under the ISC license. 387 * See the LICENSE file in the root directory of this source tree. 388 */const Hb=q("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 389 * @license lucide-react v0.456.0 - ISC 390 * 391 * This source code is licensed under the ISC license. 392 * See the LICENSE file in the root directory of this source tree. 393 */const Qb=q("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 394 * @license lucide-react v0.456.0 - ISC 395 * 396 * This source code is licensed under the ISC license. 397 * See the LICENSE file in the root directory of this source tree. 398 */const Kb=q("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 399 * @license lucide-react v0.456.0 - ISC 400 * 401 * This source code is licensed under the ISC license. 402 * See the LICENSE file in the root directory of this source tree.
403 */const Yb=q("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 404 * @license lucide-react v0.456.0 - ISC 405 * 406 * This source code is licensed under the ISC license. 407 * See the LICENSE file in the root directory of this source tree. 408 */const Jb=q("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/** 409 * @license lucide-react v0.456.0 - ISC 410 * 411 * This source code is licensed under the ISC license. 412 * See the LICENSE file in the root directory of this source tree. 413 */const Zb=q("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 414 * @license lucide-react v0.456.0 - ISC 415 * 416 * This source code is licensed under the ISC license. 417 * See the LICENSE file in the root directory of this source tree. 418 */const lu=q("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 419 * @license lucide-react v0.456.0 - ISC 420 * 421 * This source code is licensed under the ISC license. 422 * See the LICENSE file in the root directory of this source tree. 423 */const Xb=q("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 424 * @license lucide-react v0.456.0 - ISC 425 * 426 * This source code is licensed under the ISC license. 427 * See the LICENSE file in the root directory of this source tree. 428 */const js=q("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 429 * @license lucide-react v0.456.0 - ISC 430 * 431 * This source code is licensed under the ISC license. 432 * See the LICENSE file in the root directory of this source tree. 433 */const Za=q("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 434 * @license lucide-react v0.456.0 - ISC 435 * 436 * This source code is licensed under the ISC license. 437 * See the LICENSE file in the root directory of this source tree. 438 */const e1=q("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 439 * @license lucide-react v0.456.0 - ISC 440 * 441 * This source code is licensed under the ISC license. 442 * See the LICENSE file in the root directory of this source tree. 443 */const t1=q("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 444 * @license lucide-react v0.456.0 - ISC 445 * 446 * This source code is licensed under the ISC license. 447 * See the LICENSE file in the root directory of this source tree. 448 */const a1=q("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/** 449 * @license lucide-react v0.456.0 - ISC 450 * 451 * This source code is licensed under the ISC license. 452 * See the LICENSE file in the root directory of this source tree. 453 */const s1=q("MailQuestion",[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2",key:"7z9rxb"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]);/** 454 * @license lucide-react v0.456.0 - ISC 455 * 456 * This source code is licensed under the ISC license. 457 * See the LICENSE file in the root directory of this source tree. 458 */const ws=q("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 459 * @license lucide-react v0.456.0 - ISC 460 * 461 * This source code is licensed under the ISC license. 462 * See the LICENSE file in the root directory of this source tree. 463 */const Xa=q("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 464 * @license lucide-react v0.456.0 - ISC 465 * 466 * This source code is licensed under the ISC license. 467 * See the LICENSE file in the root directory of this source tree. 468 */const r1=q("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 469 * @license lucide-react v0.456.0 - ISC 470 * 471 * This source code is licensed under the ISC license. 472 * See the LICENSE file in the root directory of this source tree. 473 */const Cn=q("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 474 * @license lucide-react v0.456.0 - ISC 475 * 476 * This source code is licensed under the ISC license. 477 * See the LICENSE file in the root directory of this source tree. 478 */const Tf=q("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 479 * @license lucide-react v0.456.0 - ISC 480 * 481 * This source code is licensed under the ISC license. 482 * See the LICENSE file in the root directory of this source tree. 483 */const Fi=q("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 484 * @license lucide-react v0.456.0 - ISC 485 * 486 * This source code is licensed under the ISC license. 487 * See the LICENSE file in the root directory of this source tree. 488 */const n1=q("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 489 * @license lucide-react v0.456.0 - ISC 490 * 491 * This source code is licensed under the ISC license. 492 * See the LICENSE file in the root directory of this source tree. 493 */const o1=q("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 494 * @license lucide-react v0.456.0 - ISC 495 * 496 * This source code is licensed under the ISC license. 497 * See the LICENSE file in the root directory of this source tree. 498 */const i1=q("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/** 499 * @license lucide-react v0.456.0 - ISC 500 * 501 * This source code is licensed under the ISC license. 502 * See the LICENSE file in the root directory of this source tree. 503 */const l1=q("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/** 504 * @license lucide-react v0.456.0 - ISC 505 * 506 * This source code is licensed under the ISC license. 507 * See the LICENSE file in the root directory of this source tree. 508 */const If=q("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/** 509 * @license lucide-react v0.456.0 - ISC 510 * 511 * This source code is licensed under the ISC license. 512 * See the LICENSE file in the root directory of this source tree. 513 */const c1=q("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 514 * @license lucide-react v0.456.0 - ISC 515 * 516 * This source code is licensed under the ISC license. 517 * See the LICENSE file in the root directory of this source tree. 518 */const d1=q("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 519 * @license lucide-react v0.456.0 - ISC 520 * 521 * This source code is licensed under the ISC license. 522 * See the LICENSE file in the root directory of this source tree. 523 */const qn=q("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 524 * @license lucide-react v0.456.0 - ISC 525 * 526 * This source code is licensed under the ISC license. 527 * See the LICENSE file in the root directory of this source tree. 528 */const u1=q("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 529 * @license lucide-react v0.456.0 - ISC 530 * 531 * This source code is licensed under the ISC license. 532 * See the LICENSE file in the root directory of this source tree. 533 */const cu=q("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 534 * @license lucide-react v0.456.0 - ISC 535 * 536 * This source code is licensed under the ISC license. 537 * See the LICENSE file in the root directory of this source tree. 538 */const m1=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 539 * @license lucide-react v0.456.0 - ISC 540 * 541 * This source code is licensed under the ISC license. 542 * See the LICENSE file in the root directory of this source tree. 543 */const du=q("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 544 * @license lucide-react v0.456.0 - ISC 545 * 546 * This source code is licensed under the ISC license. 547 * See the LICENSE file in the root directory of this source tree. 548 */const p1=q("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 549 * @license lucide-react v0.456.0 - ISC 550 * 551 * This source code is licensed under the ISC license. 552 * See the LICENSE file in the root directory of this source tree. 553 */const Rc=q("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/** 554 * @license lucide-react v0.456.0 - ISC 555 * 556 * This source code is licensed under the ISC license. 557 * See the LICENSE file in the root directory of this source tree. 558 */const $f=q("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/** 559 * @license lucide-react v0.456.0 - ISC 560 * 561 * This source code is licensed under the ISC license. 562 * See the LICENSE file in the root directory of this source tree. 563 */const Lf=q("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 564 * @license lucide-react v0.456.0 - ISC 565 * 566 * This source code is licensed under the ISC license. 567 * See the LICENSE file in the root directory of this source tree. 568 */const Mn=q("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}
568],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/** 569 * @license lucide-react v0.456.0 - ISC 570 * 571 * This source code is licensed under the ISC license. 572 * See the LICENSE file in the root directory of this source tree. 573 */const h1=q("Rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);/** 574 * @license lucide-react v0.456.0 - ISC 575 * 576 * This source code is licensed under the ISC license. 577 * See the LICENSE file in the root directory of this source tree. 578 */const qf=q("School",[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2",key:"1vwozw"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 8-4 8 4",key:"1q0ilc"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]]);/** 579 * @license lucide-react v0.456.0 - ISC 580 * 581 * This source code is licensed under the ISC license. 582 * See the LICENSE file in the root directory of this source tree. 583 */const Oi=q("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 584 * @license lucide-react v0.456.0 - ISC 585 * 586 * This source code is licensed under the ISC license. 587 * See the LICENSE file in the root directory of this source tree. 588 */const Di=q("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 589 * @license lucide-react v0.456.0 - ISC 590 * 591 * This source code is licensed under the ISC license. 592 * See the LICENSE file in the root directory of this source tree. 593 */const x1=q("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 594 * @license lucide-react v0.456.0 - ISC 595 * 596 * This source code is licensed under the ISC license. 597 * See the LICENSE file in the root directory of this source tree. 598 */const Mf=q("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 599 * @license lucide-react v0.456.0 - ISC 600 * 601 * This source code is licensed under the ISC license. 602 * See the LICENSE file in the root directory of this source tree. 603 */const Be=q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 604 * @license lucide-react v0.456.0 - ISC 605 * 606 * This source code is licensed under the ISC license. 607 * See the LICENSE file in the root directory of this source tree. 608 */const Bi=q("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 609 * @license lucide-react v0.456.0 - ISC 610 * 611 * This source code is licensed under the ISC license. 612 * See the LICENSE file in the root directory of this source tree.
613 */const uu=q("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 614 * @license lucide-react v0.456.0 - ISC 615 * 616 * This source code is licensed under the ISC license. 617 * See the LICENSE file in the root directory of this source tree. 618 */const pr=q("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 619 * @license lucide-react v0.456.0 - ISC 620 * 621 * This source code is licensed under the ISC license. 622 * See the LICENSE file in the root directory of this source tree. 623 */const f1=q("Telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/** 624 * @license lucide-react v0.456.0 - ISC 625 * 626 * This source code is licensed under the ISC license. 627 * See the LICENSE file in the root directory of this source tree. 628 */const Wa=q("Tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);/** 629 * @license lucide-react v0.456.0 - ISC 630 * 631 * This source code is licensed under the ISC license. 632 * See the LICENSE file in the root directory of this source tree. 633 */const mu=q("Theater",[["path",{d:"M2 10s3-3 3-8",key:"3xiif0"}],["path",{d:"M22 10s-3-3-3-8",key:"ioaa5q"}],["path",{d:"M10 2c0 4.4-3.6 8-8 8",key:"16fkpi"}],["path",{d:"M14 2c0 4.4 3.6 8 8 8",key:"b9eulq"}],["path",{d:"M2 10s2 2 2 5",key:"1au1lb"}],["path",{d:"M22 10s-2 2-2 5",key:"qi2y5e"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"1vsc2m"}],["path",{d:"M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1",key:"hrha4u"}]]);/** 634 * @license lucide-react v0.456.0 - ISC 635 * 636 * This source code is licensed under the ISC license. 637 * See the LICENSE file in the root directory of this source tree. 638 */const g1=q("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/** 639 * @license lucide-react v0.456.0 - ISC 640 * 641 * This source code is licensed under the ISC license. 642 * See the LICENSE file in the root directory of this source tree. 643 */const hr=q("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 644 * @license lucide-react v0.456.0 - ISC 645 * 646 * This source code is licensed under the ISC license. 647 * See the LICENSE file in the root directory of this source tree. 648 */const nr=q("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 649 * @license lucide-react v0.456.0 - ISC 650 * 651 * This source code is licensed under the ISC license. 652 * See the LICENSE file in the root directory of this source tree. 653 */const Gi=q("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 654 * @license lucide-react v0.456.0 - ISC 655 * 656 * This source code is licensed under the ISC license. 657 * See the LICENSE file in the root directory of this source tree. 658 */const pu=q("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 659 * @license lucide-react v0.456.0 - ISC 660 * 661 * This source code is licensed under the ISC license. 662 * See the LICENSE file in the root directory of this source tree. 663 */const v1=q("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
663],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 664 * @license lucide-react v0.456.0 - ISC 665 * 666 * This source code is licensed under the ISC license. 667 * See the LICENSE file in the root directory of this source tree. 668 */const xt=q("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 669 * @license lucide-react v0.456.0 - ISC 670 * 671 * This source code is licensed under the ISC license. 672 * See the LICENSE file in the root directory of this source tree. 673 */const Rf=q("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 674 * @license lucide-react v0.456.0 - ISC 675 * 676 * This source code is licensed under the ISC license. 677 * See the LICENSE file in the root directory of this source tree. 678 */const Ff=q("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 679 * @license lucide-react v0.456.0 - ISC 680 * 681 * This source code is licensed under the ISC license. 682 * See the LICENSE file in the root directory of this source tree. 683 */const j1=q("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 684 * @license lucide-react v0.456.0 - ISC 685 * 686 * This source code is licensed under the ISC license. 687 * See the LICENSE file in the root directory of this source tree. 688 */const tt=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 689 * @license lucide-react v0.456.0 - ISC 690 * 691 * This source code is licensed under the ISC license. 692 * See the LICENSE file in the root directory of this source tree. 693 */const y1=q("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 694 * @license lucide-react v0.456.0 - ISC 695 * 696 * This source code is licensed under the ISC license. 697 * See the LICENSE file in the root directory of this source tree. 698 */const Of=q("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ti="gira_ref",b1=60*24*60*60*1e3;function N1(e=window.location.search){var s;const a=(s=new URLSearchParams(e).get("v"))==null?void 0:s.trim().toLowerCase();if(a)try{localStorage.setItem(ti,JSON.stringify({code:a,at:Date.now()}))}catch{}}function k1(){try{const e=localStorage.getItem(ti);if(!e)return null;const a=JSON.parse(e);return!(a!=null&&a.code)||typeof a.at!="number"?null:Date.now()-a.at>b1?(localStorage.removeItem(ti),null):a.code}catch{return null}}function w1(){try{localStorage.removeItem(ti)}catch{}}const Cl="giro_token",Qe={get:()=>localStorage.getItem(Cl),set:e=>localStorage.setItem(Cl,e),clear:()=>localStorage.removeItem(Cl)};async function C1(e){const a=await e.text().catch(()=>"");return{mensagem:_1(a,e.status),corpo:a}}function _1(e,a){let s="";try{const r=JSON.parse(e);s=typeof(r==null?void 0:r.detail)=="string"?r.detail:"",!s&&Array.isArray(r==null?void 0:r.detail)&&(s=r.detail.map(n=>{var o;return(o=n==null?void 0:n.msg)==null?void 0:o.replace(/^Value error,\s*/,"")}).filter(Boolean).join("; "))}catch{s=e}return s?a<500?s:`Erro ${a}: ${s}`:`Erro ${a}`}const S1=["plan_required","limit_reached","storage_full","profile_required"];
698class E1 extends Error{constructor(a,s,r,n){super(""),this.detalhe=a,this.code=s,this.limit=r,this.cap=n,this.name="ErroDePlano"}toString(){return""}}let Fc=null;function Zm(e){Fc=e}function P1(e,a,s){if(e!==402)return null;try{const r=JSON.parse(a);return S1.includes(r==null?void 0:r.code)?new E1(s,r.code,r.limit,r.cap):null}catch{return null}}async function hu(e){const{mensagem:a,corpo:s}=await C1(e),r=P1(e.status,s,a);throw r&&Fc?(Fc(r),r):new Error(a)}async function T(e,a="GET",s){const r={};s&&(r["Content-Type"]="application/json");const n=Qe.get();n&&(r.Authorization=`Bearer ${n}`);const o=await fetch(e,{method:a,headers:r,body:s?JSON.stringify(s):void 0});if(o.status===401)throw Qe.clear(),location.pathname.startsWith("/login")||location.assign("/login"),new Error("Sessão expirada. Faça login novamente.");if(o.ok||await hu(o),o.status!==204)return o.json()}const wa={async login(e,a){const s=new URLSearchParams({username:e,password:a}),r=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(!r.ok){const o=await r.text().catch(()=>"");let i="";try{i=JSON.parse(o).detail}catch{i=o}throw new Error(i||`Erro ${r.status}`)}const n=await r.json();return Qe.set(n.access_token),n.user},async signup(e){const a=k1(),s=await T("/api/auth/signup","POST",a?{...e,ref:a}:e);return Qe.set(s.access_token),w1(),s.user},me:()=>T("/api/auth/me"),esqueciSenha:e=>T("/api/auth/esqueci-senha","POST",{email:e}),novaSenha:async(e,a)=>{const s=await T("/api/auth/nova-senha","POST",{token:e,password:a});return Qe.set(s.access_token),s.user},updateMe:async e=>{const a=await T("/api/auth/me","PATCH",e);return Qe.set(a.access_token),a.user},logout:()=>Qe.clear()};function ha(e){return{list:()=>T(e),get:a=>T(`${e}/${a}`),create:a=>T(e,"POST",a),update:(a,s)=>T(`${e}/${a}`,"PATCH",s),remove:a=>T(`${e}/${a}`,"DELETE")}}const Ra={list:()=>T("/api/subscriptions"),summary:()=>T("/api/subscriptions/summary"),get:e=>T(`/api/subscriptions/${e}`),create:e=>T("/api/subscriptions","POST",e),update:(e,a)=>T(`/api/subscriptions/${e}`,"PATCH",a),remove:e=>T(`/api/subscriptions/${e}`,"DELETE"),addPayment:(e,a)=>T(`/api/subscriptions/${e}/payments`,"POST",a),removePayment:e=>T(`/api/subscriptions/payments/${e}`,"DELETE")},Xm={list:e=>T(`/api/editions/${e}/criteria`),save:(e,a)=>T(`/api/editions/${e}/criteria`,"PUT",{items:a})},Df={list:()=>T("/api/releases"),current:()=>T("/api/releases/current")},ep={cities:(e,a)=>T(`/api/geo/cities?country=${encodeURIComponent(e)}&q=${encodeURIComponent(a)}`),place:(e,a)=>T(`/api/geo/place?lat=${e}&lng=${a}`)},A1={get:()=>T("/api/dashboard")},Fa=ha("/api/festivals"),Os={list:e=>{const a=new URLSearchParams;(e==null?void 0:e.artist_id)!=null&&a.set("artist_id",String(e.artist_id)),(e==null?void 0:e.circuit_id)!=null&&a.set("circuit_id",String(e.circuit_id));const s=a.toString();return T(`/api/quotes${s?`?${s}`:""}`)},get:e=>T(`/api/quotes/${e}`),create:e=>T("/api/quotes","POST",e),update:(e,a)=>T(`/api/quotes/${e}`,"PATCH",a),remove:e=>T(`/api/quotes/${e}`,"DELETE"),async openHtml(e){const a=Qe.get(),s=await fetch(`/api/quotes/${e}/html`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(!s.ok)throw new Error(`Erro ${s.status} ao gerar o HTML`);const r=await s.text(),n=URL.createObjectURL(new Blob([r],{type:"text/html"}));window.open(n,"_blank")}},kt={list:e=>{const a=new URLSearchParams;e!=null&&e.category&&a.set("category",e.category),e!=null&&e.status&&a.set("status",e.status),e!=null&&e.q&&a.set("q",e.q);const s=a.toString();return T(`/api/circuits${s?`?${s}`:""}`)},get:e=>T(`/api/circuits/${e}`),create:e=>T("/api/circuits","POST",e),update:(e,a)=>T(`/api/circuits/${e}`,"PATCH",a),remove:e=>T(`/api/circuits/${e}`,"DELETE"),addContact:(e,a)=>T(`/api/circuits/${e}/contacts`,"POST",a),updateContact:(e,a,s)=>T(`/api/circuits/${e}/contacts/${a}`,"PATCH",s),removeContact:(e,a)=>T(`/api/circuits/${e}/contacts/${a}`,"DELETE"),addHistory:(e,a)=>T(`/api/circuits/${e}/history`,"POST",a),removeHistory:(e,a)=>T(`/api/circuits/${e}/history/${a}`,"DELETE"),fromDiscovery:(e,a)=>T(`/api/circuits/from-discovery/${e}`,"POST",a)},xe={...ha("/api/submissions"),list:e=>T(`/api/submissions${e!=null&&e.archived?"?archived=true":""}`)},Bf=e=>a=>T(`${e}${a!=null?`?artist_id=${a}`:""}`),Ue={...ha("/api/shows"),list:Bf("/api/shows"),generateRider:e=>T(`/api/shows/${e}/rider`,"POST"),generateCroqui:e=>T(`/api/shows/${e}/croqui`,"POST"),generateMapaLuz:e=>T(`/api/shows/${e}/mapa-luz`,"POST"),generateCueSheet:e=>T(`/api/shows/${e}/roteiro-musical`,"POST"),getEmail:e=>T(`/api/shows/${e}/email`)},tp={get:()=>T("/api/permissions"),set:(e,a,s)=>T(`/api/permissions/${e}/${a}`,"PUT",{enabled:s})},No={list:()=>T("/api/producers"),artists:e=>T(`/api/producers/${e}/artists`),assignArtist:(e,a)=>T(`/api/producers/${e}/artists`,"POST",{artist_id:a}),unassignArtist:(e,a)=>T(`/api/producers/${e}/artists/${a}`,"DELETE")},Oa={...ha("/api/leads"),list:e=>T(`/api/leads${e?`?status=${e}`:""}`),consolidar:(e=!1)=>T(`/api/leads/consolidar?aplicar=${e}`,"POST")},Da=ha("/api/users"),Hs=ha("/api/templates"),oa={list:e=>{const a=new URLSearchParams;(e==null?void 0:e.festival_id)!=null&&a.set("festival_id",String(e.festival_id)),(e==null?void 0:e.year)!=null&&a.set("year",String(e.year));const s=a.toString();return T(`/api/editions${s?`?${s}`:""}`)},get:e=>T(`/api/editions/${e}`),create:e=>T("/api/editions","POST",e),update:(e,a)=>T(`/api/editions/${e}`,"PATCH",a),remove:e=>T(`/api/editions/${e}`,"DELETE")},ia={get:e=>T(`/api/submissions/${e}/dossier`),addChecklistItem:(e,a)=>T(`/api/submissions/${e}/checklist`,"POST",a),updateChecklistItem:(e,a)=>T(`/api/checklist/${e}`,"PATCH",a),removeChecklistItem:e=>T(`/api/checklist/${e}`,"DELETE"),addMessage:(e,a)=>T(`/api/submissions/${e}/messages`,"POST",{body:a}),removeFile:(e,a)=>T(`/api/submissions/${e}/files/${encodeURIComponent(a)}`,"DELETE"),async uploadFile(e,a){const s=new FormData;s.append("file",a);const r={},n=Qe.get();n&&(r.Authorization=`Bearer ${n}`);const o=await fetch(`/api/submissions/${e}/files`,{method:"POST",headers:r,body:s});if(!o.ok){const i=await o.text().catch(()=>"");throw new Error(`Erro ${o.status}${i?`: ${i}`:""}`)}return o.json()}},me={...ha("/api/artists"),generatePortfolio:e=>T(`/api/artists/${e}/portfolio`,"POST"),generateBook:e=>T(`/api/artists/${e}/book`,"POST"),async openBook(e){const a=Qe.get(),s=await fetch(`/api/artists/${e}/book.pdf`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(!s.ok)throw new Error(`Erro ${s.status} ao abrir o livro`);window.open(URL.createObjectURL(await s.blob()),"_blank")},bookStatus:e=>T(`/api/artists/${e}/book`),completeness:e=>T(`/api/artists/${e}/completeness`),completenessAll:()=>T("/api/artists/completeness")},Qs={...ha("/api/oficinas"),list:Bf("/api/oficinas")},Qr=ha("/api/cultural-actions");
698async function ai(e,a){const s=Qe.get(),r=await fetch(e,{method:"POST",headers:s?{Authorization:`Bearer ${s}`}:{},body:a});return r.ok||await hu(r),r.json()}const ba={list:({artistId:e,showId:a,oficinaId:s,kind:r})=>{const n=new URLSearchParams;e!=null&&n.set("artist_id",String(e)),a!=null&&n.set("show_id",String(a)),s!=null&&n.set("oficina_id",String(s)),r&&n.set("kind",r);const o=n.toString();return T(`/api/media${o?`?${o}`:""}`)},uploadImage(e,a){const s=new FormData;return s.append("file",e),a!=null&&s.append("artist_id",String(a)),ai("/api/media/image",s)},uploadAsset(e,a){const s=new FormData;return s.append("file",e),s.append("kind",a.kind),a.artistId!=null&&s.append("artist_id",String(a.artistId)),a.showId!=null&&s.append("show_id",String(a.showId)),a.oficinaId!=null&&s.append("oficina_id",String(a.oficinaId)),a.title&&s.append("title",a.title),ai("/api/media",s)},setCover:e=>T(`/api/media/${e}/cover`,"POST"),update:(e,a)=>T(`/api/media/${e}`,"PATCH",a),remove:e=>T(`/api/media/${e}`,"DELETE")},Er={list:e=>T(`/api/testimonials?artist_id=${e}`),create:(e,a)=>T(`/api/testimonials?artist_id=${e}`,"POST",a),update:(e,a)=>T(`/api/testimonials/${e}`,"PATCH",a),remove:e=>T(`/api/testimonials/${e}`,"DELETE")},ap={upload(e,a){const s=new FormData;return s.append("artist_id",String(e)),s.append("file",a),ai("/api/cultural-actions/import/upload",s)},save:(e,a)=>T("/api/cultural-actions/import/save","POST",{artist_id:e,items:a})},_n={list:()=>T("/api/modules"),saveTutorial:(e,a)=>T(`/api/modules/${encodeURIComponent(e)}/tutorial`,"PUT",a),deleteTutorial:e=>T(`/api/modules/${encodeURIComponent(e)}/tutorial`,"DELETE")},z1={get:e=>T(`/api/artists/${e}/career`)},Rt={artistSite:(e,a)=>T(`/api/public/artists/${encodeURIComponent(e)}${a?`?lang=${encodeURIComponent(a)}`:""}`),festivalsMap:()=>T("/api/public/festivals/map"),artists:()=>T("/api/public/artists"),stats:()=>T("/api/public/stats"),plans:()=>T("/api/public/plans"),createLead:e=>T("/api/public/leads","POST",e)},Oc={offers:()=>T("/api/checkout/offers"),create:e=>T(`/api/checkout/${encodeURIComponent(e)}`,"POST")},Mr={costTable:()=>T("/api/credits/cost-table"),me:()=>T("/api/credits/me"),wallet:e=>T(`/api/credits/wallet/${e}`),purchase:e=>T("/api/credits/purchase","POST",e),requestSubmission:(e,a=1)=>T(`/api/credits/submissions/${e}/request?credits=${a}`,"POST")},sp={async open(e,a){const s=Qe.get(),r=await fetch(`/api/submissions/${e}/files/${encodeURIComponent(a)}`,{headers:s?{Authorization:`Bearer ${s}`}:{}});if(!r.ok)throw new Error(`Erro ${r.status} ao abrir o comprovante`);const n=URL.createObjectURL(await r.blob());window.open(n,"_blank")},remove:e=>T(`/api/submissions/${e}/receipt`,"DELETE")},ct={analyzeEdital:e=>T("/api/ai/analyze-edital","POST",{url:e}),analyzeFit:e=>T("/api/ai/analyze-fit","POST",{submission_id:e}),suggestApplication:e=>T("/api/ai/suggest-application","POST",{submission_id:e}),usage:()=>T("/api/ai/usage"),chat:(e,a)=>T("/api/ai/chat","POST",{message:e,history:a}),translate:(e,a,s)=>T("/api/ai/translate","POST",{source_lang:e,target_langs:a,fields:s}),quickFitCheck:e=>T(`/api/ai/quick-fit/check?url=${encodeURIComponent(e)}`),quickFit:e=>T("/api/ai/quick-fit","POST",e),quickFitImport:e=>T("/api/ai/quick-fit/import","POST",e),async quickFitUpload(e,a,s){const r=new FormData;r.append("artist_id",String(e)),r.append("show_id",String(a)),r.append("file",s);const n=Qe.get(),o=await fetch("/api/ai/quick-fit/upload",{method:"POST",headers:n?{Authorization:`Bearer ${n}`}:{},body:r});if(!o.ok){const i=await o.text().catch(()=>"");throw new Error(`Erro ${o.status}${i?": "+i:""}`)}return o.json()},prospectMessage:e=>T("/api/ai/prospect-message","POST",e)},Ut={list:e=>{const a=new URLSearchParams;e!=null&&e.status&&a.set("status",e.status),e!=null&&e.source_type&&a.set("source_type",e.source_type),e!=null&&e.target&&a.set("target",e.target);const s=a.toString();return T(`/api/searches${s?`?${s}`:""}`)},update:(e,a)=>T(`/api/searches/${e}`,"PATCH",a),remove:e=>T(`/api/searches/${e}`,"DELETE"),removeFiltered:e=>{const a=new URLSearchParams;e!=null&&e.status&&a.set("status",e.status),e!=null&&e.source_type&&a.set("source_type",e.source_type),e!=null&&e.target&&a.set("target",e.target);const s=a.toString();return T(`/api/searches${s?`?${s}`:""}`,"DELETE")},sources:()=>T("/api/searches/sources"),collectGoogle:(e="w1")=>T(`/api/searches/collect/google?date_restrict=${e}`,"POST"),collectWebsites:()=>T("/api/searches/collect/websites","POST"),collectRadar:()=>T("/api/searches/collect/radar","POST"),collectCircuits:(e="m6")=>T(`/api/searches/collect/circuits?date_restrict=${e}`,"POST")},ko={list:()=>T("/api/sellers"),update:(e,a)=>T(`/api/sellers/${e}`,"PATCH",a),myPanel:()=>T("/api/sellers/me/panel")},rp={list:e=>{const a=new URLSearchParams;e!=null&&e.status&&a.set("status",e.status),e!=null&&e.seller_id&&a.set("seller_id",String(e.seller_id));const s=a.toString();return T(`/api/commissions${s?`?${s}`:""}`)},update:(e,a)=>T(`/api/commissions/${e}`,"PATCH",a)},T1={submissions:e=>{const a=new URLSearchParams;e!=null&&e.kind&&a.set("kind",e.kind),e!=null&&e.year&&a.set("year",String(e.year));const s=a.toString();return T(`/api/reports/submissions${s?`?${s}`:""}`)}},I1={myFestivals:()=>T("/api/calls/meus-festivais"),list:e=>T(`/api/calls?festival_id=${e}`),get:e=>T(`/api/calls/${e}`),create:e=>T("/api/calls","POST",e),update:(e,a)=>T(`/api/calls/${e}`,"PATCH",a),remove:e=>T(`/api/calls/${e}`,"DELETE"),addCategory:(e,a)=>T(`/api/calls/${e}/categorias`,"POST",a),updateCategory:(e,a,s)=>T(`/api/calls/${e}/categorias/${a}`,"PATCH",s),removeCategory:(e,a)=>T(`/api/calls/${e}/categorias/${a}`,"DELETE"),addQuestion:(e,a)=>T(`/api/calls/${e}/perguntas`,"POST",a),updateQuestion:(e,a,s)=>T(`/api/calls/${e}/perguntas/${a}`,"PATCH",s),removeQuestion:(e,a)=>T(`/api/calls/${e}/perguntas/${a}`,"DELETE"),addRequirement:(e,a)=>T(`/api/calls/${e}/documentos`,"POST",a),updateRequirement:(e,a,s)=>T(`/api/calls/${e}/documentos/${a}`,"PATCH",s),removeRequirement:(e,a)=>T(`/api/calls/${e}/documentos/${a}`,"DELETE"),painel:e=>T(`/api/calls/${e}/painel`),applications:(e,a)=>{const s=new URLSearchParams;a!=null&&a.status&&s.set("status",a.status),(a==null?void 0:a.category_id)!=null&&s.set("category_id",String(a.category_id)),(a==null?void 0:a.favorite)!=null&&s.set("favorite",String(a.favorite)),a!=null&&a.q&&s.set("q",a.q);const r=s.toString();return T(`/api/calls/${e}/inscricoes${r?`?${r}`:""}`)},application:(e,a)=>T(`/api/calls/${e}/inscricoes/${a}`),setFavorite:(e,a,s)=>T(`/api/calls/${e}/inscricoes/${a}/favorito?favorite=${s}`,"POST"),review:(e,a,s)=>T(`/api/calls/${e}/inscricoes/${a}/parecer`,"PUT",s),decide:(e,a,s)=>T(`/api/calls/${e}/inscricoes/${a}/decisao`,"POST",s),team:e=>T(`/api/calls/festival/${e}/equipe`),invite:(e,a)=>T(`/api/calls/festival/${e}/equipe`,"POST",a),removeMember:(e,a)=>T(`/api/calls/festival/${e}/equipe/${a}`,"DELETE")},cC={get:e=>T(`/api/festival-gestor/festivais/${e}`),update:(e,a)=>T(`/api/festival-gestor/festivais/${e}`,"PATCH",a),uploadImage(e,a){const s=new FormData;return s.append("file",a),ai(`/api/festival-gestor/festivais/${e}/imagem`,s)},updateEdition:(e,a)=>T(`/api/festival-gestor/edicoes/${e}`,"PATCH",a),notice:e=>T(`/api/festival-gestor/edicoes/${e}/edital`),saveDraft:(e,a)=>T(`/api/festival-gestor/edicoes/${e}/edital`,"PUT",a),publish:(e,a)=>T(`/api/festival-gestor/edicoes/${e}/edital/publicar`,"POST",{change_note:a}),async previewUrl(e){const a=Qe.get(),s=await fetch(`/api/festival-gestor/edicoes/${e}/edital/previa.pdf`,{headers:a?{Authorization:`Bearer ${a}`}:{}});return s.ok||await hu(s),URL.createObjectURL(await s.blob())}},dC={site:e=>T(`/api/chamadas/festival/${encodeURIComponent(e)}/site`),get:e=>T(`/api/chamadas/${encodeURIComponent(e)}`),getByFestival:e=>T(`/api/chamadas/festival/${encodeURIComponent(e)}`),applyExternal:(e,a)=>T(`/api/chamadas/${encodeURIComponent(e)}/inscricao-externa`,"POST",a),applyExternalByFestival:(e,a)=>T(`/api/chamadas/festival/${encodeURIComponent(e)}/inscricao-externa`,"POST",a),byToken:e=>T(`/api/chamadas/inscricao/${encodeURIComponent(e)}`)},$1={list:()=>T("/api/minhas-inscricoes"),get:e=>T(`/api/minhas-inscricoes/enviada/${e}`),shows:()=>T("/api/minhas-inscricoes/meus-espetaculos"),material:e=>T(`/api/minhas-inscricoes/material${e?`?show_id=${e}
698`:""}`),apply:(e,a)=>T(`/api/minhas-inscricoes/${encodeURIComponent(e)}`,"POST",a)},Gf=y.createContext(null);function L1({children:e}){const[a,s]=y.useState(null),[r,n]=y.useState(!0);y.useEffect(()=>{if(!Qe.get()){n(!1);return}wa.me().then(s).catch(()=>{Qe.clear(),s(null)}).finally(()=>n(!1))},[]);async function o(d,u){const h=await wa.login(d,u);s(h)}async function i(d){s(await wa.signup(d))}function c(){wa.logout(),s(null)}async function l(){s(await wa.me())}return t.jsx(Gf.Provider,{value:{user:a,loading:r,login:o,signup:i,logout:c,refresh:l},children:e})}function Ae(){const e=y.useContext(Gf);if(!e)throw new Error("useAuth deve ser usado dentro de <AuthProvider>");return e}function de(){const{user:e}=Ae(),a=(e==null?void 0:e.role)??"artista",s=(e==null?void 0:e.modules)??[];return{role:a,readonly:a==="visitante",canCurate:a==="admin"||a==="produtor",hasModule:r=>s.includes(r)}}const Dc=[{iso2:"BR",nome:"Brasil"},{iso2:"AF",nome:"Afeganistão"},{iso2:"ZA",nome:"Ãfrica do Sul"},{iso2:"AL",nome:"Albânia"},{iso2:"DE",nome:"Alemanha"},{iso2:"AD",nome:"Andorra"},{iso2:"AO",nome:"Angola"},{iso2:"AG",nome:"AntÃgua e Barbuda"},{iso2:"SA",nome:"Arábia Saudita"},{iso2:"DZ",nome:"Argélia"},{iso2:"AR",nome:"Argentina"},{iso2:"AM",nome:"Armênia"},{iso2:"AU",nome:"Austrália"},{iso2:"AT",nome:"Ãustria"},{iso2:"AZ",nome:"Azerbaijão"},{iso2:"BS",nome:"Bahamas"},{iso2:"BD",nome:"Bangladesh"},{iso2:"BB",nome:"Barbados"},{iso2:"BH",nome:"Barein"},{iso2:"BE",nome:"Bélgica"},{iso2:"BZ",nome:"Belize"},{iso2:"BJ",nome:"Benin"},{iso2:"BY",nome:"Bielorrússia"},{iso2:"BO",nome:"BolÃvia"},{iso2:"BA",nome:"Bósnia e Herzegovina"},{iso2:"BW",nome:"Botsuana"},{iso2:"BN",nome:"Brunei"},{iso2:"BG",nome:"Bulgária"},{iso2:"BF",nome:"Burquina Faso"},{iso2:"BI",nome:"Burundi"},{iso2:"BT",nome:"Butão"},{iso2:"CV",nome:"Cabo Verde"},{iso2:"CM",nome:"Camarões"},{iso2:"KH",nome:"Camboja"},{iso2:"CA",nome:"Canadá"},{iso2:"QA",nome:"Catar"},{iso2:"KZ",nome:"Cazaquistão"},{iso2:"TD",nome:"Chade"},{iso2:"CL",nome:"Chile"},{iso2:"CN",nome:"China"},{iso2:"CY",nome:"Chipre"},{iso2:"VA",nome:"Cidade do Vaticano"},{iso2:"CO",nome:"Colômbia"},{iso2:"KM",nome:"Comores"},{iso2:"CD",nome:"Congo - Kinshasa"},{iso2:"KP",nome:"Coreia do Norte"}
698,{iso2:"KR",nome:"Coreia do Sul"},{iso2:"CI",nome:"Costa do Marfim"},{iso2:"CR",nome:"Costa Rica"},{iso2:"HR",nome:"Croácia"},{iso2:"CU",nome:"Cuba"},{iso2:"DK",nome:"Dinamarca"},{iso2:"DJ",nome:"Djibuti"},{iso2:"DM",nome:"Dominica"},{iso2:"EG",nome:"Egito"},{iso2:"SV",nome:"El Salvador"},{iso2:"AE",nome:"Emirados Ãrabes Unidos"},{iso2:"EC",nome:"Equador"},{iso2:"ER",nome:"Eritreia"},{iso2:"SK",nome:"Eslováquia"},{iso2:"SI",nome:"Eslovênia"},{iso2:"ES",nome:"Espanha"},{iso2:"SZ",nome:"EssuatÃni"},{iso2:"US",nome:"Estados Unidos"},{iso2:"EE",nome:"Estônia"},{iso2:"ET",nome:"Etiópia"},{iso2:"FJ",nome:"Fiji"},{iso2:"PH",nome:"Filipinas"},{iso2:"FI",nome:"Finlândia"},{iso2:"FR",nome:"França"},{iso2:"GA",nome:"Gabão"},{iso2:"GM",nome:"Gâmbia"},{iso2:"GH",nome:"Gana"},{iso2:"GE",nome:"Geórgia"},{iso2:"GD",nome:"Granada"},{iso2:"GR",nome:"Grécia"},{iso2:"GT",nome:"Guatemala"},{iso2:"GY",nome:"Guiana"},{iso2:"GN",nome:"Guiné"},{iso2:"GQ",nome:"Guiné Equatorial"},{iso2:"GW",nome:"Guiné-Bissau"},{iso2:"HT",nome:"Haiti"},{iso2:"HN",nome:"Honduras"},{iso2:"HU",nome:"Hungria"},{iso2:"YE",nome:"Iêmen"},{iso2:"MH",nome:"Ilhas Marshall"},{iso2:"SB",nome:"Ilhas Salomão"},{iso2:"IN",nome:"Ãndia"},{iso2:"ID",nome:"Indonésia"},{iso2:"IR",nome:"Irã"},{iso2:"IQ",nome:"Iraque"},{iso2:"IE",nome:"Irlanda"},{iso2:"IS",nome:"Islândia"},{iso2:"IL",nome:"Israel"},{iso2:"IT",nome:"Itália"},{iso2:"JM",nome:"Jamaica"},{iso2:"JP",nome:"Japão"},{iso2:"JO",nome:"Jordânia"},{iso2:"XK",nome:"Kosovo"},{iso2:"KW",nome:"Kuwait"},{iso2:"LA",nome:"Laos"},{iso2:"LS",nome:"Lesoto"},{iso2:"LV",nome:"Letônia"},{iso2:"LB",nome:"LÃbano"},{iso2:"LR",nome:"Libéria"},{iso2:"LY",nome:"LÃbia"},{iso2:"LI",nome:"Liechtenstein"},{iso2:"LT",nome:"Lituânia"},{iso2:"LU",nome:"Luxemburgo"},{iso2:"MK",nome:"Macedônia do Norte"},{iso2:"MG",nome:"Madagascar"},{iso2:"MY",nome:"Malásia"},{iso2:"MW",nome:"Malaui"},{iso2:"MV",nome:"Maldivas"},{iso2:"ML",nome:"Mali"},{iso2:"MT",nome:"Malta"},{iso2:"MA",nome:"Marrocos"},{iso2:"MU",nome:"MaurÃcio"},{iso2:"MR",nome:"Mauritânia"},{iso2:"MX",nome:"México"},{iso2:"MM",nome:"Mianmar (Birmânia)"},{iso2:"FM",nome:"Micronésia"},{iso2:"MZ",nome:"Moçambique"},{iso2:"MD",nome:"Moldávia"},{iso2:"MC",nome:"Mônaco"},{iso2:"MN",nome:"Mongólia"},{iso2:"ME",nome:"Montenegro"},{iso2:"NA",nome:"NamÃbia"},{iso2:"NR",nome:"Nauru"},{iso2:"NP",nome:"Nepal"},{iso2:"NI",nome:"Nicarágua"},{iso2:"NE",nome:"NÃger"},{iso2:"NG",nome:"Nigéria"},{iso2:"NO",nome:"Noruega"},{iso2:"NZ",nome:"Nova Zelândia"},{iso2:"OM",nome:"Omã"},{iso2:"NL",nome:"PaÃses Baixos"},{iso2:"PW",nome:"Palau"},{iso2:"PA",nome:"Panamá"},{iso2:"PG",nome:"Papua-Nova Guiné"},{iso2:"PK",nome:"Paquistão"},{iso2:"PY",nome:"Paraguai"},{iso2:"PE",nome:"Peru"},{iso2:"PL",nome:"Polônia"},{iso2:"PR",nome:"Porto Rico"},{iso2:"PT",nome:"Portugal"},{iso2:"KE",nome:"Quênia"},{iso2:"KG",nome:"Quirguistão"},{iso2:"KI",nome:"Quiribati"},{iso2:"GB",nome:"Reino Unido"},{iso2:"CF",nome:"República Centro-Africana"},{iso2:"CG",nome:"República do Congo"},{iso2:"DO",nome:"República Dominicana"},{iso2:"RO",nome:"Romênia"},{iso2:"RW",nome:"Ruanda"},{iso2:"RU",nome:"Rússia"},{iso2:"WS",nome:"Samoa"},{iso2:"SM",nome:"San Marino"},{iso2:"LC",nome:"Santa Lúcia"},{iso2:"KN",nome:"São Cristóvão e Névis"},{iso2:"ST",nome:"São Tomé e PrÃncipe"},{iso2:"VC",nome:"São Vicente e Granadinas"},{iso2:"SC",nome:"Seicheles"},{iso2:"SN",nome:"Senegal"},{iso2:"SL",nome:"Serra Leoa"},{iso2:"RS",nome:"Sérvia"},{iso2:"SG",nome:"Singapura"},{iso2:"SY",nome:"SÃria"},{iso2:"SO",nome:"Somália"},{iso2:"LK",nome:"Sri Lanka"},{iso2:"SD",nome:"Sudão"},{iso2:"SS",nome:"Sudão do Sul"},{iso2:"SE",nome:"Suécia"},{iso2:"CH",nome:"SuÃça"},{iso2:"SR",nome:"Suriname"},{iso2:"TJ",nome:"Tadjiquistão"},{iso2:"TH",nome:"Tailândia"},{iso2:"TW",nome:"Taiwan"},{iso2:"TZ",nome:"Tanzânia"},{iso2:"CZ",nome:"Tchéquia"},{iso2:"TL",nome:"Timor-Leste"},{iso2:"TG",nome:"Togo"},{iso2:"TO",nome:"Tonga"},{iso2:"TT",nome:"Trinidad e Tobago"},{iso2:"TN",nome:"TunÃsia"},{iso2:"TM",nome:"Turcomenistão"}
698,{iso2:"TR",nome:"Turquia"},{iso2:"TV",nome:"Tuvalu"},{iso2:"UA",nome:"Ucrânia"},{iso2:"UG",nome:"Uganda"},{iso2:"UY",nome:"Uruguai"},{iso2:"UZ",nome:"Uzbequistão"},{iso2:"VU",nome:"Vanuatu"},{iso2:"VE",nome:"Venezuela"},{iso2:"VN",nome:"Vietnã"},{iso2:"ZM",nome:"Zâmbia"},{iso2:"ZW",nome:"Zimbábue"}],np=Object.fromEntries(Dc.map(e=>[e.nome,e.iso2])),Vf={prevista:"Prevista",a_pagar:"A pagar",paga:"Paga"},xr={circo:"Circo",teatro:"Teatro",danca:"Dança","hip-hop":"Hip hop",musica:"Música",performance:"Performance","artes-visuais":"Artes visuais",grafite:"Grafite",literatura:"Literatura",audiovisual:"Audiovisual",educativo:"Projetos educativos",multi:"Multilinguagem"},ds={festival:"Festival ou mostra",edital:"Edital público",premio:"Prêmio",credenciamento:"Credenciamento",residencia:"Residência",outro:"Outra"},Bc={espetaculo:"Espetáculo","show-musical":"Show musical",performance:"Performance",intervencao:"Intervenção",exposicao:"Exposição",mural:"Mural / grafite",residencia:"Residência",projeto:"Projeto",outro:"Outro"},op={capa:{rotulo:"Capa",onde:"abre o book, página inteira"},retrato:{rotulo:"Retrato",onde:"você de perto, na página de apresentação"},contato:{rotulo:"Contato",onde:"a última página, a do convite a conversar"},cena:{rotulo:"Cena",onde:"abertura do produto cultural"},plateia:{rotulo:"Plateia",onde:"página dos depoimentos"},multidao:{rotulo:"Multidão",onde:"página dos números e contracapa"},sim:{rotulo:"Serve (sem papel)",onde:"entra onde fizer falta"}},wo={pt:"Português",es:"Español",en:"English",fr:"Français"},Uf={solicitado:"Solicitado",aguardando_material:"Aguardando material",em_producao:"Em produção",em_revisao:"Em revisão",aprovado:"Aprovado",enviado:"Enviado",finalizado:"Finalizado"},q1={pendente:{label:"Pendente",color:"#d97706"},andamento:{label:"Em andamento",color:"#2563eb"},concluido:{label:"ConcluÃdo",color:"#16a34a"}},qe={confirmed:{label:"Confirmado",Icon:pr,color:"#16a34a"},viable:{label:"Viável",Icon:bt,color:"#6b7280"},submitted:{label:"Inscrito",Icon:qn,color:"#2563eb"},queued:{label:"Na fila",Icon:zf,color:"#d97706"},discarded:{label:"Descartado",Icon:qi,color:"#94a3b8"},ineligible:{label:"InelegÃvel",Icon:kb,color:"#dc2626"},missed:{label:"Perdido",Icon:eu,color:"#64748b"},rejected:{label:"Não selecionado",Icon:g1,color:"#9f1239"}},Vi={municipal:"Municipal",state:"Estadual",national:"Nacional",international:"Internacional"},fr={escola:{label:"Escola",Icon:qf},feira_livro:{label:"Feira do Livro",Icon:Cf},biblioteca:{label:"Biblioteca",Icon:Zb},centro_cultural:{label:"Centro Cultural",Icon:Qb},ponto_cultura:{label:"Ponto de Cultura",Icon:mu},ong:{label:"ONG",Icon:Mi},prefeitura:{label:"Prefeitura",Icon:_b},secretaria_cultura:{label:"Secretaria de Cultura",Icon:$b},universidade:{label:"Universidade",Icon:ou},sesc:{label:"SESC",Icon:xt},teatro:{label:"Teatro",Icon:Wa},espaco_independente:{label:"Espaço Independente",Icon:Be}},xu={prospecto:{label:"A prospectar",color:"#d97706"},em_contato:{label:"Em contato",color:"#2563eb"},ativo:{label:"Ativo",color:"#16a34a"},inativo:{label:"Inativo",color:"#94a3b8"},arquivado:{label:"Arquivado",color:"#64748b"}},Gc={contato:{label:"Contato realizado",Icon:Wb},email:{label:"E-mail enviado",Icon:ws},ligacao:{label:"Ligação",Icon:cu},reuniao:{label:"Reunião",Icon:Mi},apresentacao:{label:"Produto apresentado",Icon:p1},interesse:{label:"Interesse futuro",Icon:Bi},outro:{label:"Outro",Icon:Xa}},si={new:{label:"Nova",Icon:c1,color:"#2563eb"},reviewed:{label:"Revisada",Icon:ei,color:"#6b7280"},imported:{label:"Importada",Icon:Mc,color:"#16a34a"},ignored:{label:"Ignorada",Icon:qc,color:"#94a3b8"},duplicate:{label:"Duplicada",Icon:Db,color:"#64748b"}},Kr={instagram:{label:"Instagram",Icon:Ri},google:{label:"Google",Icon:Oi},website:{label:"Site",Icon:Ja},radar:{label:"Radar",Icon:Mn},rss:{label:"RSS",Icon:h1},newsletter:{label:"Newsletter",Icon:ws},pdf:{label:"PDF",Icon:ks},manual:{label:"Manual",Icon:qn}},Yr={gratuito:{label:"Gira Livre"},fundador:{label:"Fundador"},base:{label:"Base"},pro:{label:"Pro"},cortesia:{label:"Cortesia"},interno:{label:"Interno"}},ri={ativa:{label:"Ativa",color:"#16a34a"},pendente:{label:"Pendente",color:"#d97706"},vencida:{label:"Vencida",color:"#dc2626"},cancelada:{label:"Cancelada",color:"#6e7480"},suspensa:{label:"Suspensa",color:"#6e7480"}},ni={pix:{label:"Pix"},cartao:{label:"Cartão"},transferencia:{label:"Transferência"},cortesia:{label:"Cortesia"}},fu={mensal:{label:"Mensal"},anual:{label:"Anual"}},uC={rascunho:{label:"Rascunho",color:"#6b7280",hint:"Só você vê. O link público ainda não abre."},publicada:{label:"Publicada",color:"#16a34a",hint:"O link está no ar e a chamada recebe inscrição no perÃodo."},encerrada:{label:"Encerrada",color:"#b45309",hint:"O prazo venceu; a chamada não recebe mais inscrição."},em_curadoria:{label:"Em curadoria",color:"#2563eb",hint:"Fechada e sendo avaliada. Ninguém de fora vê os pareceres."},resultado:{label:"Resultado",color:"#7c3aed",hint:"O veredito foi divulgado aos inscritos."}},mC={rascunho:{label:"Rascunho",color:"#6b7280"},enviada:{label:"Enviada",color:"#2563eb"},em_analise:{label:"Em análise",color:"#0891b2"},selecionada:{label:"Selecionada",color:"#16a34a"},suplente:{label:"Suplente",color:"#ca8a04"},recusada:{label:"Recusada",color:"#dc2626"},invalida:{label:"Inválida",color:"#7f1d1d"}}
698,pC=["em_analise","selecionada","suplente","recusada","invalida"],hC={organizador:{label:"Organizador",hint:"Configura a chamada, vê tudo e dá o veredito."},curador:{label:"Curador",hint:"Lê as inscrições e dá parecer. Não configura nem decide."},equipe:{label:"Equipe de produção",hint:"Acompanha as inscrições. Não avalia."}},xC={texto_curto:{label:"Texto curto"},texto_longo:{label:"Texto longo"},escolha:{label:"Escolha (uma)"},multipla:{label:"Escolha (várias)"},numero:{label:"Número"},data:{label:"Data"},url:{label:"Link"},arquivo:{label:"Arquivo"},booleano:{label:"Sim / não"},aceite:{label:"Aceite (obrigatório marcar)"}},M1={Painel:"Panel","Visão geral da circulação":"Visión general de la circulación","Meu Perfil":"Mi perfil","Grupo/companhia e dados de contato":"Grupo/compañÃa y datos de contacto",Radar:"Radar","Festivais, editais, mostras e credenciamentos":"Festivales, convocatorias, muestras y acreditaciones","Análise rápida":"Análisis rápido","Análise rápida de edital":"Análisis rápido de convocatoria","Vale a pena? Cole a URL ou o PDF e a IA cruza com o seu trabalho â sem cadastrar":"¿Vale la pena? Pega la URL o el PDF y la IA lo cruza con tu trabajo â sin registrar nada",Edições:"Ediciones","Cada ano de um festival e seu edital":"Cada año de un festival y su convocatoria",Inscrições:"Inscripciones","Sua participação em cada edição":"Tu participación en cada edición",Relatório:"Informe","Relatório de inscrições":"Informe de inscripciones","Como tem sido: quanto você inscreve e quanto emplaca":"Cómo va: cuánto te inscribes y cuánto queda seleccionado",Circuitos:"Circuitos","Locais permanentes de circulação (escolas, bibliotecas, prefeiturasâ¦)":"Espacios permanentes de circulación (escuelas, bibliotecas, ayuntamientosâ¦)",Orçamentos:"Presupuestos","Propostas por grupo/companhia e produto cultural â exporte em PDF no seu computador":"Propuestas por grupo/compañÃa y producto cultural â expórtalas en PDF en tu computadora",Créditos:"Créditos","Saldo, compra via Pix e consumo por serviço":"Saldo, compra por Pix y consumo por servicio",Descobertas:"Hallazgos","Editais e convocatórias coletados automaticamente":"Convocatorias recogidas automáticamente",Assistente:"Asistente","Converse com a IA da Gira para analisar suas oportunidades":"Conversa con la IA de Gira para analizar tus oportunidades",Extensão:"Extensión","Extensão de autofill":"Extensión de autocompletado","A extensão do Chrome que preenche formulários de inscrição":"La extensión de Chrome que rellena formularios de inscripción",Templates:"Plantillas","Templates de site":"Plantillas de sitio","Catálogo de layouts que as companhias podem escolher":"Catálogo de diseños que las compañÃas pueden elegir",Novidades:"Novedades","O que mudou na Gira em cada versão":"Qué cambió en Gira en cada versión",Leads:"Contactos","Quem demonstrou interesse na Gira e ainda não é cliente":"Quienes mostraron interés en Gira y aún no son clientes","Plano 1.000":"Plan 1.000","Plano de crescimento":"Plan de crecimiento","O caminho até 1.000 assinantes, com os números de hoje":"El camino hasta 1.000 suscriptores, con los números de hoy",Vendas:"Ventas","Suas vendas":"Tus ventas","Seu link, quem entrou por ele e a sua comissão":"Tu enlace, quién entró por él y tu comisión",Vendedores:"Vendedores","Vendedores e repasses":"Vendedores y pagos","Quem vende a Gira, com qual percentual, e o que falta repassar":"Quién vende Gira, con qué porcentaje, y qué falta pagar",Assinaturas:"Suscripciones","Quem paga pela Gira, planos e pagamentos recebidos":"Quién paga Gira, planes y pagos recibidos",Usuários:"Usuarios","Contas de acesso e seus papéis":"Cuentas de acceso y sus roles",Permissões:"Permisos","Quais módulos cada papel enxerga":"Qué módulos ve cada rol",Tutoriais:"Tutoriales","VÃdeo e texto de ajuda por módulo":"VÃdeo y texto de ayuda por módulo",Perfis:"Perfiles","Perfis cadastrados na Gira":"Perfiles registrados en Gira","Carregandoâ¦":"Cargandoâ¦","Minha conta":"Mi cuenta",Sair:"Salir",Menu:"Menú","Abrir o menu":"Abrir el menú","Tutorial deste módulo":"Tutorial de este módulo","Rever o tour de apresentação":"Ver de nuevo el tour de presentación","Carregando painelâ¦":"Cargando panelâ¦","Prazos fechando":"Plazos por cerrar","ver o Radar":"ver el Radar",Edital:"Convocatoria",Ver:"Ver","Inscrever-se":"Inscribirse","Acompanhamento de resultados":"Seguimiento de resultados","ver inscrições":"ver inscripciones",Inscrito:"Inscrito","e informe a data de divulgação para acompanhá-la aqui.":"e indica la fecha de publicación para seguirla aquÃ.",Instagram:"Instagram",Site:"Sitio",Inscrição:"Inscripción","Próximos prazos":"Próximos plazos","ver todas":"ver todas","Nenhum prazo futuro.":"Ningún plazo futuro.","Inscrições por status":"Inscripciones por estado","Inscrições por abrangência":"Inscripciones por alcance","Inscrições recentes":"Inscripciones recientes",Festival:"Festival","Produto cultural":"Producto cultural",Status:"Estado","Abrir o edital":"Abrir la convocatoria","Acompanhar no Instagram":"Seguir en Instagram","Abrir o site":"Abrir el sitio","Abrir a inscrição no Gira":"Abrir la inscripción en Gira",Salvar:"Guardar","Salvandoâ¦":"Guardandoâ¦",Cancelar:"Cancelar",Excluir:"Eliminar",Editar:"Editar",Novo:"Nuevo",Nova:"Nueva",Voltar:"Volver",Buscar:"Buscar",Filtrar:"Filtrar",Carregando:"Cargando","Nenhum resultado.":"Ningún resultado.",Sim
698:"SÃ",Não:"No",Nome:"Nombre",Cidade:"Ciudad",Estado:"Estado",PaÃs:"PaÃs","E-mail":"Correo electrónico",Telefone:"Teléfono",Descrição:"Descripción",Fotos:"Fotos",Oficinas:"Talleres","Ações culturais":"Acciones culturales",Galeria:"GalerÃa",Contato:"Contacto",Portfólio:"Portafolio","Livro de vendas":"Libro de ventas",Gerar:"Generar",Baixar:"Descargar","Ver o site":"Ver el sitio",Perfil:"Perfil",Local:"Lugar",Linguagem:"Lenguaje",Cadastro:"Registro",Ações:"Acciones","Site â":"Sitio â","Produtos culturais":"Productos culturales",Carreira:"Trayectoria",Depoimentos:"Testimonios",corrigir:"corregir",opcional:"opcional","Nada pendente por aqui.":"Nada pendiente por aquÃ.","Conferindo o que já está prontoâ¦":"Revisando lo que ya está listoâ¦","Para o livro sair, ainda falta:":"Para que salga el libro, todavÃa falta:","Tudo pronto para gerar.":"Todo listo para generar.","Abrir livro â":"Abrir libro â","Artista solo":"Artista solista","Grupo / coletivo":"Grupo / colectivo","FÃsica (CPF)":"Persona fÃsica (CPF)","JurÃdica (CNPJ)":"Persona jurÃdica (CNPJ)",senha:"contraseña","Perfil público (site)":"Perfil público (sitio)","Abrir site â":"Abrir sitio â",Compartilhar:"Compartir","Compartilhar site":"Compartir sitio","QR code do site":"Código QR del sitio","Imprima no banner, na filipeta ou no cartaz: quem apontar a câmera do celular cai no seu site. O código continua valendo se você trocar o endereço.":"ImprÃmelo en el banner, el volante o el cartel: quien apunte la cámara del celular llega a tu sitio. El código sigue funcionando si cambias la dirección.","Copiar link":"Copiar enlace","Link copiado":"Enlace copiado","Idiomas do site":"Idiomas del sitio","Identidade visual":"Identidad visual",Padrão:"Predeterminado","Representada pela Gira":"Representada por Gira",Claro:"Claro",Escuro:"Oscuro","Inteligência artificial":"Inteligencia artificial","Sem ela cadastrada, os recursos de IA ficam indisponÃveis":"Sin ella registrada, las funciones de IA quedan no disponibles","Como gerar a minha chave do Gemini (leva 2 minutos)":"Cómo generar mi clave de Gemini (toma 2 minutos)","Aceite os termos do Google AI Studio, se ele pedir.":"Acepta los términos de Google AI Studio, si te los pide.","Clique em":"Haz clic en","Criar chave de API":"Crear clave de API","Copie a chave gerada. Ela começa com":"Copia la clave generada. Empieza con","Cole no campo acima e salve o perfil.":"Pégala en el campo de arriba y guarda el perfil.","Dados jurÃdicos (privado)":"Datos legales (privado)","Para inscrições e contratos. Nunca aparecem no site público.":"Para inscripciones y contratos. Nunca aparecen en el sitio público.","Salve o perfil primeiro â o livro precisa de um cadastro.":"Guarda el perfil primero â el libro necesita un registro.","Portfólio PDF":"Portafolio PDF","Abrir portfólio â":"Abrir portafolio â","O que já disseram do seu trabalho â vai para o book e para o site":"Lo que ya dijeron de tu trabajo â va al libro y al sitio","Seções do cadastro":"Secciones del registro","Nome artÃstico":"Nombre artÃstico","Nome completo":"Nombre completo","Grupo / companhia":"Grupo / compañÃa","Tipo de perfil":"Tipo de perfil","Linguagens que quero ver no Radar":"Lenguajes que quiero ver en el Radar",Pessoa:"Persona",Nacionalidade:"Nacionalidad","Ex.: Argentina":"Ej.: Argentina","CNPJ / CPF":"CNPJ / CPF","Cachê médio":"Caché medio","Endereço na Gira":"Dirección en Gira",SubtÃtulo:"SubtÃtulo",DRT:"DRT","Foto de perfil":"Foto de perfil",Resumo:"Resumen","Mini-CV":"Mini-CV","Histórico do grupo":"Trayectoria del grupo",Destaques:"Destacados","Mestres e formadores":"Maestros y formadores",YouTube:"YouTube",Facebook:"Facebook",TikTok:"TikTok",Logotipo:"Logotipo","Cor primária":"Color primario","Cor secundária":"Color secundario","Cor de destaque":"Color de acento","Template do site":"Plantilla del sitio","Elenco da Gira":"Elenco de Gira","Fundo do site":"Fondo del sitio","Chave do Gemini":"Clave de Gemini","Razão social":"Razón social",CNPJ:"CNPJ",CPF:"CPF",RG:"RG","Nome da mãe":"Nombre de la madre",Endereço:"Dirección",Pix:"Pix",Banco:"Banco",Agência:"Agencia",Conta:"Cuenta","Fotos do artista":"Fotos del artista",Certificados:"Certificados",Imprensa:"Prensa","SubtÃtulo, sinopse, release e premiação são escritos por idioma.":"El subtÃtulo, la sinopsis, el release y los premios se escriben por idioma.",Publicar:"Publicar",Destaque:"Destacado","Ficha técnica / rider":"Ficha técnica / rider","Reaproveitado no preenchimento de editais e no rider gerado.":"Se reutiliza al rellenar convocatorias y en el rider generado.","Luz geral branca":"Luz general blanca","Geral + contraluz":"General + contraluz","Estados / deixas (com operador)":"Estados / pies de luz (con operador)",Ãgua:"Agua",Fogo:"Fuego","Documentos técnicos (PDF)":"Documentos técnicos (PDF)","Abrir rider â":"Abrir rider â","Abrir croqui â":"Abrir croquis â","Abrir mapa de luz â":"Abrir plano de luces â","Abrir roteiro musical â":"Abrir guion musical â","E-mail de apresentação":"Correo de presentación","Copiado!":"¡Copiado!",Tipo:"Tipo",Publicação:"Publicación","Duração (min)":"Duración (min)",Classificação:"Clasificación",Sinopse:"Sinopsis","Release / histórico":"Release / historial",Premiação:"Premios","Trilha sonora":"Banda sonora","VÃdeo integral":"VÃdeo completo","VÃdeo teaser":"VÃdeo teaser","Montagem (min)":"Montaje (min)","Desmontagem (min)":"Desmontaje (min)","Espaço cênico mÃnimo":"Espacio escénico mÃnimo","Adequa a espaços alternativos?":"¿Se adapta a espacios alternativos?","Rider de som":"Rider de sonido","Rider de luz":"Rider de luces","Elementos de cenário":"Elementos de escenografÃa","Outras necessidades":"Otras necesidades","Peso do equipamento":"Peso del equipo",Energia:"EnergÃa","Transporte do cenário":"Trans
698porte de la escenografÃa","Desenho de luz (mapa)":"Diseño de luces (plano)","Ãgua / fogo em cena":"Agua / fuego en escena","Rider completo (texto/link)":"Rider completo (texto/enlace)","Fotos em alta (.zip)":"Fotos en alta resolución (.zip)","Crédito das fotos":"Crédito de las fotos","Fotos do produto cultural":"Fotos del producto cultural","Público-alvo, sinopse e objetivos são escritos por idioma.":"El público objetivo, la sinopsis y los objetivos se escriben por idioma.",TÃtulo:"TÃtulo",Duração:"Duración","Público-alvo":"Público objetivo",Facilitador:"Facilitador",Objetivos:"Objetivos","Fotos da oficina":"Fotos del taller","sem foto":"sin foto","Enviandoâ¦":"Enviandoâ¦",Remover:"Quitar","use #RRGGBB":"usa #RRGGBB",Limpar:"Limpiar",Centro:"Centro","Nenhuma imagem ainda.":"Ninguna imagen todavÃa.",capa:"portada","tornar capa":"poner de portada","Fora do livro":"Fuera del libro",Total:"Total",Fechar:"Cerrar","Escolher cor":"Elegir color","Onde fica o rosto nesta foto":"Dónde está el rostro en esta foto","Descrição da foto":"Descripción de la foto","Aparece embaixo da foto no site, quando ela abre grande":"Aparece debajo de la foto en el sitio, cuando se abre grande","Crédito · fotógrafo":"Crédito · fotógrafo/a","Crédito do fotógrafo":"Crédito del fotógrafo/a","Escolha a UF primeiro":"Elige primero el estado","Digite a cidade":"Escribe la ciudad","Limpar cidade":"Borrar la ciudad","Digite o nome da cidade":"Escribe el nombre de la ciudad",Entrar:"Entrar","Acesse o painel da Gira.":"Entra al panel de Gira.","Esqueci minha senha":"Olvidé mi contraseña",Senha:"Contraseña","Entrandoâ¦":"Entrandoâ¦","[email protected]":"[email protected]","Todas as naturezas":"Todas las naturalezas",Tabela:"Tabla",Mapa:"Mapa",Adicionar:"Añadir","filtrando pelas linguagens do seu perfil":"filtrando por los lenguajes de tu perfil",Oportunidade:"Oportunidad","Cidade/UF":"Ciudad/Provincia",Abrangência:"Alcance",PrestÃgio:"Prestigio",Prazo:"Plazo","Prazo encerrado":"Plazo cerrado","Todas as companhias":"Todas las compañÃas","Edições / editais deste festival":"Ediciones / convocatorias de este festival","Cada ano do festival e seu edital.":"Cada año del festival y su convocatoria.","Nenhuma edição cadastrada ainda.":"Ninguna edición registrada todavÃa.","Ano / edição":"Año / edición",Resultado:"Resultado","Buscar por nomeâ¦":"Buscar por nombreâ¦","Natureza da oportunidade":"Naturaleza de la oportunidad","Forma de ver":"Forma de ver",Natureza:"Naturaleza",Organização:"Organización",Linguagens:"Lenguajes","PrestÃgio (1-5)":"Prestigio (1-5)",Recorrência:"Periodicidad","Mês usual":"Mes habitual","Link da bio (linktree/form)":"Enlace de la bio (linktree/form)","linktr.ee/⦠ou forms.gle/⦠â o radar monitora este link":"linktr.ee/⦠o forms.gle/⦠â el radar vigila este enlace","Notas de radar":"Notas de radar","Exibir para":"Mostrar a","Link da bio":"Enlace de la bio","Aguardando resultado":"Esperando resultado","Todos os status":"Todos los estados",Arquivadas:"Archivadas",Edição:"Edición",Cachê:"Caché",Prioridade:"Prioridad","Você abriu o formulário de":"Abriste el formulario de",Enviei:"Ya la envié","Ainda não":"TodavÃa no","Dados da inscrição":"Datos de la inscripción","enviandoâ¦":"enviandoâ¦",apagar:"borrar","salve a inscrição primeiro":"guarda la inscripción primero","editar na edição â":"editar en la edición â","Documentos da pasta":"Documentos de la carpeta","Inscrições enviadas que ainda aguardam o resultado":"Inscripciones enviadas que aún esperan resultado","Buscar festival, edição ou produtoâ¦":"Buscar festival, edición o productoâ¦","documentos na pasta":"documentos en la carpeta","Prazo de inscrição":"Plazo de inscripción","Data do resultado":"Fecha del resultado","Data da inscrição":"Fecha de la inscripción","Inscrito por":"Inscrito por","O edital cobre":"La convocatoria cubre",Elegibilidade:"Elegibilidad","Próximo passo":"Siguiente paso",Observações:"Observaciones","Link do edital":"Enlace de la convocatoria","Link de inscrição (pública)":"Enlace de inscripción (pública)","Ano da nova edição":"Año de la nueva edición","Comprovante da inscrição":"Comprobante de la inscripción",Ano:"Año","Edição (rótulo)":"Edición (etiqueta)","PerÃodo do festival":"Periodo del festival","Divulgação do resultado":"Publicación del resultado","Link do edital (PDF)":"Enlace de la convocatoria (PDF)","Link do formulário de inscrição":"Enlace del formulario de inscripción","Link dos anexos":"Enlace de los anexos",Confirmado:"Confirmado",Viável:"Viable","Na fila":"En cola",Descartado:"Descartado",InelegÃvel:"No elegible",Perdido:"Perdido","Não selecionado":"No seleccionado",Municipal:"Municipal",Estadual:"Provincial / estatal",Nacional:"Nacional",Internacional:"Internacional","Festival ou mostra":"Festival o muestra","Edital público":"Convocatoria pública",Prêmio:"Premio",Credenciamento:"Acreditación",Re
698sidência:"Residencia",Outra:"Otra",Outro:"Otro",Circo:"Circo",Teatro:"Teatro",Dança:"Danza","Hip hop":"Hip hop",Música:"Música",Performance:"Performance","Artes visuais":"Artes visuales",Grafite:"Grafiti",Literatura:"Literatura",Audiovisual:"Audiovisual","Projetos educativos":"Proyectos educativos",Multilinguagem:"Multilenguaje","Show musical":"Concierto",Intervenção:"Intervención",Exposição:"Exposición","Mural / grafite":"Mural / grafiti",Projeto:"Proyecto","~ da busca":"~ de la búsqueda","â confirmado":"â confirmado",Gratuito:"Gratis",Manual:"Manual","Onde você está agora â atualize sempre que mudar de cidade.":"Dónde estás ahora â actualÃzalo cada vez que cambies de ciudad.","Informado em":"Informado el","Análise do edital":"Análisis de la convocatoria"},R1={Painel:"Dashboard","Visão geral da circulação":"Overview of your touring","Meu Perfil":"My profile","Grupo/companhia e dados de contato":"Group/company and contact details",Radar:"Radar","Festivais, editais, mostras e credenciamentos":"Festivals, open calls, showcases and accreditations","Análise rápida":"Quick check","Análise rápida de edital":"Quick check of an open call","Vale a pena? Cole a URL ou o PDF e a IA cruza com o seu trabalho â sem cadastrar":"Worth it? Paste the URL or the PDF and the AI matches it against your work â nothing to register",Edições:"Editions","Cada ano de um festival e seu edital":"Each year of a festival and its open call",Inscrições:"Applications","Sua participação em cada edição":"Your participation in each edition",Relatório:"Report","Relatório de inscrições":"Applications report","Como tem sido: quanto você inscreve e quanto emplaca":"How it is going: how much you apply for and how much you land",Circuitos:"Circuits","Locais permanentes de circulação (escolas, bibliotecas, prefeiturasâ¦)":"Permanent touring venues (schools, libraries, city hallsâ¦)",Orçamentos:"Quotes","Propostas por grupo/companhia e produto cultural â exporte em PDF no seu computador":"Proposals by group/company and cultural product â export them as PDF on your computer",Créditos:"Credits","Saldo, compra via Pix e consumo por serviço":"Balance, Pix top-up and usage by service",Descobertas:"Discoveries","Editais e convocatórias coletados automaticamente":"Open calls collected automatically",Assistente:"Assistant","Converse com a IA da Gira para analisar suas oportunidades":"Talk to Gira's AI to analyse your opportunities",Extensão:"Extension","Extensão de autofill":"Autofill extension","A extensão do Chrome que preenche formulários de inscrição":"The Chrome extension that fills in application forms",Templates:"Templates","Templates de site":"Website templates","Catálogo de layouts que as companhias podem escolher":"Catalogue of layouts companies can choose from",Novidades:"What's new","O que mudou na Gira em cada versão":"What changed in Gira in each version",Leads:"Leads","Quem demonstrou interesse na Gira e ainda não é cliente":"Who showed interest in Gira and is not a customer yet","Plano 1.000":"Plan 1,000","Plano de crescimento":"Growth plan","O caminho até 1.000 assinantes, com os números de hoje":"The road to 1,000 subscribers, with today's numbers",Vendas:"Sales","Suas vendas":"Your sales","Seu link, quem entrou por ele e a sua comissão":"Your link, who signed up through it and your commission",Vendedores:"Sellers","Vendedores e repasses":"Sellers and payouts","Quem vende a Gira, com qual percentual, e o que falta repassar":"Who sells Gira, at what percentage, and what is still owed",Assinaturas:"Subscriptions","Quem paga pela Gira, planos e pagamentos recebidos":"Who pays for Gira, plans and payments received",Usuários:"Users","Contas de acesso e seus papéis":"Access accounts and their roles",Permissões:"Permissions","Quais módulos cada papel enxerga":"Which modules each role sees",Tutoriais:"Tutorials","VÃdeo e texto de ajuda por módulo":"Help video and text by module",Perfis:"Profiles","Perfis cadastrados na Gira":"Profiles registered in Gira","Carregandoâ¦":"Loadingâ¦","Minha conta":"My account",
698Sair:"Sign out",Menu:"Menu","Abrir o menu":"Open the menu","Tutorial deste módulo":"Tutorial for this module","Rever o tour de apresentação":"Replay the intro tour","Carregando painelâ¦":"Loading dashboardâ¦","Prazos fechando":"Deadlines closing","ver o Radar":"see the Radar",Edital:"Open call",Ver:"View","Inscrever-se":"Apply","Acompanhamento de resultados":"Tracking results","ver inscrições":"see applications",Inscrito:"Applied","e informe a data de divulgação para acompanhá-la aqui.":"and set the announcement date to track it here.",Instagram:"Instagram",Site:"Website",Inscrição:"Application","Próximos prazos":"Upcoming deadlines","ver todas":"see all","Nenhum prazo futuro.":"No upcoming deadlines.","Inscrições por status":"Applications by status","Inscrições por abrangência":"Applications by scope","Inscrições recentes":"Recent applications",Festival:"Festival","Produto cultural":"Cultural product",Status:"Status","Abrir o edital":"Open the call","Acompanhar no Instagram":"Follow on Instagram","Abrir o site":"Open the website","Abrir a inscrição no Gira":"Open the application in Gira",Salvar:"Save","Salvandoâ¦":"Savingâ¦",Cancelar:"Cancel",Excluir:"Delete",Editar:"Edit",Novo:"New",Nova:"New",Voltar:"Back",Buscar:"Search",Filtrar:"Filter",Carregando:"Loading","Nenhum resultado.":"No results.",Sim:"Yes",Não:"No",Nome:"Name",Cidade:"City",Estado:"State",PaÃs:"Country","E-mail":"E-mail",Telefone:"Phone",Descrição:"Description",Fotos:"Photos","Produtos culturais":"Cultural products","Descrição da foto":"Photo description","Aparece embaixo da foto no site, quando ela abre grande":"Shown under the photo on the site, when it opens full screen",Oficinas:"Workshops","Ações culturais":"Cultural actions",Galeria:"Gallery",Contato:"Contact",Portfólio:"Portfolio","Livro de vendas":"Sales book",Gerar:"Generate",Baixar:"Download","Ver o site":"View the website",Compartilhar:"Share","Compartilhar site":"Share site","QR code do site":"QR code for the site","Imprima no banner, na filipeta ou no cartaz: quem apontar a câmera do celular cai no seu site. O código continua valendo se você trocar o endereço.":"Print it on a banner, flyer or poster: anyone who points a phone camera at it lands on your site. The code keeps working if you change the address.","Copiar link":"Copy link","Link copiado":"Link copied","Onde você está agora â atualize sempre que mudar de cidade.":"Where you are now â update it whenever you move city.","Informado em":"Set on","Análise do edital":"Open-call analysis"},F1=[{code:"pt",label:"Português",flag:"BR"},{code:"es",label:"Español",flag:"ES"},{code:"en",label:"English",flag:"EN"}],Vc={pt:{},es:M1,en:R1},Uc="gira.lang";function O1(){try{const a=new URLSearchParams(location.search).get("lang");if(a&&Vc[a]){try{localStorage.setItem(Uc,a)}catch{}return a}}catch{}try{const a=localStorage.getItem(Uc);if(a&&Vc[a])return a}catch{}const e=(navigator.language||"pt").slice(0,2).toLowerCase();return e==="es"||e==="en"?e:"pt"}function Wf(e,a,s){let n=(Vc[e]||{})[a]??a;if(s)for(const[o,i]of Object.entries(s))n=n.split(`{${o}}`).join(String(i));return n}const gu=O.createContext({lang:"pt",setLang:()=>{},t:(e,a)=>Wf("pt",e,a)});function D1({children:e}){const[a,s]=O.useState(()=>O1()),r=O.useCallback(o=>{s(o);try{localStorage.setItem(Uc,o)}catch{}document.documentElement.lang=o},[]);O.useEffect(()=>{document.documentElement.lang=a},[a]);const n=O.useMemo(()=>({lang:a,setLang:r,t:(o,i)=>Wf(a,o,i)}),[a,r]);return t.jsx(gu.Provider,{value:n,children:e})}function vu(){return O.useContext(gu)}function Z(){return O.useContext(gu).t}function B1({className:e=""}){const{lang:a,setLang:s}=vu();return t.jsx("div",{className:`flex items-center gap-1 ${e}`,children:F1.map(r=>t.jsx("button",{type:"button",onClick:()=>s(r.code),title:r.label,"aria-pressed":a===r.code,className:`px-2 py-1 rounded text-xs font-semibold transition ${a===r.code?"bg-slate-900 text-white":"text-slate-500 hover:bg-slate-100"}`,children:r.flag},r.code))})}function Ui(){const{lang:e}=vu();return function(s,r){var i,c;if(!s)return"";const n=e==="pt"||(c=(i=s.i18n)==null?void 0:i[e])==null?void 0:c[r],o=s[r];
698return n||(typeof o=="string"?o:"")||""}}function D(e,a=[]){const[s,r]=y.useState(null),[n,o]=y.useState(null),[i,c]=y.useState(!0),[l,d]=y.useState(0);return y.useEffect(()=>{let u=!0;return c(!0),e().then(h=>u&&(r(h),o(null))).catch(h=>u&&o(String(h.message||h))).finally(()=>u&&c(!1)),()=>{u=!1}},[...a,l]),{data:s,error:n,loading:i,reload:()=>d(u=>u+1)}}function oi({status:e}){const a=Z(),s=qe[e];return t.jsxs("span",{className:"badge",style:{background:s.color},children:[t.jsx(s.Icon,{size:13,strokeWidth:2.2}),a(s.label)]})}function Hf({reach:e}){const a=Z();return e?t.jsx("span",{className:"badge-soft",children:a(Vi[e])}):t.jsx("span",{className:"muted",children:"â"})}function or({n:e}){return e?t.jsx("span",{className:"stars",title:`${e}/5`,children:[1,2,3,4,5].map(a=>t.jsx(Bi,{size:13,strokeWidth:2,className:a<=e?"on":"off"},a))}):t.jsx("span",{className:"muted",children:"â"})}function Rn({title:e,onClose:a,children:s,wide:r}){const n=Z();return y.useEffect(()=>{const o=i=>i.key==="Escape"&&a();return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[a]),t.jsx("div",{className:"modal-backdrop",onClick:a,children:t.jsxs("div",{className:`modal ${r?"modal-wide":""}`,onClick:o=>o.stopPropagation(),children:[t.jsxs("header",{className:"modal-head",children:[t.jsx("h3",{children:e}),t.jsx("button",{className:"icon-btn",onClick:a,"aria-label":n("Fechar"),children:t.jsx(tt,{size:16,strokeWidth:2.2})})]}),t.jsx("div",{className:"modal-body",children:s})]})})}function S({label:e,children:a,full:s,hint:r}){return t.jsxs("label",{className:`field ${s?"field-full":""}`,children:[t.jsx("span",{children:e}),a,r&&t.jsx("small",{className:"field-hint",style:{display:"block",marginTop:4,fontSize:"0.8em",fontStyle:"italic",opacity:.7,lineHeight:1.35},children:r})]})}function ke({label:e,value:a,full:s}){return t.jsx(S,{label:e,full:s,children:t.jsx("div",{className:"ro-value",style:{padding:"6px 0",minHeight:20},children:a==null||a===""?t.jsx("span",{className:"muted",children:"â"}):a})})}function He(e){if(!e)return null;const a=e.trim();if(!a)return null;if(/^(https?:|mailto:|tel:)/i.test(a)||/^\/[^/\s]/.test(a))return a;const s=a.match(/[\w.+-]+@[\w-]+\.[\w.-]+/);return s?`mailto:${s[0]}`:!/\s/.test(a)&&(/^www\./i.test(a)||/^[\w-]+(\.[\w-]+)+/.test(a))?`https://${a}`:null}function Ks({url:e}){const a=He(e);return e?a?t.jsxs("a",{href:a,target:"_blank",rel:"noreferrer",className:"link",children:[e," â"]}):t.jsx("span",{className:"muted",children:e}):null}function Wc({value:e,onChange:a,hint:s,artistId:r}){const n=Z(),[o,i]=y.useState(!1),[c,l]=y.useState(null);async function d(u){var m;const h=(m=u.target.files)==null?void 0:m[0];if(u.target.value="",!!h){i(!0),l(null);try{const f=await ba.uploadImage(h,r);a(f.web_url)}catch(f){l(String(f.message))}finally{i(!1)}}}return t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[e?t.jsx("img",{src:e,alt:"prévia",style:{width:72,height:72,objectFit:"cover",borderRadius:10,border:"1px solid rgb(var(--line))"}}):t.jsx("div",{style:{width:72,height:72,display:"grid",placeItems:"center",borderRadius:10,border:"1px dashed rgb(var(--line))",color:"rgb(var(--muted))",fontSize:11},children:n("sem foto")}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("input",{type:"file",accept:"image/*",onChange:d,disabled:o}),t.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[o&&t.jsx("span",{className:"muted",style:{fontSize:12},children:n("Enviandoâ¦")}),e&&!o&&t.jsx("button",{type:"button",className:"link",onClick:()=>a(null),children:n("Remover")})]}),s&&t.jsx("small",{style:{fontSize:"0.8em",fontStyle:"italic",opacity:.7},children:s}),c&&t.jsx("small",{style:{color:"rgb(var(--danger))"},children:c})]})]})}function _l({value:e,onChange:a}){const s=Z(),r=e??"",n=/^#[0-9a-fA-F]{6}$/.test(r);return t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[t.jsx("input",{type:"color","aria-label":s("Escolher cor"),value:n?r:"#000000",onChange:o=>a(o.target.value),style:{width:44,height:34,padding:2,border:"1px solid rgb(var(--line))",borderRadius:8,background:"none",cursor:"pointer"}}),t.jsx("input",{type:"text",value:r,placeholder:"#RRGGBB",spell
698Check:!1,onChange:o=>{const i=o.target.value.trim();a(i===""?null:i)},style:{width:130,fontFamily:"monospace",textTransform:"uppercase"}}),r&&!n&&t.jsx("small",{style:{color:"rgb(var(--danger))"},children:s("use #RRGGBB")}),r&&t.jsx("button",{type:"button",className:"link",onClick:()=>a(null),children:s("Limpar")})]})}const ip=15*1024*1024,lp=e=>Math.round(e/(1024*1024));function G1(e){const a=String((e==null?void 0:e.message)??e);return/failed to fetch|networkerror|load failed/i.test(a)?"o envio foi interrompido antes de terminar (conexão instável). Tente de novo â o que já subiu está na lista":a}function V1(e){return!e.width||!e.height?!0:e.width>=2e3&&e.width>e.height}function U1({asset:e,onClose:a,onSalvo:s}){const r=Z(),[n,o]=y.useState(e.focal_x??.5),[i,c]=y.useState(e.focal_y??.5),[l,d]=y.useState(!1),[u,h]=y.useState(null),m=`${(n*100).toFixed(1)}% ${(i*100).toFixed(1)}%`;function f(b){const p=b.currentTarget.getBoundingClientRect(),x=j=>Math.min(1,Math.max(0,j));o(x((b.clientX-p.left)/p.width)),c(x((b.clientY-p.top)/p.height))}async function v(){d(!0),h(null);try{await ba.update(e.id,{focal_x:Number(n.toFixed(4)),focal_y:Number(i.toFixed(4))}),s(),a()}catch(b){h(String(b.message)),d(!1)}}const g=(b,p)=>t.jsxs("figure",{style:{margin:0},children:[t.jsx("div",{style:{height:132,aspectRatio:b,backgroundImage:`url(${e.url})`,backgroundSize:"cover",backgroundPosition:m,borderRadius:8,border:"1px solid rgb(var(--line))"}}),t.jsx("figcaption",{className:"muted",style:{fontSize:11,marginTop:4},children:p})]});return t.jsxs(Rn,{title:r("Onde fica o rosto nesta foto"),onClose:a,wide:!0,children:[t.jsx("p",{className:"sub",style:{marginTop:0},children:"Clique no ponto que não pode ser cortado â o rosto, quase sempre. O livro de vendas corta a foto para caber na página e usa este ponto como âncora."}),t.jsxs("div",{onClick:f,style:{position:"relative",cursor:"crosshair",lineHeight:0},children:[t.jsx("img",{src:e.url,alt:e.title??"",style:{width:"100%",borderRadius:10,display:"block"}}),t.jsx("span",{style:{position:"absolute",left:`${n*100}%`,top:`${i*100}%`,width:22,height:22,marginLeft:-11,marginTop:-11,borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 0 2px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.35)",pointerEvents:"none"}})]}),t.jsxs("div",{style:{display:"flex",gap:12,marginTop:14,alignItems:"flex-start"},children:[g("16 / 9","Como sai na página inteira"),g("169 / 178","Como sai em meia página")]}),!V1(e)&&t.jsxs("p",{className:"sub",style:{marginTop:10},children:["Esta foto tem ",e.width,"Ã",e.height,"px. O livro só usa em página inteira quem for deitada e tiver 2000px ou mais de largura â esta vai entrar em espaços menores."]}),u&&t.jsx("p",{className:"error",children:u}),t.jsxs("footer",{className:"modal-foot",style:{marginTop:16},children:[t.jsx("button",{className:"btn",onClick:()=>{o(.5),c(.5)},disabled:l,children:r("Centro")}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:a,disabled:l,children:r("Cancelar")}),t.jsx("button",{className:"btn primary",onClick:v,disabled:l,children:l?"Salvandoâ¦":"Salvar ponto"})]})]})}function Ea({scope:e,kind:a,label:s,hint:r,cover:n,book:o,markOnly:i,hideIfEmpty:c,onBookChange:l}){const d=Z(),u=D(()=>ba.list({...e,kind:a}),[e.artistId,e.showId,e.oficinaId,a]),[h,m]=y.useState(!1),[f,v]=y.useState(null),[g,b]=y.useState(null),p=u.data??[],x=p.filter(z=>z.book_role).length,j=c&&!u.loading&&p.length===0;async function k(z){const P=Array.from(z.target.files??[]);if(z.target.value="",!P.length)return;m(!0),v(null);const w=[];let L=0;for(const H of P){if(H.size>ip){w.push(`${H.name} â ${lp(H.size)} MB, acima do limite de ${lp(ip)} MB`);continue}try{await ba.uploadAsset(H,{...e,kind:a}),L++}catch(re){w.push(`${H.name} â ${G1(re)}`)}}if(u.reload(),m(!1),!w.length)return;const $=L>0?`${L} de ${P.length} ${P.length===1?"foto enviada":"fotos enviadas"}. Não foi possÃvel enviar:`:P.length===1?"Não foi possÃvel enviar:":"Nenhuma foto foi enviada:";v(`${$} ${w.join("; ")}`)}async function N(z){if(confirm("Excluir esta imagem?"))try{await ba.remove(z.id),u.reload()}catch(P){v(String(P.message))}}async function C(z){try{await ba.setCover(z.id),u.reload()}catch(P){v(String(P.message))}}async function _(z,P){try{await ba.update(z.id,{book_role:P}),u.reload(),l==null||l()}catch(w){v(String(w.message))}}async function A(z,P,w){const L=w.trim();if(L!==(z[P]??""))try{await ba.update(z.id,{[P]:L||null}),u.reload()}catch($){v(String($.message))}}return j?null:t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsxs("div",{className:"card-head",children:[t.jsxs("div",{children:[t.jsx("h3",{children:s}),r&&t.jsx("p",{className:"sub",children:r}),o&&p.length>0&&t.jsx("p",{className:"sub",children:x===0?"Nenhuma foto marcada para o livro de vendas.":`${x} de ${p.length} ${x===1?"marcada":"marcadas"} para o livro de vendas.`})]}),!i&&t.jsxs("label",{className:"btn",children:[h?"Enviandoâ¦":"+ Adicionar",t.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:k,disabled:h,style:{display:"none"}})]})]}),f&&t.jsx("p",{className:"error",children:f}),p.length===0?t.jsx("p",{className:"muted",children:d("Nenhuma imagem ainda.")}):t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:12},children:p.map(z=>{var P;return t.jsxs("div",{children:[t.jsxs("div",{style:{position:"relative"},children:[t.jsx("img",{src:z.url,alt:z.title??"",style:{width:"100%",aspectRatio:"1 / 1",objectFit:"cover",borderRadius:10,border:z.is_cover||o&&z.book_role?"2px solid rgb(var(--brand))":"1px solid rgb(var(--line))",opacity:o&&!z.book_role?.55:1}}),o&&t.jsx("button",{className:"btn",onClick:()=>_(z,z.book_role?null:"sim"),title:z.book_role?"Tirar do livro de vendas":"Usar esta foto no livro de vendas (PDF de venda)",style:{position:"absolute",top:6,left:6,padding:"4px 6px",fontSize:12,background:z.book_role?"rgb(var(--brand))":void 0,color:z.book_role?"rgb(var(--bg))":void 0},"aria-pressed":!!z.book_role,children:t.jsx(Cf,{size:13,strokeWidth:2.2})}),!i&&t.jsx("button",{className:"btn danger",onClick:()=>N(z),title:d("Excluir"),style:{position:"absolute",top:6,right:6,padding:"4px 6px",fontSize:12},children:t.jsx(tt,{size:13,strokeWidth:2.2})}),n&&(z.is_cover?t.jsx("span",{className:"badge",style:{position:"absolute",bottom:6,left:6,background:"rgb(var(--brand))",color:"rgb(var(--bg))"},children:d("capa")}):t.jsx("button",{className:"btn",onClick:()=>C(z),style:{position:"absolute",bottom:6,left:6,padding:"2px 8px",fontSize:11},children:d("tornar capa")}))]}),o&&(z.book_role?t.jsxs("div",{style:{display:"flex",gap:4,marginTop:6},children:[t.jsx("select",{value:z.book_role,onChange:w=>_(z,w.target.value),title:(P=op[z.book_role])==null?void 0:P.onde,style:{flex:1,fontSize:12,padding:"4px 6px",minWidth:0},children:Object.entries(op).map(([w,L])=>t.jsx("option",{value:w,children:L.rotulo},w))}),t.jsx("button",{className:"btn",onClick:()=>b(z),title:"Marcar onde fica o rosto â o livro corta a foto e usa este ponto como âncora",style:{padding:"4px 6px"},children:t.jsx(Mb,{size:13,strokeWidth:2.2})})]}):t.jsx("p",{className:"muted",style:{margin:"6px 0 0",fontSize:12,lineHeight:"26px"},children:d("Fora do livro")})),(a==="galeria"||a==="foto")&&t.jsxs(t.Fragment,{children:[t.jsx("textarea",{defaultValue:z.caption??"",placeholder:d("Descrição da foto"),title:d("Aparece embaixo da foto no site, quando ela abre grande"),rows:2,onBlur:w=>A(z,"caption",w.target.value),style:{marginTop:6,width:"100%",fontSize:12,padding:"4px 6px",resize:"vertical",minHeight:44}}),t.jsx("input",{defaultValue:z.credit??"",placeholder:d("Crédito · fotógrafo"),title:d("Crédito do fotógrafo"),onBlur:w=>A(z,"credit",w.target.value),style:{marginTop:4,width:"100%",fontSize:12,padding:"4px 6px"}})]})]},z.id)})}),g&&t.jsx(U1,{asset:g,onClose:()=>b(null),onSalvo:()=>u.reload()})]})}
698function Re({title:e,backTo:a,children:s,actions:r}){return t.jsxs("div",{className:"form-page",children:[t.jsx(U,{to:a,className:"back-link",children:"â¹ Voltar"}),t.jsxs("div",{className:"card",children:[t.jsxs("div",{className:"form-page-head",children:[t.jsx("h2",{className:"form-title",children:e}),r&&t.jsx("div",{className:"form-page-actions",children:r})]}),s]})]})}const W1=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],Sl=new Map;function H1(e){const[a,s]=y.useState(()=>({lista:e?Sl.get(e.toUpperCase())??[]:[],carregando:!1,falhou:!1}));return y.useEffect(()=>{if(!e)return s({lista:[],carregando:!1,falhou:!1});const r=e.toUpperCase(),n=Sl.get(r);if(n)return s({lista:n,carregando:!1,falhou:!1});let o=!0;return s({lista:[],carregando:!0,falhou:!1}),fetch(`https://servicodados.ibge.gov.br/api/v1/localidades/estados/${r}/municipios?orderBy=nome`).then(i=>i.ok?i.json():Promise.reject(new Error(String(i.status)))).then(i=>{const c=i.map(l=>l.nome);Sl.set(r,c),o&&s({lista:c,carregando:!1,falhou:!1})}).catch(()=>o&&s({lista:[],carregando:!1,falhou:!0})),()=>{o=!1}},[e]),a}function cp(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}function Q1({uf:e,city:a,onPick:s}){const r=Z(),{lista:n,carregando:o,falhou:i}=H1(e),[c,l]=y.useState(!1),[d,u]=y.useState(""),[h,m]=y.useState(0),f=y.useRef(null);y.useEffect(()=>{const b=p=>{f.current&&!f.current.contains(p.target)&&l(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const v=y.useMemo(()=>{const b=cp(d);return(b?n.filter(x=>cp(x).includes(b)):n).slice(0,120)},[n,d]);if(!e)return t.jsx("input",{value:"",disabled:!0,placeholder:r("Escolha a UF primeiro")});if(i)return t.jsxs(t.Fragment,{children:[t.jsx("input",{value:a??"",placeholder:r("Digite a cidade"),onChange:b=>s(b.target.value||null)}),t.jsx("small",{style:{display:"block",marginTop:4,color:"rgb(var(--danger))"},children:"Não consegui carregar a lista de cidades do IBGE â o nome não será conferido."})]});const g=b=>{s(b),u(""),l(!1)};return t.jsxs("div",{className:"combo",ref:f,children:[t.jsx("input",{value:c?d:a??"",placeholder:o?"Carregando cidadesâ¦":"Clique para escolher",onFocus:()=>{l(!0),u(""),m(0)},onChange:b=>{u(b.target.value),l(!0),m(0)},onKeyDown:b=>{b.key==="ArrowDown"?(b.preventDefault(),l(!0),m(p=>Math.min(p+1,v.length-1))):b.key==="ArrowUp"?(b.preventDefault(),m(p=>Math.max(p-1,0))):b.key==="Enter"&&c&&v[h]?(b.preventDefault(),g(v[h])):b.key==="Escape"&&l(!1)}}),a&&!c&&t.jsx("button",{type:"button",className:"combo-limpar",title:r("Limpar cidade"),onClick:()=>s(null),children:"Ã"}),c&&t.jsxs("ul",{className:"combo-lista",children:[v.map((b,p)=>t.jsx("li",{className:p===h?"ativo":"",onMouseEnter:()=>m(p),onMouseDown:x=>{x.preventDefault(),g(b)},children:b},b)),!v.length&&!o&&t.jsxs("li",{className:"vazio",children:["Nenhuma cidade encontrada em ",e,"."]})]})]})}function K1({iso2:e,city:a,onPick:s,className:r}){const n=Z(),[o,i]=y.useState(!1),[c,l]=y.useState(""),[d,u]=y.useState(0),[h,m]=y.useState([]),[f,v]=y.useState(!1),g=y.useRef(null);y.useEffect(()=>{const p=x=>{g.current&&!g.current.contains(x.target)&&i(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),y.useEffect(()=>{const p=c.trim();if(!e||p.length<2){m([]),v(!1);return}let x=!0;v(!0);const j=setTimeout(()=>{ep.cities(e,p).then(k=>x&&m(k)).catch(()=>x&&m([])).finally(()=>x&&v(!1))},350);return()=>{x=!1,clearTimeout(j)}},[e,c]);async function b(p){if(s({city:p.city,state:p.state,lat:p.lat,lng:p.lng}),l(""),i(!1),!(p.lat==null||p.lng==null))try{const x=await ep.place(p.lat,p.lng);x.city&&s({city:x.city,state:x.state??p.state,lat:p.lat,lng:p.lng})}catch{}}return e?t.jsxs("div",{className:"combo",ref:g,children:[t.jsx("input",{className:r,value:o?c:a??"",placeholder:n("Digite o nome da cidade"),onFocus:()=>{i(!0),l(""),u(0)},onChange:p=>{l(p.target.value),i(!0),u(0)},onKeyDown:p=>{p.key==="ArrowDown"?(p.preventDefault(),u(x=>Math.min(x+1,h.length-1))):p.key==="ArrowUp"?(p.preventDefault(),u(x=>Math.max(x-1,0))):p.key==="Enter"&&o&&h[d]?(p.preventDefault(),b(h[d])):p.key==="Escape"&&i(!1)}}),a&&!o&&t.jsx("button",{type:"button",className:"combo-limpar",title:n("Limpar cidade"),onClick:()=>s({city:null}),children:"Ã"}),o&&t.jsxs("ul",{className:"combo-lista",children:[h.map((p,x)=>t.jsxs("li",{className:x===d?"ativo":"",onMouseEnter:()=>u(x),onMouseDown:j=>{j.preventDefault(),b(p)},children:[p.city,p.state&&t.jsxs("span",{className:"muted",children:[" â ",p.state]})]},`${p.city}-${p.lat}`)),!h.length&&t.jsx("li",{className:"vazio",children:f?"Procurandoâ¦":c.trim().length<2?"Digite ao menos 2 letras.":"Nada encontrado. Você pode digitar o nome à mão."})]})]}):t.jsx("input",{className:r,value:a??"",placeholder:n("Digite a cidade"),onChange:p=>s({city:p.target.value||null})})}function ju({country:e,state:a,city:s,onChange:r}){const n=Z(),o=e??"Brasil",i=o==="Brasil",c=np[o]??null,l=np[o]?Dc:[{iso2:"",nome:o},...Dc];
698return t.jsxs(t.Fragment,{children:[t.jsx(S,{label:n("PaÃs"),children:t.jsx("select",{value:o,onChange:d=>r({country:d.target.value,state:null,city:null,lat:null,lng:null}),children:l.map(d=>t.jsx("option",{value:d.nome,children:d.nome},d.iso2||d.nome))})}),t.jsx(S,{label:i?"Estado / UF":"Estado / provÃncia",hint:i?void 0:"Preenchido sozinho quando você escolhe a cidade.",children:i?t.jsxs("select",{value:a??"",onChange:d=>r({state:d.target.value||null,city:null}),children:[t.jsx("option",{value:"",children:"â"}),W1.map(d=>t.jsx("option",{value:d,children:d},d))]}):t.jsx("input",{value:a??"",onChange:d=>r({state:d.target.value||null})})}),t.jsx(S,{label:n("Cidade"),children:i?t.jsx(Q1,{uf:a,city:s,onPick:d=>r({city:d})}):t.jsx(K1,{iso2:c,city:s,onPick:d=>r(d)})})]})}function Y1(){const e=D(()=>ct.usage(),[]);if(e.loading||e.error||!e.data)return null;const a=e.data;if(a.total===0)return null;const s=Object.entries(a.por_tipo_hoje).sort((r,n)=>n[1]-r[1]);return t.jsxs("div",{className:"medidor-ia",children:[t.jsx("div",{className:"medidor-ia-numeros",children:[{n:a.ultima_hora,r:"na última hora"},{n:a.hoje,r:"hoje"},{n:a.mes,r:"no mês"}].map(r=>t.jsxs("div",{children:[t.jsx("strong",{children:r.n}),t.jsx("span",{children:r.r})]},r.r))}),s.length>0&&t.jsxs("p",{className:"medidor-ia-tipos",children:["Hoje: ",s.map(([r,n])=>`${r} (${n})`).join(" · ")]}),a.falhas_hoje>0&&t.jsxs("p",{className:"medidor-ia-falhas",children:[a.falhas_hoje," ",a.falhas_hoje===1?"chamada falhou":"chamadas falharam"," hoje â normalmente é a cota do plano gratuito."]}),t.jsxs("p",{className:"medidor-ia-nota",children:["Esta é a contagem das chamadas que a Gira fez com a sua chave. O Google não informa quanto ainda resta da sua cota â isso só aparece no"," ",t.jsx("a",{href:"https://aistudio.google.com/apikey",target:"_blank",rel:"noreferrer",children:"AI Studio"}),", na sua conta."]})]})}function Ba({titulo:e,texto:a,nota:s,vazio:r}){return!a&&s==null?r?t.jsx("p",{className:"analise-ia-vazio",children:r}):null:t.jsxs("section",{className:"analise-ia",children:[t.jsxs("header",{children:[t.jsx(Be,{size:14,strokeWidth:2.2}),t.jsx("strong",{children:e}),s!=null&&t.jsxs("span",{className:"analise-ia-nota",children:[t.jsx(or,{n:s})," ",s,"/5"]})]}),a&&t.jsx("p",{children:a})]})}
698function Wi({criadoPor:e,editadoPor:a,criadoEm:s,editadoEm:r}){Z();const n=e?`Cadastrado por ${e}`:"Cadastrado antes do registro de autoria",o=a?`última alteração por ${a}`:null;return t.jsxs("p",{className:"autoria",children:[n,s&&` em ${ii(s)}`,o&&` · ${o}`,o&&r&&` em ${ii(r)}`]})}function ii(e){if(!e)return"â";const a=/[Zz]|[+-]\d{2}:?\d{2}$/.test(e)?e:`${e}Z`;return new Date(a).toLocaleString("pt-BR",{dateStyle:"short",timeStyle:"short"})}function X(e){if(!e)return"â";const[a,s,r]=e.slice(0,10).split("-");return`${r}/${s}/${a}`}function J1({total:e,slices:a,size:s=168}){const r=Z(),n=22,o=(s-n)/2,i=2*Math.PI*o;let c=0;const l=a.filter(d=>d.value>0);return t.jsxs("svg",{width:s,height:s,viewBox:`0 0 ${s} ${s}`,children:[t.jsxs("g",{transform:`rotate(-90 ${s/2} ${s/2})`,children:[t.jsx("circle",{cx:s/2,cy:s/2,r:o,fill:"none",stroke:"#eef1f6",strokeWidth:n}),e>0&&l.map((d,u)=>{const h=d.value/e*i,m=t.jsx("circle",{cx:s/2,cy:s/2,r:o,fill:"none",stroke:d.color,strokeWidth:n,strokeDasharray:`${h} ${i-h}`,strokeDashoffset:-c},u);return c+=h,m})]}),t.jsx("text",{x:"50%",y:"46%",textAnchor:"middle",className:"donut-num",children:e}),t.jsx("text",{x:"50%",y:"60%",textAnchor:"middle",className:"donut-cap",children:r("Total")})]})}const yu=Object.keys(xr).filter(e=>e!=="multi");function Qf({cats:e}){const a=Z();return!e||e.length===0?t.jsx("span",{className:"muted",children:"â"}):t.jsx("span",{style:{display:"flex",flexWrap:"wrap",gap:4},children:e.map(s=>t.jsx("span",{className:"badge-soft",children:a(xr[s])??s},s))})}function Hi({valor:e,onChange:a,opcoes:s=yu,contagem:r}){const n=Z();return t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:s.map(o=>{const i=e.includes(o);return t.jsxs("button",{type:"button",className:i?"btn primary":"btn",style:{padding:"3px 12px",fontSize:13},onClick:()=>a(i?e.filter(c=>c!==o):[...e,o]),children:[n(xr[o]),r&&t.jsxs("span",{className:"muted",children:[" ",r.get(o)??0]})]},o)})})}function Kf(e,a){const s=a instanceof Set?a:new Set(a);if(s.size===0)return!0;const r=e??[];return r.length===0?!0:r.some(n=>s.has(n))}function Yf(e){if(!e)return null;const a=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([\w-]{11})|[?&]v=([\w-]{11})/);return a?a[1]||a[2]:null}function Z1(e){if(!e)return"";const[a,s,r]=e.split("-");return r&&s&&a?`${r}/${s}/${a}`:e}function Jf({tutorial:e,onClose:a}){const s=Yf(e.tutorial_video_url);return t.jsx("div",{onClick:a,style:{position:"fixed",inset:0,zIndex:50,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},children:t.jsxs("div",{onClick:r=>r.stopPropagation(),style:{background:"#fff",borderRadius:12,maxWidth:760,width:"100%",maxHeight:"90vh",overflowY:"auto",padding:24,boxShadow:"0 10px 40px rgba(0,0,0,0.25)"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[t.jsxs("h2",{style:{margin:0,fontSize:20},children:["Tutorial · ",e.label]}),t.jsx("button",{type:"button",onClick:a,"aria-label":"Fechar",style:{border:"none",background:"none",cursor:"pointer",color:"#666"},children:t.jsx(tt,{size:20})})]}),s&&t.jsx("div",{style:{position:"relative",paddingTop:"56.25%",marginBottom:16},children:t.jsx("iframe",{src:`https://www.youtube-nocookie.com/embed/${s}`,title:`Tutorial ${e.label}`,allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,style:{position:"absolute",inset:0,width:"100%",height:"100%",border:0,borderRadius:8}})}),e.tutorial_body&&t.jsx("p",{style:{whiteSpace:"pre-line",lineHeight:1.6,color:"#333",margin:"0 0 12px"},children:e.tutorial_body}),e.tutorial_updated_on&&t.jsxs("small",{style:{color:"#999"},children:["Atualizado em ",Z1(e.tutorial_updated_on)]})]})})}const X1="Isso faz parte do plano pago da Gira.",e0=["Produtos culturais e oficinas sem limite","Livro de vendas: o PDF de foto grande para mandar a quem programa","Inscrição guiada, com as respostas rascunhadas pela IA","Preenchimento automático dos formulários pela extensão","Site e portfólio em português, espanhol, inglês e francês","Rider, croqui, mapa de luz e roteiro musical em PDF"],Zf=y.createContext(null);function t0({children:e}){const{user:a,refresh:s}=Ae(),[r,n]=y.useState(null);y.useEffect(()=>(Zm(c=>n({texto:c.detalhe,code:c.code})),()=>Zm(null)),[]);const o=y.useCallback(()=>{n(null),s()},[s]),i=y.useMemo(()=>({gratuito:(a==null?void 0:a.plan)==="gratuito",libera:c=>!a||(a.features??[]).includes(c),teto:c=>{var l;return((l=a==null?void 0:a.limits)==null?void 0:l[c])??null},usado:c=>{var l;return((l=a==null?void 0:a.usage)==null?void 0:l[c])??0},convidar:c=>n({texto:c||X1})}),[a]);return t.jsxs(Zf.Provider,{value:i,children:[e,r&&t.jsx(a0,{texto:r.texto,code:r.code,onFechar:o})]})}function St(){const e=y.useContext(Zf);
698if(!e)throw new Error("usePlano precisa do <PlanoProvider> por volta da árvore");return e}function a0({texto:e,code:a,onFechar:s}){const r=a==="profile_required";return t.jsxs(Rn,{title:r?"Falta o perfil da sua companhia":"Você chegou no limite do plano gratuito",onClose:s,children:[t.jsx("p",{className:"text-sm leading-relaxed",children:e}),!r&&t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mt-5 text-sm font-semibold",children:"Na Gira Base você tem:"}),t.jsx("ul",{className:"mt-2 space-y-1.5",children:e0.map(n=>t.jsxs("li",{className:"flex gap-2 text-sm leading-relaxed text-muted",children:[t.jsx(Be,{size:15,className:"mt-0.5 shrink-0","aria-hidden":!0}),t.jsx("span",{children:n})]},n))})]}),t.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[r?t.jsx(U,{className:"btn primary",to:"/app/perfil",onClick:s,children:"Criar o perfil"}):t.jsx(U,{className:"btn primary",to:"/checkout",onClick:s,children:"Ver os planos"}),t.jsx("button",{className:"btn",onClick:s,children:"Agora não"})]})]})}function Xf({limite:e,rotulo:a,usado:s}){const r=St().teto(e);if(r==null)return t.jsx("span",{children:`${s} ${a}`});const n=s>=r,o=!n&&s>=r-1;return t.jsxs("span",{className:`medidor-plano${n?" cheio":o?" quase":""}`,children:[s," de ",r," ",a,n&&t.jsxs(t.Fragment,{children:[" · ",t.jsx(U,{to:"/checkout",children:"assine para não ter limite"})]})]})}function gr({Icone:e,titulo:a,numeros:s,explicacao:r,itens:n,cta:o="Ver os planos",moduleKey:i}){const c=Z(),l=s0(i),[d,u]=y.useState(!1);return t.jsxs("div",{className:"tela-trancada",children:[t.jsx(e,{size:28,"aria-hidden":!0}),t.jsx("h2",{children:a}),s&&t.jsx("p",{className:"numeros",children:s}),t.jsx("p",{className:"muted",children:r}),t.jsx("ul",{children:n.map(h=>t.jsxs("li",{children:[t.jsx(Be,{size:15,"aria-hidden":!0}),t.jsx("span",{children:h})]},h))}),t.jsxs("div",{className:"acoes",children:[l&&t.jsxs("button",{type:"button",className:"btn primary grande",onClick:()=>u(!0),children:[t.jsx(au,{size:18,strokeWidth:2.2}),c("Veja como funciona")]}),t.jsx(U,{className:l?"btn grande":"btn primary grande",to:"/planos",children:o})]}),d&&l&&t.jsx(Jf,{tutorial:l,onClose:()=>u(!1)})]})}function s0(e){const{data:a}=D(()=>e?_n.list():Promise.resolve([]),[e]);return(a??[]).find(s=>s.key===e&&s.tutorial_video_url)??null}function r0(){const e=Z(),a=J(),s=N=>a(N),{readonly:r}=de(),{libera:n}=St(),{data:o,error:i,loading:c}=D(()=>A1.get());if(c)return t.jsx("p",{className:"muted",children:e("Carregando painelâ¦")});if(i)return t.jsx("p",{className:"error",children:i});if(!o)return null;const{kpis:l,by_status:d,by_reach:u,closing_soon:h,upcoming_deadlines:m,recent_submissions:f,awaiting_results:v}=o,g=new Date;g.setHours(0,0,0,0);const b=N=>{if(!N)return null;const[C,_,A]=N.slice(0,10).split("-").map(Number),z=new Date(C,_-1,A).getTime()-g.getTime();return Math.round(z/864e5)},p=N=>{const C=b(N);return C==null?{text:"data a confirmar",cls:"muted"}:C<0?{text:`saiu há ${-C}d â conferir`,cls:"due"}:C===0?{text:"sai hoje",cls:"due"}:C<=7?{text:`em ${C}d`,cls:"soon"}:{text:`em ${C}d`,cls:"muted"}},x=[{label:"Inscrições",value:l.submissions,Icon:iu},{label:"Produtos culturais",value:l.shows,Icon:mu},{label:"Oportunidades",value:l.festivals,Icon:Wa},{label:"Inscritos",value:l.submitted,Icon:qn},{label:"Viáveis a inscrever",value:l.viable,Icon:bt}],j=d.map(N=>({label:e(qe[N.status].label),value:N.count,color:qe[N.status].color})),k=N=>N<=3?"due":N<=10?"soon":"";return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"kpi-row",children:x.map(N=>t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(N.Icon,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:N.value}),t.jsx("span",{children:N.label})]})]},N.label))}),t.jsxs("div",{className:"grid-2",children:[t.jsxs("section",{className:"card closing-panel",children:[t.jsxs("header",{className:"card-head",children:[t.jsxs("h3",{children:[t.jsx(zf,{size:16,strokeWidth:2.2}),e("Prazos fechando")]}),t.jsx("button",{className:"link",onClick:()=>s("/app/oportunidades"),children:e("ver o Radar")})]}),t.jsx("p",{className:"sub",style:{margin:"0 0 12px"},children:"Editais abertos em que você ainda não se inscreveu â o que fecha primeiro."}),n("radar")?h.length===0?t.jsxs("p",{className:"muted",children:["Nenhum edital aberto com prazo à vista. Novas edições aparecem aqui assim que entram no ",t.jsx("b",{children:e("Radar")})," â ou cadastre uma você mesmo."]}):t.jsx("ul",{className:"closing-list",children:h.map(N=>
698{const C=[N.city,N.state].filter(Boolean).join("/")||N.country;return t.jsxs("li",{children:[t.jsxs("div",{className:`closing-count ${k(N.days_left)}`,children:[t.jsx("strong",{children:N.days_left===0?"hoje":N.days_left}),t.jsx("span",{children:N.days_left===0?"último dia":N.days_left===1?"dia":"dias"})]}),t.jsxs("div",{className:"res-info",children:[t.jsx("strong",{children:N.festival_name}),t.jsxs("span",{children:[N.edition_label?`${N.edition_label} · `:"",N.year," · ",C," · prazo ",X(N.deadline)]})]}),t.jsxs("div",{className:"res-links",children:[He(N.notice_url)&&t.jsxs("a",{href:He(N.notice_url),target:"_blank",rel:"noreferrer",title:e("Abrir o edital"),children:[t.jsx(ks,{size:13,strokeWidth:2}),e("Edital")]}),t.jsxs(U,{to:`/app/oportunidades/edicao/${N.edition_id}`,children:[t.jsx(Oi,{size:13,strokeWidth:2}),e("Ver")]}),!r&&t.jsx("button",{className:"btn primary",onClick:()=>s(`/app/inscricoes/inscrever/${N.edition_id}`),children:e("Inscrever-se")})]})]},N.edition_id)})}):t.jsxs("p",{className:"muted",children:[e("Os prazos fechando fazem parte do")," ",t.jsx("b",{children:e("Radar")}),","," ",e("que é dos planos pagos.")," ",t.jsx("button",{className:"link",onClick:()=>s("/app/oportunidades"),children:e("ver o que tem lá")})]})]}),t.jsxs("section",{className:"card results-panel",children:[t.jsxs("header",{className:"card-head",children:[t.jsxs("h3",{children:[t.jsx(Cn,{size:16,strokeWidth:2.2}),e("Acompanhamento de resultados")]}),t.jsx("button",{className:"link",onClick:()=>s("/app/inscricoes"),children:e("ver inscrições")})]}),v.length===0?t.jsxs("p",{className:"muted",children:["Nenhuma inscrição aguardando resultado. Marque uma inscrição como",t.jsx("b",{children:e("Inscrito")}),e("e informe a data de divulgação para acompanhá-la aqui.")]}):t.jsx("ul",{className:"results-list",children:v.map(N=>{var _,A,z,P,w,L;const C=p(N.result_date);return t.jsxs("li",{children:[t.jsxs("div",{className:`res-date ${C.cls}`,children:[t.jsx("strong",{children:X(N.result_date)}),t.jsx("span",{children:C.text})]}),t.jsxs("div",{className:"res-info",children:[t.jsx("strong",{children:(_=N.festival)==null?void 0:_.name}),t.jsxs("span",{children:[N.edition_label?`${N.edition_label} · `:"",((A=N.show)==null?void 0:A.name)??"â"]})]}),t.jsxs("div",{className:"res-links",children:[He((z=N.festival)==null?void 0:z.instagram_url)&&t.jsxs("a",{href:He((P=N.festival)==null?void 0:P.instagram_url),target:"_blank",rel:"noreferrer",title:e("Acompanhar no Instagram"),children:[t.jsx(Ri,{size:13,strokeWidth:2}),e("Instagram")]}),He((w=N.festival)==null?void 0:w.site_url)&&t.jsxs("a",{href:He((L=N.festival)==null?void 0:L.site_url),target:"_blank",rel:"noreferrer",title:e("Abrir o site"),children:[t.jsx(Ja,{size:13,strokeWidth:2}),e("Site")]}),t.jsxs(U,{to:`/app/inscricoes/${N.id}/ver`,title:e("Abrir a inscrição no Gira"),children:[t.jsx(lu,{size:13,strokeWidth:2}),e("Inscrição")]})]})]},N.id)})})]})]}),t.jsxs("div",{className:"grid-2",children:[t.jsxs("section",{className:"card",children:[t.jsxs("header",{className:"card-head",children:[t.jsx("h3",{children:e("Próximos prazos")}),t.jsx("button",{className:"link",onClick:()=>s("/app/inscricoes"),children:e("ver todas")})]}),m.length===0?t.jsx("p",{className:"muted",children:e("Nenhum prazo futuro.")}):t.jsx("ul",{className:"deadlines",children:m.map(N=>{var C,_;return t.jsxs("li",{children:[t.jsx("div",{className:"dl-date",children:X(N.deadline)}),t.jsxs("div",{className:"dl-info",children:[t.jsx("strong",{children:(C=N.festival)==null?void 0:C.name}),t.jsxs("span",{children:[N.edition_label?`${N.edition_label} · `:"",((_=N.show)==null?void 0:_.name)??"â"]})]}),t.jsx(oi,{status:N.status})]},N.id)})})]}),t.jsxs("section",{className:"card",children:[t.jsx("header",{className:"card-head",children:t.jsx("h3",{children:e("Inscrições por status")})}),t.jsxs("div",{className:"donut-wrap",children:[t.jsx(J1,{total:l.submissions,slices:j}),t.jsx("ul",{className:"legend",children:d.map(N=>t.jsxs("li",{children:[t.jsx("i",{style:{background:qe[N.status].color}}),e(qe[N.status].label),t.jsx("b",{children:N.count})]},N.status))})]})]})]}),t.jsxs("div",{className:"grid-2",children:[t.jsxs("section",{className:"card",children:[t.jsx("header",{className:"card-head",children:t.jsx("h3",{children:e("Inscrições por abrangência")}
698)}),t.jsx("ul",{className:"bars",children:u.map(N=>{const C=Math.max(...u.map(A=>A.count),1),_=e(Vi[N.reach])??N.reach;return t.jsxs("li",{children:[t.jsx("span",{children:_}),t.jsx("div",{className:"bar-track",children:t.jsx("div",{className:"bar-fill",style:{width:`${N.count/C*100}%`}})}),t.jsx("b",{children:N.count})]},N.reach)})})]}),t.jsxs("section",{className:"card",children:[t.jsxs("header",{className:"card-head",children:[t.jsx("h3",{children:e("Inscrições recentes")}),t.jsx("button",{className:"link",onClick:()=>s("/app/inscricoes"),children:e("ver todas")})]}),t.jsxs("table",{className:"mini-table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:e("Festival")}),t.jsx("th",{children:e("Produto cultural")}),t.jsx("th",{children:e("Status")})]})}),t.jsx("tbody",{children:f.map(N=>{var C,_;return t.jsxs("tr",{children:[t.jsx("td",{children:(C=N.festival)==null?void 0:C.name}),t.jsx("td",{className:"muted",children:((_=N.show)==null?void 0:_.name)??"â"}),t.jsx("td",{children:t.jsx(oi,{status:N.status})})]},N.id)})})]})]})]})]})}const eg=y.createContext(null),n0={ok:3200,erro:6e3};function o0({children:e}){const[a,s]=y.useState([]),r=y.useRef(0),n=y.useCallback(c=>{s(l=>l.filter(d=>d.id!==c))},[]),o=y.useCallback((c,l)=>{const d=++r.current;s(u=>[...u,{id:d,tipo:c,texto:l}]),setTimeout(()=>n(d),n0[c])},[n]),i=y.useMemo(()=>({ok:c=>o("ok",c),erro:c=>{!c||!c.trim()||o("erro",c)}}),[o]);return t.jsxs(eg.Provider,{value:i,children:[e,t.jsx("div",{className:"toasts",role:"status","aria-live":"polite",children:a.map(c=>t.jsxs("div",{className:`toast toast-${c.tipo}`,children:[c.tipo==="ok"?t.jsx(Ze,{size:15,strokeWidth:2.6}):t.jsx(nr,{size:15}),t.jsx("span",{children:c.texto}),t.jsx("button",{className:"toast-x",onClick:()=>n(c.id),"aria-label":"Fechar",children:t.jsx(tt,{size:13})})]},c.id))})]})}function ge(){const e=y.useContext(eg);if(!e)throw new Error("useToast precisa do <ToastProvider> por volta da árvore");return e}function bu({baseFields:e,sourceLang:a,targetLangs:s,i18n:r,onFilled:n}){const[o,i]=O.useState(!1),[c,l]=O.useState(null),d=Object.values(e).some(h=>h&&h.trim());if(!s.length)return null;async function u(){i(!0),l(null);try{const h=await ct.translate(a,s,e),m={...r??{}};for(const[f,v]of Object.entries(h))m[f]={...m[f]??{},...v};n(m)}catch(h){l(String(h.message))}i(!1)}return t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,margin:"2px 0 6px"},children:[t.jsxs("button",{type:"button",onClick:u,disabled:o||!d,title:d?"Traduz o conteúdo-base para os idiomas ativos":"Preencha o conteúdo-base primeiro",style:{padding:"5px 12px",borderRadius:6,fontSize:13,border:"1px solid #7c3aed",background:o?"#eee":"#f5f3ff",color:"#6d28d9",cursor:o||!d?"default":"pointer"},children:[t.jsx(Be,{size:14,strokeWidth:2}),o?"Traduzindoâ¦":"Traduzir com IA"]}),c&&t.jsx("span",{style:{color:"#dc2626",fontSize:12},children:c}),t.jsx("span",{style:{color:"#999",fontSize:12},children:"revise depois de gerar"})]})}function Nu({langs:e,active:a,onChange:s,defaultLang:r}){return!e||e.length<=1?null:t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,margin:"4px 0 14px"},children:e.map(n=>{const o=a===n;return t.jsxs("button",{type:"button",onClick:()=>s(n),style:{padding:"4px 12px",borderRadius:6,fontSize:13,border:`1px solid ${o?"#0d0d0d":"#ddd"}`,background:o?"#0d0d0d":"#fff",color:o?"#fff":"#555",cursor:"pointer"},children:[wo[n]??n,n===r?" · base":""]},n)})})}function ku(e,a,s,r){const n=r===s;return{isBase:n,get:c=>{var l,d;return n?e[c]??"":((d=(l=e.i18n)==null?void 0:l[r])==null?void 0:d[c])??""},put:(c,l)=>{if(n){a({[c]:l});return}const d=e.i18n??{},u={...d[r]??{},[c]:l};a({i18n:{...d,[r]:u}})}}}const It="/app/perfil",i0=new Set(["api","app","admin","login","plataforma","artistas","map","mapa","assets","static","media","_media","sobre","quem-sou","contato","q","elenco","festivais","produtora","planos","checkout","criar-conta","privacidade","demo","demonstracao","chamada","inscricao","festival"]);function l0(e){const a=(e??"").trim().toLowerCase();return a?/^https?:|www\.|\.(com|net|org|br|ar|lat)\b|\//.test(a)?"Isso parece o endereço de um site. Aqui vai só o apelido (ex.: seba-godoy) â o site de fora vai no campo Site.":/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)?a.length<3||a.length>40?"O endereço precisa ter de 3 a 40 caracteres.":i0.has(a)?`'${a}' é um endereço reservado da Gira. Escolhe outro.`:null:"Use só letras minúsculas, números e hÃfen entre palavras (ex.: seba-godoy).":null}function c0({resumo:e}){if(!e)return t.jsx("span",{className:"muted",children:"â"});const a=e.errors?"danger":e.ready?"ok":"warn";return t.jsxs("div",{className:`score-celula score-${a}`,title:e.errors?`${e.errors} ${e.errors===1?"erro":"erros"} para corrigir`:e.ready?"Pronto para inscrição":`${e.pending} ${e.pending===1?"item":"itens"} a preencher`,children:[t.jsx("div",{className:"score-track",children:t.jsx("div",{className:"score-fill",style:{width:`${e.percent}%`}})}),t.jsxs("span",{children:[e.percent,"%"]})]})}function d0(){const e=Z(),a=J(),{readonly:s,role:r}=de(),n=D(()=>me.list()),o=D(()=>me.completenessAll());if(n.error)return t.jsx("p",{className:"error",children:n.error});const i=n.data??[],c=new Map((o.data??[]).map(d=>[d.artist_id,d])),l=!s&&r!=="artista";return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[i.length," grupos/companhias"]}),l&&t.jsx("button",{className:"btn primary",onClick:()=>a(`${It}/novo`),children:"+ Novo grupo/companhia"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table cartoes",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:e("Perfil")}),t.jsx("th",{children:e("Local")}),t.jsx("th",{children:e("Linguagem")}),t.jsx("th",{children:e("Cadastro")}),t.jsx("th",{style:{textAlign:"right"},children:e("Ações")})]})}),t.jsx("tbody",{children:i.map(d=>t.jsxs("tr",{children:[t.jsx("td",{className:"cartao-titulo",children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[d.profile_photo?t.jsx("img",{src:d.profile_photo,alt:"",style:{width:34,he
698ight:34,borderRadius:9,objectFit:"cover"}}):t.jsx("div",{className:"avatar sm",children:d.name.charAt(0)}),t.jsxs("div",{children:[d.name,t.jsx("span",{className:"sub",children:d.subtitle??d.group_name??""})]})]})}),t.jsx("td",{"data-rotulo":"Local",children:[d.city,d.state].filter(Boolean).join("/")||"â"}),t.jsx("td",{"data-rotulo":"Linguagem",children:(d.category&&e(xr[d.category]))??"â"}),t.jsx("td",{"data-rotulo":"Cadastro",children:t.jsx(c0,{resumo:c.get(d.id)})}),t.jsx("td",{className:"cartao-acao",children:t.jsxs("div",{className:"linha-acoes",children:[d.slug&&t.jsx("a",{className:"btn",href:`/${d.slug}`,target:"_blank",rel:"noreferrer",title:`Abrir site público â gira.lat/${d.slug}`,children:e("Site â")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/editar`),children:e("Perfil")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/produtos`),children:e("Produtos culturais")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/oficinas`),children:e("Oficinas")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/acoes`),children:e("Ações")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/carreira`),children:e("Carreira")}),t.jsx("button",{className:"btn",onClick:()=>a(`${It}/${d.id}/depoimentos`),title:e("O que já disseram do seu trabalho â vai para o book e para o site"),children:e("Depoimentos")})]})})]},d.id))})]})})]})}const tg=[{chave:"identificacao",rotulo:"Identificação"},{chave:"site",rotulo:"Site"},{chave:"book",rotulo:"Livro de vendas"},{chave:"ia",rotulo:"Inteligência artificial"},{chave:"juridico",rotulo:"JurÃdico"}],ag={name:"identificacao",city:"identificacao",category:"identificacao",phone:"identificacao",email:"identificacao",slug:"site",summary:"site",mini_cv:"site",history:"site",subtitle:"site",highlights:"site",profile_photo:"site",gallery:"site",instagram:"site",site_url:"site",youtube:"site",facebook:"site",tiktok:"site"};function u0({atual:e,ir:a,pendencias:s}){const r=Z();return t.jsx("nav",{className:"abas-perfil","aria-label":r("Seções do cadastro"),children:tg.map(n=>{const o=s[n.chave]??0;return t.jsxs("button",{type:"button",className:`aba ${e===n.chave?"active":""} ${o?"pendente":""}`,onClick:()=>a(n.chave),title:o?`${o} item(ns) a preencher nesta aba`:void 0,children:[n.rotulo,o>0&&t.jsx("span",{className:"aba-badge",children:o})]},n.chave)})})}function dp(){const e=Z(),{id:a}=ne(),s=a!=null,r=D(()=>s?me.get(Number(a)):Promise.resolve(null),[a]);return r.error?t.jsx("p",{className:"error",children:r.error}):s&&(r.loading||!r.data)?t.jsx("p",{className:"muted",children:e("Carregandoâ¦")}):t.jsx(g0,{initial:s?r.data:{country:"Brasil"}})}function m0({dados:e,irParaAba:a}){const s=Z(),[r,n]=y.useState(!1);if(!e)return null;const o=e,i=o.errors.length?"danger":o.ready?"ok":"warn",c=o.pending.filter(d=>d.severity!=="error"),l=d=>{if(!d)return;const u=ag[d];u&&a&&a(u),setTimeout(()=>{var m;const h=document.querySelector(`[name="${d}"], #campo-${d}`);h==null||h.scrollIntoView({block:"center",behavior:"smooth"}),(m=h==null?void 0:h.focus)==null||m.call(h)},0)};return t.jsxs("div",{className:`completeness completeness-${i}`,children:[t.jsxs("div",{className:"completeness-head",children:[t.jsxs("strong",{children:["Cadastro ",o.percent,"% completo"]}),t.jsx("span",{className:"muted",children:o.ready?"Pronto para inscrição.":o.errors.length?`${o.errors.length} ${o.errors.length===1?"erro":"erros"} para corrigir.`:`Faltam ${o.threshold-o.percent} pontos para ficar pronto para inscrição.`}),t.jsx("button",{type:"button",className:"btn btn-sm",onClick:()=>n(!r),children:r?"Ocultar":"O que falta"})]}),t.jsx("div",{className:"completeness-track",children:t.jsx("div",{className:"completeness-fill",style:{width:`${o.percent}%`}})}),o.errors.map(d=>t.jsxs("p",{className:"completeness-erro",children:[t.jsxs("strong",{children:[d.label,":"]})," ",d.error," ",d.field&&t.jsx("button",{type:"button",className:"linkish",onClick:()=>l(d.field),children:s("corrigir")})]},d.key)),r&&t.jsxs("ul",{className:"completeness-lista",children:[c.map(d=>t.jsxs("li",{children:[t.jsx("button",{type:"button",className:"linkish",onClick:()=>l(d.field),children:d.label}),d.severity==="desirable"&&t.jsx("span",{className:"tag-opcional",children:s("opcional")}),d.hint&&t.jsxs("small",{children:[" â ",d.hint]})]},d.key)),!c.length&&t.jsx("li",{className:"muted",children:s("Nada pendente por aqui.")})]})]})}function p0({artist:e,revisao:a}){var _,A,z,P,w,L;const s=Z(),r=J(),{readonly:n}=de(),{convidar:o}=St(),i=D(()=>e.id!=null?me.bookStatus(e.id):Promise.resolve(null),[e.id,a]),[c,l]=y.useState(!1),[d,u]=y.useState(null),[h,m]=y.useState(null),f=((_=i.data)==null?void 0:_.publico)??!0,v=((A=i.data)==null?void 0:A.liberado)??!0,g=!!(h??((z=i.data)==null?void 0:z.url)??e.book_pdf),b=v&&f?h??((P=i.data)==null?void 0:P.url)??e.book_pdf??null:null,p=((w=i.data)==null?void 0:w.faltando)??[],x=((L=i.data)==null?void 0:L.avisos)??[];async function j(){l(!0),u(null);try{const $=await me.generateBook(e.id);m($.url),i.reload(),await N($.url)}catch($){u(String($.message)),i.reload()}finally{l(!1)}}async function k(){l(!0),u(null);try{await me.update(e.id,{book_public:!f}),i.reload()}catch($){u(String($.message))}finally{l(!1)}}async function N($){const H=f?$??b:null;if(H){window.open(H,"_blank");return}await me.openBook(e.id)}async function C(){u(null);try{await N()}catch($){u(String($.message))}}return t.jsxs("div",{className:"card",style:{marginTop:4},children:[t.jsx("div",{className:"card-head",children:t.jsxs("div",{children:[t.jsx("h3",{children:s("Livro de vendas")}),t.jsxs("p",{className:"sub",children:["PDF deitado, quase sem texto, para mandar a quem programa: cada página é uma foto grande e uma informação só.",f?t.jsxs(t.Fragment,{children:[" ","Fica sempre no mesmo endereço",e.slug?t.jsxs(t.Fragment,{children:[" (",t.jsxs("code",{children:["gira.lat/",e.slug,"/book.pdf"]}),")"]}):""," â basta regerar quando mudar alguma coisa."]}):t.jsx(t.Fragment,{children:" Basta regerar quando mudar alguma coisa."})]})]})}),i.loading&&t.jsx("p",{className:"muted",children:s("Conferindo o que já está prontoâ¦")}),!i.loading&&!v&&t.jsxs("div",{className:"aviso-foto",style:{marginBottom:12},children:[t.jsxs("p",{children:[t.jsx("strong",{children:"O livro de vendas faz parte do plano pago."})," No Gira Livre o seu portfólio em PDF continua no ar, como sempre â o que fica para quem assina é este PDF deitado, de foto grande, que se manda a quem programa."]}),t.jsx("p",{children:"Você pode preparar tudo agora: marcar as fotos aqui embaixo, escolher a capa e cadastrar depoimentos. No dia que assinar, é um clique em gerar."})]}),!i.loading&&p.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"sub",style:{marginTop:0},children:s("Para o livro sair, ainda falta:")}),t.jsx("ul",{style:{margin:"6px 0 14px 18px"},children:p.map($=>t.jsx("li",{children:$},$))})]}),!i.loading&&v&&p.length===0&&t.jsx("p",{className:"sub",style:{marginTop:0},children:s("Tudo pronto para gerar.")}),!i.loading&&x.length>0&&t.jsx("div",{className:"aviso-foto",children:x.map($=>t.jsx("p",{children:$},$))}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[!n&&v&&t.jsx("button",{className:"btn primary",onClick:j,disabled:c||p.length>0,title:p.length?"Resolva o que falta acima":void 0,children:c?"Gerandoâ¦":b?"Regerar livro de vendas":"Gerar livro de vendas"}),!n&&!v&&t.jsx("button",{type:"button",className:"btn primary",onClick:()=>o("O livro de vendas faz parte do plano pago da Gira."),children:s("Ver o que o plano pago libera")}),g&&v&&t.jsx("button",{type:"button",className:"btn",onClick:C,children:s("Abrir livro â")}),t.jsx("button",{className:"btn",onClick:()=>r(`${It}/${e.id}/depoimentos`),children:s("Depoimentos")})]}),d&&t.jsx("p",{className:"error",children:d}),v&&!n&&e.slug&&t.jsx("div",{style:{marginTop:14},children:t.jsxs("label",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[t.jsx("input",{type:"checkbox",checked:f,disabled:c,onChange:k,style:{marginTop:3}}),t.jsxs("span",{className:"sub",style:{margin:0},children:[t.jsxs("strong",{children:["Deixar o livro no ar em ",t.jsxs("code",{children:["gira.lat/",e.slug,"/book.pdf"]}),"."]})," ","Desligado, esse endereço passa a responder 404 e o livro só abre aqui, pelo botão acima â é assim que se manda o PDF só para quem você escolher, sem ele circulando solto. Nada é apagado, e religar é instantâneo."]})]})}),t.jsx("p",{className:"sub",style:{marginTop:14},children:"Aqui é onde se escolhe o que entra: logo abaixo estão as suas fotos, as de cada produto cultural e as de cada oficina. O Ãcone de livro marca a foto para o livro, e o alvo ao lado marca onde fica o rosto â é o que impede o corte de página inteira decapitar alguém. Enviar e apagar foto é na aba Site e na tela do produto ou da oficina; a escolha para o livro só se faz aqui."})]})}function h0({artistId:e,onBookChange:a}){const r=D(()=>Ue.list(e),[e]).data??[];return r.length?t.jsx(t.Fragment,{children:r.map(n=>t.jsx(Ea,{scope:{showId:n.id},kind:"foto",label:`Fotos de ${n.name}`,hint:"Do cadastro do produto cultural. Marque aqui as que entram no livro de vendas.",book:!0,markOnly:!0,hideIfEmpty:!0,onBookChange:a},n.id))}):null}function x0({artistId:e,onBookChange:a}){const r=D(()=>Qs.list(e),[e]).data??[];return r.length?t.jsx(t.Fragment,{children:r.map(n=>t.jsx(Ea,{scope:{oficinaId:n.id},kind:"foto",label:`Fotos da oficina ${n.title}
698`,hint:"Do cadastro da oficina. Marque aqui a que entra no livro de vendas.",book:!0,markOnly:!0,hideIfEmpty:!0,onBookChange:a},n.id))}):null}function f0({slug:e,onClose:a}){const s=Z(),[r,n]=y.useState(!1),o=`${window.location.origin}/${e}`,i=`/api/public/artists/${encodeURIComponent(e)}/qr`,c=async()=>{try{await navigator.clipboard.writeText(o),n(!0)}catch{}};return t.jsx(Rn,{title:s("Compartilhar site"),onClose:a,children:t.jsxs("div",{style:{textAlign:"center"},children:[t.jsx("img",{src:`${i}.svg`,alt:s("QR code do site"),style:{display:"block",width:"100%",maxWidth:240,margin:"0 auto"}}),t.jsx("p",{style:{fontWeight:600,marginTop:12,wordBreak:"break-all"},children:o.replace(/^https?:\/\//,"")}),t.jsx("p",{className:"sub",style:{marginTop:8},children:s("Imprima no banner, na filipeta ou no cartaz: quem apontar a câmera do celular cai no seu site. O código continua valendo se você trocar o endereço.")}),t.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"center",flexWrap:"wrap",marginTop:16},children:[t.jsxs("button",{type:"button",className:"btn",onClick:c,children:[t.jsx(ru,{size:14,strokeWidth:2})," ",s(r?"Link copiado":"Copiar link")]}),t.jsxs("a",{className:"btn",href:`${i}.png?download=1`,download:!0,children:[t.jsx(rr,{size:14,strokeWidth:2})," PNG"]}),t.jsxs("a",{className:"btn",href:`${i}.svg?download=1`,download:!0,children:[t.jsx(rr,{size:14,strokeWidth:2})," SVG"]})]})]})})}function g0({initial:e}){var oe,$e;const a=Z(),s=J(),{readonly:r,role:n}=de(),{refresh:o}=Ae(),i=!e.id,c=D(()=>Hs.list()),[l,d]=y.useState({...e}),[u,h]=y.useState(!1),[m,f]=y.useState(!1),v=ge(),[g,b]=mr(),p=tg.some(E=>E.chave===g.get("aba"))?g.get("aba"):"identificacao",x=D(()=>e.id!=null?me.completeness(e.id):Promise.resolve(null),[e.id]),j={};for(const E of[...((oe=x.data)==null?void 0:oe.errors)??[],...(($e=x.data)==null?void 0:$e.pending)??[]]){const Y=E.field?ag[E.field]:void 0;Y&&(j[Y]=(j[Y]??0)+1)}const k=E=>{b(Y=>(Y.set("aba",E),Y),{replace:!0})},[N,C]=y.useState(null),_=l0(l.slug),A=E=>d(Y=>({...Y,...E})),z=l.languages&&l.languages.length?l.languages:["pt"],P=l.default_language??"pt",[w,L]=y.useState(P),$=ku(l,A,P,z.includes(w)?w:P),H=(E,Y)=>{const Ne=Y?[...new Set([...z,E])]:z.filter(Bt=>Bt!==E),as=Ne.includes(P)?P:Ne[0]??"pt";A({languages:Ne,default_language:as}),Ne.includes(w)||L(as)},re=()=>s(It),[K,le]=y.useState(0),[I,R]=y.useState({busy:!1}),V=I.url??e.portfolio_pdf??void 0;async function B(){R({busy:!0});try{const{url:E}=await me.generatePortfolio(e.id);R({busy:!1,url:E}),window.open(E,"_blank")}catch(E){R({busy:!1,err:String(E.message)})}}async function se(){h(!0),C(null);try{if(!l.name)throw new Error("Nome é obrigatório.");if(i){const E=await me.create(l);v.ok("Perfil criado."),s(`${It}/${E.id}/editar`,{replace:!0})}else await me.update(e.id,l),v.ok("Alterações salvas."),await o()}catch(E){const Y=String(E.message);C(Y),v.erro(Y)}finally{h(!1)}}async function ze(){if(confirm("Excluir este perfil?")){h(!0);try{await me.remove(e.id),re()}catch(E){C(String(E.message)),h(!1)}}}return t.jsxs(Re,{backTo:It,title:i?"Novo perfil":e.name??"Perfil",children:[!i&&t.jsx(m0,{dados:x.data,irParaAba:k}),t.jsx(u0,{atual:p,ir:k,pendencias:j}),p==="identificacao"&&t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:a("Nome artÃstico"),full:!0,children:t.jsx("input",{id:"campo-name",value:l.name??"",onChange:E=>A({name:E.target.value})})}),t.jsx(S,{label:a("Nome completo"),full:!0,children:t.jsx("input",{value:l.full_name??"",onChange:E=>A({full_name:E.target.value})})}),t.jsx(S,{label:a("Grupo / companhia"),full:!0,children:t.jsx("input",{value:l.group_name??"",onChange:E=>A({group_name:E.target.value})})}),t.jsx(S,{label:a("Tipo de perfil"),children:t.jsxs("select",{value:l.profile_type??"solo",onChange:E=>A({profile_type:E.target.value}),children:[t.jsx("option",{value:"solo",children:a("Artista solo")}),t.jsx("option",{value:"grupo",children:a("Grupo / coletivo")})]})}),t.jsx(S,{label:a("Linguagem"),children:t.jsxs("select",{id:"campo-category",value:l.category??"",onChange:E=>A({category:E.target.value||null}),children:[t.jsx("option",{value:"",children:"â"}),Object.entries(xr).map(([E,Y])=>t.jsx("option",{value:E,children:Y},E))]})}),t.jsxs(S,{label:a("Linguagens que quero ver no Radar"),full:!0,children:[t.jsx(Hi,{valor:l.radar_categories??[],onChange:E=>A({radar_categories:E})}),t.jsx("span",{className:"sub",children:"Filtra o Radar, o Painel e as Edições. Sem nenhuma marcada, você vê todas as linguagens â é o padrão. Oportunidade ainda sem linguagem cadastrada aparece de qualquer jeito, para você não perder prazo por causa do filtro."})]}),t.jsx(S,{label:a("Pessoa"),children:t.jsxs("select",{value:l.person_type??"pf",onCh
698ange:E=>A({person_type:E.target.value}),children:[t.jsx("option",{value:"pf",children:a("FÃsica (CPF)")}),t.jsx("option",{value:"pj",children:a("JurÃdica (CNPJ)")})]})}),t.jsx("div",{id:"campo-city"}),t.jsx(ju,{country:l.country,state:l.state,city:l.city,onChange:A}),t.jsxs("p",{className:"muted",style:{marginTop:-8,fontSize:13},children:[a("Onde você está agora â atualize sempre que mudar de cidade."),l.location_updated_on?` ${a("Informado em")} ${X(l.location_updated_on)}.`:""]}),t.jsx(S,{label:a("Nacionalidade"),hint:"Só se for diferente de onde mora. Editais perguntam as duas coisas â cotas, intercâmbio e visto em viagem internacional.",children:t.jsx("input",{name:"nationality",value:l.nationality??"",placeholder:a("Ex.: Argentina"),onChange:E=>A({nationality:E.target.value})})}),t.jsx(S,{label:a("CNPJ / CPF"),children:t.jsx("input",{value:l.tax_id??"",onChange:E=>A({tax_id:E.target.value})})}),t.jsx(S,{label:a("Cachê médio"),children:t.jsx("input",{value:l.average_fee??"",onChange:E=>A({average_fee:E.target.value})})}),t.jsx(S,{label:a("E-mail"),children:t.jsx("input",{name:"email",value:l.email??"",onChange:E=>A({email:E.target.value})})}),t.jsx(S,{label:a("Telefone"),children:t.jsx("input",{name:"phone",value:l.phone??"",onChange:E=>A({phone:E.target.value})})}),t.jsxs("p",{className:"field-full muted",style:{fontSize:13},children:["Este e-mail é o de contato, que aparece no seu site. Para trocar o e-mail de login ou a ",t.jsx("strong",{children:a("senha")}),", vá em"," ",t.jsx(U,{to:"/app/conta",children:a("Minha conta")})," â é a sua conta de acesso, e não o cadastro da companhia."]})]}),p==="site"&&t.jsxs("div",{className:"form-grid",children:[t.jsxs("div",{className:"field-full",children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[t.jsx("strong",{children:a("Perfil público (site)")}),!i&&e.slug&&t.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[t.jsxs("button",{type:"button",className:"btn",onClick:()=>f(!0),children:[t.jsx($f,{size:14,strokeWidth:2})," ",a("Compartilhar")]}),t.jsx("a",{className:"btn",href:`/${e.slug}`,target:"_blank",rel:"noreferrer",children:a("Abrir site â")})]}),m&&e.slug&&t.jsx(f0,{slug:e.slug,onClose:()=>f(!1)})]}),t.jsxs("p",{className:"sub",children:["Alimenta o site do grupo/companhia em gira.lat/",l.slug||"{slug}","."]})]}),t.jsxs(S,{label:a("Endereço na Gira"),hint:"Só o apelido que vem depois de gira.lat/ â minúsculas, números e hÃfen. Não é o endereço de um site de fora: esse vai no campo Site.",children:[t.jsxs("div",{className:"slug-input",children:[t.jsx("span",{"aria-hidden":"true",children:"gira.lat/"}),t.jsx("input",{name:"slug",value:l.slug??"",placeholder:"seba-godoy","aria-invalid":!!_,onChange:E=>A({slug:E.target.value})})]}),_&&t.jsx("small",{style:{display:"block",marginTop:4,color:"rgb(var(--danger))"},children:_})]}),t.jsxs("div",{className:"field-full",children:[t.jsx("strong",{children:a("Idiomas do site")}),t.jsx("p",{className:"sub",children:"Marque os idiomas oferecidos. Os textos abaixo (subtÃtulo, resumo, mini-CV, destaques, mestres) são escritos por idioma nas abas. O idioma-base guarda o conteúdo principal."}),t.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:14,alignItems:"center",marginTop:6},children:[Object.keys(wo).map(E=>t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:z.includes(E),disabled:E===P,onChange:Y=>H(E,Y.target.checked)}),wo[E]]},E)),t.jsx("span",{style:{marginLeft:12,color:"#777"},children:"Base:"}),t.jsx("select",{value:P,onChange:E=>A({default_language:E.target.value}),children:z.map(E=>t.jsx("option",{value:E,children:wo[E]??E},E))})]}),t.jsx(Nu,{langs:z,active:w,onChange:L,defaultLang:P}),t.jsx(bu,{baseFields:{subtitle:l.subtitle??"",summary:l.summary??"",mini_cv:l.mini_cv??"",history:l.history??"",highlights:l.highlights??"",mentors:l.mentors??""},sourceLang:P,targetLangs:z.filter(E=>E!==P),i18n:l.i18n,onFilled:E=>A({i18n:E})})]}),t.jsx(S,{label:a("SubtÃtulo"),hint:"Ex.: Palhaço · Circo · Teatro de Rua",children:t.jsx("input",{name:"subtitle",value:$.get("subtitle"),onChange:E=>$.put("subtitle",E.target.value)})}),t.jsx(S,{label:a("DRT"),children:t.jsx("input",{value:l.drt??"",onChange:E=>A({drt:E.target.value})})}),t.jsxs(S,{label:a("Foto de perfil"),full:!0,children:[t.jsx("div",{id:"campo-profile_photo"}),t.jsx(Wc,{value:l.profile_photo,onChange:E=>A({profile_photo:E}),artistId:e.id,hint:"Imagem (JPG/PNG); geramos a versão web automaticamente."})]}),t.jsx(S,{label:a("Resumo"),full:!0,hint:"1 ou 2 frases, na terceira pessoa. à a chamada da capa do teu site e abre a seção Quem sou do portfólio.",children:t.jsx("textarea",{rows:2,name:"summary",value:$.get("summary"),onChange:E=>$.put("summary",E.target.value)})}),t.jsx(S,{label:a("Mini-CV"),full:!0,hint:"Tua biografia completa, em parágrafos: formação, companhias, linguagens, trajetória. Aparece na página Quem sou do site e no portfólio, logo abaixo do resumo.",children:t.jsx("textarea",{rows:4,name:"mini_cv",value:$.get("mini_cv"),onChange:E=>$.put("mini_cv",E.target.value)})}),t.jsx(S,{label:a("Histórico do grupo"),full:!0,hint:"A trajetória do grupo/coletivo/artista como o edital pede: percurso, produtos culturais, circulação, prêmios, trabalho social. Não vai para o site â fica guardada aqui e a IA usa nas inscrições.",children:t.jsx("textarea",{rows:6,name:"history",value:$.get("history"),onChange:E=>$.put("history",E.target.value)})}),t.jsx(S,{label:a("Destaques"),full:!0,hint:"Um por linha.",children:t.jsx("textarea",{rows:4,name:"highlights",value:$.get("highlights"),onChange:E=>$.put("highlights",E.target.value)})}),t.jsx(S,{label:a("Mestres e formadores"),full:!0,hint:"Um por linha.",children:t.jsx("textarea",{rows:4,value:$.get("mentors"),onChange:E=>$.put("mentors",E.target.value)})}),t.jsx(S,{label:a("Site"),children:t.jsx("input",{name:"site_url",value:l.site_url??"",onChange:E=>A({site_url:E.target.value})})}),t.jsx(S,{label:a("YouTube"),children:t.jsx("input",{name:"youtube",value:l.youtube??"",onChange:E=>A({youtube:E.target.value})})}),t.jsx(S,{label:a("Instagram"),children:t.jsx("input",{name:"instagram",value:l.instagram??"",onChange:E=>A({instagram:E.target.value})})}),t.jsx(S,{label:a("Facebook"),children:t.jsx("input",{name:"facebook",value:l.facebook??"",onChange:E=>A({facebook:E.target.value})})}),t.jsx(S,{label:a("TikTok"),children:t.jsx("input",{name:"tiktok",value:l.tiktok??"",onChange:E=>A({tiktok:E.target.value})})}),t.jsxs("div",{className:"field-full",children:[t.jsx("strong",{children:a("Identidade visual")}),t.jsx("p",{className:"sub",children:"Logo e paleta da companhia â reaproveitados automaticamente no site e no portfólio."})]}),t.jsx(S,{label:a("Logotipo"),full:!0,hint:"PNG/JPG, de preferência com fundo transparente.",children:t.jsx(Wc,{value:l.logo,onChange:E=>A({logo:E}),artistId:e.id,hint:"Aparece no cabeçalho do site e do portfólio."})}),t.jsx(S,{label:a("Cor primária"),hint:"Cor principal da marca.",children:t.jsx(_l,{value:l.brand_primary,onChange:E=>A({brand_primary:E})})}),t.jsx(S,{label:a("Cor secundária"),hint:"Apoio e fundos.",children:t.jsx(_l,{value:l.brand_secondary,onChange:E=>A({brand_secondary:E})})}),t.jsx(S,{label:a("Cor de destaque"),hint:"Detalhes, botões e links.",children:t.jsx(_l,{value:l.brand_accent,onChange:E=>A({brand_accent:E})})}),t.jsx(S,{label:a("Template do site"),hint:"Layout do site público. âPadrãoâ usa o template padrão do catálogo.",children:t.jsxs("select",{value:l.site_template_id??"",onChange:E=>A({site_template_id:E.target.value?Number(E.target.value):null}),children:[t.jsx("option",{value:"",children:a("Padrão")}),(c.data??[]).filter(E=>E.is_active).map(E=>t.jsx("option",{value:E.id,children:E.name},E.id))]})}),n==="admin"&&t.jsx(S,{label:a("Elenco da Gira"),full:!0,hint:"Curadoria: define se a companhia aparece na home, na página /artistas e nos números públicos da produtora. Quem só usa a plataforma fica de fora. O site próprio dela continua no ar de qualquer jeito.",children:t.jsx("div",{style:{display:"flex",gap:16,alignItems:"center"},children:t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!l.represented,onChange:E=>A({represented:E.target.checked})}),a("Representada pela Gira")]})})}),t.jsx(S,{label:a("Fundo do site"),hint:"Vale para qualquer template. A paleta da companhia continua por cima.",children:t.jsxs("select",{value:l.site_theme??"light",onCh
698ange:E=>A({site_theme:E.target.value}),children:[t.jsx("option",{value:"light",children:a("Claro")}),t.jsx("option",{value:"dark",children:a("Escuro")})]})})]}),p==="ia"&&t.jsxs("div",{className:"form-grid",children:[t.jsxs("div",{className:"field-full",children:[t.jsx("strong",{children:a("Inteligência artificial")}),t.jsxs("p",{className:"sub",children:["A IA da Gira roda na conta do Google da ",t.jsx("strong",{children:"sua"})," companhia. A chave é gratuita, fica só com você e nunca é mostrada de volta aqui depois de salva. ",t.jsx("strong",{children:a("Sem ela cadastrada, os recursos de IA ficam indisponÃveis")})," ","â não há chave compartilhada."]})]}),t.jsx(S,{label:a("Chave do Gemini"),full:!0,hint:l.has_gemini_key?"Já existe uma chave salva. Escreva uma nova para trocar, ou apague o campo e salve para remover.":"Enquanto não houver chave, Assistente, análise de edital, sugestão de inscrição e tradução ficam desligados.",children:t.jsx("input",{type:"text",name:"gemini-key",autoComplete:"off",spellCheck:!1,"data-1p-ignore":!0,"data-lpignore":"true",placeholder:l.has_gemini_key?"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢ (chave salva â cole outra para trocar)":"AIzaâ¦",value:l.gemini_api_key??"",onChange:E=>A({gemini_api_key:E.target.value})})}),t.jsx(Y1,{}),t.jsx("div",{className:"field-full",children:t.jsxs("details",{children:[t.jsx("summary",{style:{cursor:"pointer",fontSize:13,fontWeight:600},children:a("Como gerar a minha chave do Gemini (leva 2 minutos)")}),t.jsxs("ol",{style:{margin:"10px 0 0",paddingLeft:20,lineHeight:1.9,fontSize:13},children:[t.jsxs("li",{children:["Abra"," ",t.jsx("a",{href:"https://aistudio.google.com/apikey",target:"_blank",rel:"noreferrer",children:"aistudio.google.com/apikey"})," ","e entre com a sua conta Google."]}),t.jsx("li",{children:a("Aceite os termos do Google AI Studio, se ele pedir.")}),t.jsxs("li",{children:[a("Clique em"),t.jsx("strong",{children:a("Criar chave de API")})," (âCreate API keyâ)."]}),t.jsx("li",{children:"Escolha um projeto quando ele perguntar â pode ser o sugerido, tanto faz o nome."}),t.jsxs("li",{children:[a("Copie a chave gerada. Ela começa com"),t.jsx("code",{children:"AIza"})," e só aparece uma vez."]}),t.jsx("li",{children:a("Cole no campo acima e salve o perfil.")})]}),t.jsx("p",{className:"sub",style:{marginTop:10},children:"O plano gratuito do Google já cobre o uso normal da plataforma. A chave dá acesso apenas ao Gemini â não à sua conta, e-mail ou arquivos. Para revogar, volte na mesma página do Google e apague a chave."})]})})]}),p==="juridico"&&t.jsxs("div",{className:"form-grid",children:[t.jsxs("div",{className:"field-full",children:[t.jsx("strong",{children:a("Dados jurÃdicos (privado)")}),t.jsx("p",{className:"sub",children:a("Para inscrições e contratos. Nunca aparecem no site público.")})]}),t.jsx(S,{label:a("Razão social"),full:!0,children:t.jsx("input",{value:l.razao_social??"",onChange:E=>A({razao_social:E.target.value})})}),t.jsx(S,{label:a("CNPJ"),children:t.jsx("input",{value:l.cnpj??"",onChange:E=>A({cnpj:E.target.value})})}),t.jsx(S,{label:a("CPF"),children:t.jsx("input",{value:l.cpf??"",onChange:E=>A({cpf:E.target.value})})}),t.jsx(S,{label:a("RG"),children:t.jsx("input",{value:l.rg??"",onChange:E=>A({rg:E.target.value})})}),t.jsx(S,{label:a("Nome da mãe"),children:t.jsx("input",{value:l.mother_name??"",onChange:E=>A({mother_name:E.target.value})})}),t.jsx(S,{label:a("Endereço"),full:!0,children:t.jsx("textarea",{rows:2,value:l.address??"",onChange:E=>A({address:E.target.value})})}),t.jsx(S,{label:a("Pix"),children:t.jsx("input",{value:l.pix??"",onChange:E=>A({pix:E.target.value})})}),t.jsx(S,{label:a("Banco"),children:t.jsx("input",{value:l.bank_name??"",onChange:E=>A({bank_name:E.target.value})})}),t.jsx(S,{label:a("Agência"),children:t.jsx("input",{value:l.bank_agency??"",onChange:E=>A({bank_agency:E.target.value})})}),t.jsx(S,{label:a("Conta"),children:t.jsx("input",{value:l.bank_account??"",onChange:E=>A({bank_account:E.target.value})})})]}),p==="book"&&!i&&e.id!=null&&t.jsxs(t.Fragment,{children:[t.jsx(p0,{artist:{...e,slug:l.slug},revisao:K}),t.jsx(Ea,{scope:{artistId:e.id},kind:"galeria",label:a("Fotos do artista"),hint:"As mesmas da galeria do site. Marque aqui as que entram no livro de vendas.",book:!0,markOnly:!0,onBookChange:()=>le(E=>E+1)}),t.jsx(h0,{artistId:e.id,onBookChange:()=>le(E=>E+1)}),t.jsx(x0,{artistId:e.id,onBookChange:()=>le(E=>E+1)})]}),p==="book"&&i&&t.jsx("p",{className:"muted",children:a("Salve o perfil primeiro â o livro precisa de um cadastro.")}),p==="site"&&!i&&e.id!=null&&t.jsxs(t.Fragment,{children:[t.jsx(Ea,{scope:{artistId:e.id},kind:"galeria",label:a("Galeria"),hint:"Fotos do trabalho para o site. Quais delas entram no livro de vendas se escolhe na aba Livro de vendas."}),t.jsx(Ea,{scope:{artistId:e.id},kind:"certificado",label:a("Certificados"),hint:"Comprovantes de formação e participação."}),t.jsx(Ea,{scope:{artistId:e.id},kind:"imprensa",label:a("Imprensa"),hint:"Clippings e matérias."}),!r&&t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsx("strong",{children:a("Portfólio PDF")}),t.jsxs("p",{className:"sub",children:["Gera um PDF com bio, produtos culturais e oficinas. Fica sempre no mesmo link",l.slug?t.jsxs(t.Fragment,{children:[" (",t.jsxs("code",{children:["gira.lat/",l.slug,"/portfolio.pdf"]}),")"]}):""," â é só regerar quando atualizar."]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[t.jsx("button",{type:"button",className:"btn",onClick:B,disabled:I.busy||!l.slug,title:l.slug?void 0:"Defina um slug antes de gerar",children:I.busy?"Gerandoâ¦":V?"Regerar portfólio PDF":"Gerar portfólio PDF"}),V&&t.jsx("a",{href:V,target:"_blank",rel:"noreferrer",children:a("Abrir portfólio â")}),I.err&&t.jsx("span",{className:"error",children:I.err})]})]})]}),N&&t.jsx("p",{className:"error",children:N}),t.jsxs("footer",{className:"modal-foot",children:[!i&&!r&&t.jsx("button",{className:"btn danger",onClick:ze,disabled:u,children:a("Excluir")}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:re,disabled:u,children:r?"Voltar":"Cancelar"}),!r&&t.jsx("button",{className:"btn primary",onClick:se,disabled:u,children:u?"Salvandoâ¦":"Salvar"})]})]})}const sg=e=>`/app/perfil/${e}/produtos`;function v0(){var u;const e=Z(),a=Ui(),{artistId:s}=ne(),{readonly:r}=de(),n=Number(s),o=sg(s),i=J(),c=D(()=>Ue.list(n),[s]),l=D(()=>me.get(n),[s]);if(c.error)return t.jsx("p",{className:"error",children:c.error});const d=c.data??[];return t.jsxs(t.Fragment,{children:[t.jsx(U,{to:"/app/perfil",className:"back-link",children:"â¹ Perfis"}),t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[((u=l.data)==null?void 0:u.name)??"Perfil"," ·"," ",t.jsx(Xf,{limite:"shows",rotulo:"produtos culturais",usado:d.length})]}),!r&&t.jsx("button",{className:"btn primary",onClick:()=>i(`${o}/novo`),children:"+ Novo produto cultural"})]}),t.jsx("div",{className:"cards-grid",children:d.map(h=>t.jsxs("button",{className:"show-card",onClick:()=>i(`${o}/${h.id}/editar`),children:[t.jsx("h3",{children:a(h,"name")}),t.jsxs("div",{className:"show-meta",children:[h.type&&e(Bc[h.type])&&t.jsx("span",{children:e(Bc[h.type])}),h.duration_min&&t.jsxs("span",{children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",h.duration_min," min"]}),h.rating&&t.jsxs("span",{children:[t.jsx(uu,{size:12,strokeWidth:2})," ",h.rating]})]}),a(h,"synopsis")&&t.jsx("p",{className:"clamp",children:a(h,"synopsis")}),a(h,"awards")&&t.jsxs("p",{className:"award",children:[t.jsx(kf,{size:13,strokeWidth:2})," ",a(h,"awards")]})]}
698,h.id))})]})}function up(){const e=Z(),{artistId:a,id:s}=ne(),r=s!=null,n=D(()=>r?Ue.get(Number(s)):Promise.resolve(null),[s]),o=D(()=>me.list());return n.error?t.jsx("p",{className:"error",children:n.error}):r&&(n.loading||!n.data)?t.jsx("p",{className:"muted",children:e("Carregandoâ¦")}):t.jsx(j0,{initial:r?n.data:{artist_id:Number(a)},artists:o.data??[],artistId:a})}function j0({initial:e,artists:a,artistId:s}){var Bt;const r=Z(),n=J(),{readonly:o}=de(),i=sg(s),c=!e.id,[l,d]=y.useState({...e}),[u,h]=y.useState(!1),m=ge(),[f,v]=y.useState(null),g=F=>d(Et=>({...Et,...F})),b=F=>F===""?null:Number(F),p=()=>n(i),x=a.find(F=>F.id===l.artist_id),j=(Bt=x==null?void 0:x.languages)!=null&&Bt.length?x.languages:["pt"],k=(x==null?void 0:x.default_language)??"pt",[N,C]=y.useState(k),_=ku(l,g,k,j.includes(N)?N:k),[A,z]=y.useState({busy:!1}),[P,w]=y.useState({busy:!1}),[L,$]=y.useState({busy:!1}),[H,re]=y.useState({busy:!1}),K=A.url??e.rider_pdf??void 0,le=P.url??e.croqui_pdf??void 0,I=L.url??e.mapa_luz_pdf??void 0,R=H.url??e.cue_sheet_pdf??void 0;async function V(){z({busy:!0});try{const{url:F}=await Ue.generateRider(e.id);z({busy:!1,url:F}),window.open(F,"_blank")}catch(F){z({busy:!1,err:String(F.message)})}}async function B(){w({busy:!0});try{const{url:F}=await Ue.generateCroqui(e.id);w({busy:!1,url:F}),window.open(F,"_blank")}catch(F){w({busy:!1,err:String(F.message)})}}async function se(){$({busy:!0});try{const{url:F}=await Ue.generateMapaLuz(e.id);$({busy:!1,url:F}),window.open(F,"_blank")}catch(F){$({busy:!1,err:String(F.message)})}}async function ze(){re({busy:!0});try{const{url:F}=await Ue.generateCueSheet(e.id);re({busy:!1,url:F}),window.open(F,"_blank")}catch(F){re({busy:!1,err:String(F.message)})}}const[oe,$e]=y.useState({busy:!1});async function E(){$e({busy:!0});try{const F=await Ue.getEmail(e.id);$e({busy:!1,data:F})}catch(F){$e({busy:!1,err:String(F.message)})}}async function Y(F,Et){try{await navigator.clipboard.writeText(F),$e(fa=>({...fa,copied:Et})),setTimeout(()=>$e(fa=>({...fa,copied:void 0})),1500)}catch{$e(fa=>({...fa,err:"Não foi possÃvel copiar."}))}}async function Ne(){h(!0),v(null);try{if(!l.name)throw new Error("Nome é obrigatório.");if(c){const F=await Ue.create(l);m.ok("Produto cultural criado."),n(`${i}/${F.id}/editar`,{replace:!0})}else await Ue.update(e.id,l),m.ok("Alterações salvas.")}catch(F){const Et=String(F.message);v(Et),m.erro(Et)}finally{h(!1)}}async function as(){if(confirm("Excluir este produto cultural?")){h(!0);try{await Ue.remove(e.id),p()}catch(F){v(String(F.message)),h(!1)}}}return t.jsxs(Re,{backTo:i,title:c?"Novo produto cultural":e.name??"Produto cultural",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:r("Nome"),full:!0,children:t.jsx("input",{value:l.name??"",onChange:F=>g({name:F.target.value})})}),j.length>1&&t.jsxs("div",{className:"field-full",children:[t.jsx(Nu,{langs:j,active:N,onChange:C,defaultLang:k}),t.jsx(bu,{baseFields:{subtitle:l.subtitle??"",synopsis:l.synopsis??"",history:l.history??"",awards:l.awards??""},sourceLang:k,targetLangs:j.filter(F=>F!==k),i18n:l.i18n,onFilled:F=>g({i18n:F})}),t.jsx("p",{className:"sub",children:r("SubtÃtulo, sinopse, release e premiação são escritos por idioma.")})]}),t.jsx(S,{label:r("SubtÃtulo"),full:!0,hint:'Ex.: "Um solo de um palhaço só"',children:t.jsx("input",{value:_.get("subtitle"),onChange:F=>_.put("subtitle",F.target.value)})}),t.jsx(S,{label:r("Tipo"),hint:"Define o vocabulário do site e quais documentos técnicos fazem sentido: rider, croqui e mapa de luz só valem para o que sobe em cena.",children:t.jsx("select",{value:l.type??"espetaculo",onChange:F=>g({type:F.target.value}),children:Object.entries(Bc).map(([F,Et])=>t.jsx("option",{value:F,children:Et},F))})}),t.jsx(S,{label:r("Publicação"),full:!0,hint:"Publicar mostra no site e no portfólio. Destaque joga o produto cultural pro topo da ordem de exibição.",children:t.jsxs("div",{style:{display:"flex",gap:16,alignItems:"center"},children:[t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:l.visible??!0,onChange:F=>g({visible:F.target.checked})}),r("Publicar")]}),t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!l.featured,onChange:F=>g({featured:F.target.checked})}),r("Destaque")]})]})}),t.jsx(S,{label:r("Perfil"),children:t.jsxs("select",{value:l.artist_id??"",onChange:F=>g({artist_id:b(F.target.value)}),children:[t.jsx("option",{value:"",children:"â"}),a.map(F=>t.jsx("option",{value:F.id,children:F.name},F.id))]})}),t.jsx(S,{label:r("Duração (min)"),children:t.jsx("input",{type:"number",value:l.duration_min??"",onChange:F=>g({duration_min:b(F.target.value)})})}),t.jsx(S,{label:r("Classificação"),children:t.jsx("input",{value:l.rating??"",onChange:F=>g({rating:F.target.value})})}),t.jsx(S,{label:r("Sinopse"),full:!0,children:t.jsx("textarea",{rows:3,value:_.get("synopsis"),onChange:F=>_.put("synopsis",F.target.value)})}),t.jsx(S,{label:r("Release / histórico"),full:!0,hint:"Texto longo de apresentação, pedido em editais.",children:t.jsx("textarea",{rows:5,value:_.get("history"),onChange:F=>_.put("history",F.target.value)})}),t.jsx(S,{label:r("Premiação"),full:!0,children:t.jsx("input",{value:_.get("awards"),onChange:F=>_.put("awards",F.target.value)})}),t.jsx(S,{label:r("Trilha sonora"),full:!0,hint:"Uma música por linha, no formato: Música â Autor â mm:ss â domÃnio público. Alimenta o roteiro musical (ECAD) gerado.",children:t.jsx("textarea",{rows:4,value:l.soundtrack??"",onChange:F=>g({soundtrack:F.target.value})})}),t.jsx(S,{label:r("VÃdeo integral"),children:t.jsx("input",{value:l.video_full_url??"",onChange:F=>g({video_full_url:F.target.value})})}),t.jsx(S,{label:r("VÃdeo teaser"),children:t.jsx("input",{value:l.video_teaser_url??"",onChange:F=>g({video_teaser_url:F.target.value})})}),t.jsxs("div",{className:"field-full",children:[t.jsx("strong",{children:r("Ficha técnica / rider")}),t.jsx("p",{className:"sub",children:r("Reaproveitado no preenchimento de editais e no rider gerado.")})]}),t.jsx(S,{label:r("Montagem (min)"),children:t.jsx("input",{type:"number",value:l.setup_min??"",onChange:F=>g({setup_min:b(F.target.value)})})}),t.jsx(S,{label:r("Desmontagem (min)"),children:t.jsx("input",{type:"number",value:l.teardown_min??"",onChange:F=>g({teardown_min:b(F.target.value)})})}),t.jsx(S,{label:r("Espaço cênico mÃnimo"),hint:"Ex.: 5Ã5 m, pé-direito 3,5 m",children:t.jsx("input",{value:l.min_stage??"",onChange:F=>g({min_stage:F.target.value})})}),t.jsx(S,{label:r("Adequa a espaços alternativos?"),children:t.jsxs("select",{value:l.alt_spaces==null?"":l.alt_spaces?"sim":"nao",onChange:F=>g({alt_spaces:F.target.value===""?null:F.target.value==="sim"}),children:[t.jsx("option",{value:"",children:"â"}),t.jsx("option",{value:"sim",children:r("Sim")}),t.jsx("option",{value:"nao",children:r("Não")})]})}),t.jsx(S,{label:r("Rider de som"),full:!0,children:t.jsx("textarea",{rows:2,value:l.sound_rider??"",onChange:F=>g({sound_rider:F.target.value})})}),t.jsx(S,{label:r("Rider de luz"),full:!0,children:t.jsx("textarea",{rows:2,value:l.light_rider??"",onChange:F=>g({light_rider:F.target.value})})}),t.jsx(S,{label:r("Elementos de cenário"),full:!0,children:t.jsx("textarea",{rows:2,value:l.stage_elements??"",onChange:F=>g({stage_elements:F.target.value})})}),t.jsx(S,{label:r("Outras necessidades"),full:!0,children:t.jsx("textarea",{rows:2,value:l.other_needs??"",onChange:F=>g({other_needs:F.target.value})})}),t.jsx(S,{label:r("Peso do equipamento"),hint:"Ex.: 15 kg",children:t.jsx("input",{value:l.equip_weight??"",onChange:F=>g({equip_weight:F.target.value})})}),t.jsx(S,{label:r("Energia"),full:!0,hint:"Ex.: 1 ponto de tomada perto do som, 110 V ou 220 V.",children:t.jsx("textarea",{rows:2,value:l.power_needs??"",onChange:F=>g({power_needs:F.target.value})})}),t.jsx(S,{label:r("Transporte do cenário"),full:!0,hint:"Como leva; despacho aéreo/terrestre; se cabe como bagagem.",children:t.jsx("textarea",{rows:2,value:l.transport??"",onChange:F=>g({transport:F.target.value})})}),t.jsx(S,{label:r("Desenho de luz (mapa)"),hint:"Define o mapa de luz gerado.",children:t.jsxs("select",{value:l.light_preset??"",onChange:F=>g({light_preset:F.target.value||null}),children:[t.jsx("option",{value:"",children:"â (luz geral)"}),t.jsx("option",{value:"geral",children:r("Luz geral branca")}),t.jsx("option",{value:"contra",children:r("Geral + contraluz")}),t.jsx("option",{value:"estados",children:r("Estados / deixas (com operador)")})]})}),t.jsx(S,{label:r("Ãgua / fogo em cena"),children:t.jsxs("div",{style:{display:"flex",gap:16,alignItems:"center"},children:[t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!l.uses_water,onChange:F=>g({uses_water:F.target.checked})}),r("Ãgua")]}),t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!l.uses_fire,onChange:F=>g({uses_fire:F.target.checked})}),r("Fogo")]})]})}),t.jsx(S,{label:r("Rider completo (texto/link)"),hint:"PDF ou texto do rider completo.",children:t.jsx("input",{value:l.tech_rider??"",onChange:F=>g({tech_rider:F.target.value})})}),t.jsx(S,{label:r("Fotos em alta (.zip)"),children:t.jsx("input",{value:l.photos_zip_url??"",onChange:F=>g({photos_zip_url:F.target.value})})}),t.jsx(S,{label:r("Crédito das fotos"),children:t.jsx("input",{value:l.photos_credit??"",onChange:F=>g({photos_credit:F.target.value})})})]}),!c&&e.id!=null&&t.jsxs(t.Fragment,{children:[t.jsx(Ea,{scope:{showId:e.id},kind:"foto",label:r("Fotos do produto cultural"),hint:"Fotos em alta para divulgação e site. Marque uma como capa. Quais entram no livro de vendas se escolhe no perfil, na aba Livro de vendas.",cover:!0}),!o&&t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsx("strong",{children:r("Documentos técnicos (PDF)")}
698),t.jsx("p",{className:"sub",children:"Gera a partir da ficha técnica os PDFs pedidos em editais: rider, croqui do cenário e mapa de luz. Nada é inventado â sai só do que estiver preenchido."}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[t.jsx("button",{type:"button",className:"btn",onClick:V,disabled:A.busy,children:A.busy?"Gerandoâ¦":K?"Regerar rider":"Gerar rider"}),K&&t.jsx("a",{href:K,target:"_blank",rel:"noreferrer",children:r("Abrir rider â")}),A.err&&t.jsx("span",{className:"error",children:A.err})]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:8},children:[t.jsx("button",{type:"button",className:"btn",onClick:B,disabled:P.busy,children:P.busy?"Gerandoâ¦":le?"Regerar croqui":"Gerar croqui"}),le&&t.jsx("a",{href:le,target:"_blank",rel:"noreferrer",children:r("Abrir croqui â")}),P.err&&t.jsx("span",{className:"error",children:P.err})]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:8},children:[t.jsx("button",{type:"button",className:"btn",onClick:se,disabled:L.busy,children:L.busy?"Gerandoâ¦":I?"Regerar mapa de luz":"Gerar mapa de luz"}),I&&t.jsx("a",{href:I,target:"_blank",rel:"noreferrer",children:r("Abrir mapa de luz â")}),L.err&&t.jsx("span",{className:"error",children:L.err})]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginTop:8},children:[t.jsx("button",{type:"button",className:"btn",onClick:ze,disabled:H.busy,children:H.busy?"Gerandoâ¦":R?"Regerar roteiro musical":"Gerar roteiro musical (ECAD)"}),R&&t.jsx("a",{href:R,target:"_blank",rel:"noreferrer",children:r("Abrir roteiro musical â")}),H.err&&t.jsx("span",{className:"error",children:H.err})]})]}),!o&&t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsx("strong",{children:r("E-mail de apresentação")}),t.jsx("p",{className:"sub",children:"Monta um e-mail completo (sinopse, ficha técnica, necessidades e todos os links) pronto pra copiar e enviar a curadores e festivais."}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[t.jsx("button",{type:"button",className:"btn",onClick:E,disabled:oe.busy,children:oe.busy?"Gerandoâ¦":oe.data?"Regerar e-mail":"Gerar e-mail"}),oe.data&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"btn primary",onClick:()=>Y(oe.data.body,"corpo"),children:oe.copied==="corpo"?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{size:14,strokeWidth:2.4}),r("Copiado!")]}):"Copiar e-mail"}),t.jsx("button",{type:"button",className:"btn",onClick:()=>Y(oe.data.subject,"assunto"),children:oe.copied==="assunto"?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{size:14,strokeWidth:2.4}),r("Copiado!")]}):"Copiar assunto"})]}),oe.err&&t.jsx("span",{className:"error",children:oe.err})]}),oe.data&&t.jsxs("div",{style:{marginTop:10},children:[t.jsx("input",{readOnly:!0,value:oe.data.subject,onFocus:F=>F.target.select(),style:{width:"100%",marginBottom:8}}),t.jsx("textarea",{readOnly:!0,rows:18,value:oe.data.body,onFocus:F=>F.target.select(),style:{width:"100%",fontFamily:"ui-monospace, monospace",fontSize:13}})]})]})]}),f&&t.jsx("p",{className:"error",children:f}),t.jsxs("footer",{className:"modal-foot",children:[!c&&!o&&t.jsx("button",{className:"btn danger",onClick:as,disabled:u,children:r("Excluir")}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:p,disabled:u,children:o?"Voltar":"Cancelar"}),!o&&t.jsx("button",{className:"btn primary",onClick:Ne,disabled:u,children:u?"Salvandoâ¦":"Salvar"})]})]})}const rg=e=>`/app/perfil/${e}/oficinas`;function y0(){var d;const e=Ui(),{artistId:a}=ne(),{readonly:s}=de(),r=Number(a),n=rg(a),o=J(),i=D(()=>Qs.list(r),[a]),c=D(()=>me.get(r),[a]);if(i.error)return t.jsx("p",{className:"error",children:i.error});const l=i.data??[];return t.jsxs(t.Fragment,{children:[t.jsx(U,{to:"/app/perfil",className:"back-link",children:"â¹ Perfis"}),t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[((d=c.data)==null?void 0:d.name)??"Perfil"," ·"," ",t.jsx(Xf,{limite:"oficinas",rotulo:"oficinas",usado:l.length})]}),!s&&t.jsx("button",{className:"btn primary",onClick:()=>o(`${n}/novo`),children:"+ Nova oficina"})]}),t.jsx("div",{className:"cards-grid",children:l.map(u=>t.jsxs("button",{className:"show-card",onClick:()=>o(`${n}/${u.id}/editar`),children:[t.jsx("h3",{children:e(u,"title")}),t.jsxs("div",{className:"show-meta",children:[u.duration&&t.jsxs("span",{children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",u.duration]}),u.audience&&t.jsxs("span",{children:[t.jsx(xt,{size:12,strokeWidth:2})," ",e(u,"audience")]})]}),e(u,"synopsis")&&t.jsx("p",{className:"clamp",children:e(u,"synopsis")})]},u.id))})]})}function mp(){const e=Z(),{artistId:a,id:s}=ne(),r=s!=null,n=D(()=>r?Qs.get(Number(s)):Promise.resolve(null),[s]),o=D(()=>me.list());return n.error?t.jsx("p",{className:"error",children:n.error}):r&&(n.loading||!n.data)?t.jsx("p",{className:"muted",children:e("Carregandoâ¦")}):t.jsx(b0,{initial:r?n.data:{artist_id:Number(a)},artists:o.data??[],artistId:a})}function b0({initial:e,artists:a,artistId:s}
698){var P;const r=Z(),n=J(),{readonly:o}=de(),i=rg(s),c=!e.id,[l,d]=y.useState({...e}),[u,h]=y.useState(!1),m=ge(),[f,v]=y.useState(null),g=w=>d(L=>({...L,...w})),b=w=>w===""?null:Number(w),p=a.find(w=>w.id===l.artist_id),x=(P=p==null?void 0:p.languages)!=null&&P.length?p.languages:["pt"],j=(p==null?void 0:p.default_language)??"pt",[k,N]=y.useState(j),C=ku(l,g,j,x.includes(k)?k:j),_=()=>n(i);async function A(){h(!0),v(null);try{if(!l.title)throw new Error("TÃtulo é obrigatório.");if(c){const w=await Qs.create(l);m.ok("Oficina criada."),n(`${i}/${w.id}/editar`,{replace:!0})}else await Qs.update(e.id,l),m.ok("Alterações salvas.")}catch(w){const L=String(w.message);v(L),m.erro(L)}finally{h(!1)}}async function z(){if(confirm("Excluir esta oficina?")){h(!0);try{await Qs.remove(e.id),_()}catch(w){v(String(w.message)),h(!1)}}}return t.jsxs(Re,{backTo:i,title:c?"Nova oficina":e.title??"Oficina",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:r("TÃtulo"),full:!0,children:t.jsx("input",{value:l.title??"",onChange:w=>g({title:w.target.value})})}),t.jsx(S,{label:r("Publicação"),full:!0,hint:"Publicar mostra no site e no portfólio.",children:t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:l.visible??!0,onChange:w=>g({visible:w.target.checked})}),r("Publicar")]})}),t.jsx(S,{label:r("Perfil"),children:t.jsxs("select",{value:l.artist_id??"",onChange:w=>g({artist_id:b(w.target.value)}),children:[t.jsx("option",{value:"",children:"â"}),a.map(w=>t.jsx("option",{value:w.id,children:w.name},w.id))]})}),t.jsx(S,{label:r("Duração"),hint:"Ex.: 2h / 3 encontros",children:t.jsx("input",{value:l.duration??"",onChange:w=>g({duration:w.target.value})})}),x.length>1&&t.jsxs("div",{className:"field-full",children:[t.jsx(Nu,{langs:x,active:k,onChange:N,defaultLang:j}),t.jsx(bu,{baseFields:{audience:l.audience??"",synopsis:l.synopsis??"",objectives:l.objectives??""},sourceLang:j,targetLangs:x.filter(w=>w!==j),i18n:l.i18n,onFilled:w=>g({i18n:w})}),t.jsx("p",{className:"sub",children:r("Público-alvo, sinopse e objetivos são escritos por idioma.")})]}),t.jsx(S,{label:r("Público-alvo"),full:!0,children:t.jsx("input",{value:C.get("audience"),onChange:w=>C.put("audience",w.target.value)})}),t.jsx(S,{label:r("Facilitador"),full:!0,children:t.jsx("input",{value:l.facilitator??"",onChange:w=>g({facilitator:w.target.value})})}),t.jsx(S,{label:r("Sinopse"),full:!0,children:t.jsx("textarea",{rows:3,value:C.get("synopsis"),onChange:w=>C.put("synopsis",w.target.value)})}),t.jsx(S,{label:r("Objetivos"),full:!0,hint:"Um por linha.",children:t.jsx("textarea",{rows:4,value:C.get("objectives"),onChange:w=>C.put("objectives",w.target.value)})}),t.jsx(S,{label:r("VÃdeo teaser"),children:t.jsx("input",{value:l.teaser_url??"",onChange:w=>g({teaser_url:w.target.value})})})]}),!c&&e.id!=null&&t.jsx(Ea,{scope:{oficinaId:e.id},kind:"foto",label:r("Fotos da oficina"),hint:"Até 4 fotos; marque uma como capa. Qual entra no livro de vendas se escolhe no perfil, na aba Livro de vendas.",cover:!0}),f&&t.jsx("p",{className:"error",children:f}),t.jsxs("footer",{className:"modal-foot",children:[!c&&!o&&t.jsx("button",{className:"btn danger",onClick:z,disabled:u,children:r("Excluir")}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:_,disabled:u,children:o?"Voltar":"Cancelar"}),!o&&t.jsx("button",{className:"btn primary",onClick:A,disabled:u,children:u?"Salvandoâ¦":"Salvar"})]})]})}const ng=e=>`/app/perfil/${e}/acoes`,wu=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],N0=e=>e&&e>=1&&e<=12?wu[e-1]:"Sem mês";function k0(){var d;const{artistId:e}=ne(),{readonly:a}=de(),s=Number(e),r=ng(e),n=J(),o=D(()=>Qr.list()),i=D(()=>me.get(s),[e]),c=y.useMemo(()=>(o.data??[]).filter(u=>u.artist_id===s),[o.data,s]),l=y.useMemo(()=>{const u=new Map;for(const h of c){u.has(h.year)||u.set(h.year,new Map);const m=u.get(h.year),f=h.month??0;m.has(f)||m.set(f,[]),m.get(f).push(h)}return[...u.entries()].sort((h,m)=>m[0]-h[0]).map(([h,m])=>({year:h,months:[...m.entries()].sort((f,v)=>v[0]-f[0])}))},[c]);return o.error?t.jsx("p",{className:"error",children:o.error}):t.jsxs(t.Fragment,{children:[t.jsx(U,{to:"/app/perfil",className:"back-link",children:"â¹ Perfis"}),t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[((d=i.data)==null?void 0:d.name)??"Perfil"," · ",c.length," ações no histórico"]}),!a&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{className:"btn",onClick:()=>n(`${r}
698/importar`),children:[t.jsx(Gi,{size:14})," Importar histórico"]}),t.jsx("button",{className:"btn primary",onClick:()=>n(`${r}/novo`),children:"+ Nova ação"})]})]}),c.length===0&&!o.loading&&t.jsx("p",{className:"muted",children:"Nenhuma ação cadastrada ainda."}),t.jsx("div",{className:"acoes-list",style:{display:"flex",flexDirection:"column",gap:24},children:l.map(({year:u,months:h})=>t.jsxs("section",{children:[t.jsxs("h2",{style:{marginBottom:4},children:[u," ",t.jsxs("span",{className:"muted",style:{fontSize:".8rem",fontWeight:400},children:["(",h.reduce((m,[,f])=>m+f.length,0)," ações)"]})]}),h.map(([,m])=>t.jsxs("div",{style:{marginTop:12},children:[t.jsx("h3",{className:"muted",style:{fontSize:".95rem",margin:"0 0 6px"},children:N0(m[0].month)}),t.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:4},children:m.map(f=>t.jsx("li",{children:t.jsxs("button",{className:"row-btn",onClick:()=>n(`${r}/${f.id}/editar`),style:{width:"100%",textAlign:"left",padding:"8px 12px",border:"1px solid var(--border, #e5e7eb)",borderRadius:8,background:f.visible?"transparent":"var(--muted-bg, #f8f8f8)",cursor:"pointer",opacity:f.visible?1:.6},title:f.visible?"":"Oculta no site público",children:[f.date_label&&t.jsxs("strong",{children:[f.date_label," · "]}),f.description,!f.visible&&t.jsx("span",{className:"muted",children:" · (oculta)"})]})},f.id))})]},`${u}-${m[0].month??0}`))]},u))})]})}function pp(){const{artistId:e,id:a}=ne(),s=a!=null,r=D(()=>s?Qr.get(Number(a)):Promise.resolve(null),[a]),n=D(()=>me.list());return r.error?t.jsx("p",{className:"error",children:r.error}):s&&(r.loading||!r.data)?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):t.jsx(w0,{initial:s?r.data:{artist_id:Number(e),year:new Date().getFullYear(),visible:!0},artists:n.data??[],artistId:e})}function w0({initial:e,artists:a,artistId:s}){const r=J(),{readonly:n}=de(),o=ng(s),i=!e.id,[c,l]=y.useState({visible:!0,...e}),[d,u]=y.useState(!1),h=ge(),[m,f]=y.useState(null),v=j=>l(k=>({...k,...j})),g=j=>j===""?null:Number(j),b=()=>r(o);async function p(){var j;u(!0),f(null);try{if(!c.year)throw new Error("Ano é obrigatório.");if(!((j=c.description)!=null&&j.trim()))throw new Error("Descrição é obrigatória.");if(i){const k=await Qr.create(c);h.ok("Ação criada."),r(`${o}/${k.id}/editar`,{replace:!0})}else await Qr.update(e.id,c),h.ok("Alterações salvas.")}catch(k){const N=String(k.message);f(N),h.erro(N)}finally{u(!1)}}async function x(){if(confirm("Excluir esta ação?")){u(!0);try{await Qr.remove(e.id),b()}catch(j){f(String(j.message)),u(!1)}}}return t.jsxs(Re,{backTo:o,title:i?"Nova ação cultural":"Editar ação",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Ano",children:t.jsx("input",{type:"number",value:c.year??"",onChange:j=>v({year:g(j.target.value)??void 0})})}),t.jsx(S,{label:"Mês",children:t.jsxs("select",{value:c.month??"",onChange:j=>v({month:g(j.target.value)}),children:[t.jsx("option",{value:"",children:"â Sem mês"}),wu.map((j,k)=>t.jsx("option",{value:k+1,children:j},k))]})}),t.jsx(S,{label:"Data",hint:"Opcional. Ex.: 23/07 ou 10 a 20/07",children:t.jsx("input",{value:c.date_label??"",onChange:j=>v({date_label:j.target.value})})}),t.jsx(S,{label:"Perfil",children:t.jsxs("select",{value:c.artist_id??"",onChange:j=>v({artist_id:g(j.target.value)}),children:[t.jsx("option",{value:"",children:"â"}),a.map(j=>t.jsx("option",{value:j.id,children:j.name},j.id))]})}),t.jsx(S,{label:"Descrição",full:!0,hint:"Ex.: Tuiga Sólito - SESC - Bento Gonçalves - RS",children:t.jsx("textarea",{rows:3,value:c.description??"",onChange:j=>v({description:j.target.value})})}),t.jsx(S,{label:"Público estimado",hint:"Quantas pessoas assistiram. Opcional â deixe vazio se não souber; o painel de carreira nunca chuta.",children:t.jsx("input",{type:"number",min:0,value:c.audience??"",onChange:j=>v({audience:j.target.value===""?null:Number(j.target.value)})})}),t.jsx(S,{label:"Cachê (R$)",hint:"Valor recebido por esta ação. Opcional, uso interno.",children:t.jsx("input",{type:"number",min:0,step:"0.01",value:c.fee??"",onChange:j=>v({fee:j.target.value===""?null:Number(j.target.value)})})}),t.jsx(S,{label:"Visibilidade",full:!0,children:t.jsxs("label",{style:{display:"flex",gap:8,alignItems:"center",paddingTop:4},children:[t.jsx("input",{type:"checkbox",checked:!!c.visible,onChange:j=>v({visible:j.target.checked})}),"Mostrar no site público do grupo/companhia"]})})]}),m&&t.jsx("p",{className:"error",children:m}),t.jsxs("footer",{className:"modal-foot",children:[!i&&!n&&t.jsx("button",{className:"btn danger",onClick:x,disabled:d,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:b,disabled:d,children:n?"Voltar":"Cancelar"}),!n&&t.jsx("button",{className:"btn primary",onClick:p,disabled:d,children:d?"Salvandoâ¦":"Salvar"})]})]})}const C0=[{n:1,titulo:"CurrÃculo"},{n:2,titulo:"Conferir"}];function _0({atual:e}){return t.jsx("ol",{className:"wizard-steps",children:C0.map(a=>t.jsxs("li",{className:`wizard-step ${a.n===e?"active":""} ${a.n<e?"done":""}`,children:[t.jsx("span",{className:"wizard-step-n",children:a.n<e?t.jsx(Ze,{size:13,strokeWidth:3}):a.n}),a.titulo]},a.n))})}function S0(){var z;const{artistId:e}=ne(),a=Number(e),s=`/app/perfil/${e}/acoes`,r=J(),n=ge(),{readonly:o}=de(),i=D(()=>me.get(a),[e]),[c,l]=y.useState(null),[d,u]=y.useState(null),[h,m]=y.useState(null),[f,v]=y.useState(null),[g,b]=y.useState([]),p=f?2:1,x=y.useMemo(()=>g.filter(P=>P.marcado),[g]),j=y.useMemo(()=>g.filter(P=>P.duplicate).length,[g]),k=((z=i.data)==null?void 0:z.name)??"";async function N(){if(c){u("extrair"),m(null);try{const P=await ap.upload(a,c);v(P),b(P.items.map(w=>({...w,marcado:!w.duplicate}))),P.items.length===0&&n.erro("Nenhuma ação foi encontrada neste arquivo.")}catch(P){const w=String(P.message);m(w),n.erro(w)}finally{u(null)}}}async function C(){u("salvar"),m(null);try{const P=x.map(L=>({year:L.year,month:L.month,date_label:L.date_label,description:L.description,source:L.source})),w=await ap.save(a,P);n.ok(`${w.created} ${w.created===1?"ação importada":"ações importadas"}`+(w.skipped?` · ${w.skipped} já existiam`:"")),r(s)}catch(P){const w=String(P.message);m(w),n.erro(w),u(null)}}function _(P,w){b(L=>L.map(($,H)=>H===P?{...$,...w}:$))}function A(){v(null),b([]),m(null)}return o?t.jsx("p",{className:"muted",children:"Visitante não importa histórico."}):t.jsxs("div",{className:"wizard wizard-largo",children:[t.jsx(U,{to:s,className:"back-link",children:"â¹ Histórico de ações"}),t.jsx(_0,{atual:p}),h&&t.jsx("p",{className:"error",children:h}),p===1&&t.jsxs("div",{className:"card",children:[t.jsxs("h3",{style:{marginTop:0},children:["Importar histórico ",k&&t.jsxs("span",{className:"muted",children:["· ",k]})]}),t.jsx("p",{className:"muted",children:"Envie o currÃculo ou o portfólio do grupo e a IA propõe a lista de ações. Você confere tudo no passo seguinte â nada entra no histórico sem a sua confirmação."}),t.jsx("div",{className:"form-grid",children:t.jsxs("label",{className:"field field-full",children:[t.jsx("span",{children:"CurrÃculo (PDF ou Word)"}),t.jsx("input",{type:"file",accept:".pdf,.docx",onChange:P=>{var w;return l(((w=P.target.files)==null?void 0:w[0])??null)}}),t.jsx("small",{className:"field-hint",children:"Só .pdf e .docx. O arquivo é lido na hora e não fica guardado â o que fica são as ações que você confirmar."})]})}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsxs("button",{className:"btn primary",onClick:N,disabled:d!==null||c===null,children:[t.jsx(Gi,{size:14}),d==="extrair"?"Lendo o arquivoâ¦":"Ler e propor ações â"]}),t.jsx("button",{className:"btn",onClick:()=>r(s),disabled:d!==null,children:"Cancelar"})]}),d==="extrair"&&t.jsx("p",{className:"muted",style:{fontSize:12,marginBottom:0},children:"Costuma levar de 30 segundos a um minuto."})]}),p===2&&f&&t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Confira antes de importar"}),t.jsxs("p",{className:"muted",children:[g.length," ",g.length===1?"ação encontrada":"ações encontradas"," ·"," ",x.length," marcada(s) para importar",j>0&&` · ${j} já existiam no histórico (desmarcadas)`]}),f.notes&&t.jsxs("p",{className:"muted",style:{fontStyle:"italic"},children:["Observação da IA: ",f.notes]}),t.jsxs("div",{className:"wizard-acoes",children:[t.jsx("button",{className:"btn",onClick:()=>b(P=>P.map(w=>({...w,marcado:!0}))),children:"Marcar todas"}),t.jsx("button",{className:"btn",onClick:()=>b(P=>P.map(w=>({...w,marcado:!1}))),children:"Desmarcar todas"})]}
698),t.jsx("div",{className:"import-linhas",children:g.map((P,w)=>t.jsxs("div",{className:`import-linha ${P.marcado?"":"fora"}`,children:[t.jsx("input",{type:"checkbox",checked:P.marcado,onChange:L=>_(w,{marcado:L.target.checked}),title:P.marcado?"Vai ser importada":"Fica de fora"}),t.jsx("input",{className:"import-ano",type:"number",value:P.year,onChange:L=>_(w,{year:Number(L.target.value)})}),t.jsxs("select",{className:"import-mes",value:P.month??"",onChange:L=>_(w,{month:L.target.value===""?null:Number(L.target.value)}),children:[t.jsx("option",{value:"",children:"â mês"}),wu.map((L,$)=>t.jsx("option",{value:$+1,children:L},$))]}),t.jsx("input",{className:"import-desc",value:P.description,onChange:L=>_(w,{description:L.target.value})}),P.duplicate&&t.jsx("span",{className:"import-dup",children:"já existe"}),P.source&&t.jsx("span",{className:"muted import-fonte-item",title:P.source,children:P.source})]},w))}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsx("button",{className:"btn primary",onClick:C,disabled:d!==null||x.length===0,children:d==="salvar"?"Importandoâ¦":`Importar ${x.length} ${x.length===1?"ação":"ações"}`}),t.jsx("button",{className:"btn",onClick:A,disabled:d!==null,children:"â¹ Trocar o arquivo"}),t.jsx("button",{className:"btn",onClick:()=>r(s),disabled:d!==null,children:"Cancelar"})]})]})]})}const E0="17 de agosto de 2026",hp="[email protected]";function rs({titulo:e,children:a}){return t.jsxs("section",{style:{marginTop:32},children:[t.jsx("h2",{style:{fontSize:20,margin:"0 0 10px"},children:e}),t.jsx("div",{style:{lineHeight:1.7,color:"rgb(var(--ink))"},children:a})]})}function P0(){return t.jsx("div",{style:{background:"rgb(var(--bg))",minHeight:"100vh"},children:t.jsxs("div",{style:{maxWidth:760,margin:"0 auto",padding:"48px 24px 80px"},children:[t.jsxs(U,{to:"/",style:{display:"inline-flex",alignItems:"center",gap:8,marginBottom:28},children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",style:{width:26,height:26}}),t.jsx("strong",{style:{fontSize:18},children:"Gira"})]}),t.jsx("h1",{style:{fontSize:30,margin:"0 0 6px"},children:"PolÃtica de privacidade"}),t.jsxs("p",{className:"muted",style:{margin:0},children:["Vale para a plataforma Gira (gira.lat) e para a extensão do Chrome âGira â Autofill de inscriçõesâ. Atualizada em ",E0,"."]}),t.jsx(rs,{titulo:"Quem somos",children:t.jsxs("p",{children:["A Gira é uma produtora de circulação artÃstica que mantém uma plataforma de gestão de carreira para artistas de circo e teatro. O responsável pelo tratamento dos dados é André da Silva Costa (Gira), Porto Alegre/RS, Brasil. Contato: ",t.jsx("a",{href:`mailto:${hp}`,children:hp}),"."]})}),t.jsxs(rs,{titulo:"Que dados a plataforma guarda",children:[t.jsx("p",{children:"Só o que você cadastra para trabalhar: dados do artista ou da companhia (nome, cidade, contatos, textos de apresentação), produtos culturais, oficinas, histórico de ações, fotos e documentos que você mesmo envia, inscrições em editais e, quando você preenche, dados jurÃdicos (CNPJ, CPF, RG, dados bancários) usados em contrato e prestação de contas."}),t.jsxs("p",{children:["Os dados jurÃdicos e a sua chave de inteligência artificial são guardados",t.jsx("strong",{children:" criptografados"})," no banco. Não vendemos, alugamos nem cedemos dado nenhum a terceiros, e não usamos rastreadores de publicidade."]})]}),t.jsxs(rs,{titulo:"A extensão do Chrome",children:[t.jsx("p",{children:"A extensão existe para uma coisa só: preencher, com o seu cadastro da Gira, o formulário de inscrição de um festival que você abriu."}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Ela só age quando você clica."})," A leitura da página acontece no momento em que você aperta âPreencher este formulárioâ, na aba que está aberta. Sem esse clique, a extensão não lê página nenhuma."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"O que sai da sua máquina"})," são as perguntas do formulário (o texto das perguntas e as opções), enviadas ao servidor da Gira, que as cruza com o seu cadastro usando a chave de IA da sua companhia (Google Gemini) e devolve as respostas sugeridas."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"O conteúdo da página não é armazenado."})," As perguntas são processadas na hora e não ficam guardadas; o que registramos é apenas que houve uma chamada de IA, para medir consumo."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"A extensão nunca envia o formulário."})," Ela preenche; quem revisa e envia é você."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Login."}
698)," Ela usa a sessão que você já abriu em gira.lat. Sem conta e sem login, a extensão não faz nada."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Dados sensÃveis não vão para a IA."})," Dados bancários, RG e PIX ficam fora do que é enviado; se o formulário pedir, preencha à mão."]})]})]}),t.jsx(rs,{titulo:"Com quem os dados são compartilhados",children:t.jsxs("p",{children:["Para gerar textos e sugestões, a plataforma envia o conteúdo necessário à API do ",t.jsx("strong",{children:"Google Gemini"}),", usando a chave da sua própria companhia quando ela está cadastrada. Fora isso, os dados ficam no servidor da Gira, hospedado em infraestrutura própria contratada (Hostinger)."]})}),t.jsxs(rs,{titulo:"Medição de audiência",children:[t.jsxs("p",{children:["O site usa o ",t.jsx("strong",{children:"Google Analytics"})," para saber quantas pessoas chegam e por quais páginas passam. Ele grava um cookie no seu navegador e registra páginas visitadas, tipo de aparelho, idioma e a região aproximada (pelo IP) â nunca o seu nome, o seu e-mail ou o conteúdo do que você cadastrou na plataforma."]}),t.jsx("p",{children:'A medição não é cruzada com o seu cadastro: quem aparece no relatório é uma visita, não uma pessoa identificada. Se você usa bloqueador de rastreadores ou o recurso "não me rastreie" do navegador, o site continua funcionando igual.'})]}),t.jsx(rs,{titulo:"Seus direitos",children:t.jsx("p",{children:"Você pode ver, corrigir, exportar ou apagar seus dados a qualquer momento â pela própria plataforma ou pedindo por e-mail. Encerrando o uso, os dados são apagados mediante solicitação. à o que a LGPD (Lei 13.709/2018) garante, e é como trabalhamos."})}),t.jsx(rs,{titulo:"Mudanças",children:t.jsx("p",{children:"Se esta polÃtica mudar, a data acima muda junto e a versão nova fica nesta mesma página."})}),t.jsxs("p",{className:"muted",style:{marginTop:48,fontSize:13},children:["© 2026 Gira · ",t.jsx(U,{to:"/",children:"gira.lat"})]})]})})}const Ht={agora:0,semForm:1,inscrito:2,encerrado:3};function Sn(e,a){return e.submission_open?a.has(e.id)?Ht.inscrito:e.next_registration_url?Ht.agora:Ht.semForm:Ht.encerrado}function A0(e,a){return[...e].sort((s,r)=>{const n=Sn(s,a),o=Sn(r,a);if(n!==o)return n-o;const i=s.next_deadline,c=r.next_deadline;return i&&c?n===Ht.encerrado?c.localeCompare(i):i.localeCompare(c):i!==c?i?-1:1:s.name.localeCompare(r.name,"pt-BR")})}function Cu(e,a){return a?`/app/edicoes/${e}/editar`:`/app/oportunidades/edicao/${e}/editar`}let so=null;function og(){return window.L?Promise.resolve(window.L):so||(so=new Promise((e,a)=>{const s=document.createElement("link");s.rel="stylesheet",s.href="/vendor/leaflet/leaflet.css",document.head.appendChild(s);const r=document.createElement("script");r.src="/vendor/leaflet/leaflet.js",r.async=!0,r.onload=()=>e(window.L),r.onerror=()=>a(new Error("Não foi possÃvel carregar o mapa.")),document.head.appendChild(r)}),so)}const st=e=>String(e??"").replace(/[&<>"']/g,a=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[a]),ig="https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",z0="/app/oportunidades",xp=e=>[e.city,e.state,e.country].filter(Boolean).join(" · ");function T0(e){if(!e)return null;const[a,s,r]=e.slice(0,10).split("-");return`${r}/${s}/${a}`}function I0(e){const a=new Map;for(const s of e){if(s.lat==null||s.lng==null)continue;const r=`${s.lat.toFixed(3)},${s.lng.toFixed(3)}`,n=a.get(r);n?n.items.push(s):a.set(r,{key:r,lat:s.lat,lng:s.lng,items:[s]})}return[...a.values()]}function $0(e,a){const s=e.items.some(o=>Sn(o,a)===Ht.agora),r=e.items.every(o=>o.geo_precision!=="city"),n=e.items.length>1?String(e.items.length):"";return`<span class="map-pin${s?" is-open":""}${r?" is-approx":""}">${n}</span>`}function L0(e,a){const s=e.items.length>1?`<p class="map-pop-place">${st(xp(e.items[0]))} · ${e.items.length} oportunidades</p>`:"",r=e.items.map(n=>{const o=Sn(n,a),i=T0(n.next_deadline),c=o===Ht.inscrito?'<span class="map-tag">Você já se inscreveu</span>':o===Ht.encerrado?`<span class="map-tag">${i?`Encerrou em ${i}`:"Encerrado"}</span>`:i?`<span class="map-tag map-tag-open">Inscrições até ${i}</span>
698`:'<span class="map-tag map-tag-open">Aberto, sem prazo definido</span>',l=ds[n.kind]??n.kind,d=o===Ht.agora&&n.next_edition_id,u=`<p class="map-pop-links"> 699 <a href="${z0}/${n.id}">Ver no Radar</a>${d?` <a href="/app/inscricoes/inscrever/${n.next_edition_id}">Inscrever-se</a>`:""} 700 </p>`,h=n.geo_precision==="city"?"":`<p class="map-pop-approx">Local aproximado (${n.geo_precision==="state"?"estado":"paÃs"})</p>`;return`<div class="map-pop-item"> 701 <strong>${st(n.name)}</strong> 702 ${n.organizer?`<p class="map-pop-org">${st(n.organizer)}</p>`:""} 703 <p class="map-pop-place">${st(xp(n))} · ${st(l)}</p> 704 ${c} 705 ${u} 706 ${h} 707 </div>`}).join("");return`<div class="map-pop">${s}${r}</div>`}function q0({rows:e,inscritos:a}){const[s,r]=O.useState(null),[n,o]=O.useState(!1),i=O.useRef(null),c=O.useRef(null),l=O.useRef(null);O.useEffect(()=>{let h=!1;return og().then(m=>{if(h||!i.current||c.current)return;const f=m.map(i.current,{zoomControl:!0,scrollWheelZoom:!0,attributionControl:!0,minZoom:2}).setView([-15,-50],3);m.tileLayer(ig,{maxZoom:18,attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>'}).addTo(f),l.current=m.layerGroup().addTo(f),c.current=f,o(!0)}).catch(m=>r(m.message)),()=>{var m;h=!0,(m=c.current)==null||m.remove(),c.current=null}},[]);const d=O.useMemo(()=>I0(e),[e]),u=e.length-d.reduce((h,m)=>h+m.items.length,0);return O.useEffect(()=>{const h=window.L;if(!(!n||!h||!l.current)){l.current.clearLayers();for(const m of d)h.marker([m.lat,m.lng],{icon:h.divIcon({className:"map-pin-wrap",html:$0(m,a),iconSize:[26,26],iconAnchor:[13,13],popupAnchor:[0,-14]}),title:m.items.map(f=>f.name).join(" · ")}).bindPopup(L0(m,a),{maxWidth:320,maxHeight:340}).addTo(l.current);d.length&&c.current&&(c.current.invalidateSize(),c.current.fitBounds(h.latLngBounds(d.map(m=>[m.lat,m.lng])),{padding:[50,50],maxZoom:7}))}},[d,a,n]),O.useEffect(()=>{if(!n||!i.current)return;const h=i.current,m=new ResizeObserver(()=>{var f;return(f=c.current)==null?void 0:f.invalidateSize()});return m.observe(h),()=>m.disconnect()},[n]),s?t.jsx("p",{className:"error",children:s}):t.jsxs("div",{className:"card no-pad radar-map-card",children:[t.jsx("div",{ref:i,className:"radar-map"}),t.jsxs("div",{className:"radar-map-foot",children:[t.jsxs("span",{className:"radar-map-legenda",children:[t.jsx("span",{className:"map-legend map-legend-open"})," dá para se inscrever"]}),t.jsxs("span",{className:"radar-map-legenda",children:[t.jsx("span",{className:"map-legend map-legend-approx"})," local aproximado"]}),d.length===0&&t.jsx("span",{className:"muted",children:"Nenhuma oportunidade no recorte atual."}),u>0&&t.jsxs("span",{className:"muted",children:[u," sem local reconhecido â ",u===1?"aparece":"aparecem"," ","só na tabela."]})]})]})}const M0=new Date().toISOString().slice(0,10),R0=e=>!e.deadline||e.deadline>=M0,Ga="/app/oportunidades",F0=Object.keys(Vi);function O0(){const{libera:e}=St();return e("radar")?t.jsx(D0,{}):t.jsx(_u,{})}function _u(){var n,o;const e=Z(),a=D(()=>Rt.stats()),s=((n=a.data)==null?void 0:n.opportunities)??null,r=((o=a.data)==null?void 0:o.opportunities_open)??null;return t.jsx(gr,{moduleKey:"radar",Icone:Za,titulo:e("O Radar é dos planos pagos"),numeros:s==null?t.jsx("span",{className:"muted",children:e("Carregandoâ¦")}):t.jsxs(t.Fragment,{children:[t.jsx("strong",{children:s})," ",e("oportunidades acompanhadas pela Gira"),r!=null&&r>0&&t.jsxs(t.Fragment,{children:[" · ",t.jsx("strong",{children:r})," ",e("com inscrição aberta agora")]})]}),explicacao:e("Festivais, editais, mostras e credenciamentos garimpados um a um, com prazo, cachê, link do edital e do formulário. à o trabalho de curadoria que a assinatura paga."),itens:[e("Quem está com inscrição aberta hoje, e até quando"),e("O link do edital e o do formulário, sem procurar"),e("Filtro pela sua linguagem e os prazos fechando no painel"),e("Inscrição guiada, com as respostas rascunhadas pela IA")],cta:e("Assinar para ver")})}function D0(){const e=Z(),a=J(),{canCurate:s,readonly:r,hasModule:n}=de(),o=n("edicoes"),{user:i}=Ae(),c=D(()=>Fa.list()),l=D(()=>xe.list()),d=new Set((l.data??[]).map($=>$.festival_id)),u=!r,[h,m]=y.useState(""),f=(i==null?void 0:i.radar_categories)??[],[v,g]=y.useState(null),b=v??f,p=v===null&&f.length>0,[x,j]=y.useState(""),[k,N]=y.useState("tabela");if(c.error)return t.jsx("p",{className:"error",children:c.error});const C=c.data??[],_=h.trim().toLowerCase(),A=C.filter($=>(!_||$.name.toLowerCase().includes(_))&&Kf($.art_categories,b)&&(!x||($.kind??"festival")===x)),z=A0(A,d),P=z.filter($=>Sn($,d)===Ht.agora).length,w=new Map;for(const $ of C)for(const H of $.art_categories??[])w.set(H,(w.get(H)??0)+1);const L=C.filter($=>($.art_categories??[]).length===0).length;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsx("input",{type:"search",placeholder:e("Buscar por nomeâ¦"),value:h,onChange:$=>m($.target.value),style:{minWidth:240}}),t.jsxs("select",{value:x,onChange:$=>j($.target.value),title:e("Natureza da oportunidade"),children:[t.jsx("option",{value:"",children:e("Todas as naturezas")}
707),Object.entries(ds).map(([$,H])=>{const re=C.filter(K=>(K.kind??"festival")===$).length;return t.jsxs("option",{value:$,disabled:!re,children:[H,re?` (${re})`:""]},$)})]}),t.jsxs("span",{className:"muted",children:[z.length," oportunidades",u&&P>0&&` · ${P} para se inscrever agora`]}),t.jsxs("div",{className:"visao-switch",role:"group","aria-label":e("Forma de ver"),children:[t.jsxs("button",{type:"button",className:k==="tabela"?"is-on":"",onClick:()=>N("tabela"),children:[t.jsx(Xb,{size:15}),e("Tabela")]}),t.jsxs("button",{type:"button",className:k==="mapa"?"is-on":"",onClick:()=>N("mapa"),children:[t.jsx(r1,{size:15}),e("Mapa")]})]}),s&&t.jsx("button",{className:"btn primary",onClick:()=>a(`${Ga}/novo`),children:e("Adicionar")})]}),t.jsxs("div",{className:"toolbar",style:{gap:6,flexWrap:"wrap"},children:[t.jsx(Hi,{valor:b,onChange:g,opcoes:yu.filter($=>w.has($)),contagem:w}),b.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"link",onClick:()=>g([]),children:e("ver todas")}),L>0&&t.jsxs("span",{className:"muted",style:{fontSize:12},children:["+ ",L," sem linguagem cadastrada, que aparecem em qualquer filtro"]})]}),p&&t.jsx("span",{className:"muted",style:{fontSize:12},children:e("filtrando pelas linguagens do seu perfil")})]}),k==="mapa"?t.jsx(q0,{rows:z,inscritos:d}):t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table cartoes",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:e("Oportunidade")}),t.jsx("th",{children:e("Linguagem")}),t.jsx("th",{children:e("Cidade/UF")}),t.jsx("th",{children:e("Abrangência")}),t.jsx("th",{children:e("PrestÃgio")}),t.jsx("th",{children:e("Prazo")}),u&&t.jsx("th",{}),t.jsx("th",{})]})}),t.jsx("tbody",{children:z.map($=>t.jsxs("tr",{onClick:()=>a(`${Ga}/${$.id}`),children:[t.jsxs("td",{className:"cartao-titulo",children:[t.jsx("strong",{children:$.name}),$.organizer&&t.jsx("span",{className:"sub",children:$.organizer})]}),t.jsx("td",{"data-rotulo":"Linguagem",children:t.jsx(Qf,{cats:$.art_categories})}),t.jsx("td",{className:"muted","data-rotulo":"Cidade/UF",children:[$.city,$.state].filter(Boolean).join("/")||$.country}),t.jsx("td",{"data-rotulo":"Abrangência",children:t.jsx(Hf,{reach:$.reach})}),t.jsx("td",{"data-rotulo":"PrestÃgio",children:t.jsx(or,{n:$.prestige})}),t.jsx("td",{className:$.submission_open?void 0:"muted","data-rotulo":"Prazo",children:X($.next_deadline)}),u&&t.jsx("td",{className:"cartao-acao col-fim",children:d.has($.id)?t.jsxs("span",{className:"muted inline-ico",children:[e("Inscrito"),t.jsx(Ze,{size:13,strokeWidth:2.4})]}):$.submission_open?$.next_registration_url?t.jsx("button",{type:"button",className:"btn primary",onClick:H=>{H.stopPropagation(),a(`/app/inscricoes/inscrever/${$.next_edition_id}`)},children:e("Inscrever-se")}):t.jsxs("span",{className:"muted",children:["Sem link de inscrição",(s||$.can_edit)&&$.next_edition_id?t.jsx("button",{type:"button",className:"link",style:{marginLeft:10},onClick:H=>{H.stopPropagation(),a(Cu($.next_edition_id,o))},children:"cadastrar link"}):s?t.jsx("button",{type:"button",className:"link",style:{marginLeft:10},onClick:H=>{H.stopPropagation(),a(`/app/edicoes/novo?festival=${$.id}`)},children:"cadastrar edição"}):null]}):t.jsx("span",{className:"muted",children:e("Prazo encerrado")})}),t.jsx("td",{className:"muted cartao-oculto",children:"âº"})]},$.id))})]})})]})}function fp(){const{libera:e}=St();return e("radar")?t.jsx(B0,{}):t.jsx(_u,{})}function B0(){const e=Z(),{id:a}=ne(),s=a!=null,r=D(()=>s?Fa.get(Number(a)):Promise.resolve(null),[a]);return r.error?t.jsx("p",{className:"error",children:r.error}):s&&(r.loading||!r.data)?t.jsx("p",{className:"muted",children:e("Carregandoâ¦")}):t.jsx(G0,{initial:s?r.data:{country:"Brasil"}})}function G0({initial:e}){const a=Z(),s=J(),{canCurate:r,role:n}=de(),o=n==="admin",i=D(()=>o?me.list():Promise.resolve([]),[o]),c=!e.id,l=c?r:e.can_edit??r,[d,u]=y.useState({...e}),[h,m]=y.useState(!1),f=ge(),[v,g]=y.useState(null),b=N=>u(C=>({...C,...N})),p=N=>N===""?null:Number(N),x=()=>s(Ga);async function j(){m(!0),g(null);try{if(!d.name)throw new Error("Nome é obrigatório.");if(c){const N=await Fa.create(d);f.ok("Festival criado."),s(`${Ga}/${N.id}/editar`,{replace:!0})}else{const{visible_to_artist_id:N,...C}=d;await Fa.update(e.id,o?d:C),f.ok("Alterações salvas.")}}catch(N){const C=String(N.message);g(C),f.erro(C)}finally{m(!1)}}async function k(){if(confirm("Excluir a oportunidade e todas as suas edições/inscrições?")){m(!0);try{await Fa.remove(e.id),x()}catch(N){g(String(N.message)),m(!1)}}}return t.jsxs(Re,{backTo:Ga,title:c?"Nova oportunidade":e.name??"Oportunidade",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:a("Nome"),full:!0,children:t.jsx("input",{value:d.name??"",onChange:N=>b({name:N.target.value})})}),t.jsx(S,{label:a("Natureza"),hint:"Define o que a inscrição vai pedir: festival recebe portfólio e vÃdeo; edital público pede um projeto escrito, com orçamento e critérios.",children:t.jsx("select",{value:d.kind??"festival",onChange:N=>b({kind:N.target.value}),children:Object.entries(ds).map(([N,C])=>t.jsx("option",{value:N,children:C},N))})}),t.jsx(S,{label:a("Organização"),full:!0,children:t.jsx("input",{value:d.organizer??"",onChange:N=>b({organizer:N.target.value})})}),t.jsxs(S,{label:a("Linguagens"),full:!0,children:[t.jsx(Hi,{valor:d.art_categories??[],onChange:N=>b({art_categories:N})}),t.jsx("span",{className:"sub",children:"Marque todas as que a oportunidade atende â um edital de hip hop costuma atender também dança, música e grafite. Sem nenhuma marcada, ela aparece para qualquer linguagem."})]}),t.jsx(ju,{country:d.country,state:d.state,city:d.city,onChange:b}),t.jsx(S,{label:a("Abrangência"),children:t.jsxs("select",{value:d.reach??"",onChange:N=>b({reach:N.target.value||null}),children:[t.jsx("option",{value:"",children:"â"}),F0.map(N=>t.jsx("option",{value:N,children:a(Vi[N])},N))]})}),t.jsx(S,{label:a("PrestÃgio (1-5)"),children:t.jsx("input",{type:"number",min:1,max:5,value:d.prestige??"",onChange:N=>b({prestige:p(N.target.value)})})}),t.jsx(S,{label:a("Recorrência"),children:t.jsx("input",{value:d.recurrence??"",onChange:N=>b({recurrence:N.target.value})})}),t.jsx(S,{label:a("Mês usual"),children:t.jsx("input",{value:d.usual_month??"",onChange:N=>b({usual_month:N.target.value})})}),t.jsx(S,{label:a("Site"),full:!0,children:t.jsx("input",{value:d.site_url??"",onChange:N=>b({site_url:N.target.value})})}),t.jsx(S,{label:a("Instagram"),full:!0,children:t.jsx("input",{value:d.instagram_url??"",onChange:N=>b({instagram_url:N.target.value})})}),t.jsx(S,{label:a("Link da bio (linktree/form)"),full:!0,children:t.jsx("input",{placeholder:a("linktr.ee/⦠ou forms.gle/⦠â o radar monitora este link"),value:d.bio_link_url??"",onChange:N=>b({bio_link_url:N.target.value})})}),t.jsx(S,{label:a("Notas de radar"),full:!0,children:t.jsx("textarea",{rows:2,value:d.radar_notes??"",onChange:N=>b({radar_notes:N.target.value})})}),o&&t.jsx(S,{label:a("Exibir para"),full:!0,hint:"Todas as companhias veem esta oportunidade, a não ser que você escolha uma â aà ela some do Radar, do painel e da IA de todas as outras.",children:t.jsxs("select",{value:d.visible_to_artist_id??"",onChange:N=>b({visible_to_artist_id:N.target.value===""?null:Number(N.target.value)}),children:[t.jsx("option",{value:"",children:a("Todas as companhias")}),(i.data??[]).map(N=>t.jsxs("option",{value:N.id,children:["Só ",N.name]},N.id))]})})]}),!c&&e.id!=null&&t.jsx(lg,{festivalId:e.id}),!c&&t.jsx(Wi,{criadoPor:e.created_by_name,editadoPor:e.updated_by_name}),v&&t.jsx("p",{className:"error",children:v}),t.jsxs("footer",{className:"modal-foot",children:[!c&&r&&t.jsx("button",{className:"btn danger",onClick:k,disabled:h,children:a("Excluir")}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:x,disabled:h,children:l?"Cancelar":"Voltar"}),l&&t.jsx("button",{className:"btn primary",onClick:j,disabled:h,children:h?"Salvandoâ¦":"Salvar"})]})]})}function lg({festivalId:e}){const a=Z(),s=J(),{readonly:r,hasModule:n}=de(),o=!r,i=n("edicoes"),c=D(()=>oa.list({festival_id:e}),[e]),l=D(()=>xe.list(),[]),d=new Set((l.data??[]).map(h=>h.edition_id)),u=c.data??[];return t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[t.jsx("strong",{children:a("Edições / editais deste festival")}),i&&t.jsx("button",{type:"button",className:"btn",onClick:()=>s(`/app/edicoes/novo?festival=${e}`),children:"+ Nova edição"})]}),t.jsx("p",{className:"sub",children:a("Cada ano do festival e seu edital.")}),u.length===0?t.jsx("p",{className:"muted",children:a("Nenhuma edição cadastrada ainda.")}):t.jsx("div",{className:"card no-pad",style:{marginTop:8},children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:a("Ano / edição")}),t.jsx("th",{children:a("Prazo")}),t.jsx("th",{children:a("Resultado")}),o&&t.jsx("th",{})]})}),t.jsx("tbody",{children:u.map(h=>t.jsxs("tr",{onClick:()=>s(`${Ga}/edicao/${h.id}`),children:[t.jsx("td",{children:h.edition_label??h.year}),t.jsx("td",{children:X(h.deadline)}),t.jsx("td",{children:X(h.result_date)}),o&&t.jsx("td",{style:{textAlign:"right"},children:t.jsxs("span",{style:{display:"inline-flex",gap:8,alignItems:"center"},children:[(i||h.can_edit)&&t.jsx("button",{type:"button",className:"btn",onClick:m=>
707{m.stopPropagation(),s(Cu(h.id,i))},children:a("Editar")}),d.has(h.id)?t.jsxs("span",{className:"muted inline-ico",children:[a("Inscrito"),t.jsx(Ze,{size:13,strokeWidth:2.4})]}):R0(h)?t.jsx("button",{type:"button",className:"btn primary",onClick:m=>{m.stopPropagation(),s(`/app/inscricoes/novo?festival=${e}&year=${h.year}`)},children:a("Inscrever-se")}):t.jsx("span",{className:"muted",children:a("Prazo encerrado")})]})})]},h.id))})]})})]})}function V0(){const{libera:e}=St();return e("radar")?t.jsx(U0,{}):t.jsx(_u,{})}function U0(){const e=Z(),a=Ui(),{id:s}=ne(),r=J(),{canCurate:n}=de(),o=D(()=>Fa.get(Number(s)),[s]);if(o.loading)return t.jsx("p",{className:"muted",children:e("Carregandoâ¦")});if(o.error)return t.jsx("p",{className:"error",children:o.error});const i=o.data,c=[i.city,i.state].filter(Boolean).join("/")||i.country;return t.jsxs(Re,{backTo:Ga,title:i.name,actions:n||i.can_edit?t.jsx("button",{className:"btn",onClick:()=>r(`${Ga}/${i.id}/editar`),children:e("Editar")}):void 0,children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(ke,{label:e("Organização"),value:i.organizer,full:!0}),t.jsx(ke,{label:e("Linguagens"),value:t.jsx(Qf,{cats:i.art_categories}),full:!0}),t.jsx(ke,{label:e("Local"),value:c}),t.jsx(ke,{label:e("Abrangência"),value:t.jsx(Hf,{reach:i.reach})}),t.jsx(ke,{label:e("PrestÃgio"),value:t.jsx(or,{n:i.prestige})}),t.jsx(ke,{label:e("Recorrência"),value:a(i,"recurrence")}),t.jsx(ke,{label:e("Mês usual"),value:a(i,"usual_month")}),t.jsx(ke,{label:e("Site"),value:t.jsx(Ks,{url:i.site_url}),full:!0}),t.jsx(ke,{label:e("Instagram"),value:t.jsx(Ks,{url:i.instagram_url}),full:!0}),i.bio_link_url&&t.jsx(ke,{label:e("Link da bio"),value:t.jsx(Ks,{url:i.bio_link_url}),full:!0}),t.jsx(ke,{label:e("Notas de radar"),value:a(i,"radar_notes"),full:!0})]}),t.jsx(lg,{festivalId:i.id}),t.jsx(Wi,{criadoPor:i.created_by_name,editadoPor:i.updated_by_name})]})}const gp="giro_folio_url",W0={escola:"escolas",feira_livro:"feiras do livro",biblioteca:"bibliotecas",centro_cultural:"centros culturais",ponto_cultura:"pontos de cultura",ong:"ONGs e institutos",prefeitura:"prefeituras",secretaria_cultura:"secretarias de cultura",universidade:"universidades",sesc:"unidades do SESC",teatro:"teatros",espaco_independente:"espaços culturais"};function H0(e,a,s,r){const n=e.name,o=(a==null?void 0:a.name)??"meu trabalho",i=a!=null&&a.subtitle&&!o.includes(a.subtitle)?` (${a.subtitle})`:"",c=`Circo e oficinas para ${n} â Andre Tuiga`,l=["Olá, tudo bem? Aqui é o Andre Tuiga, palhaço e artista de circo de Porto Alegre.",`Levo "${o}"${i} e oficinas de circo e palhaçaria para ${W0[e.category]} como ${n}.`];a!=null&&a.synopsis&&l.push(a.synopsis.trim());const d=[];a!=null&&a.duration_min&&d.push(`cerca de ${a.duration_min} min`),a!=null&&a.rating&&d.push(`classificação ${a.rating}`),d.length&&l.push(`O trabalho tem ${d.join(", ")}.`),l.push("Seguem o teaser e o portfólio para vocês conhecerem o trabalho."),l.push("Vocês teriam interesse em receber uma apresentação ou oficina? Posso ligar para explicar melhor. Um abraço!");let u=l.join(` 708 709`);const h=[];return s.trim()&&h.push(`ð¥ Teaser: ${s.trim()}`),r.trim()&&h.push(`ð Portfólio: ${r.trim()}`),h.length&&(u+=` 710 711`+h.join(` 712`)),{subject:c,body:u}}function Q0(e,a){const s=(e||"").replace(/\D/g,"");return s?`https://wa.me/${s.startsWith("55")?s:"55"+s}?text=${encodeURIComponent(a)}`:null}const Jr="/app/circuitos",cg=Object.keys(fr),K0=Object.keys(xu),Y0=Object.keys(Gc);function J0({c:e}){const a=fr[e];return t.jsxs("span",{className:"badge-soft",children:[t.jsx(a.Icon,{size:13,strokeWidth:2}),a.label]})}function Z0({s:e}){const a=xu[e];return t.jsx("span",{className:"badge",style:{background:a.color},children:a.label})}function X0(){const e=J(),{canCurate:a}=de(),[s,r]=y.useState(""),[n,o]=y.useState(""),i=D(()=>kt.list(),[]);if(i.error)return t.jsx("p",{className:"error",children:i.error});const l=(i.data??[]).filter(d=>!(n&&d.category!==n||s.trim()&&!d.name.toLowerCase().includes(s.trim().toLowerCase())));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsx("input",{type:"search",placeholder:"Buscar por nomeâ¦",value:s,onChange:d=>r(d.target.value),style:{minWidth:240}}),t.jsxs("select",{value:n,onChange:d=>o(d.target.value||""),children:[t.jsx("option",{value:"",children:"Todas as categorias"}),cg.map(d=>t.jsx("option",{value:d,children:fr[d].label},d))]}),t.jsxs("span",{className:"muted",children:[l.length," circuito",l.length===1?"":"s"]}),a&&t.jsx("button",{className:"btn primary",onClick:()=>e(`${Jr}/novo`),children:"+ Novo circuito"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Local"}),t.jsx("th",{children:"Categoria"}),t.jsx("th",{children:"Cidade/UF"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Contatos"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[l.map(d=>t.jsxs("tr",{onClick:()=>e(`${Jr}/${d.id}/editar`),children:[t.jsxs("td",{children:[t.jsx("strong",{children:d.name}),d.origin==="descoberta"&&t.jsx("span",{className:"sub",children:"via descoberta"})]}),t.jsx("td",{children:t.jsx(J0,{c:d.category})}),t.jsx("td",{className:"muted",children:[d.city,d.state].filter(
712Boolean).join("/")||"â"}),t.jsx("td",{children:t.jsx(Z0,{s:d.status})}),t.jsx("td",{className:"muted",children:d.contacts.length}),t.jsx("td",{className:"muted",children:"âº"})]},d.id)),l.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:6,className:"muted",style:{padding:24},children:"Nenhum circuito ainda."})})]})]})})]})}function vp(){const{id:e}=ne(),a=e!=null,s=D(()=>a?kt.get(Number(e)):Promise.resolve(null),[e]);return a&&(s.loading||!s.data)?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):s.error?t.jsx("p",{className:"error",children:s.error}):t.jsx(e2,{initial:a?s.data:{country:"Brasil",category:"escola",status:"prospecto"},onSaved:s.reload},a?e:"new")}function e2({initial:e,onSaved:a}){const s=J(),{canCurate:r}=de(),n=!e.id,[o,i]=y.useState({...e}),[c,l]=y.useState(!1),d=ge(),[u,h]=y.useState(null),m=p=>i(x=>({...x,...p})),f=p=>p===""?null:Number(p),v=()=>s(Jr);async function g(){l(!0),h(null);try{if(!o.name)throw new Error("Nome é obrigatório.");if(n){const p=await kt.create(o);d.ok("Circuito criado."),s(`${Jr}/${p.id}/editar`,{replace:!0})}else await kt.update(e.id,o),d.ok("Alterações salvas.")}catch(p){const x=String(p.message);h(x),d.erro(x)}finally{l(!1)}}async function b(){if(confirm("Excluir este circuito, com seus contatos e histórico?")){l(!0);try{await kt.remove(e.id),v()}catch(p){h(String(p.message)),l(!1)}}}return t.jsxs(Re,{backTo:Jr,title:n?"Novo circuito":e.name??"Circuito",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Nome",full:!0,children:t.jsx("input",{value:o.name??"",onChange:p=>m({name:p.target.value})})}),t.jsx(S,{label:"Categoria",children:t.jsx("select",{value:o.category??"escola",onChange:p=>m({category:p.target.value}),children:cg.map(p=>t.jsx("option",{value:p,children:fr[p].label},p))})}),t.jsx(S,{label:"Status",children:t.jsx("select",{value:o.status??"prospecto",onChange:p=>m({status:p.target.value}),children:K0.map(p=>t.jsx("option",{value:p,children:xu[p].label},p))})}),t.jsx(ju,{country:o.country,state:o.state,city:o.city,onChange:m}),t.jsx(S,{label:"Endereço",full:!0,children:t.jsx("input",{value:o.address??"",onChange:p=>m({address:p.target.value})})}),t.jsx(S,{label:"CEP",children:t.jsx("input",{value:o.cep??"",onChange:p=>m({cep:p.target.value})})}),t.jsx(S,{label:"Latitude",children:t.jsx("input",{type:"number",step:"any",value:o.latitude??"",onChange:p=>m({latitude:f(p.target.value)})})}),t.jsx(S,{label:"Longitude",children:t.jsx("input",{type:"number",step:"any",value:o.longitude??"",onChange:p=>m({longitude:f(p.target.value)})})}),t.jsx(S,{label:"Como contratar",full:!0,children:t.jsx("textarea",{rows:2,value:o.how_to_hire??"",onChange:p=>m({how_to_hire:p.target.value})})}),t.jsx(S,{label:"Estrutura disponÃvel",full:!0,children:t.jsx("textarea",{rows:2,value:o.structure??"",onChange:p=>m({structure:p.target.value})})}),t.jsx(S,{label:"Público aproximado",children:t.jsx("input",{value:o.audience_size??"",onChange:p=>m({audience_size:p.target.value})})}),t.jsx(S,{label:"Tags (vÃrgula)",children:t.jsx("input",{value:o.tags??"",onChange:p=>m({tags:p.target.value})})}),t.jsx(S,{label:"Observações",full:!0,children:t.jsx("textarea",{rows:2,value:o.notes??"",onChange:p=>m({notes:p.target.value})})})]}),u&&t.jsx("p",{className:"error",children:u}),t.jsxs("footer",{className:"modal-foot",children:[!n&&r&&t.jsx("button",{className:"btn danger",onClick:b,disabled:c,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:v,disabled:c,children:r?"Cancelar":"Voltar"}),r&&t.jsx("button",{className:"btn primary",onClick:g,disabled:c,children:c?"Salvandoâ¦":n?"Criar":"Salvar"})]}),!n&&e.id!=null&&t.jsxs(t.Fragment,{children:[r&&t.jsx(t2,{circuit:e,onChanged:a}),t.jsx(a2,{circuitId:e.id,contacts:e.contacts??[],onChanged:a,canCurate:r}),t.jsx(s2,{circuitId:e.id,history:e.history??[],onChanged:a,canCurate:r})]})]})}function t2({circuit:e,onChanged:a}){const s=D(()=>Ue.list(),[]),r=e.contacts[0],[n,o]=y.useState(""),[i,c]=y.useState(""),[l,d]=y.useState(()=>{try{return localStorage.getItem(gp)??""}catch{return""}}),[u,h]=y.useState(""),[m,f]=y.useState(""),[v,g]=y.useState((r==null?void 0:r.whatsapp)??(r==null?void 0:r.phone)??""),[b,p]=y.useState((r==null?void 0:r.email)??""),[x,j]=y.useState(!1),[k,N]=y.useState(null),C=s.data??[],_=C.find(K=>K.id===n);function A(K){o(K);const le=C.find(I=>I.id===K);le!=null&&le.video_teaser_url&&c(le.video_teaser_url)}function z(K){d(K);try{localStorage.setItem(gp,K)}catch{}}function P(){if(!_){N("Escolha um produto cultural primeiro.");return}const K=H0(e,_,i,l);h(K.subject),f(K.body),N(null)}async function w(){if(!_){N("Escolha um produto cultural primeiro.");return}j(!0),N(null);try{const K=await ct.prospectMessage({circuit_id:e.id,show_id:_.id,teaser_url:i||null,folio_url:l||null});h(K.subject),f(K.body)}catch(K){N("IA indisponÃvel agora â use o template. ("+String(K.message)+")")}finally{j(!1)}}async function L(){try{await navigator.clipboard.writeText(m),N("Mensagem copiad
712a â")}catch{N("Não consegui copiar â selecione o texto e copie manualmente.")}}async function $(K){if(!m.trim()){N("Gere a mensagem antes de registrar.");return}j(!0);try{await kt.addHistory(e.id,{kind:K,note:`Prospecção${_?` â ${_.name}`:""}: ${u||"mensagem enviada"}`,happened_at:new Date().toISOString().slice(0,10)}),N("Registrado no histórico â"),a()}catch(le){N(String(le.message))}finally{j(!1)}}const H=Q0(v,m),re=b?`mailto:${b}?subject=${encodeURIComponent(u)}&body=${encodeURIComponent(m)}`:null;return t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem",borderTop:"1px solid rgb(var(--line))",paddingTop:16},children:[t.jsx("strong",{children:"Prospecção"}),t.jsx("p",{className:"sub",style:{margin:"2px 0 10px"},children:"Gera uma mensagem de primeiro contato com o teaser do produto e o fólio. Envio é manual (você confere e aperta enviar)."}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Produto cultural",children:t.jsxs("select",{value:n,onChange:K=>A(K.target.value?Number(K.target.value):""),children:[t.jsx("option",{value:"",children:"â escolha â"}),C.map(K=>t.jsx("option",{value:K.id,children:K.name},K.id))]})}),t.jsx(S,{label:"Link do teaser",hint:"puxado do produto; pode ajustar",children:t.jsx("input",{value:i,onChange:K=>c(K.target.value),placeholder:"https://youtu.be/â¦"})}),t.jsx(S,{label:"Link do fólio / portfólio",full:!0,hint:"fica lembrado para as próximas",children:t.jsx("input",{value:l,onChange:K=>z(K.target.value),placeholder:"link do fólio (Figma/PDF)"})})]}),t.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",margin:"6px 0 12px"},children:[t.jsxs("button",{type:"button",className:"btn primary",onClick:P,children:[t.jsx(d1,{size:14,strokeWidth:2})," Gerar mensagem"]}),t.jsxs("button",{type:"button",className:"btn",onClick:w,disabled:x,children:[t.jsx(Be,{size:14,strokeWidth:2}),x?"â¦":"Variar com IA"]})]}),m&&t.jsxs(t.Fragment,{children:[t.jsx(S,{label:"Assunto (e-mail)",full:!0,children:t.jsx("input",{value:u,onChange:K=>h(K.target.value)})}),t.jsx(S,{label:"Mensagem",full:!0,hint:"revise antes de enviar",children:t.jsx("textarea",{rows:9,value:m,onChange:K=>f(K.target.value)})}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"WhatsApp do contato",children:t.jsx("input",{value:v,onChange:K=>g(K.target.value),placeholder:"(51) 99999-9999"})}),t.jsx(S,{label:"E-mail do contato",children:t.jsx("input",{value:b,onChange:K=>p(K.target.value),placeholder:"[email protected]"})})]}),t.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:6},children:[t.jsxs("a",{className:"btn primary",href:H??void 0,target:"_blank",rel:"noreferrer",style:H?{}:{pointerEvents:"none",opacity:.5},title:H?"":"Informe o WhatsApp do contato",children:[t.jsx(Fi,{size:14,strokeWidth:2})," Abrir no WhatsApp"]}),t.jsxs("a",{className:"btn",href:re??void 0,style:re?{}:{pointerEvents:"none",opacity:.5},title:re?"":"Informe o e-mail do contato",children:[t.jsx(ws,{size:14,strokeWidth:2})," Abrir no e-mail"]}),t.jsxs("button",{type:"button",className:"btn",onClick:L,children:[t.jsx(Lb,{size:14,strokeWidth:2})," Copiar"]}),t.jsx("div",{style:{flex:1}}),t.jsxs("button",{type:"button",className:"btn",onClick:()=>$("ligacao"),disabled:x,children:[t.jsx(cu,{size:14,strokeWidth:2})," Registrar ligação"]}),t.jsxs("button",{type:"button",className:"btn",onClick:()=>$("email"),disabled:x,children:[t.jsx(Bb,{size:14,strokeWidth:2})," Registrar no histórico"]})]})]}),k&&t.jsx("p",{className:"sub",style:{marginTop:8},children:k})]})}function a2({circuitId:e,contacts:a,onChanged:s,canCurate:r}){const[n,o]=y.useState(!1),[i,c]=y.useState({}),[l,d]=y.useState(!1);async function u(){d(!0);try{await kt.addContact(e,i),c({}),o(!1),s()}finally{d(!1)}}async function h(m){confirm("Remover este contato?")&&(await kt.removeContact(e,m),s())}return t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[t.jsx("strong",{children:"Contatos"}),r&&!n&&t.jsx("button",{type:"button",className:"btn",onClick:()=>o(!0),children:"+ Contato"})]}),a.length===0&&!n&&t.jsx("p",{className:"muted",children:"Nenhum contato cadastrado."}),a.length>0&&t.jsx("div",{className:"card no-pad",style:{marginTop:8},children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Responsável"}),t.jsx("th",{children:"Cargo"}),t.jsx("th",{children:"Telefone/WhatsApp"}),t.jsx("th",{children:"E-mail"}),t.jsx("th",{})]})}),t.jsx("tbody",{children:a.map(m=>t.jsxs("tr",{children:[t.jsxs("td",{children:[m.name??"â",m.instagram&&t.jsx("span",{className:"sub",children:m.instagram})]}),t.jsx("td",{className:"muted",children:m.role??"â"}),t.jsx("td",{className:"muted",children:[m.phone,m.whatsapp].filter(
712Boolean).join(" · ")||"â"}),t.jsx("td",{className:"muted",children:m.email??"â"}),t.jsx("td",{children:r&&t.jsx("button",{className:"btn danger",style:{padding:"2px 8px",fontSize:12},onClick:()=>h(m.id),children:t.jsx(tt,{size:12,strokeWidth:2.4})})})]},m.id))})]})}),n&&t.jsxs("div",{className:"form-grid",style:{marginTop:8},children:[t.jsx(S,{label:"Responsável",children:t.jsx("input",{value:i.name??"",onChange:m=>c({...i,name:m.target.value})})}),t.jsx(S,{label:"Cargo",children:t.jsx("input",{value:i.role??"",onChange:m=>c({...i,role:m.target.value})})}),t.jsx(S,{label:"Telefone",children:t.jsx("input",{value:i.phone??"",onChange:m=>c({...i,phone:m.target.value})})}),t.jsx(S,{label:"WhatsApp",children:t.jsx("input",{value:i.whatsapp??"",onChange:m=>c({...i,whatsapp:m.target.value})})}),t.jsx(S,{label:"E-mail",children:t.jsx("input",{value:i.email??"",onChange:m=>c({...i,email:m.target.value})})}),t.jsx(S,{label:"Site",children:t.jsx("input",{value:i.site??"",onChange:m=>c({...i,site:m.target.value})})}),t.jsx(S,{label:"Instagram",children:t.jsx("input",{value:i.instagram??"",onChange:m=>c({...i,instagram:m.target.value})})}),t.jsxs("div",{className:"field-full",style:{display:"flex",gap:8},children:[t.jsx("button",{className:"btn primary",onClick:u,disabled:l,children:l?"Salvandoâ¦":"Adicionar contato"}),t.jsx("button",{className:"btn",onClick:()=>{o(!1),c({})},disabled:l,children:"Cancelar"})]})]})]})}function s2({circuitId:e,history:a,onChanged:s,canCurate:r}){const[n,o]=y.useState(!1),[i,c]=y.useState({kind:"contato"}),[l,d]=y.useState(!1);async function u(){d(!0);try{await kt.addHistory(e,{kind:i.kind,note:i.note||null,happened_at:i.happened_at||null}),c({kind:"contato"}),o(!1),s()}finally{d(!1)}}async function h(m){confirm("Remover este registro do histórico?")&&(await kt.removeHistory(e,m),s())}return t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[t.jsx("strong",{children:"Histórico"}),r&&!n&&t.jsx("button",{type:"button",className:"btn",onClick:()=>o(!0),children:"+ Registro"})]}),a.length===0&&!n&&t.jsx("p",{className:"muted",children:"Sem registros ainda."}),a.length>0&&t.jsx("ul",{className:"timeline",style:{marginTop:8,listStyle:"none",padding:0},children:a.map(m=>{const f=Gc[m.kind];return t.jsxs("li",{style:{display:"flex",gap:8,alignItems:"baseline",padding:"6px 0",borderBottom:"1px solid rgb(var(--line))"},children:[t.jsx(f.Icon,{size:15,strokeWidth:2,className:"muted-icon"}),t.jsxs("div",{style:{flex:1},children:[t.jsx("strong",{children:f.label}),m.happened_at&&t.jsxs("span",{className:"muted",children:[" · ",X(m.happened_at)]}),m.note&&t.jsx("div",{className:"sub",style:{whiteSpace:"pre-wrap"},children:m.note})]}),r&&t.jsx("button",{className:"btn danger",style:{padding:"2px 8px",fontSize:12},onClick:()=>h(m.id),children:t.jsx(tt,{size:12,strokeWidth:2.4})})]},m.id)})}),n&&t.jsxs("div",{className:"form-grid",style:{marginTop:8},children:[t.jsx(S,{label:"Tipo",children:t.jsx("select",{value:i.kind,onChange:m=>c({...i,kind:m.target.value}),children:Y0.map(m=>t.jsx("option",{value:m,children:Gc[m].label},m))})}),t.jsx(S,{label:"Data",children:t.jsx("input",{type:"date",value:i.happened_at??"",onChange:m=>c({...i,happened_at:m.target.value})})}),t.jsx(S,{label:"Nota",full:!0,children:t.jsx("textarea",{rows:2,value:i.note??"",onChange:m=>c({...i,note:m.target.value})})}),t.jsxs("div",{className:"field-full",style:{display:"flex",gap:8},children:[t.jsx("button",{className:"btn primary",onClick:u,disabled:l,children:l?"Salvandoâ¦":"Adicionar registro"}),t.jsx("button",{className:"btn",onClick:()=>{o(!1),c({kind:"contato"})},disabled:l,children:"Cancelar"})]})]})]})}const Zr="/app/orcamentos";function Hc(e){return"R$ "+(e||0).toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})}const r2={rascunho:{label:"Rascunho",color:"#d97706"},enviado:{label:"Enviado",color:"#2563eb"},fechado:{label:"Fechado",color:"#16a34a"},nao_aprovado:{label:"Não aprovado",color:"#dc2626"}};function n2(){const e=J(),{readonly:a}=de(),s=D(()=>Os.list(),[]);if(s.error)return t.jsx("p",{className:"error",children:s.error});const r=s.data??[];return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[r.length," orçamento",r.length===1?"":"s"]}),!a&&t.jsx("button",{className:"btn primary",onClick:()=>e(`${Zr}/novo`),children:"+ Novo orçamento"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Cliente"}),t.jsx("th",{children:"Perfil · Produto cultural"}),t.jsx("th",{children:"Emissão"}),t.jsx("th",{className:"num",children:"Total"}),t.jsx("th",{children:"Status"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[r.map(n=>{const o=r2[n.status]??{label:n.status,color:"#94a3b8"};return t.jsxs("tr",{onClick:()=>e(`${Zr}/${n.id}/editar`),children:[t.jsxs("td",{children:[t.jsx("strong",{children:n.client_name}),n.client_project&&t.jsx("span",{className:"sub",children:n.client_project})]}),t.jsx("td",{className:"muted",children:[n.artist_name,n.show_name].filter(
712Boolean).join(" · ")||"â"}),t.jsx("td",{className:"muted",children:X(n.emission_date)}),t.jsx("td",{className:"num",children:t.jsx("strong",{children:Hc(n.total)})}),t.jsx("td",{children:t.jsx("span",{className:"badge",style:{background:o.color},children:o.label})}),t.jsx("td",{className:"muted",children:"âº"})]},n.id)}),r.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:6,className:"muted",style:{padding:24},children:"Nenhum orçamento ainda."})})]})]})})]})}function jp(){const{id:e}=ne(),a=e!=null,s=D(()=>a?Os.get(Number(e)):Promise.resolve(null),[e]);return a&&(s.loading||!s.data)?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):s.error?t.jsx("p",{className:"error",children:s.error}):t.jsx(o2,{initial:a?s.data:null},a?e:"new")}function o2({initial:e}){var P;const a=J(),{readonly:s}=de(),r=!e,n=D(()=>me.list(),[]),o=D(()=>Ue.list(),[]);D(()=>kt.list(),[]);const[i,c]=y.useState(e??{valid_days:30,status:"rascunho",emission_date:new Date().toISOString().slice(0,10)}),[l,d]=y.useState(((P=e==null?void 0:e.items)==null?void 0:P.map(w=>({...w})))??[{group_label:"",title:"",description:"",qty:1,unit_price:0}]),[u,h]=y.useState(!1),m=ge(),[f,v]=y.useState(null),g=w=>c(L=>({...L,...w})),b=()=>a(Zr),p=l.reduce((w,L)=>w+(Number(L.qty)||0)*(Number(L.unit_price)||0),0);function x(w,L){d($=>$.map((H,re)=>re===w?{...H,...L}:H))}function j(){var L;const w=((L=l[l.length-1])==null?void 0:L.group_label)??"";d($=>[...$,{group_label:w,title:"",description:"",qty:1,unit_price:0}])}function k(w){d(L=>L.filter(($,H)=>H!==w))}async function N(){h(!0),v(null);try{if(!i.artist_id)throw new Error("Escolha o artista.");if(!i.client_name)throw new Error("Informe o cliente.");const w={...i,items:l.filter($=>$.title.trim()).map(($,H)=>({...$,qty:Number($.qty)||0,unit_price:Number($.unit_price)||0,sort_order:H}))};if(r){const $=await Os.create(w);return m.ok("Orçamento criado."),a(`${Zr}/${$.id}/editar`,{replace:!0}),$.id}const L=await Os.update(e.id,w);return m.ok("Alterações salvas."),L.id}catch(w){const L=String(w.message);return v(L),m.erro(L),null}finally{h(!1)}}async function C(){const w=await N();if(w!=null)try{await Os.openHtml(w)}catch(L){const $=String(L.message);v($),m.erro($)}}async function _(){if(confirm("Excluir este orçamento?")){h(!0);try{await Os.remove(e.id),b()}catch(w){v(String(w.message)),h(!1)}}}const A=n.data??[],z=o.data??[];return t.jsxs(Re,{backTo:Zr,title:r?"Novo orçamento":`Orçamento â ${e==null?void 0:e.client_name}`,children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Perfil",children:t.jsxs("select",{value:i.artist_id??"",onChange:w=>g({artist_id:w.target.value?Number(w.target.value):void 0}),children:[t.jsx("option",{value:"",children:"â escolha â"}),A.map(w=>t.jsx("option",{value:w.id,children:w.name},w.id))]})}),t.jsx(S,{label:"Produto cultural",children:t.jsxs("select",{value:i.show_id??"",onChange:w=>g({show_id:w.target.value?Number(w.target.value):null}),children:[t.jsx("option",{value:"",children:"â opcional â"}),z.map(w=>t.jsx("option",{value:w.id,children:w.name},w.id))]})}),t.jsx(S,{label:"Nº do orçamento",children:t.jsx("input",{value:i.number??"",onChange:w=>g({number:w.target.value}),placeholder:"2026-07-JX"})}),t.jsx(S,{label:"Cliente (nome)",full:!0,children:t.jsx("input",{value:i.client_name??"",onChange:w=>g({client_name:w.target.value})})}),t.jsx(S,{label:"Projeto / evento",full:!0,children:t.jsx("input",{value:i.client_project??"",onChange:w=>g({client_project:w.target.value})})}),t.jsx(S,{label:"Contato do cliente",full:!0,children:t.jsx("input",{value:i.client_contact??"",onChange:w=>g({client_contact:w.target.value})})}),t.jsx(S,{label:"Emissão",children:t.jsx("input",{type:"date",value:i.emission_date??"",onChange:w=>g({emission_date:w.target.value})})}),t.jsx(S,{label:"Validade (dias)",children:t.jsx("input",{type:"number",value:i.valid_days??30,onChange:w=>g({valid_days:Number(w.target.value)})})}),t.jsx(S,{label:"Status",children:t.jsxs("select",{value:i.status??"rascunho",onChange:w=>g({status:w.target.value}),children:[t.jsx("option",{value:"rascunho",children:"Rascunho"}),t.jsx("option",{value:"enviado",children:"Enviado"}),t.jsx("option",{value:"fechado",children:"Fechado"}),t.jsx("option",{value:"nao_aprovado",children:"Não aprovado"})]})}),t.jsx(S,{label:"Apresentação da proposta",full:!0,children:t.jsx("textarea",{rows:3,value:i.intro??"",onChange:w=>g({intro:w.target.value})})})]}),t.jsxs("div",{className:"field-full",style:{marginTop:"1.5rem"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx("strong",{children:"Itens"}),t.jsx("button",{type:"button",className:"btn",onClick:j,children:"+ Item"})]}),t.jsxs("p",{className:"sub",children:["Use o mesmo ",t.jsx("em",{children:"grupo"}),' em itens seguidos para formar uma seção com subtotal (ex.: "1ª semana â Espetáculos").']}),t.jsx("div",{className:"card no-pad",style:{marginTop:8},children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Grupo"}),t.jsx("th",{children:"Descrição"}),t.jsx("th",{className:"num",children:"Qtd"}),t.jsx("th",{className:"num",children:"Valor unit."}),t.jsx("th",{className:"num",children:"Subtotal"}),t.jsx("th",{})]})}),t.jsx("tbody",{children:l.map((w,L)=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("input",{value:w.group_label??"",onChange:$=>x(L,{group_label:$.target.value}),placeholder:"seção",style:{minWidth:120}})}),t.jsxs("td",{children:[t.jsx("input",{value:w.title,onChange:$=>x(L,{title:$.target.value}),placeholder:"tÃtulo do item",style:{width:"100%"}}),t.jsx("input",{value:w.description??"",onChange:$=>x(L,{description:$.target.value}),placeholder:"descrição (opcional)",style:{width:"100%",marginTop:4,fontSize:12}})]}),t.jsx("td",{className:"num",children:t.jsx("input",{type:"number",value:w.qty,onChange:$=>x(L,{qty:Number($.target.value)}),style:{width:64,textAlign:"right"}})}),t.jsx("td",{className:"num",children:t.jsx("input",{type:"number",step:"0.01",value:w.unit_price,onChange:$=>x(L,{unit_price:Number($.target.value)}),style:{width:96,textAlign:"right"}})}),t.jsx("td",{className:"num",children:Hc((Number(w.qty)||0)*(Number(w.unit_price)||0))}),t.jsx("td",{children:t.jsx("button",{type:"button",className:"btn danger",style:{padding:"2px 8px",fontSize:12},onClick:()=>k(L),children:t.jsx(tt,{size:12,strokeWidth:2.4})})})]},L))}),t.jsx("tfoot",{children:t.jsxs("tr",{children:[t.jsx("td",{colSpan:4,className:"num",children:t.jsx("strong",{children:"Total geral"})}),t.jsx("td",{className:"num",children:t.jsx("strong",{children:Hc(p)})}),t.jsx("td",{})]})})]})})]}),t.jsxs("div",{className:"form-grid",style:{marginTop:"1.5rem"},children:[t.jsx(S,{label:"Programação (1 por linha)",full:!0,children:t.jsx("textarea",{rows:3,value:i.schedule??"",onChange:w=>g({schedule:w.target.value})})}),t.jsx(S,{label:"Forma de pagamento sugerida",full:!0,children:t.jsx("input",{value:i.payment_suggested??"",onChange:w=>g({payment_suggested:w.target.value}),placeholder:"50% na confirmação, 50% ao término"})}),t.jsx(S,{label:"Incluso",full:!0,children:t.jsx("input",{value:i.included??"",onChange:w=>g({included:w.target.value}),placeholder:"Cachê, sonorização e materiais"})}),t.jsx(S,{label:"Observação (uso interno)",full:!0,hint:"Só você vê â NÃO sai no orçamento/PDF.",children:t.jsx("textarea",{rows:2,value:i.internal_notes??"",onChange:w=>g({internal_notes:w.target.value}),placeholder:"Anotações internas: negociação, contato, motivo de não aprovadoâ¦"})})]}),f&&t.jsx("p",{className:"error",children:f}),t.jsxs("footer",{className:"modal-foot",children:[!r&&!s&&t.jsx("button",{className:"btn danger",onClick:_,disabled:u,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:b,disabled:u,children:s?"Voltar":"Cancelar"}),!s&&t.jsxs("button",{className:"btn",onClick:C,disabled:u,children:[t.jsx(ei,{size:14,strokeWidth:2})," Salvar e visualizar"]}),!s&&t.jsx("button",{className:"btn primary",onClick:N,disabled:u,children:u?"Salvandoâ¦":"Salvar"})]})]})}function Qc(e){return/503|502|high demand|UNAVAILABLE|overloaded/i.test(e)?"A IA está sobrecarregada agora (pico de uso do Google). Tente de novo em alguns instantes.":e}function i2(e){return e>=4?{label:"Vale a pena",Icon:bt,color:"#16a34a"}:e===3?{label:"Talvez â avalie",Icon:tu,color:"#d97706"}
712:{label:"Provavelmente não vale",Icon:qi,color:"#dc2626"}}function l2(){const{libera:e}=St();return e("quick_analysis")?t.jsx(d2,{}):t.jsx(c2,{})}function c2(){const e=Z();return t.jsx(gr,{moduleKey:"analise",Icone:Za,titulo:e("A Análise rápida é dos planos pagos"),explicacao:e("Você cola o link de um edital (ou anexa o PDF), escolhe um produto cultural seu, e em cerca de um minuto a Gira responde se vale a pena se inscrever: nota de 1 a 5, o que joga a favor, o que joga contra e o que o edital exige que você ainda não tem. à a leitura que leva meia hora feita por quem já conhece o seu trabalho â a IA lê o seu cadastro, não arte em geral."),itens:[e("Vale a pena? A resposta em nota, com o porquê de cada lado"),e("Lê o edital do link ou do PDF â você não precisa resumir nada"),e("Cruza com o seu produto: duração, classificação, técnica, elenco"),e("Se valer, importa o edital para o Radar e já começa a inscrição")],cta:e("Assinar para usar")})}function d2(){const e=D(()=>me.list(),[]),[a,s]=y.useState(""),r=D(()=>a?Ue.list(Number(a)):Promise.resolve([]),[a]),[n,o]=y.useState(""),[i,c]=y.useState(""),[l,d]=y.useState(null),[u,h]=y.useState(!1),[m,f]=y.useState(null),[v,g]=y.useState(null),[b,p]=y.useState(null);async function x(){if(f(null),g(null),p(null),!a)return f("Escolha o artista.");if(!n)return f("Escolha o produto cultural.");if(!l&&!i.trim())return f("Informe a URL do edital ou anexe um PDF.");h(!0);try{if(!l&&i.trim()){const _=await ct.quickFitCheck(i.trim());_.found&&p(_)}const C=l?await ct.quickFitUpload(Number(a),Number(n),l):await ct.quickFit({artist_id:Number(a),show_id:Number(n),url:i.trim()});g(C)}catch(C){f(Qc(String(C.message)))}finally{h(!1)}}const j=e.data??[],k=r.data??[],N=j.length===1?j[0]:null;return N&&a!==N.id&&s(N.id),t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"card",children:[t.jsxs("p",{className:"sub",style:{marginTop:0},children:["Cole a ",t.jsx("strong",{children:"URL do edital"})," (PDF ou página, inclusive Google Forms) ou anexe um PDF. A IA lê e diz se ",t.jsx("strong",{children:"combina com o produto"})," â sem cadastrar festival, edição nem inscrição. ",t.jsx("strong",{children:"Nada é salvo."})]}),t.jsxs("div",{className:"form-grid",children:[!N&&t.jsx(S,{label:"Perfil",children:t.jsxs("select",{value:a,onChange:C=>{s(C.target.value?Number(C.target.value):""),o("")},children:[t.jsx("option",{value:"",children:"â escolha â"}),j.map(C=>t.jsx("option",{value:C.id,children:C.name},C.id))]})}),t.jsx(S,{label:"Produto cultural",full:!!N,hint:a?void 0:"Escolha a companhia primeiro.",children:t.jsxs("select",{value:n,disabled:!a,onChange:C=>o(C.target.value?Number(C.target.value):""),children:[t.jsx("option",{value:"",children:"â escolha â"}),k.map(C=>t.jsx("option",{value:C.id,children:C.name},C.id))]})}),t.jsx(S,{label:"URL do edital",full:!0,hint:"PDF, site do festival ou Google Forms",children:t.jsx("input",{value:i,onChange:C=>{c(C.target.value),d(null)},placeholder:"https://â¦"})}),t.jsxs(S,{label:"â¦ou anexe um PDF",full:!0,children:[t.jsx("input",{type:"file",accept:"application/pdf",onChange:C=>{var _;d(((_=C.target.files)==null?void 0:_[0])??null)}}),l&&t.jsxs("small",{className:"muted",children:[l.name," â o PDF é lido em memória, não é salvo."]})]})]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:8},children:[t.jsxs("button",{className:"btn primary",onClick:x,disabled:u,children:[t.jsx(Of,{size:14,strokeWidth:2}),u?"Analisando⦠(pode levar alguns segundos)":"Analisar"]}),m&&t.jsx("span",{className:"error",children:m})]})]}),v&&t.jsx(u2,{res:v,sourceUrl:l?null:i.trim(),dup:b,showId:Number(n),semLinkDeEdital:!!l})]})}function u2({res:e,sourceUrl:a,dup:s,showId:r,semLinkDeEdital:n}){const o=J(),{edital:i,fit:c}=e,l=i2(c.fit_score),[d,u]=y.useState(!1),[h,m]=y.useState(i.festival_name??""),[f,v]=y.useState(i.year??new Date().getFullYear()),[g,b]=y.useState(i.festival_city??""),[p,x]=y.useState(i.festival_state??""),[j,k]=y.useState(!1),[N,C]=y.useState(null),[_,A]=y.useState(null);async function z(){if(C(null),!h.trim())return C("Informe o nome do festival.");if(!f)return C("Informe o ano da edição.");k(!0);try{const w=await ct.quickFitImport({festival_name:h.trim(),year:Number(f),festival_city:g||null,festival_state:p||null,notice_url:a,edital:i});A(w)}catch(w){C(Qc(String(w.message)))}finally{k(!1)}}async function P(){C(null),u(!0);try{let w=(s==null?void 0:s.edition_id)??(_==null?void 0:_.edition_id)??null;if(w==null){if(!h.trim())throw new Error("Informe o nome do festival antes de continuar.");if(!f)throw new Error("Informe o ano da edição antes de continuar.");const $=await ct.quickFitImport({festival_name:h.trim(),year:Number(f),festival_city:g||null,festival_state:p||null,notice_url:a,edital:i});A($),w=$.edition_id}const L={fit:c,showId:r};o(`/app/inscricoes/inscrever/${w}`,{state:L})}catch(w){C(Qc(String(w.message))),u(!1)}}return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"card",style:{marginTop:16,borderLeft:`6px solid ${l.color}`}
712,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,flexWrap:"wrap"},children:[t.jsxs("strong",{className:"inline-ico",style:{fontSize:18,color:l.color},children:[t.jsx(l.Icon,{size:18,strokeWidth:2.2})," ",l.label]}),t.jsxs("span",{children:[t.jsx(or,{n:c.fit_score})," ",t.jsxs("span",{className:"muted",children:["(",c.fit_score,"/5 · confiança ",c.confidence,")"]})]})]}),t.jsx("p",{style:{margin:"10px 0 0"},children:c.fit_notes}),c.analysis&&t.jsx("p",{className:"sub",style:{whiteSpace:"pre-wrap",marginTop:8},children:c.analysis}),t.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginTop:14},children:[t.jsxs("button",{className:`btn ${c.fit_score>=3?"primary":""}`,onClick:P,disabled:d,children:[d?"Preparandoâ¦":"Quero me inscrever"," ",t.jsx(ae,{size:14,strokeWidth:2.2})]}),t.jsx("span",{className:"muted",style:{fontSize:12},children:"Leva esta análise junto â você não precisa refazê-la."})]}),n&&t.jsx("p",{className:"sub",style:{marginTop:8,color:"#d97706"},children:"A análise veio de um PDF anexado, então a edição nasce sem link de edital e de inscrição. Cadastre-os na edição para conseguir abrir o formulário no passo 3."}),N&&t.jsx("p",{className:"error",style:{marginTop:8},children:N})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsxs("h3",{style:{marginTop:0},children:["Resumo do edital ",t.jsxs("span",{className:"muted",style:{fontWeight:400,fontSize:13},children:["(confiança ",i.confidence,")"]})]}),t.jsx("p",{children:i.summary}),t.jsxs("div",{className:"cond",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px 24px",fontSize:13,marginTop:8},children:[t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"Edição"}),t.jsx("br",{}),i.edition_label||"â"]}),t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"PerÃodo"}),t.jsx("br",{}),i.festival_period||"â"]}),t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"Prazo de inscrição"}),t.jsx("br",{}),i.deadline||"â"]}),t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"Resultado"}),t.jsx("br",{}),i.result_date||"â"]}),t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"Cachê / premiação"}),t.jsx("br",{}),i.fee||"â"]}),t.jsxs("div",{children:[t.jsx("span",{className:"muted",children:"Cobre"}),t.jsx("br",{}),[i.covers_travel&&"transporte",i.covers_lodging&&"hospedagem",i.covers_meals&&"alimentação"].filter(Boolean).join(", ")||"â"]}),t.jsxs("div",{style:{gridColumn:"1 / -1"},children:[t.jsx("span",{className:"muted",children:"Elegibilidade"}),t.jsx("br",{}),i.eligibility||"â"]}),i.registration_url&&t.jsxs("div",{style:{gridColumn:"1 / -1"},children:[t.jsx("span",{className:"muted",children:"Inscrição"}),t.jsx("br",{}),He(i.registration_url)?t.jsx("a",{href:He(i.registration_url),target:"_blank",rel:"noreferrer",children:i.registration_url}):i.registration_url]})]}),t.jsx("p",{className:"sub",style:{marginTop:12,fontStyle:"italic"},children:"Triagem por IA â nada foi salvo até aqui."})]}),s!=null&&s.found?t.jsxs("div",{className:"card",style:{marginTop:16,borderLeft:"6px solid #d97706"},children:[t.jsxs("h3",{className:"inline-ico",style:{marginTop:0},children:[t.jsx(nr,{size:16,strokeWidth:2.2})," Este edital já está no Radar"]}),t.jsxs("p",{className:"sub",children:["Já existe a edição ",t.jsxs("strong",{children:[s.festival_name," ",s.year]})," com esta mesma URL de edital/inscrição",s.imported_by?t.jsxs(t.Fragment,{children:[" â importada por ",t.jsx("strong",{children:s.imported_by})]}):null,". Não é preciso importar de novo."]}),t.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:4},children:[s.festival_id&&t.jsx("a",{className:"btn",href:`/app/oportunidades/${s.festival_id}/editar`,target:"_blank",rel:"noreferrer",children:"Abrir festival â"}),s.edition_id&&t.jsx("a",{className:"btn",href:`/app/edicoes/${s.edition_id}/editar`,target:"_blank",rel:"noreferrer",children:"Abrir edição â"})]})]}):t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("h3",{style:{marginTop:0},children:"Importar para o Radar"}),t.jsx("p",{className:"sub",children:"Cria o Festival + a Edição com o que a IA extraiu. Se o festival já existir, reaproveita; se a edição desse ano já existir, não duplica."}),_?t.jsxs("div",{children:[t.jsxs("p",{className:"ok",style:{color:"#16a34a",fontWeight:600},children:[t.jsx(bt,{size:14,strokeWidth:2})," Importado! Festival ",_.created_festival?"criado":"já existia (reaproveitado)"," · Edição ",_.created_edition?"criada":"já existia","."]}),_.imported_by&&!_.created_edition&&t.jsxs("p",{className:"sub",style:{marginTop:0},children:["Edição importada por ",t.jsx("strong",{children:_.imported_by}),"."]}),t.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:4},children:[t.jsx("a",{className:"btn",href:`/app/oportunidades/${_.festival_id}/editar`,target:"_blank",rel:"noreferrer",children:"Abrir festival â"}),t.jsx("a",{className:"btn",href:`/app/edicoes/${_.edition_id}/editar`,target:"_blank",rel:"noreferrer",children:"Abrir edição â"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Nome do festival",full:!0,children:t.jsx("input",{value:h,onChange:w=>m(w.target.value),placeholder:"Nome do festival/mostra"})}),t.jsx(S,{label:"Ano da edição",children:t.jsx("input",{type:"number",value:f,onChange:w=>v(w.target.value?Number(w.target.value):"")})}),t.jsx(S,{label:"Cidade",children:t.jsx("input",{value:g,onChange:w=>b(w.target.value)})}),t.jsx(S,{label:"UF",children:t.jsx("input",{value:p,onChange:w=>x(w.target.value),maxLength:2})})]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:8},children:[t.jsxs("button",{className:"btn primary",onClick:z,disabled:j,children:[t.jsx(rr,{size:14,strokeWidth:2}),j?"Importandoâ¦":"Importar festival + edição"]}),N&&t.jsx("span",{className:"error",children:N})]})]})]})]})}const m2="https://chromewebstore.google.com/detail/gira-%E2%80%94-autofill-de-inscri/kognchpegcnoafbgngmlbohkkemfaloo",p2=[{t:"Instale pela loja",d:t.jsxs(t.Fragment,{children:["Clique em ",t.jsx("strong",{children:"Instalar pela Chrome Web Store"})," acima e, na página da loja, em ",t.jsx("strong",{children:"Usar no Chrome"}),". Confirme em ",t.jsx("strong",{children:"Adicionar extensão"}),"."]})},{t:"Fixe na barra",d:t.jsxs(t.Fragment,{children:["Clique no Ãcone de quebra-cabeça do Chrome e alfinete a ",t.jsx("strong",{children:"Gira â Autofill de inscrições"}),". à por ele que você abre a extensão."]})},{t:"Conecte à Gira",d:t.jsxs(t.Fragment,{children:["Abra ",t.jsx("strong",{children:"gira.lat"})," e faça login. A extensão captura sua sessão automaticamente â não precisa colar token."]})},{t:"Use no formulário",d:t.jsxs(t.Fragment,{children:["Abra o formulário da inscrição (",t.jsx("strong",{children:"Google Forms"})," ou formulário HTML, ex.: JotForm), clique no Ãcone da extensão, escolha o grupo/companhia e o produto cultural e clique em ",t.jsx("strong",{children:"Preencher"}),"."]})},{t:"Revise e envie",d:t.jsxs(t.Fragment,{children:["Confira as respostas e ",t.jsx("strong",{children:"envie você mesmo"}),". A extensão nunca envia sozinha. Uploads de arquivo (portfólio, PDF) são manuais."]})}];function h2(){const e=Z();return t.jsx(gr,{moduleKey:"extensao",Icone:Za,titulo:e("A extensão é dos planos pagos"),explicacao:e("Ela lê as perguntas do formulário do festival â Google Forms ou formulário HTML â e responde cada uma com os dados que você já cadastrou aqui. Você revisa e envia; ela nunca envia sozinha. à o passo que transforma uma tarde de copiar e colar em alguns minutos. No Gira Livre o download fica fechado, e não por capricho: instalar a extensão dá trabalho, e não faz sentido passar por ele para descobrir no fim que o preenchimento não vem."),itens:[e("Preenche Google Forms e formulários HTML comuns"),e("Responde com o seu cadastro: companhia, produto, ficha técnica"),e("Você revisa e envia â ela nunca envia sozinha"),e("Dados sensÃveis (banco, RG, Pix) não vão para a IA")],cta:e("Assinar para usar")})}function x2(){const{libera:e}=St();return e("autofill")?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"card",children:[t.jsxs("h3",{className:"inline-ico",style:{marginTop:0},children:[t.jsx(Rc,{size:17,strokeWidth:2.2})," Extensão de autofill (Google Forms e formulários HTML)"]}),t.jsxs("p",{className:"sub",style:{marginTop:4},children:["Preenche formulários de inscrição de festival com os dados do grupo/companhia e do produto cultural da Gira. A IA mapeia as perguntas; você revisa e envia. Funciona no ",t.jsx("strong",{children:"Chrome"})," (e navegadores baseados em Chromium, como Edge e Brave)."]}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:10,flexWrap:"wrap"},children:[t.jsxs("a",{className:"btn primary",href:m2,target:"_blank",rel:"noreferrer",children:[t.jsx(Rc,{size:14,strokeWidth:2})," Instalar pela Chrome Web Store"]}),t.jsx("span",{className:"muted",children:"Instalação com um clique â a atualização chega sozinha."})]})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("h3",{style:{marginTop:0},children:"Passo a passo"}),t.jsx("ol",{style:{margin:"8px 0 0",paddingLeft:22,lineHeight:1.7},children:p2.map((a,s)=>t.jsxs("li",{style:{marginBottom:10},children:[t.jsxs("strong",{children:[a.t,"."]})," ",t.jsx("span",{className:"muted",children:a.d})]},s))})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("h3",{style:{marginTop:0},children:"Bom saber"}),t.jsxs("ul",{className:"muted",style:{margin:0,paddingLeft:20,lineHeight:1.7,fontSize:13},children:[t.jsxs("li",{children:["Cobre ",t.jsx("strong",{children:"Google Forms"})," e ",t.jsx("strong",{children:"formulários HTML"})," comuns (JotForm, Wufoo, sites de prefeitura, forms próprios)."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Upload de arquivo"})," não é automatizável pelo navegador â anexe à mão."]}),t.jsx("li",{children:"Dados sensÃveis (banco, RG, PIX) não vão para a IA. Se o formulário pedir, preencha manualmente."}),t.jsxs("li",{children:["Instalada pela loja, a extensão ",t.jsx("strong",{children:"se atualiza sozinha"})," â você não precisa voltar aqui a cada versão."]}),t.jsx("li",{children:"Nada é enviado sem você conferir â a extensão só preenche."}),t.jsxs("li",{children:["A extensão ",t.jsx("strong",{children:"só lê a página quando você clica em Preencher"}),", e só a aba aberta. O que ela faz com os dados está na"," ",t.jsx("a",{href:"/privacidade",target:"_blank",rel:"noreferrer",children:"polÃtica de privacidade"}),"."]})]})]})]}):t.jsx(h2,{})}const li="/app/edicoes",Co=new Date().getFullYear();function f2(e){return e.fee||"â"}function g2(){const e=J(),{canCurate:a}=de(),{user:s}=Ae(),r=D(()=>oa.list()),[n,o]=y.useState(Co),[i,c]=y.useState(""),[l,d]=y.useState(null),u=l??(s==null?void 0:s.radar_categories)??[];if(r.error)return t.jsx("p",{className:"error",children:r.error});const h=r.data??[],m=y.useMemo(()=>{const b=new Set(h.map(p=>p.year));return b.add(Co),[...b].sort((p,x)=>x-p)},[h]),f=i.trim().toLowerCase(),v=h.filter(b=>{var p,x,j,k;return n!=="all"&&b.year!==n||!Kf((p=b.festival)==null?void 0:p.art_categories,u)?!1:f?[(x=b.festival)==null?void 0:x.name,(j=b.festival)==null?void 0:j.city,(k=b.festival)==null?void 0:k.state,b.edition_label,String(b.year)].filter(
712Boolean).some(N=>N.toLowerCase().includes(f)):!0}),g=n==="all"?Co:n;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("div",{className:"seg",children:[m.map(b=>t.jsx("button",{className:`seg-btn ${n===b?"active":""}`,onClick:()=>o(b),children:b},b)),t.jsx("button",{className:`seg-btn ${n==="all"?"active":""}`,onClick:()=>o("all"),children:"Todos"})]}),t.jsx("input",{type:"search",placeholder:"Buscar festival, cidade ou ediçãoâ¦",value:i,onChange:b=>c(b.target.value),style:{minWidth:260}}),t.jsxs("span",{className:"muted",children:[v.length," edição(ões)",n!=="all"?` em ${n}`:""]}),a&&t.jsx("button",{className:"btn primary",onClick:()=>e(`${li}/novo?ano=${g}`),children:"+ Nova edição"})]}),t.jsxs("div",{className:"toolbar",style:{gap:6,flexWrap:"wrap"},children:[t.jsx(Hi,{valor:u,onChange:d,opcoes:yu.filter(b=>h.some(p=>{var x;return(((x=p.festival)==null?void 0:x.art_categories)??[]).includes(b)}))}),u.length>0&&t.jsx("button",{type:"button",className:"link",onClick:()=>d([]),children:"ver todas as linguagens"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table cartoes",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Festival"}),t.jsx("th",{children:"Edição"}),t.jsx("th",{children:"Prazo"}),t.jsx("th",{children:"Cachê"}),t.jsx("th",{children:"Edital"}),t.jsx("th",{children:"Inscrições"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[v.map(b=>{var p,x;return t.jsxs("tr",{onClick:()=>e(`${li}/${b.id}/editar`),children:[t.jsxs("td",{className:"cartao-titulo",children:[t.jsx("strong",{children:((p=b.festival)==null?void 0:p.name)??`Festival #${b.festival_id}`}),((x=b.festival)==null?void 0:x.city)&&t.jsx("span",{className:"sub",children:[b.festival.city,b.festival.state].filter(Boolean).join("/")})]}),t.jsx("td",{className:"muted","data-rotulo":"Edição",children:b.edition_label??`${b.year}`}),t.jsx("td",{className:"muted","data-rotulo":"Prazo",children:X(b.deadline)}),t.jsx("td",{className:"muted","data-rotulo":"Cachê",children:f2(b)}),t.jsx("td",{"data-rotulo":"Edital",onClick:j=>j.stopPropagation(),children:He(b.notice_url)?t.jsx("a",{href:He(b.notice_url),target:"_blank",rel:"noreferrer",children:"edital â"}):t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{className:"muted","data-rotulo":"Inscrições",children:b.submissions_count}),t.jsx("td",{className:"muted cartao-oculto",children:"âº"})]},b.id)}),v.length===0&&t.jsx("tr",{children:t.jsxs("td",{colSpan:7,className:"muted",style:{padding:20},children:["Nenhuma edição em ",n,". Use â+ Nova ediçãoâ."]})})]})]})})]})}function El(){const{id:e}=ne(),[a]=mr(),s=e!=null,r=D(()=>s?oa.get(Number(e)):Promise.resolve(null),[e]),n=D(()=>Fa.list());if(r.error)return t.jsx("p",{className:"error",children:r.error});if(s&&(r.loading||!r.data))return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});const o=Number(a.get("ano"))||Co,i=Number(a.get("festival"))||void 0;return t.jsx(y2,{initial:s?r.data:{year:o,...i?{festival_id:i}:{}},festivals:n.data??[],fixedFestivalId:s?void 0:i,backFestivalId:i})}function v2({editionId:e,podeEditar:a}){var j,k;const s=D(()=>Xm.list(e),[e]),[r,n]=y.useState(!1),[o,i]=y.useState([]),[c,l]=y.useState(!1),[d,u]=y.useState(null),h=ge();if(s.loading)return null;const m=((j=s.data)==null?void 0:j.items)??[],f=((k=s.data)==null?void 0:k.total_weight)??null;function v(){i(m.length?m.map(N=>({...N})):[{label:"",weight:null}]),u(null),n(!0)}async function g(){l(!0),u(null);try{await Xm.save(e,o.map((N,C)=>({...N,sort_order:C}))),h.ok("Critérios salvos."),n(!1),s.reload()}catch(N){const C=String(N.message);u(C),h.erro(C)}finally{l(!1)}}const b=o.reduce((N,C)=>N+(Number(C.weight)||0),0),p=o.some(N=>N.weight!=null&&N.weight!==""),x=!p||Math.abs(b-100)<.01;return t.jsxs("div",{className:"card",style:{marginTop:20},children:[t.jsxs("div",{className:"toolbar",style:{marginBottom:r||m.length?12:0},children:[t.jsx("strong",{children:"Critérios de avaliação"}),f!=null&&!r&&t.jsxs("span",{className:Math.abs(f-100)<.01?"muted":"error",children:["soma ",f,"%",Math.abs(f-100)<.01?"":" â confira o edital"]}),t.jsx("span",{style:{flex:1}}),a&&!r&&t.jsx("button",{className:"btn",onClick:v,children:m.length?"E
712ditar":"+ Cadastrar critérios"})]}),!r&&m.length===0&&t.jsx("p",{className:"muted",style:{margin:0},children:"Ainda não cadastrados. São eles que dizem o que de fato pontua â e o que o projeto precisa responder."}),!r&&m.map(N=>t.jsxs("div",{className:"criterio-linha",children:[t.jsxs("div",{children:[t.jsx("strong",{children:N.label}),N.description&&t.jsx("div",{className:"muted",children:N.description})]}),t.jsx("span",{className:"peso",children:N.weight!=null?`${N.weight}%`:"â"})]},N.id)),r&&t.jsxs(t.Fragment,{children:[o.map((N,C)=>t.jsxs("div",{className:"criterio-edit",children:[t.jsx("input",{placeholder:"Nome do critério",value:N.label,onChange:_=>i(A=>A.map((z,P)=>P===C?{...z,label:_.target.value}:z))}),t.jsx("input",{type:"number",placeholder:"peso %",min:0,max:100,step:"0.5",value:N.weight??"",onChange:_=>i(A=>A.map((z,P)=>P===C?{...z,weight:_.target.value===""?null:Number(_.target.value)}:z))}),t.jsx("button",{className:"btn",title:"Remover",onClick:()=>i(_=>_.filter((A,z)=>z!==C)),children:"Ã"})]},C)),t.jsxs("div",{className:"toolbar",style:{marginTop:10},children:[t.jsx("button",{className:"btn",onClick:()=>i(N=>
712[...N,{label:"",weight:null}]),children:"+ Critério"}),t.jsxs("span",{className:x?"muted":"error",children:[p?`soma ${b}%`:"sem pesos â o edital não informou",!x&&" · deveria fechar 100"]}),t.jsx("span",{style:{flex:1}}),t.jsx("button",{className:"btn",onClick:()=>n(!1),disabled:c,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:g,disabled:c,children:c?"Salvandoâ¦":"Salvar"})]}),d&&t.jsx("p",{className:"error",children:d})]})]})}function j2(){var b;const e=Z(),a=Ui(),{id:s}=ne(),r=J(),{readonly:n,hasModule:o}=de(),i=D(()=>oa.get(Number(s)),[s]),c=D(()=>xe.list(),[]),l=D(()=>$1.list(),[]);if(i.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(i.error)return t.jsx("p",{className:"error",children:i.error});const d=i.data,u=d.hosted_call_slug??null,h=u?(l.data??[]).some(p=>p.edition_id===d.id):(c.data??[]).some(p=>p.edition_id===d.id),m=new Date().toISOString().slice(0,10),f=!d.deadline||d.deadline>=m,v=[d.covers_travel&&"Transporte",d.covers_lodging&&"Hospedagem",d.covers_meals&&"Alimentação"].filter(Boolean).join(", ");return t.jsxs(Re,{backTo:"/app/oportunidades",title:`${((b=d.festival)==null?void 0:b.name)??"Edição"} · ${d.edition_label??d.year}`,actions:t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[!n&&h&&(u?t.jsxs("button",{className:"btn",onClick:()=>r("/app/inscricoes/chamadas"),children:[t.jsx(Ze,{size:13,strokeWidth:2.4})," Inscrito · ver minhas inscrições"]}):t.jsxs("span",{className:"muted inline-ico",children:["Inscrito ",t.jsx(Ze,{size:13,strokeWidth:2.4})]})),!n&&!h&&f&&t.jsx("button",{className:"btn primary",onClick:()=>r(u?`/app/inscricoes/chamadas/${u}`:`/app/inscricoes/inscrever/${d.id}`),children:u?"Inscrever pela Gira":"Inscrever-se"}),(o("edicoes")||d.can_edit)&&t.jsx("button",{className:"btn",onClick:()=>r(Cu(d.id,o("edicoes"))),children:"Editar"})]}),children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(ke,{label:"Ano",value:d.year}),t.jsx(ke,{label:"Rótulo da edição",value:d.edition_label}),t.jsx(ke,{label:"PerÃodo do festival",value:d.festival_period}),t.jsx(ke,{label:"Prazo de inscrição",value:X(d.deadline)}),t.jsx(ke,{label:"Data do resultado",value:X(d.result_date)}),t.jsx(ke,{label:e("Cachê"),value:a(d,"fee"),full:!0}),t.jsx(ke,{label:"O edital cobre",value:v,full:!0}),t.jsx(ke,{label:e("Elegibilidade"),value:a(d,"eligibility"),full:!0}),t.jsx(ke,{label:"Link do edital",value:t.jsx(Ks,{url:d.notice_url}),full:!0}),t.jsx(ke,{label:"Link de inscrição (pública)",value:t.jsx(Ks,{url:d.registration_url}),full:!0}),t.jsx(ke,{label:"Link dos anexos",value:t.jsx(Ks,{url:d.attachments_url}),full:!0}),t.jsx(Ba,{titulo:e("Análise do edital"),texto:a(d,"ai_analysis")})]}),t.jsx(v2,{editionId:d.id,podeEditar:o("edicoes")&&!n}),t.jsx(Wi,{criadoPor:d.created_by_name,editadoPor:d.updated_by_name,criadoEm:d.created_at,editadoEm:d.updated_at})]})}function y2({initial:e,festivals:a,fixedFestivalId:s,backFestivalId:r}){var le,I;const n=J(),{canCurate:o,hasModule:i}=de(),c=!e.id,l=c?o:e.can_edit??o,[d,u]=y.useState({...e}),[h,m]=y.useState(!1),f=ge(),[v,g]=y.useState(null),[b,p]=y.useState(!1),[x,j]=y.useState(null),[k,N]=y.useState(null),C=R=>u(V=>({...V,...R})),_=R=>R===""?null:Number(R),A=r??s,z=A?`/app/oportunidades/${A}/editar`:i("edicoes")||c?li:`/app/oportunidades/edicao/${e.id}`,P=()=>n(z);async function w(){const R=d.notice_url||d.registration_url;if(R){p(!0),g(null);try{const V=await ct.analyzeEdital(R);N(d);const B={},se=["edition_label","festival_period","deadline","result_date","fee","covers_travel","covers_lodging","covers_meals","eligibility","registration_url"];for(const ze of se)V[ze]!==null&&V[ze]!==void 0&&(B[ze]=V[ze]);B.ai_analysis=V.summary,B.ai_sources=V.sources.join(` 713`),u(ze=>({...ze,...B})),j(V)}catch(V){g(String(V.message))}finally{p(!1)}}}function L(){k&&u(k),j(null),N(null)}async function $(){m(!0),g(null);try{if(!d.year)throw new Error("Ano é obrigatório.");if(c){if(!d.festival_id)throw new Error("Escolha um festival.");const R=await oa.create({...d,festival_id:d.festival_id});f.ok("Edição criada."),n(`${li}/${R.id}/editar`,{replace:!0})}else await oa.update(e.id,d),f.ok("Alterações salvas.")}catch(R){const V=String(R.message);g(V),f.erro(V)}finally{m(!1)}}async function H(){if(confirm("Excluir a edição e TODAS as inscrições dela?")){m(!0);try{await oa.remove(e.id),P()}catch(R){g(String(R.message)),m(!1)}}}const re=c?"Nova edição":`${((le=e.festival)==null?void 0:le.name)??"Edição"} · ${e.edition_label??e.year}`,K=t.jsxs("button",{className:"btn",onClick:w,disabled:b||h||!d.notice_url&&!d.registration_url,title:d.notice_url||d.registration_url?"Ler o edital (PDF ou página) e preencher os campos â usa o link do edital ou, na falta, o do formulário de inscrição":"Informe o link do edital (ou do formulário de inscrição) primeiro",children:[t.jsx(Be,{size:14,strokeWidth:2}),b?"Analisando editalâ¦":"Analisar edital com IA"]});return t.jsxs(Re,{backTo:z,title:re,actions:K,children:[x&&t.jsxs("div",{className:"card",style:{marginBottom:16,borderLeft:"3px solid #7c3aed"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:8},children:[t.jsxs("strong",{className:"inline-ico",children:[t.jsx(Be,{size:14,strokeWidth:2})," Sugestão da IA · confiança ",x.confidence]}),t.jsx("button",{className:"btn small",onClick:L,children:"Descartar sugestões"})]}),t.jsx("p",{style:{margin:"8px 0"},children:x.summary}),t.jsx("p",{className:"muted",style:{marginBottom:6},children:"Os campos abaixo foram pré-preenchidos. Confira (sobretudo prazo e cachê) e clique em Salvar."}),x.sources.length>0&&t.jsxs("details",{children:[t.jsxs("summary",{className:"muted",children:["Trechos do edital (",x.sources.length,")"]}),t.jsx("ul",{style:{margin:"6px 0 0",paddingLeft:18},children:x.sources.map((R,V)=>t.jsx("li",{className:"muted",children:t.jsx("small",{children:R})},V))})]})]}),t.jsxs("div",{className:"form-grid",children:[c&&s&&t.jsx(S,{label:"Festival",full:!0,children:t.jsx("input",{disabled:!0,value:((I=a.find(R=>R.id===s))==null?void 0:I.name)??`Festival #${s}`})}),c&&!s&&t.jsx(S,{label:"Festival",full:!0,children:t.jsxs("select",{value:d.festival_id??"",onChange:R=>C({festival_id:Number(R.target.value)||void 0}),children:[t.jsx("option",{value:"",children:"Escolhaâ¦"}),a.map(R=>t.jsx("option",{value:R.id,children:R.name},R.id))]})}),t.jsx(S,{label:"Ano",children:t.jsx("input",{type:"number",value:d.year??"",onChange:R=>C({year:_(R.target.value)??void 0})})}),t.jsx(S,{label:"Rótulo da edição (ex.: XVIII)",children:t.jsx("input",{value:d.edition_label??"",onChange:R=>C({edition_label:R.target.value})})}),t.jsx(S,{label:"PerÃodo do festival",children:t.jsx("input",{value:d.festival_period??"",onChange:R=>C({festival_period:R.target.value})})}),t.jsx(S,{label:"Prazo de inscrição",children:t.jsx("input",{type:"date",value:d.deadline??"",onChange:R=>C({deadline:R.target.value||null})})}),t.jsx(S,{label:"Data do resultado",children:t.jsx("input",{type:"date",value:d.result_date??"",onChange:R=>C({result_date:R.target.value||null})})}),t.jsx(S,{label:"Cachê (texto)",full:!0,children:t.jsx("input",{value:d.fee??"",onChange:R=>C({fee:R.target.value})})}),t.jsx(S,{label:"O edital cobre",full:!0,children:t.jsxs("div",{style:{display:"flex",gap:16,flexWrap:"wrap",paddingTop:4},children:[t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!d.covers_travel,onChange:R=>C({covers_travel:R.target.checked})}),"Transporte"]}),t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!d.covers_lodging,onChange:R=>C({covers_lodging:R.target.checked})}),"Hospedagem"]}),t.jsxs("label",{style:{display:"flex",gap:6,alignItems:"center"},children:[t.jsx("input",{type:"checkbox",checked:!!d.covers_meals,onChange:R=>C({covers_meals:R.target.checked})}),"Alimentação"]})]})}),t.jsx(S,{label:"Elegibilidade",full:!0,children:t.jsx("textarea",{rows:2,value:d.eligibility??"",onChange:R=>C({eligibility:R.target.value})})}),t.jsx(S,{label:"Link do EDITAL",full:!0,children:t.jsx("input",{value:d.notice_url??"",onChange:R=>C({notice_url:R.target.value})})}),t.jsx(S,{label:"Link de INSCRIÃÃO (pública)",full:!0,children:t.jsx("input",{value:d.registration_url??"",onChange:R=>C({registration_url:R.target.value})})}),t.jsx(S,{label:"Link dos ANEXOS",full:!0,children:t.jsx("input",{value:d.attachments_url??"",onChange:R=>C({attachments_url:R.target.value})})}),t.jsx(Ba,{titulo:"Análise do edital",texto:d.ai_analysis,vazio:"Ainda sem análise do edital â use âAnalisar edital com IAâ."}),t.jsx(Ba,{titulo:"Trechos do edital",texto:d.ai_sources})]}),!c&&e.submissions_count>0&&t.jsxs("p",{className:"muted",style:{marginTop:8},children:["Esta edição tem ",e.submissions_count," inscrição(ões) vinculada(s)."]}),!c&&t.jsx(Wi,{criadoPor:e.created_by_name,editadoPor:e.updated_by_name,criadoEm
713:e.created_at,editadoEm:e.updated_at}),v&&t.jsx("p",{className:"error",children:v}),t.jsxs("footer",{className:"modal-foot",children:[!c&&o&&t.jsx("button",{className:"btn danger",onClick:H,disabled:h,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:P,disabled:h,children:l?"Cancelar":"Voltar"}),l&&t.jsx("button",{className:"btn primary",onClick:$,disabled:h,children:h?"Salvandoâ¦":"Salvar"})]})]})}const sa="/app/inscricoes",dg=new Date().getFullYear(),ug=Object.keys(qe);function yp({archived:e=!1}){const{libera:a}=St();return a("submissions")?t.jsx(N2,{archived:e}):t.jsx(b2,{})}function b2(){const e=Z();return t.jsx(gr,{moduleKey:"inscricoes",Icone:Za,titulo:e("As Inscrições são dos planos pagos"),explicacao:e("à onde cada edital em que você se inscreveu fica registrado â o que foi enviado, quando, com qual produto cultural e em que pé está â e onde a inscrição guiada rascunha as respostas do formulário a partir do seu cadastro, em vez de você reescrever a mesma trajetória em cada edital."),itens:[e("A inscrição guiada, com as respostas rascunhadas pela IA"),e("Cada envio registrado: produto cultural, data, prazo e resultado"),e("Acompanhamento do que ainda vai sair, com a data prevista"),e("Relatório de aproveitamento: onde você entra e onde não entra")],cta:e("Assinar para usar")})}function N2({archived:e}){const a=Z(),s=J();de();const r=D(()=>xe.list({archived:e}),[e]),[n,o]=y.useState("all"),[i,c]=y.useState(""),[l,d]=y.useState(null),u=y.useMemo(()=>{const m=r.data??[],f=n==="all"?m:m.filter(g=>g.status===n),v=i.trim().toLowerCase();return v?f.filter(g=>{var b,p;return[(b=g.festival)==null?void 0:b.name,g.edition_label,String(g.year??""),(p=g.show)==null?void 0:p.name].filter(Boolean).some(x=>x.toLowerCase().includes(v))}):f},[r.data,n,i]);async function h(m){d(m.id);try{await xe.update(m.id,{archived:!m.archived}),r.reload()}finally{d(null)}}return r.error?t.jsx("p",{className:"error",children:r.error}):t.jsxs(t.Fragment,{children:[!e&&t.jsx(C2,{subs:r.data??[],onChange:r.reload}),t.jsxs("div",{className:"toolbar",children:[e?t.jsx("button",{className:"btn",onClick:()=>s(sa),children:"â¹ Voltar para inscrições"}):t.jsxs("button",{className:`btn ${n==="submitted"?"primary":""}`,title:a("Inscrições enviadas que ainda aguardam o resultado"),onClick:()=>o(n==="submitted"?"all":"submitted"),children:[t.jsx(qn,{size:14,strokeWidth:2}),a("Aguardando resultado")]}),t.jsxs("select",{value:n,onChange:m=>o(m.target.value),children:[t.jsx("option",{value:"all",children:a("Todos os status")}),ug.map(m=>t.jsx("option",{value:m,children:a(qe[m].label)},m))]}),t.jsx("input",{type:"search",placeholder:a("Buscar festival, edição ou produtoâ¦"),value:i,onChange:m=>c(m.target.value),style:{minWidth:260}}),t.jsxs("span",{className:"muted",children:[u.length," ",e?"arquivadas":"inscrições"]}),e?t.jsx("span",{}):t.jsxs(t.Fragment,{children:[t.jsxs("button",{className:"btn",onClick:()=>s(`${sa}/arquivadas`),children:[t.jsx(bb,{size:14,strokeWidth:2}),a("Arquivadas")]}),t.jsxs("button",{className:"btn",onClick:()=>s(`${sa}/chamadas`),children:[t.jsx(Cn,{size:14,strokeWidth:2}),a("Chamadas da Gira")]})]})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table cartoes",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:a("Festival")}),t.jsx("th",{children:a("Edição")}),t.jsx("th",{children:a("Produto cultural")}),t.jsx("th",{children:a("Prazo")}),t.jsx("th",{children:a("Resultado")}),t.jsx("th",{children:a("Cachê")}),t.jsx("th",{children:a("Prioridade")}),t.jsx("th",{children:a("Status")}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[u.map(m=>{var f,v;return t.jsxs("tr",{onClick:()=>s(`${sa}/${m.id}/ver`),children:[t.jsxs("td",{className:"cartao-titulo",children:[t.jsx("strong",{children:(f=m.festival)==null?void 0:f.name}),m.documents.length>0&&t.jsxs("span",{className:"docs-pill",title:a("documentos na pasta"),children:[t.jsx(If,{size:12,strokeWidth:2})," ",m.documents.length]})]}),t.jsx("td",{className:"muted","data-rotulo":"Edição",children:m.edition_label??`${m.year}`}),t.jsx("td",{className:"muted","data-rotulo":"Produto cultural",children:((v=m.show)==null?void 0:v.name)??"â"}),t.jsx("td",{"data-rotulo":"Prazo",children:X(m.deadline)}),t.jsx("td",{"data-rotulo":"Resultado",children:X(m.result_date)}),t.jsx("td",{"data-rotulo":"Cachê",children:m.fee??"â"}),t.jsx("td",{"data-rotulo":"Prioridade",children:t.jsxs("div",{className:"prio",children:[t.jsx("div",{className:"prio-fill",style:{width:`${m.priority_score}%`}}),t.jsx("span",{children:m.priority_score})]})}),t.jsx("td",{"data-rotulo":"Status",children:t.jsx(oi,{status:m.status})}),t.jsx("td",{className:"cartao-acao col-fim",children:t.jsx("button",{className:"link",title:m.archived?"Tirar do arquivo":"Arquivar (sai do dashboard e da listagem)",disabled:l===m.id,onClick:g=>{g.stopPropagation(),h(m)},children:m.archived?"Desarquivar":"Arquivar"})})]},m.id)}),u.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:8,className:"muted",style:{textAlign:"center",padding:24},children:e?"Nenhuma inscrição arquivada.":"Nenhuma inscrição."})})]})]})})]})}const k2=2,w2=e=>new Date(/[Zz]$/.test(e)?e:`${e}Z`);function C2({subs:e,onChange:a}){const s=Z(),{readonly:r}=de(),[n,o]=y.useState(null),i=new Date().toISOString().slice(0,10),c=e.f
713ilter(d=>!d.form_opened_at||d.submitted_at||d.archived||d.status!=="queued"&&d.status!=="viable"||d.deadline&&d.deadline<i?!1:(Date.now()-w2(d.form_opened_at).getTime())/864e5>=k2);if(r||c.length===0)return null;async function l(d,u){o(d.id);try{await xe.update(d.id,u?{status:"submitted",submitted_at:i}:{form_opened_at:new Date().toISOString()}),a()}finally{o(null)}}return t.jsx("div",{className:"card lembrete",children:c.map(d=>{var u;return t.jsxs("div",{className:"lembrete-linha",children:[t.jsxs("span",{children:[s("Você abriu o formulário de"),t.jsx("strong",{children:(u=d.festival)==null?void 0:u.name})," ",d.edition_label??d.year," em ",ii(d.form_opened_at),". Chegou a enviar?"]}),t.jsxs("span",{className:"lembrete-acoes",children:[t.jsx("button",{className:"btn primary",disabled:n===d.id,onClick:()=>l(d,!0),children:s("Enviei")}),t.jsx("button",{className:"btn",disabled:n===d.id,onClick:()=>l(d,!1),children:s("Ainda não")})]})]},d.id)})})}function _2(){var c,l;const e=Z(),{id:a}=ne(),s=J(),{readonly:r}=de(),n=D(()=>xe.get(Number(a)),[a]);if(n.loading)return t.jsx("p",{className:"muted",children:e("Carregandoâ¦")});if(n.error)return t.jsx("p",{className:"error",children:n.error});const o=n.data,i=[o.covers_travel&&"Transporte",o.covers_lodging&&"Hospedagem",o.covers_meals&&"Alimentação"].filter(Boolean).join(", ");return t.jsx(Re,{backTo:sa,title:((c=o.festival)==null?void 0:c.name)??"Inscrição",actions:t.jsx("div",{style:{display:"flex",gap:8},children:!r&&t.jsx("button",{className:"btn primary",onClick:()=>s(`${sa}/${o.id}/editar`),children:e("Editar")})}),children:t.jsxs("div",{className:"form-grid",children:[t.jsx(ce,{label:e("Edição"),value:o.edition_label??String(o.year)}),t.jsx(ce,{label:e("Produto cultural"),value:(l=o.show)==null?void 0:l.name}),t.jsx(ce,{label:e("Status"),value:t.jsx(oi,{status:o.status})}),t.jsx(ce,{label:e("Prioridade"),value:String(o.priority_score)}),t.jsx(ce,{label:e("Cachê"),value:o.fee}),t.jsx(ce,{label:e("Prazo de inscrição"),value:X(o.deadline)}),t.jsx(ce,{label:e("Data do resultado"),value:X(o.result_date)}),t.jsx(ce,{label:e("Data da inscrição"),value:X(o.submitted_at)}),t.jsx(ce,{label:e("Inscrito por"),value:o.created_by_name}),t.jsx(ce,{label:e("O edital cobre"),value:i,full:!0}),t.jsx(ce,{label:e("Elegibilidade"),value:o.eligibility,full:!0}),t.jsx(Ba,{titulo:"Aderência ao edital",nota:o.fit_score,texto:o.fit_notes}),t.jsx(Ba,{titulo:"Análise completa",texto:o.ai_analysis}),t.jsx(ce,{label:e("Próximo passo"),value:o.next_step,full:!0}),t.jsx(ce,{label:e("Observações"),value:o.notes,full:!0}),t.jsx(ce,{label:e("Link do edital"),value:Xr(o.notice_url),full:!0}),t.jsx(ce,{label:e("Link de inscrição (pública)"),value:Xr(o.registration_url),full:!0})]})})}function bp(){const e=Z(),{id:a}=ne(),[s]=mr(),r=a!=null,n=D(()=>r?xe.get(Number(a)):Promise.resolve(null),[a]),o=D(()=>Fa.list()),i=D(()=>Ue.list());if(n.error)return t.jsx("p",{className:"error",children:n.error});if(r&&(n.loading||!n.data))return t.jsx("p",{className:"muted",children:e("Carregandoâ¦")});const c=s.get("festival"),l=s.get("year"),d={year:l?Number(l):dg,...c?{festival_id:Number(c)}:{}};return t.jsx(S2,{initial:r?n.data:d,festivals:o.data??[],shows:i.data??[]})}function Xr(e){return e?t.jsxs("a",{href:e,target:"_blank",rel:"noreferrer",className:"link",children:[e," â"]}):null}function ce({label:e,value:a,full:s}){return t.jsx(S,{label:e,full:s,children:t.jsx("div",{className:"ro-value",style:{padding:"6px 0",minHeight:20},children:a==null||a===""?t.jsx("span",{className:"muted",children:"â"}):a})})}function S2({initial:e,festivals:a,shows:s}){var oe,$e;const r=Z(),n=J(),{readonly:o}=de(),{user:i}=Ae(),c=!e.id,[l,d]=y.useState({...e}),[u,h]=y.useState(!1),m=ge(),[f,v]=y.useState(null),[g,b]=y.useState(!1),[p,x]=y.useState(null),[j,k]=y.useState(!1),[N,C]=y.useState(!1),_=D(()=>c&&l.festival_id?oa.list({festival_id:l.festival_id}):Promise.resolve([]),[c,l.festival_id]),A=E=>d(Y=>({...Y,...E})),z=E=>E===""?null:Number(E),P=()=>n(sa);async function w(E){if(!(c||!e.id)){k(!0),v(null);try{const Y=await ia.uploadFile(e.id,E),Ne=await xe.get(e.id);A({receipt_file:Y.name,folder:Ne.folder})}catch(Y){v(String(Y.message))}finally{k(!1)}}}async function L(){if(!(!e.id||!l.receipt_file))try{await sp.open(e.id,l.receipt_file)}catch(E){v(String(E.message))}}async function $(){if(!(!e.id||!l.receipt_file)&&confirm(`Apagar o comprovante "${l.receipt_file}"? Esta ação remove o arquivo do servidor.`)){k(!0),v(null);try{await sp.remove(e.id),A({receipt_file:null})}catch(E){v(String(E.message))}finally{k(!1)}}}async function H(){b(!0),v(null);try{let E;if(c){if(!l.show_id)throw new Error("Escolha o produto cultural para analisar o fit.");const Y=s.find(Bt=>Bt.id===l.show_id);if(!(Y!=null&&Y.artist_id))throw new Error("O produto cultural selecionado não tem companhia.");const Ne=(_.data??[]).find(Bt=>
713Bt.year===l.year);if(!(Ne!=null&&Ne.notice_url))throw new Error("Esta edição não tem URL de edital. Cadastre o edital na edição (admin) ou use a Análise rápida com upload do PDF.");E=(await ct.quickFit({artist_id:Y.artist_id,show_id:l.show_id,url:Ne.notice_url})).fit}else{if(!e.id)return;E=await ct.analyzeFit(e.id)}A({fit_score:E.fit_score,fit_notes:E.fit_notes,ai_analysis:E.analysis}),x(E)}catch(E){v(String(E.message))}finally{b(!1)}}async function re(){if(!(c||!e.id)){h(!0),v(null);try{await xe.update(e.id,{archived:!l.archived}),P()}catch(E){v(String(E.message)),h(!1)}}}async function K(){h(!0),v(null);try{if(c){if(!l.festival_id)throw new Error("Escolha um festival.");if(l.year==null)throw new Error("Escolha a edição (ou crie uma nova informando o ano).");const E=await xe.create(l);m.ok("Inscrição criada."),n(`${sa}/${E.id}/editar`,{replace:!0})}else await xe.update(e.id,l),m.ok("Alterações salvas.")}catch(E){const Y=String(E.message);v(Y),m.erro(Y)}finally{h(!1)}}async function le(){var Y;const E=(Y=e.festival)==null?void 0:Y.name;if(confirm(`Excluir ${E?`a inscrição de â${E}â`:"esta inscrição"}? 714 715Esta ação é permanente e remove o registro da inscrição. A pasta de documentos no servidor não é apagada. 716 717Dica: se quiser apenas tirar do dashboard e da listagem, use âArquivarâ.`)){h(!0);try{await xe.remove(e.id),P()}catch(Ne){v(String(Ne.message)),h(!1)}}}const I=e.edition_id,R=!c&&I?`/app/edicoes/${I}/editar`:null,V=c&&!N?(_.data??[]).find(E=>E.year===l.year)??null:null,B=(c?V:l)??null,se=[(B==null?void 0:B.covers_travel)&&"Transporte",(B==null?void 0:B.covers_lodging)&&"Hospedagem",(B==null?void 0:B.covers_meals)&&"Alimentação"].filter(Boolean),ze=t.jsx("div",{style:{display:"flex",gap:8},children:t.jsxs("button",{className:"btn",onClick:H,disabled:g||u||c&&!l.show_id,title:c?"Triagem antes de cadastrar: cruza o edital da edição com o produto e diz se vale a pena":"Analisar a aderência (fit) cruzando o edital da edição com o perfil",children:[t.jsx(Be,{size:14,strokeWidth:2}),g?"Analisando fitâ¦":"Analisar fit com IA"]})});return t.jsxs(Re,{backTo:sa,title:c?"Nova inscrição":((oe=e.festival)==null?void 0:oe.name)??"Inscrição",actions:ze,children:[p&&t.jsxs("div",{className:"card",style:{marginBottom:16,borderLeft:"3px solid #7c3aed"},children:[t.jsxs("strong",{className:"inline-ico",children:[t.jsx(Be,{size:14,strokeWidth:2})," Análise de fit da IA · nota ",p.fit_score,"/5 · confiança ",p.confidence]}),t.jsx("p",{style:{margin:"8px 0"},children:p.fit_notes}),t.jsx("p",{className:"muted",style:{marginBottom:0},children:"Fit, Análise de fit e Análise (IA) abaixo foram preenchidos. Confira e clique em Salvar."})]}),t.jsx("h3",{style:{margin:"0 0 8px"},children:r("Dados da inscrição")}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:r("Festival"),children:t.jsxs("select",{value:l.festival_id??l.festival_id??"",disabled:!c,onChange:E=>{C(!1),A({festival_id:Number(E.target.value),year:void 0})},children:[t.jsx("option",{value:"",children:"â"}),a.map(E=>t.jsx("option",{value:E.id,children:E.name},E.id))]})}),c&&t.jsx(S,{label:r("Edição"),hint:"A inscrição é de uma edição (ano) do festival. Escolha uma edição existente â ou crie uma nova informando o ano.",children:t.jsxs("select",{value:N?"__new__":l.year!=null?String(l.year):"",disabled:!l.festival_id,onChange:E=>{const Y=E.target.value;Y==="__new__"?(C(!0),A({year:dg})):(C(!1),A({year:Y?Number(Y):void 0}))},children:[t.jsx("option",{value:"",children:"â"}),(_.data??[]).map(E=>t.jsxs("option",{value:E.year,children:[E.edition_label?`${E.edition_label} · ${E.year}`:E.year,E.deadline?` â prazo ${X(E.deadline)}`:""]},E.id)),t.jsx("option",{value:"__new__",children:"+ Nova edição (informar ano)â¦"})]})}),c&&N&&t.jsx(S,{label:r("Ano da nova edição"),children:t.jsx("input",{type:"number",value:l.year??"",onChange:E=>A({year:z(E.target.value)??void 0})})}),!c&&t.jsx(ce,{label:r("Edição"),value:`${l.edition_label?`${l.edition_label} · `:""}${l.year??""}${l.deadline?` â prazo ${X(l.deadline)}`:""}`}),t.jsx(S,{label:r("Produto cultural"),children:t.jsxs("select",{value:l.show_id??"",onChange:E=>A({show_id:z(E.target.value)}),children:[t.jsx("option",{value:"",children:"â"}),s.map(E=>t.jsx("option",{value:E.id,children:E.name},E.id))]})}),t.jsx(S,{label:r("Status"),children:t.jsx("select",{value:l.status??"queued",onChange:E=>{const Y=E.target.value,Ne=new Date().toISOString().slice(0,10);A({status:Y,...Y==="submitted"&&!l.submitted_at?{submitted_at:Ne}:{}})},children:ug.map(E=>
717t.jsx("option",{value:E,children:r(qe[E].label)},E))})}),t.jsx(S,{label:r("Data da inscrição"),hint:"Ao definir a data, o status vira âInscritoâ automaticamente.",children:t.jsx("input",{type:"date",value:l.submitted_at??"",onChange:E=>{const Y=E.target.value||null;A({submitted_at:Y,...Y&&l.status!=="confirmed"?{status:"submitted"}:{}})}})}),t.jsx(ce,{label:r("Inscrito por"),value:e.created_by_name??(c&&i?`${i.name} (você)`:null)}),t.jsx(S,{label:r("Comprovante da inscrição"),full:!0,hint:"Envie uma imagem ou PDF do comprovante. Salve a inscrição antes de anexar.",children:t.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[t.jsx("input",{type:"file",accept:"image/*,application/pdf",disabled:c||j,onChange:E=>{var Ne;const Y=(Ne=E.target.files)==null?void 0:Ne[0];Y&&w(Y)}}),j&&t.jsx("span",{className:"muted",children:r("enviandoâ¦")}),l.receipt_file&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{type:"button",className:"link",onClick:L,children:[t.jsx(If,{size:13,strokeWidth:2})," ",l.receipt_file," â ver â"]}),t.jsx("button",{type:"button",className:"link",style:{color:"#dc2626"},onClick:$,disabled:j,children:r("apagar")})]}),c&&t.jsx("span",{className:"muted",children:r("salve a inscrição primeiro")})]})}),t.jsx(Ba,{titulo:"Aderência ao edital",nota:l.fit_score,texto:l.fit_notes,vazio:"Ainda sem análise de aderência â use âAnalisar fit com IAâ."}),t.jsx(Ba,{titulo:"Análise completa",texto:l.ai_analysis}),t.jsx(S,{label:r("Próximo passo"),full:!0,children:t.jsx("textarea",{rows:2,value:l.next_step??"",onChange:E=>A({next_step:E.target.value})})}),t.jsx(S,{label:r("Observações"),full:!0,hint:"Anotações livres sobre esta inscrição.",children:t.jsx("textarea",{rows:2,value:l.notes??"",onChange:E=>A({notes:E.target.value})})}),t.jsx(Ba,{titulo:"Rascunho de preenchimento",texto:l.application_draft})]}),t.jsxs("h3",{style:{margin:"20px 0 4px",display:"flex",alignItems:"baseline",gap:10},children:["Dados do edital",R&&t.jsx(U,{to:R,className:"link",style:{fontSize:13,fontWeight:400},children:r("editar na edição â")})]}),t.jsx("p",{className:"muted",style:{margin:"0 0 8px"},children:"Valem para todas as inscrições desta edição. Para alterar (links inclusive), edite na edição."}),t.jsxs("div",{className:"form-grid",children:[t.jsx(ce,{label:r("Ano"),value:B==null?void 0:B.year}),t.jsx(ce,{label:r("Edição (rótulo)"),value:B==null?void 0:B.edition_label}),t.jsx(ce,{label:r("PerÃodo do festival"),value:B==null?void 0:B.festival_period}),t.jsx(ce,{label:r("Prazo de inscrição"),value:X((B==null?void 0:B.deadline)??null)}),t.jsx(ce,{label:r("Divulgação do resultado"),value:X((B==null?void 0:B.result_date)??null)}),t.jsx(ce,{label:r("Cachê"),value:B==null?void 0:B.fee}),t.jsx(ce,{label:r("O edital cobre"),value:se.length?se.join(", "):""}),t.jsx(ce,{label:r("Elegibilidade"),value:B==null?void 0:B.eligibility,full:!0}),t.jsx(ce,{label:r("Link do edital (PDF)"),value:Xr(B==null?void 0:B.notice_url),full:!0}),t.jsx(ce,{label:r("Link do formulário de inscrição"),value:Xr(B==null?void 0:B.registration_url),full:!0}),t.jsx(ce,{label:r("Link dos anexos"),value:Xr(B==null?void 0:B.attachments_url),full:!0})]}),!c&&(($e=e.documents)==null?void 0:$e.length)>0&&t.jsxs("div",{className:"docs-box",children:[t.jsx("strong",{children:r("Documentos da pasta")}),t.jsx("ul",{children:e.documents.map(E=>t.jsxs("li",{children:[t.jsx("span",{className:"ext",children:E.ext})," ",E.name," ",t.jsxs("span",{className:"muted",children:["(",E.size_kb," KB)"]})]},E.name))})]}),f&&t.jsx("p",{className:"error",children:f}),t.jsxs("footer",{className:"modal-foot",children:[!c&&!o&&t.jsx("button",{className:"btn danger",onClick:le,disabled:u,children:r("Excluir")}),!c&&!o&&t.jsx("button",{className:"btn",onClick:re,disabled:u,title:l.archived?"Voltar para a listagem e o dashboard":"Arquivar: sai do dashboard e da listagem (fica em âArquivadasâ)",children:l.archived?"Desarquivar":"Arquivar"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:P,disabled:u,children:o?"Voltar":"Cancelar"}),!o&&t.jsx("button",{className:"btn primary",onClick:K,disabled:u,children:u?"Salvandoâ¦":"Salvar"})]})]})}const ro="/app/inscricoes",Kc=()=>new Date().toISOString().slice(0,10),E2=[{n:1,titulo:"Vale a pena?"},{n:2,titulo:"Preparar"},{n:3,titulo:"Preencher"},{n:4,titulo:"Confirmar"}];function Np(e){return e>=4?{label:"Vale a pena",Icon:bt,color:"#16a34a"}:e===3?{label:"Talvez â avalie",Icon:tu,color:"#d97706"}
717:{label:"Provavelmente não vale",Icon:qi,color:"#dc2626"}}function kp(e){return/503|502|high demand|UNAVAILABLE|overloaded/i.test(e)?"A IA está sobrecarregada agora (pico de uso do Google). Tente de novo em alguns instantes.":e}function P2(e){if(!e)return null;const a=new Date(Kc()+"T00:00:00"),s=new Date(e+"T00:00:00");return Math.round((s.getTime()-a.getTime())/864e5)}function A2({atual:e}){return t.jsx("ol",{className:"wizard-steps",children:E2.map(a=>t.jsxs("li",{className:`wizard-step ${a.n===e?"active":""} ${a.n<e?"done":""}`,children:[t.jsx("span",{className:"wizard-step-n",children:a.n<e?t.jsx(Ze,{size:13,strokeWidth:3}):a.n}),a.titulo]},a.n))})}function wp({e}){var r,n,o;const a=P2(e.deadline),s=[["Edital",e.notice_url],["Formulário de inscrição",e.registration_url],["Anexos",e.attachments_url]];return t.jsxs("div",{className:"card wizard-edital",children:[t.jsxs("div",{children:[t.jsx("h3",{style:{margin:0},children:((r=e.festival)==null?void 0:r.name)??`Edição #${e.id}`}),t.jsx("p",{className:"muted",style:{margin:"4px 0 0"},children:[e.edition_label??String(e.year),[(n=e.festival)==null?void 0:n.city,(o=e.festival)==null?void 0:o.state].filter(Boolean).join("/")||null,e.fee].filter(Boolean).join(" · ")}),t.jsxs("p",{className:"muted",style:{margin:"4px 0 0"},children:["Prazo: ",X(e.deadline),a!=null&&t.jsx("strong",{style:{color:a<0?"#dc2626":a<=7?"#d97706":void 0},children:a<0?` â encerrado há ${-a} dia(s)`:a===0?" â encerra hoje":` â faltam ${a} dia(s)`})]})]}),t.jsx("div",{className:"wizard-edital-links",children:s.map(([i,c])=>He(c)?t.jsxs("a",{className:"btn",href:He(c),target:"_blank",rel:"noreferrer",children:[t.jsx(nu,{size:14})," ",i]},i):null)})]})}function z2({texto:e}){const[a,s]=y.useState(null),r=y.useMemo(()=>e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean),[e]);async function n(o,i){try{await navigator.clipboard.writeText(i),s(o),setTimeout(()=>s(c=>c===o?null:c),1500)}catch{}}return t.jsx("div",{className:"wizard-blocos",children:r.map((o,i)=>t.jsxs("div",{className:"wizard-bloco",children:[t.jsx("pre",{children:o}),t.jsxs("button",{className:"btn",onClick:()=>n(i,o),children:[a===i?t.jsx(Ze,{size:14}):t.jsx(ru,{size:14}),a===i?"Copiado":"Copiar"]})]},i))})}function T2(){var fa,zu,Tu;const{editionId:e}=ne(),a=J(),{readonly:s}=de(),r=ge(),n=Pe(),o=Number(e),i=n.state??null,c=D(()=>oa.get(o),[o]),l=D(()=>Ue.list(),[]),d=D(()=>me.list(),[]),u=D(()=>xe.list(),[]),[h,m]=y.useState(1),[f,v]=y.useState(""),[g,b]=y.useState(null),[p,x]=y.useState(null),[j,k]=y.useState(""),[N,C]=y.useState(Kc()),[_,A]=y.useState(""),[z,P]=y.useState(!1),[w,L]=y.useState(null),[$,H]=y.useState(null),[re,K]=y.useState(!1),le=y.useRef(!1);if(y.useEffect(()=>{var Ce;const W=(Ce=c.data)==null?void 0:Ce.hosted_call_slug;W&&a(`/app/inscricoes/chamadas/${W}`,{replace:!0})},[c.data,a]),y.useEffect(()=>{if(!(i!=null&&i.fit)||le.current||s)return;const W=c.data,Ce=l.data,Se=u.data;if(!W||!Ce||!Se||Se.some(ss=>ss.edition_id===o))return;const Pt=Ce.find(ss=>ss.id===i.showId);Pt&&(le.current=!0,L("criar"),xe.create({festival_id:W.festival_id,year:W.year,show_id:Pt.id,artist_id:Pt.artist_id,status:"viable",fit_score:i.fit.fit_score,fit_notes:i.fit.fit_notes,ai_analysis:i.fit.analysis}).then(ss=>{b(ss),v(Pt.id),x(i.fit),m(2)}).catch(ss=>H(String(ss.message))).finally(()=>L(null)))},[i,c.data,l.data,u.data,o,s]),c.loading||l.loading||u.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(c.error)return t.jsx("p",{className:"error",children:c.error});const I=c.data,R=l.data??[],V=(u.data??[]).find(W=>W.edition_id===o);if(V&&!g&&!re)return t.jsxs("div",{className:"wizard",children:[t.jsx(wp,{e:I}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Você já tem uma inscrição nesta edição"}),t.jsxs("p",{className:"muted",children:[((fa=V.show)==null?void 0:fa.name)??"Sem produto cultural definido"," ·"," ",V.submitted_at?`inscrita em ${X(V.submitted_at)}`:"ainda não enviada"]}),t.jsxs("div",{className:"wizard-acoes",children:[t.jsx("button",{className:"btn primary",onClick:()=>{b(V),v(V.show_id??""),k(V.application_draft??""),K(!0),m(V.submitted_at?4:V.form_opened_at?3:2)},children:"Retomar de onde parei"}),t.jsx("button",{className:"btn",onClick:()=>a(`${ro}/${V.id}/ver`),children:"Ver a inscrição"})]})]})]});const B=R.find(W=>W.id===f),se=(()=>{const W=new Map,Ce=new Map((d.data??[]).map(Se=>[Se.id,Se.name]));for(const Se of R){const Pt=(Se.artist_id!=null?Ce.get(Se.artist_id):null)??"Sem companhia";W.set(Pt,[...W.get(Pt)??[],Se])}return[...W.entries()].sort((Se,Pt)=>Se[0].localeCompare(Pt[0],"pt-BR"))})();async function ze(){if(H(null),!(B!=null&&B.artist_id))return H("Escolha o produto cultural para analisar a aderência.");if(!I.notice_url)return H("Esta edição não tem link de edital cadastrado. Você pode seguir sem a análise, ou usar a Análise rápida (com upload do PDF).");L("fit");try{const W=await ct.quickFit({artist_id:B.artist_id,show_id:B.id,url:I.notice_url});x(W.fit)}catch(W){H(kp(String(W.message)))}finally{L(null)}}async function oe(){if(g)return g;if(!B)return H("Escolha o produto cultural."),null;L("criar");try{const W=await xe.create({festival_id:I.festival_id,year:I.year,show_id:B.id,artist_id:B.artist_id,status:"viable",fit_score:(p==null?void 0:p.fit_score)??null,fit_notes:(p==null?void 0:p.fit_notes)??null,ai_analysis:(p==null?void 0:p.analysis)??null});return b(W),W}catch(W){return H(String(W.message)),null}finally{L(null)}}async function $e(){H(null),L("descartar");try{const W=await xe.create({festival_id:I.festival_id,year:I.year,show_id:(B==null?void 0:B.id)??null,artist_id:(B==null?void 0:B.artist_id)??null,status:"discarded",fit_score:(p==null?void 0:p.fit_score)??null,fit_notes:(p==null?void 0:p.fit_notes)??null,ai_analysis:(p==null?void 0:p.analysis)??null});a(`${ro}/${W.id}/ver`)}catch(W){H(String(W.message)),L(null)}}async function E(){H(null),await oe()&&m(2)}async function Y(){if(g){H(null),L("rascunho");try{const W=await ct.suggestApplication(g.id);k(W.draft),await xe.update(g.id,{application_draft:W.draft})}catch(W){H(kp(String(W.message)))}finally{L(null)}}}async function Ne(){if(!g)return;const W=He(I.registration_url)??He(I.notice_url);if(!W)return H("Esta edição não tem link de inscrição cadastrado.");window.open(W,"_blank","noopener");try{const Ce=await xe.update(g.id,{form_opened_at:new Date().toISOString()});b(Ce)}catch{}}async function as(){if(g)try{await xe.update(g.id,{application_draft:j})}catch(W){H(String(W.message))}}async function Bt(W){if(g){L("comprovante"),H(null);try{const Ce=await ia.uploadFile(g.id,W),Se=await xe.get(g.id),Pt=await xe.update(g.id,{receipt_file:Ce.name,folder:Se.folder});b(Pt)}catch(Ce){H(String(Ce.message))}finally{L(null)}}}async function F(){if(g){H(null),L("registrar");try{const W=[g.notes,_.trim()&&`Protocolo: ${_.trim()}
717`].filter(Boolean).join(` 718`);await xe.update(g.id,{status:"submitted",submitted_at:N,application_draft:j||g.application_draft,notes:W||null}),r.ok("Inscrição registrada."),a(`${ro}/${g.id}/ver`)}catch(W){const Ce=String(W.message);H(Ce),r.erro(Ce),L(null)}}}function Et(){a(g?`${ro}/${g.id}/ver`:"/app/edicoes")}return s?t.jsx("p",{className:"muted",children:"Visitante não faz inscrição."}):t.jsxs("div",{className:"wizard",children:[t.jsx(wp,{e:I}),t.jsx(A2,{atual:h}),$&&t.jsxs("p",{className:"error",children:[$,h===1&&/Análise rápida/i.test($)&&t.jsxs(t.Fragment,{children:[" ",t.jsx("a",{href:"#",onClick:W=>{W.preventDefault(),a("/app/analise",{state:{showId:f||void 0}})},children:"Abrir a Análise rápida"})]})]}),h===1&&t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Vale a pena se inscrever?"}),t.jsx("p",{className:"muted",children:"Abra o edital acima e, se quiser, peça à IA para cruzar as regras dele com o seu produto cultural. Nada é salvo neste passo â decidir não custa nada."}),t.jsx("div",{className:"form-grid",children:t.jsx(S,{label:"Produto cultural",full:!0,children:t.jsxs("select",{value:f,onChange:W=>v(Number(W.target.value)||""),children:[t.jsx("option",{value:"",children:"Escolhaâ¦"}),se.length===1?se[0][1].map(W=>t.jsx("option",{value:W.id,children:W.name},W.id)):se.map(([W,Ce])=>t.jsx("optgroup",{label:W,children:Ce.map(Se=>t.jsx("option",{value:Se.id,children:Se.name},Se.id))},W))]})})}),t.jsx("div",{className:"wizard-acoes",children:t.jsxs("button",{className:"btn",onClick:ze,disabled:w==="fit"||!f,children:[t.jsx(Be,{size:14}),w==="fit"?"Analisandoâ¦":"Analisar aderência (IA)"]})}),p&&t.jsxs("div",{className:"wizard-fit",children:[(()=>{const W=Np(p.fit_score);return t.jsxs("p",{className:"wizard-veredito",style:{color:W.color},children:[t.jsx(W.Icon,{size:18})," ",W.label," ",t.jsx(or,{n:p.fit_score})]})})(),t.jsx("p",{style:{whiteSpace:"pre-wrap"},children:p.fit_notes}),t.jsxs("details",{children:[t.jsx("summary",{className:"muted",children:"Análise completa"}),t.jsx("p",{style:{whiteSpace:"pre-wrap"},children:p.analysis})]})]}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsx("button",{className:"btn primary",onClick:E,disabled:!f||w==="criar",children:w==="criar"?"Criandoâ¦":"Quero me inscrever â"}),t.jsx("button",{className:"btn",onClick:$e,disabled:w==="descartar",children:"Descartar este edital"})]}),!p&&t.jsx("p",{className:"muted",style:{fontSize:12,marginBottom:0},children:"A análise é opcional â se você já conhece o edital, siga direto."})]}),h===2&&g&&t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Inscrição criada na Gira"}),t.jsxs("p",{className:"muted",children:["Ela já está na sua lista como ",t.jsx("strong",{children:"viável"})," â ainda não como inscrita. O envio de verdade acontece no formulário do festival, e você confirma aqui no passo 4."]}),t.jsxs("p",{children:[t.jsx(ks,{size:14})," ",((zu=g.show)==null?void 0:zu.name)??(B==null?void 0:B.name)," ·"," ",(Tu=I.festival)==null?void 0:Tu.name," ",I.edition_label??I.year]}),p&&t.jsxs("div",{className:"wizard-fit",children:[(()=>{const W=Np(p.fit_score);return t.jsxs("p",{className:"wizard-veredito",style:{color:W.color},children:[t.jsx(W.Icon,{size:18})," ",W.label," ",t.jsx(or,{n:p.fit_score})]})})(),t.jsx("p",{style:{margin:0},children:p.fit_notes})]}),!He(I.registration_url)&&t.jsxs("p",{className:"sub",style:{color:"#d97706"},children:[t.jsx(nr,{size:13})," Esta edição ainda não tem link de formulário cadastrado â o passo 3 não terá o que abrir. Cadastre o link na edição, ou siga e preencha a inscrição por fora."]}),t.jsx("div",{className:"wizard-acoes",children:t.jsxs("button",{className:"btn",onClick:Y,disabled:w==="rascunho",children:[t.jsx(Be,{size:14}),w==="rascunho"?"Escrevendoâ¦":"Gerar rascunho das respostas (IA)"]})}),j&&t.jsx(S,{label:"Rascunho â edite à vontade antes de copiar para o formulário",full:!0,children:t.jsx("textarea",{rows:14,value:j,onChange:W=>k(W.target.value),onBlur:as})}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsx("button",{className:"btn",onClick:()=>m(1),children:"â¹ Voltar"}),t.jsx("button",{className:"btn primary",onClick:()=>m(3),children:"Ir para o formulário â"})]})]}),h===3&&g&&t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Preencher o formulário do festival"}),t.jsx("p",{className:"muted",children:"O formulário é do festival, não da Gira â ele abre em outra aba. Se você usa a extensão, ela preenche; se não, copie os blocos abaixo campo a campo."}),t.jsxs("div",{className:"wizard-acoes",children:[t.jsxs("button",{className:"btn primary",onClick:Ne,children:[t.jsx(nu,{size:14})," Abrir o formulário de inscrição"]}),t.jsx("a",{className:"btn",href:"/app/extensao",children:"Como funciona a extensão"})]}),g.form_opened_at&&t.jsxs("p",{className:"muted",style:{fontSize:12},children:["Formulário aberto em ",ii(g.form_opened_at),"."]}),j?t.jsx(z2,{texto:j}):t.jsx("p",{className:"muted",children:"Sem rascunho gerado. Volte ao passo anterior se quiser a ajuda da IA."}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsx("button",{className:"btn",onClick:()=>m(2),children:"â¹ Voltar"}),t.jsx("button",{className:"btn",onClick:Et,children:"Ainda não enviei â salvar e sair"}),t.jsx("button",{className:"btn primary",onClick:()=>m(4),children:"Já enviei â"})]})]}),h===4&&g&&t.jsxs("div",{className:"card",children:[t.jsx("h3",{style:{marginTop:0},children:"Confirmar a inscrição"}),t.jsxs("p",{className:"muted",children:[t.jsx(nr,{size:14})," Confirme só depois de ter enviado o formulário do festival. à isto que marca a inscrição como feita na Gira."]}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Data do envio",children:z?t.jsx("input",{type:"date",value:N,autoFocus:!0,onChange:W=>C(W.target.value)}):t.jsxs("div",{className:"ro-value",style:{padding:"6px 0",minHeight:20},children:[N===Kc()?`hoje, ${X(N)}`:X(N),t.jsx("button",{type:"button",className:"link",style:{marginLeft:10},onClick:()=>P(!0),children:"foi noutro dia"})]})}),t.jsx(S,{label:"Protocolo / número de inscrição",hint:"Se o festival devolveu um número.",children:t.jsx("input",{value:_,onCh
718ange:W=>A(W.target.value),placeholder:"ex.: 2026-04821"})}),t.jsx(S,{label:"Comprovante",full:!0,hint:"Print da confirmação ou PDF do recibo.",children:g.receipt_file?t.jsxs("p",{className:"muted",children:[t.jsx(Ze,{size:14})," ",g.receipt_file]}):t.jsxs("label",{className:"btn",style:{width:"fit-content"},children:[t.jsx(Gi,{size:14}),w==="comprovante"?"Enviandoâ¦":"Anexar arquivo",t.jsx("input",{type:"file",style:{display:"none"},onChange:W=>{var Se;const Ce=(Se=W.target.files)==null?void 0:Se[0];Ce&&Bt(Ce)}})]})})]}),t.jsxs("div",{className:"wizard-acoes wizard-rodape",children:[t.jsx("button",{className:"btn",onClick:()=>m(3),children:"â¹ Voltar"}),t.jsx("button",{className:"btn",onClick:Et,children:"Ainda não enviei"}),t.jsx("button",{className:"btn primary",onClick:F,disabled:w==="registrar",children:w==="registrar"?"Registrandoâ¦":"Registrar inscrição feita"})]})]})]})}function no({value:e,max:a,color:s="currentColor"}){const r=a>0?Math.max(2,e/a*100):0;return t.jsx("div",{className:"rep-track","aria-hidden":"true",children:t.jsx("div",{className:"rep-bar",style:{width:`${r}%`,background:s}})})}function I2({value:e}){return e==null?t.jsx("span",{className:"muted",children:"sem resultado ainda"}):t.jsxs("strong",{children:[e.toString().replace(".",","),"%"]})}function $2(e){if(e.result_date==null)return t.jsx("span",{className:"muted",children:"data a confirmar"});const a=e.days_to_result;return a==null?X(e.result_date):a<0?t.jsxs("span",{className:"rep-due",children:["saiu há ",-a,"d â conferir"]}):a===0?t.jsx("span",{className:"rep-due",children:"sai hoje"}):a<=7?t.jsxs("span",{className:"rep-soon",children:["em ",a,"d"]}):X(e.result_date)}function L2(){const{libera:e}=St();return e("reports")?t.jsx(M2,{}):t.jsx(q2,{})}function q2(){const e=Z();return t.jsx(gr,{moduleKey:"inscricoes",Icone:Za,titulo:e("O Relatório é dos planos pagos"),explicacao:e("à a leitura das suas inscrições ao longo do tempo: quanto você se inscreve, quanto emplaca, em que tipo de oportunidade você entra e em qual você nunca passa. Serve para decidir onde vale gastar o próximo mês de inscrição â e depende das Inscrições, que também são do plano pago."),itens:[e("Aproveitamento por tipo de oportunidade e por ano"),e("O que está aguardando resultado, com a data prevista"),e("Onde você se inscreve muito e emplaca pouco")],cta:e("Assinar para usar")})}function M2(){var C;const e=J(),[a,s]=O.useState(""),[r,n]=O.useState(""),{data:o,error:i,loading:c}=D(()=>T1.submissions({kind:a||void 0,year:r||void 0}),[a,r]);if(c)return t.jsx("p",{className:"muted",children:"Montando o relatórioâ¦"});if(i)return t.jsx("p",{className:"error",children:i});if(!o)return null;const{kpis:l,by_kind:d,by_status:u,by_year:h,by_show:m,by_place:f,awaiting:v,abandoned:g}=o,b=new Map(u.map(_=>[_.status,_.count])),p=["confirmed","submitted","queued","rejected"],x=Math.max(1,...u.map(_=>_.count)),j=Math.max(1,...d.map(_=>_.total)),k=Math.max(1,...h.map(_=>_.total)),N=Math.max(1,...m.map(_=>_.total));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"rep-filters",children:[t.jsxs("label",{children:["Natureza",t.jsxs("select",{value:a,onChange:_=>s(_.target.value),children:[t.jsx("option",{value:"",children:"Todas"}),o.kinds_available.map(_=>t.jsx("option",{value:_,children:ds[_]??_},_))]})]}),t.jsxs("label",{children:["Ano da edição",t.jsxs("select",{value:r,onChange:_=>n(_.target.value?Number(_.target.value):""),children:[t.jsx("option",{value:"",children:"Todos"}),o.years_available.map(_=>t.jsx("option",{value:_,children:_},_))]})]}),(a||r)&&t.jsx("button",{type:"button",className:"linkish",onClick:()=>{s(""),n("")},children:"Limpar"})]}),t.jsxs("div",{className:"kpi-row",children:[p.map(_=>{const A=qe[_],z=A.Icon;return t.jsxs("div",{className:"kpi-card",children:[t.jsx("div",{className:"kpi-icon",children:t.jsx(z,{size:18,style:{color:A.color}})}),t.jsx("strong",{children:b.get(_)??0}),t.jsx("span",{children:A.label})]},_)}),t.jsxs("div",{className:"kpi-card rep-taxa",children:[t.jsx("div",{className:"kpi-icon",children:t.jsx(u1,{size:18})}),t.jsx("strong",{children:l.success_rate==null?"â":`${l.success_rate.toString().replace(".",",")}%`}),t.jsx("span",{children:"Aproveitamento"})]})]}),t.jsx("div",{className:"card rep-conta",children:l.decided===0?t.jsxs("p",{className:"muted",style:{margin:0},children:["Nenhuma inscrição teve resultado divulgado ainda, então não há aproveitamento a calcular. Ele aparece quando a primeira for"," ",t.jsx("strong",{children:qe.confirmed.label.toLowerCase()})," ou"," ",t.jsx("strong",{children:qe.rejected.label.toLowerCase()}),"."]}):t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"rep-formula",children:[t.jsxs("span",{className:"rep-formula-linha",children:["Aproveitamento ="," ",t.jsx("em",{children:qe.confirmed.label})," ÷ ("," ",t.jsx("em",{children:qe.confirmed.label})," +"," ",t.jsx("em",{children:qe.rejected.label})," )"]}),t.jsxs("span",{className:"rep-formula-num",children:[l.confirmed," ÷ (",l.confirmed," + ",l.rejected,") ="," ",l.confirmed," ÷ ",l.decided," ="," ",t.jsxs("strong",{children:[(C=l.success_rate)==null?void 0:C.toString().replace(".",","),"%"]})]})]}),t.jsxs("p",{className:"muted rep-conta-nota",children:["Só entram as ",l.decided," inscrições cujo resultado ",t.jsx("b",{children:"já saiu"}),". As ",b.get("submitted")??0," inscritas aguardando e as"," ",b.get("queued")??0," na fila ficam de fora: enquanto o resultado não sai, elas não são nem acerto nem erro. Se contassem, a sua taxa cairia toda vez que você se inscrevesse em algo novo â e isso diria mais sobre o seu calendário do que sobre o seu trabalho."]})]})}),v.length>0&&t.jsxs("div",{className:"card",children:[t.jsxs("div",{className:"card-head",children:[t.jsx("h3",{children:"Inscritas, aguardando resultado"}),t.jsx("span",{className:"muted",children:v.length})]}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Oportunidade"}),t.jsx("th",{children:"Produto cultural"}),t.jsx("th",{children:"Inscrita em"}),t.jsx("th",{children:"Resultado"})]})}),t.jsx("tbody",{children:v.map(_=>t.jsxs("tr",{onClick:()=>e(`/app/oportunidades/${_.festival_id}`),children:[t.jsxs("td",{children:[t.jsx(U,{to:`/app/oportunidades/${_.festival_id}`,children:_.opportunity_name}),t.jsx("div",{className:"sub",children:ds[_.kind]??_.kind})]}),t.jsx("td",{children:_.show_name||t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{children:_.submitted_at?X(_.submitted_at):t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{children:$2(_)})]},_.submission_id))})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:"Festival ou edital"})}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Natureza"}),t.jsx("th",{className:"rep-plot",children:"Inscrições"}),t.jsx("th",{children:"Enviadas"}),t.jsx("th",{children:"Selecionadas"}),t.jsx("th",{children:"Aproveitamento"})]})}),t.jsx("tbody",{children:d.map(_=>t.jsxs("tr",{children:[t.jsx("td",{children:ds[_.kind]??_.kind}),t.jsx("td",{className:"rep-plot",children:t.jsxs("div",{className:"rep-cell",children:[t.jsx(no,{value:_.total,max:j}),t.jsx("span",{className:"rep-val",children:_.total})]})}),t.jsx("td",{children:_.submitted}),t.jsx("td",{children:_.confirmed}),t.jsx("td",{children:t.jsx(I2,{value:_.success_rate})})]},_.kind))})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:"Em que pé está cada inscrição"})}),t.jsx("ul",{className:"rep-funnel",children:u.map(_=>{const A=qe[_.status],z=A.Icon;return t.jsxs("li",{className:_.count===0?"rep-zero":"",children:[t.jsxs("span",{className:"rep-funnel-label",children:[t.jsx(z,{size:15,style:{color:A.color}}),A.label]}),t.jsx(no,{value:_.count,max:x,color:A.color}),t.jsx("span",{className:"rep-val",children:_.count})]},_.status)})})]}),t.jsxs("div",{className:"grid-2",children:[t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:"Por ano da edição"})}),t.jsxs("ul",{className:"rep-funnel",children:[h.map(_=>t.jsxs("li",{children:[t.jsx("span",{className:"rep-funnel-label",children:_.year??"Sem ano"}),t.jsx(no,{value:_.total,max:k}),t.jsx("span",{className:"rep-val",children:_.total})]},_.year??"sem")),h.length===0&&t.jsx("li",{className:"muted",children:"Nada por aqui ainda."})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:"Por produto cultural"})}),t.jsxs("ul",{className:"rep-funnel",children:[m.map(_=>t.jsxs("li",{children:[t.jsx("span",{className:"rep-funnel-label",title:_.show_name,children:_.show_name}),t.jsx(no,{value:_.total,max:N}),t.jsx("span",{className:"rep-val",children:_.total})]},_.show_id??"sem")),m.length===0&&t.jsx("li",{className:"muted",children:"Nada por aqui ainda."})]})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:"Onde você se inscreve"})}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"PaÃs"}),t.jsx("th",{children:"Estado"}),t.jsx("th",{children:"Inscrições"}),t.jsx("th",{children:"Selecionadas"})]})}),t.jsxs("tbody",{children:[f.map(_=>t.jsxs("tr",{children:[t.jsx("td",{children:_.country}),t.jsx("td",{children:_.state||t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{children:_.total}),t.jsx("td",{children:_.confirmed})]},`${_.country}-${_.state??""}`)),f.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:4,className:"muted",children:"Nada por aqui ainda."})})]})]})]}),g.length>0&&t.jsxs("div",{className:"card",children:[t.jsx("div",{className:"card-head",children:t.jsxs("h3",{children:[t.jsx(nr,{size:16})," Formulários abertos e não enviados"]})}),t.jsx("p",{className:"muted rep-note",children:"Você abriu o formulário pelo passo âPreencherâ e a inscrição nunca foi marcada como enviada."}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Oportunidade"}),t.jsx("th",{children:"Natureza"}),t.jsx("th",{children:"Aberto há"}),t.jsx("th",{children:"Prazo"})]})}),t.jsx("tbody",{children:g.map(_=>t.jsxs("tr",{onClick:()=>e(`/app/oportunidades/${_.festival_id}`),children:[t.jsx("td",{children:t.jsx(U,{to:`/app/oportunidades/${_.festival_id}`,children:_.opportunity_name})}),t.jsx("td",{children:ds[_.kind]??_.kind}),t.jsxs("td",{children:[_.days_since,"d"]}),t.jsx("td",{children:_.deadline==null?t.jsx("span",{className:"muted",children:"sem prazo"}):_.days_left==null?X(_.deadline):_.days_left<0?t.jsxs("span",{className:"rep-due",children:["venceu há ",-_.days_left,"d"]}):_.days_left===0?t.jsx("span",{className:"rep-due",children:"vence hoje"}):_.days_left<=7?t.jsxs("span",{className:"rep-soon",children:["em ",_.days_left,"d"]}):X(_.deadline)})]},_.submission_id))})]})]})]})}const R2=["checklist","chat","arquivos","historico"],F2={checklist:"Checklist",chat:"Chat",arquivos:"Arquivos",historico:"Histórico"},O2={pendente:"andamento",andamento:"concluido",concluido:"pendente"},D2=Object.keys(Uf);
718function mg(e){return new Date(e).toLocaleString("pt-BR",{dateStyle:"short",timeStyle:"short"})}function B2(){var g,b,p;const{id:e}=ne(),a=Number(e),s=J(),{user:r}=Ae(),n=(r==null?void 0:r.role)==="admin"||(r==null?void 0:r.role)==="produtor",[o,i]=y.useState(null),[c,l]=y.useState(null),[d,u]=y.useState("checklist");async function h(){if(confirm("Solicitar produção desta inscrição? Consome 1 crédito do perfil."))try{await Mr.requestSubmission(a,1),m()}catch(x){alert(String(x.message))}}async function m(){try{i(await ia.get(a)),l(null)}catch(x){l(String(x.message))}}if(y.useEffect(()=>{m()},[a]),c)return t.jsx("p",{className:"error",children:c});if(!o)return t.jsx("p",{className:"muted",children:"Carregando dossiêâ¦"});const f=(g=qe[o.status])==null?void 0:g.Icon,v=o.checklist.filter(x=>x.status==="concluido").length;return t.jsxs("div",{className:"max-w-4xl",children:[t.jsxs("button",{onClick:()=>s("/app/inscricoes"),className:"mb-4 inline-flex items-center gap-1 text-sm text-muted hover:text-ink",children:[t.jsx(Xd,{size:16})," Voltar à s inscrições"]}),t.jsxs("div",{className:"mb-5 rounded-xl border border-gray-200 bg-white p-5",children:[t.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-lg font-bold",children:o.festival_name??"Inscrição"}),t.jsx("p",{className:"text-sm text-muted",children:o.show_name??"â"})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium text-white",style:{background:((b=qe[o.status])==null?void 0:b.color)??"#64748b"},children:[f&&t.jsx(f,{size:13,strokeWidth:2.2}),(p=qe[o.status])==null?void 0:p.label]}),t.jsxs("label",{className:"text-sm",children:[t.jsx("span",{className:"mr-2 text-muted",children:"Produção:"}),t.jsx("select",{value:o.production_status,onChange:async x=>{await xe.update(a,{production_status:x.target.value}),m()},className:"rounded-lg border border-gray-200 px-2 py-1",children:D2.map(x=>t.jsx("option",{value:x,children:Uf[x]},x))})]})]})]}),n&&t.jsx("button",{onClick:h,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-giro px-4 py-2 text-sm font-semibold text-giro-50 hover:opacity-90",children:"Solicitar produção (â1 crédito)"})]}),t.jsx("div",{className:"mb-4 flex gap-1 border-b border-gray-200",children:R2.map(x=>t.jsxs("button",{onClick:()=>u(x),className:`px-4 py-2 text-sm font-medium ${d===x?"border-b-2 border-giro text-giro-ink":"text-muted hover:text-ink"}`,children:[F2[x],x==="checklist"&&t.jsxs("span",{className:"ml-1 text-xs text-muted",children:[v,"/",o.checklist.length]})]},x))}),d==="checklist"&&t.jsx(G2,{data:o,reload:m}),d==="chat"&&t.jsx(V2,{data:o,reload:m}),d==="arquivos"&&t.jsx(U2,{data:o,reload:m}),d==="historico"&&t.jsx(W2,{data:o})]})}function G2({data:e,reload:a}){const[s,r]=y.useState("");async function n(c,l){await ia.updateChecklistItem(c,{status:O2[l]}),a()}async function o(){s.trim()&&(await ia.addChecklistItem(e.submission_id,{label:s.trim()}),r(""),a())}const i={pendente:Ef,andamento:Ib,concluido:bt};return t.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white",children:[t.jsx("ul",{className:"divide-y divide-gray-100",children:e.checklist.map(c=>{const l=i[c.status],d=q1[c.status];return t.jsxs("li",{className:"flex items-center gap-3 px-4 py-3",children:[t.jsx("button",{onClick:()=>n(c.id,c.status),title:"Mudar status",children:t.jsx(l,{size:20,style:{color:d.color}})}),t.jsx("span",{className:`flex-1 ${c.status==="concluido"?"text-muted line-through":""}`,children:c.label}),t.jsx("span",{className:"text-xs",style:{color:d.color},children:d.label}),t.jsx("button",{onClick:async()=>{await ia.removeChecklistItem(c.id),a()},className:"text-muted hover:text-red-600",title:"Remover item",children:t.jsx(hr,{size:15})})]},c.id)})}),t.jsxs("div",{className:"flex gap-2 border-t border-gray-100 p-3",children:[t.jsx("input",{value:s,onChange:c=>r(c.target.value),onKeyDown:c=>c.key==="Enter"&&o(),placeholder:"Novo item do checklistâ¦",className:"flex-1 rounded-lg border border-gray-200 px-3 py-2 text-sm outline-none focus:border-giro"}),t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-1 rounded-lg bg-giro px-3 py-2 text-sm font-semibold text-giro-50 hover:opacity-90",children:[t.jsx(du,{size:16})," Adicionar"]})]})]})}function V2({data:e,reload:a}){const[s,r]=y.useState(""),n=y.useRef(null);y.useEffect(()=>{var i;(i=n.current)==null||i.scrollIntoView()},[e.messages.length]);async function o(){s.trim()&&(await ia.addMessage(e.submission_id,s.trim()),r(""),a())}return t.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white",children:[t.jsxs("div",{className:"max-h-96 space-y-3 overflow-y-auto p-4",children:[e.messages.length===0?t.jsx("p",{className:"text-sm text-muted",children:"Nenhuma mensagem ainda. A comunicação desta inscrição fica aqui."}):e.messages.map(i=>t.jsxs("div",{className:"rounded-lg bg-giro-50 px-3 py-2",children:[t.jsxs("div",{className:"mb-0.5 flex items-baseline justify-between gap-2",children:[t.jsx("strong",{className:"text-sm text-giro-ink",children:i.author_name}),t.jsx("span",{className:"text-xs text-muted",children:mg(i.created_at)})]}),t.jsx("p",{className:"whitespace-pre-wrap text-sm",children:i.body})]},i.id)),t.jsx("div",{ref:n})]}),t.jsxs("div",{className:"flex gap-2 border-t border-gray-100 p-3",children:[t.jsx("input",{value:s,onChange:i=>r(i.target.value),onKeyDown:i=>i.key==="Enter"&&o(),placeholder:"Escreva uma mensagemâ¦",className:"flex-1 rounded-lg border border-gray-200 px-3 py-2 text-sm outline-none focus:border-giro"}),t.jsxs("button",{onClick:o,className:"inline-flex items-center gap-1 rounded-lg bg-giro px-3 py-2 text-sm font-semibold text-giro-50 hover:opacity-90",children:[t.jsx(Di,{size:16})," Enviar"]})]})]})}function U2({data:e,reload:a}){const s=y.useRef(null),[r,n]=y.useState(!1);async function o(i){var l;const c=(l=i.target.files)==null?void 0:l[0];if(c){n(!0);try{await ia.uploadFile(e.submission_id,c),a()}finally{n(!1),s.current&&(s.current.value="")}}}return t.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white",children:[t.jsx("ul",{className:"divide-y divide-gray-100",children:e.documents.length===0?t.jsx("li",{className:"px-4 py-3 text-sm text-muted",children:"Nenhum arquivo na pasta ainda."}):e.documents.map(i=>t.jsxs("li",{className:"flex items-center gap-3 px-4 py-3",children:[t.jsx(ks,{size:18,className:"text-giro"}),t.jsx("span",{className:"flex-1 text-sm",children:i.name}),t.jsx("span",{className:"text-xs uppercase text-muted",children:i.ext}),t.jsxs("span",{className:"text-xs text-muted",children:[i.size_kb," KB"]}),t.jsx("button",{onClick:async()=>{confirm(`Remover ${i.name}?`)&&(await ia.removeFile(e.submission_id,i.name),a())},className:"text-muted hover:text-red-600",title:"Remover arquivo",children:t.jsx(hr,{size:15})})]},i.name))}),t.jsxs("div",{className:"border-t border-gray-100 p-3",children:[t.jsx("input",{ref:s,t
718ype:"file",onChange:o,className:"hidden"}),t.jsxs("button",{onClick:()=>{var i;return(i=s.current)==null?void 0:i.click()},disabled:r,className:"inline-flex items-center gap-2 rounded-lg bg-giro px-3 py-2 text-sm font-semibold text-giro-50 hover:opacity-90 disabled:opacity-60",children:[t.jsx(Gi,{size:16})," ",r?"Enviandoâ¦":"Enviar arquivo"]})]})]})}function W2({data:e}){return t.jsx("div",{className:"rounded-xl border border-gray-200 bg-white p-4",children:e.events.length===0?t.jsx("p",{className:"text-sm text-muted",children:"Sem ações registradas ainda."}):t.jsx("ul",{className:"space-y-2",children:e.events.map(a=>t.jsxs("li",{className:"flex items-baseline gap-3 text-sm",children:[t.jsx("span",{className:"text-xs text-muted",children:mg(a.created_at)}),t.jsxs("span",{children:[a.description,a.actor&&t.jsxs("span",{className:"text-muted",children:[" · ",a.actor]})]})]},a.id))})})}function H2(e){return e==null?"â":`R$ ${e.toLocaleString("pt-BR")}`}function Q2(){const{user:e}=Ae(),a=(e==null?void 0:e.role)==="admin",s=(e==null?void 0:e.role)==="admin"||(e==null?void 0:e.role)==="produtor",[r,n]=y.useState([]),[o,i]=y.useState(null),[c,l]=y.useState(null),[d,u]=y.useState([]),[h,m]=y.useState(null),[f,v]=y.useState(""),[g,b]=y.useState(""),[p,x]=y.useState(""),[j,k]=y.useState(!1);y.useEffect(()=>{Mr.costTable().then(C=>u(C.rows)).catch(()=>{}),s?me.list().then(C=>{n(C),C[0]&&i((e==null?void 0:e.artist_id)??C[0].id)}):Mr.me().then(l).catch(C=>m(String(C.message)))},[]),y.useEffect(()=>{s&&o&&Mr.wallet(o).then(l).catch(C=>m(String(C.message)))},[o]);async function N(){if(!(!o||!f)){k(!0),m(null);try{const C=await Mr.purchase({artist_id:o,credits:Number(f),brl:g?Number(g):null,note:p||void 0});l(C),v(""),b(""),x("")}catch(C){m(String(C.message))}finally{k(!1)}}}return t.jsxs("div",{className:"max-w-4xl",children:[s&&t.jsxs("div",{className:"mb-4",children:[t.jsx("label",{className:"text-sm text-muted",children:"Perfil: "}),t.jsx("select",{value:o??"",onChange:C=>i(Number(C.target.value)),className:"rounded-lg border border-white/10 px-3 py-2 text-sm",children:r.map(C=>t.jsx("option",{value:C.id,children:C.name},C.id))})]}),h&&t.jsx("p",{className:"error",children:h}
718),t.jsxs("div",{className:"mb-5 flex items-center gap-4 rounded-xl border border-white/10 bg-card p-5",children:[t.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-giro-50 text-giro",children:t.jsx(Rf,{size:26})}),t.jsxs("div",{children:[t.jsx("div",{className:"text-3xl font-bold",children:(c==null?void 0:c.balance)??0}),t.jsxs("div",{className:"text-sm text-muted",children:["créditos · ",(c==null?void 0:c.artist_name)??"â"]})]})]}),t.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[a&&t.jsxs("div",{className:"rounded-xl border border-white/10 bg-card p-5",children:[t.jsxs("h3",{className:"mb-1 flex items-center gap-2 font-semibold",children:[t.jsx(su,{size:18,className:"text-giro"})," Creditar via Pix"]}),t.jsx("p",{className:"mb-4 text-xs text-muted",children:"Confirme um Pix recebido e adicione créditos ao perfil."}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("label",{className:"block",children:[t.jsx("span",{className:"mb-1 block text-sm",children:"Créditos"}),t.jsx("input",{type:"number",value:f,onChange:C=>v(C.target.value),className:"w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",placeholder:"ex.: 10"})]}),t.jsxs("label",{className:"block",children:[t.jsx("span",{className:"mb-1 block text-sm",children:"Valor recebido (R$)"}),t.jsx("input",{type:"number",value:g,onChange:C=>b(C.target.value),className:"w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",placeholder:"ex.: 500"})]}),t.jsxs("label",{className:"block",children:[t.jsx("span",{className:"mb-1 block text-sm",children:"Observação"}),t.jsx("input",{value:p,onChange:C=>x(C.target.value),className:"w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",placeholder:"ex.: Pix recebido 23/06"})]}),t.jsx("button",{onClick:N,disabled:j||!f,className:"w-full rounded-lg bg-giro px-4 py-2.5 font-semibold text-giro-50 hover:opacity-90 disabled:opacity-60",children:j?"Creditandoâ¦":"Confirmar Pix e creditar"})]})]}),t.jsxs("div",{className:"rounded-xl border border-white/10 bg-card p-5",children:[t.jsx("h3",{className:"mb-3 font-semibold",children:"Consumo por serviço"}),t.jsx("ul",{className:"space-y-1 text-sm",children:d.map(C=>t.jsxs("li",{className:"flex justify-between border-b border-white/10 py-1",children:[t.jsx("span",{children:C.label}),t.jsxs("span",{className:"font-semibold text-giro-ink",children:[C.credits," ",C.credits===1?"crédito":"créditos"]})]},C.service))})]})]}),t.jsxs("div",{className:"mt-5 rounded-xl border border-white/10 bg-card",children:[t.jsx("h3",{className:"border-b border-white/10 px-5 py-3 font-semibold",children:"Extrato"}),!c||c.transactions.length===0?t.jsx("p",{className:"px-5 py-4 text-sm text-muted",children:"Nenhuma movimentação ainda."}):t.jsx("ul",{className:"divide-y divide-gray-50",children:c.transactions.map(C=>{const _=C.amount>0;return t.jsxs("li",{className:"flex items-center gap-3 px-5 py-3",children:[_?t.jsx(Tb,{size:18,className:"text-green-600"}):t.jsx(zb,{size:18,className:"text-red-500"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:C.description}),t.jsxs("div",{className:"text-xs text-muted",children:[X(C.created_at),C.brl!=null&&` · ${H2(C.brl)}`]})]}),t.jsxs("span",{className:`font-semibold ${_?"text-green-600":"text-red-500"}`,children:[_?"+":"",C.amount]})]},C.id)})})]})]})}const _o="/app/descobertas",K2=Object.keys(si),Y2=Object.keys(fr),J2=e=>e?new Date(e).toLocaleDateString("pt-BR"):"nunca visitado";function Z2({isCircuit:e}){const a=D(()=>Ut.sources(),[]);if(a.loading)return t.jsx("p",{className:"muted",children:"Carregando fontesâ¦"});if(a.error)return t.jsxs("p",{className:"error",children:["Não deu para listar as fontes: ",a.error]});const s=a.data;if(!s)return null;const r=e?s.circuit_queries:s.google_queries,n={wordBreak:"break-all"};return t.jsxs("details",{style:{margin:"0 0 14px"},children:[t.jsxs("summary",{className:"muted",style:{cursor:"pointer",fontSize:13},children:["De onde vem a coleta â"," ",e?`${r.length} buscas no Google`:`${s.radar_targets.length} festivais no radar · ${s.website_sources.length} portais · ${r.length} buscas no Google`]}),t.jsxs("div",{style:{fontSize:13,lineHeight:1.7,marginTop:10},children:[!e&&t.jsxs(t.Fragment,{children:[t.jsxs("p",{style:{margin:"0 0 4px"},children:[t.jsx("strong",{children:"Radar"})," â festivais cadastrados; visita o link da bio e o site:"]}),s.radar_targets.length===0?t.jsx("p",{className:"muted",style:{margin:"0 0 12px"},children:"Nenhum festival com site ou link de bio cadastrado. O radar não tem o que vigiar."}):t.jsx("ul",{style:{margin:"0 0 12px",paddingLeft:18},children:s.radar_targets.map(o=>t.jsxs("li",{children:[t.jsx("strong",{children:o.name})," ",t.jsxs("span",{className:"muted",children:["(visitado: ",J2(o.last_checked_at),")"]}),t.jsx("ul",{style:{paddingLeft:16},children:o.urls.map(i=>t.jsx("li",{style:n,children:t.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:i})},i))})]},o.name))}),t.jsxs("p",{style:{margin:"0 0 4px"},children:[t.jsx("strong",{children:"Portais"})," â murais raspados página a página:"]}),t.jsx("ul",{style:{margin:"0 0 12px",paddingLeft:18},children:s.website_sources.map(o=>t.jsx("li",{style:n,children:t.jsx("a",{href:o,target:"_blank",rel:"noreferrer",children:o})},o))})]}),t.jsxs("p",{style:{margin:"0 0 4px"},children:[t.jsx("strong",{children:"Google"})," â buscas rodadas a cada coleta:"]}),t.jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map(o=>t.jsx("li",{children:t.jsx("code",{style:{fontSize:12},children:o})},o))})]})]})}function X2({t:e}){const a=Kr[e];return t.jsxs("span",{className:"badge-soft",children:[t.jsx(a.Icon,{size:13,strokeWidth:2}),a.label]})}function eN({status:e}){const a=si[e];return t.jsxs("span",{className:"badge",style:{background:a.color},children:[t.jsx(a.Icon,{size:13,strokeWidth:2.2}),a.label]})}const tN=[{key:"opportunity",label:"Oportunidades",Icon:pr},{key:"circuit",label:"Circuitos",Icon:Xa}];function aN(){const e=J(),[a,s]=y.useState("opportunity"),[r,n]=y.useState(""),[o,i]=y.useState(""),c=D(()=>Ut.list({target:a,status:r||void 0,source_type:o||void 0}),[a,r,o]),[l,d]=y.useState(!1),[u,h]=y.useState(!1),[m,f]=y.useState(null),v=a==="circuit";async function g(x){d(!0),f(null);try{f(x==="google"?await Ut.collectGoogle("w1"):x==="radar"?await Ut.collectRadar(
718):x==="circuits"?await Ut.collectCircuits():await Ut.collectWebsites()),c.reload()}catch(j){f({source:x,profiles:0,fetched:0,created:0,updated:0,errors:[String(j.message)]})}finally{d(!1)}}async function b(){const x=[r&&`status: ${si[r].label}`,o&&`fonte: ${Kr[o].label}`].filter(Boolean),j=x.length?x.join(", "):"todas as fontes e status";if(confirm(`Excluir ${p.length} descoberta${p.length===1?"":"s"} (${j})? 719Isso não dá pra desfazer.`)){h(!0);try{await Ut.removeFiltered({status:r||void 0,source_type:o||void 0,target:a}),c.reload()}catch(k){alert(String(k.message))}finally{h(!1)}}}if(c.error)return t.jsx("p",{className:"error",children:c.error});const p=c.data??[];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"toolbar",style:{marginBottom:8},children:tN.map(x=>t.jsxs("button",{className:`btn ${a===x.key?"primary":""}`,onClick:()=>{s(x.key),n(""),i(""),f(null)},children:[t.jsx(x.Icon,{size:14,strokeWidth:2}),x.label]},x.key))}),t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[p.length," ",v?"local":"oportunidade",p.length===1?"":"s",v?" de circulação":" (só chamadas abertas)"]}),t.jsxs("select",{value:r,onChange:x=>n(x.target.value),children:[t.jsx("option",{value:"",children:"Todos os status"}),K2.map(x=>t.jsx("option",{value:x,children:si[x].label},x))]}),t.jsxs("select",{value:o,onChange:x=>i(x.target.value),children:[t.jsx("option",{value:"",children:"Todas as fontes"}),Object.keys(Kr).map(x=>t.jsx("option",{value:x,children:Kr[x].label},x))]}),t.jsxs("button",{className:"btn danger",onClick:b,disabled:u||p.length===0,title:"Apaga todas as descobertas que batem com o filtro atual",children:[t.jsx(hr,{size:14,strokeWidth:2}),u?"Excluindoâ¦":`Excluir as ${p.length}`]}),t.jsx("div",{className:"spacer"}),v?t.jsxs("button",{className:"btn primary",onClick:()=>g("circuits"),disabled:l,children:[t.jsx(qf,{size:14,strokeWidth:2}),l?"Coletandoâ¦":"Coletar circuitos (Google)"]}):t.jsxs(t.Fragment,{children:[t.jsxs("button",{className:"btn",onClick:()=>g("radar"),disabled:l,children:[t.jsx(Mn,{size:14,strokeWidth:2}),l?"Coletandoâ¦":"Radar (conhecidos)"]}),t.jsxs("button",{className:"btn",onClick:()=>g("websites"),disabled:l,children:[t.jsx(Ja,{size:14,strokeWidth:2}),l?"Coletandoâ¦":"Portais"]}),t.jsxs("button",{className:"btn primary",onClick:()=>g("google"),disabled:l,children:[t.jsx(Oi,{size:14,strokeWidth:2}),l?"Coletandoâ¦":"Coletar (Google)"]})]})]}),t.jsx("p",{className:"muted",style:{fontSize:13,margin:"0 0 12px",lineHeight:1.7},children:v?t.jsxs(t.Fragment,{children:[t.jsx("strong",{children:"Coletar circuitos"})," busca no Google locais permanentes de circulação (escolas, bibliotecas, centros culturais, prefeituras, SESCâ¦). Abra uma descoberta para ",t.jsx("strong",{children:"convertê-la em Circuito"}),"."]}):t.jsxs(t.Fragment,{children:[t.jsx("strong",{children:"Radar"})," vasculha o site e o link da bio dos festivais já cadastrados ·"," ",t.jsx("strong",{children:"Portais"})," raspa murais de oportunidade (Portal Conteúdo, Cooperativa, SATED) · ",t.jsx("strong",{children:"Coletar (Google)"})," busca chamadas novas na web (última semana) · ",t.jsx("strong",{children:"Excluir as N"})," apaga as descobertas que estão no filtro atual."]})}),t.jsx(Z2,{isCircuit:v}),m&&t.jsxs("div",{className:"card",style:{marginBottom:12},children:[t.jsxs("strong",{children:["Coleta (",m.source,"):"]})," ",m.profiles," buscas · ",m.fetched," ","resultados · ",m.created," novas · ",m.updated," já vistas.",m.errors.length>0&&t.jsxs("div",{className:"muted",style:{marginTop:6,fontSize:13},children:[t.jsx(nr,{size:13,strokeWidth:2})," ",m.errors.join(" · ")]})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Fonte"}),t.jsx("th",{children:"Descoberta"}),t.jsx("th",{children:"Status"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[p.map(x=>t.jsxs("tr",{onClick:()=>e(`${_o}/${x.id}`),children:[t.jsxs("td",{children:[t.jsx(X2,{t:x.source_type}),x.source_name&&t.jsx("span",{className:"sub",children:x.source_name})]}),t.jsxs("td",{children:[t.jsx("strong",{children:x.title||"(sem tÃtulo)"}),x.notes&&t.jsxs("span",{className:"sub inline-ico",children:[t.jsx(pr,{size:12,strokeWidth:2})," ",x.notes]})]}),t.jsx("td",{children:t.jsx(eN,{status:x.status})}),t.jsx("td",{className:"muted",children:"âº"})]},x.id)),p.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:4,className:"muted",style:{textAlign:"center",padding:24},children:"Nenhuma descoberta com esse filtro."})})]})]})})]})}function sN(){const{id:e}=ne(),a=J(),s=D(()=>Ut.list()),[r,n]=y.useState(!1),[o,i]=y.useState(null),[c,l]=y.useState("centro_cultural");if(s.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(s.error)return t.jsx("p",{className:"error",children:s.error});const d=(s.data??[]).find(v=>v.id===Number(e));if(!d)return t.jsx(Re,{backTo:_o,title:"Descoberta não encontrada",children:t.jsx("p",{className:"muted",children:"Essa descoberta não existe mais."})});const u=()=>a(_o);async function h(v){n(!0),i(null);try{await Ut.update(d.id,{status:v}),u()}catch(g){i(String(g.message)),n(!1)}}async function m(){if(confirm("Excluir esta descoberta?")){n(!0);try{await Ut.remove(d.id),u()}catch(v){i(String(v.message)),n(!1)}}}async function f(){n(!0),i(null);try{const v=await kt.fromDiscovery(d.id,{category:c});a(`/app/circuitos/${v.id}/editar`)}catch(v){i(String(v.message)),n(!1)}}return t.jsxs(Re,{backTo:_o,title:d.title||"Descoberta",children:[t.jsxs("div",{className:"muted",style:{marginBottom:8},children:[O.createElement(Kr[d.source_type].Icon,{size:13,strokeWidth:2})," ",d.source_name," ·"," ",d.detected_at.slice(0,10).split("-").reverse().join("/")]}),d.notes&&t.jsxs("p",{className:"inline-ico",style:{color:"rgb(var(--ink))",fontWeight:600},children:[t.jsx(pr,{size:14,strokeWidth:2})," ",d.notes]}),d.excerpt&&t.jsx("pre",{style:{whiteSpace:"pre-wrap",fontFamily:"inherit",background:"rgb(var(--surface-2))",padding:12,borderRadius:8,maxHeight:300,overflow:"auto"},children:d.excerpt}),d.url&&t.jsx("p",{children:t.jsx("a",{href:d.url,target:"_blank",rel:"noreferrer",children:"Abrir publicação â"})}),o&&t.jsx("p",{className:"error",children:o}),d.target==="circuit"&&d.status!=="imported"&&t.jsxs("div",{className:"card",style:{marginTop:16,display:"flex",alignItems:"flex-end",gap:12,flexWrap:"wrap"},children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Converter em Circuito"}),t.jsx("p",{className:"sub",style:{margin:"4px 0 0"},children:"Confirme a categoria; o resto você completa na ficha do circuito."})]}),t.jsxs("label",{className:"field",style:{margin:0},children:[t.jsx("span",{children:"Categoria"}),t.jsx("select",{value:c,onChange:v=>l(v.target.value),children:Y2.map(v=>t.jsx("option",{value:v,children:fr[v].label},v))})]}),t.jsxs("button",{className:"btn primary",onClick:f,disabled:r,children:[t.jsx(Xa,{size:14,strokeWidth:2}),r?"Convertendoâ¦":"Converter em Circuito"]})]}),t.jsxs("div",{className:"muted",style:{fontSize:13,lineHeight:1.7,marginTop:20,borderTop:"1px solid rgb(var(--line))",paddingTop:12},children:[t.jsx("strong",{children:"O que fazer com esta descoberta:"}),t.jsx("br",{}),t.jsx(qc,{size:13,strokeWidth:2})," ",t.jsx("strong",{children:"Ignorar"})," â não interessa; tira da fila.",t.jsx("br",{}),t.jsx(ei,{size:13,strokeWidth:2})," ",t.jsx("strong",{children:"Revisada"})," â já olhei e é relevante, mas decido depois.",t.jsx("br",{}),t.jsx(Mc,{size:13,strokeWidth:2})," ",t.jsx("strong",{children:"Importada"})," â marque depois de cadastrar o festival/inscrição à mão em ",t.jsx("em",{children:"Radar"}),"/",t.jsx("em",{children:"Inscrições"}),". (Hoje é só um marcador: não cria o cadastro sozinho.)",t.jsx("br",{}),t.jsx(hr,{size:13,strokeWidth:2})," ",t.jsx("strong",{children:"Excluir"})," â apaga de vez (use só pra lixo/duplicata)."]}),t.jsxs("footer",{className:"modal-foot",children:[t.jsx("button",{className:"btn danger",onClick:m,disabled:r,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsxs("button",{className:"btn",onClick:()=>h("ignored"),disabled:r,children:[t.jsx(qc,{size:14,strokeWidth:2})," Ignorar"]}),t.jsxs("button",{className:"btn",onClick:()=>h("reviewed"),disabled:r,children:[t.jsx(ei,{size:14,strokeWidth:2})," Revisada"]}
719),t.jsxs("button",{className:"btn primary",onClick:()=>h("imported"),disabled:r,children:[t.jsx(Mc,{size:14,strokeWidth:2})," Importada"]})]})]})}const rN=["Quais oportunidades têm prazo nos próximos 15 dias?","Resuma as descobertas novas â quais são de circo ou palhaçaria?","Que festivais cadastrados ainda não têm edição em 2026?","Quais edições estão sem link de inscrição preenchido?","Em que status estão minhas inscrições? Alguma parada?","Busque no Google editais de teatro de rua abertos agora."];function nN(){const{libera:e}=St();return e("ai")?t.jsx(iN,{}):t.jsx(oN,{})}function oN(){const e=Z();return t.jsx(gr,{moduleKey:"assistente",Icone:Za,titulo:e("O Assistente é dos planos pagos"),explicacao:e("à uma conversa com quem já leu o seu cadastro inteiro. Você pergunta em português â que prazos fecham esta semana, quais festivais ainda não têm edição deste ano, em que pé estão as suas inscrições â e ele responde olhando os seus dados, não a internet em geral. Também escreve por você: rascunho de inscrição, mensagem de prospecção e as versões em outros idiomas."),itens:[e("Pergunta em português sobre os seus prazos, festivais e inscrições"),e("Rascunha as respostas da inscrição a partir do que você já cadastrou"),e("Escreve a mensagem de prospecção para um contratante"),e("Traduz o seu site e os seus documentos para outros idiomas")],cta:e("Assinar para usar")})}function iN(){const[e,a]=y.useState([]),[s,r]=y.useState(""),[n,o]=y.useState(!1),[i,c]=y.useState(null),l=y.useRef(null);y.useEffect(()=>{var u;(u=l.current)==null||u.scrollIntoView({behavior:"smooth"})},[e,n]);async function d(u){const h=u.trim();if(!h||n)return;c(null);const m=e;a([...m,{role:"user",content:h}]),r(""),o(!0);try{const f=await ct.chat(h,m);a(v=>[...v,{role:"model",content:f.reply}])}catch(f){const v=String(f.message);c(v),a(g=>[...g,{role:"model",content:`${v}`}])}finally{o(!1)}}return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12,width:"100%"},children:[t.jsxs("p",{className:"muted",style:{fontSize:13,margin:0,lineHeight:1.6},children:["A assistente da Gira analisa suas ",t.jsx("strong",{children:"descobertas, festivais, edições e inscrições"})," e pode ",t.jsx("strong",{children:"buscar no Google"}),". Por enquanto ele só lê e sugere â ",t.jsx("strong",{children:"não cria nem altera registros"})," (isso virá com confirmação sua)."]}),t.jsxs("div",{className:"card",style:{minHeight:320,maxHeight:"58vh",overflowY:"auto",display:"flex",flexDirection:"column",gap:12},children:[e.length===0&&t.jsxs("div",{className:"muted",style:{margin:"auto",textAlign:"center"},children:[t.jsxs("p",{className:"inline-ico",style:{marginBottom:12},children:[t.jsx(Fi,{size:15,strokeWidth:2})," Pergunte algo sobre a sua circulação:"]}),t.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,justifyContent:"center"},children:rN.map(u=>t.jsx("button",{className:"btn",onClick:()=>d(u),children:u},u))})]}),e.map((u,h)=>t.jsx("div",{style:{alignSelf:u.role==="user"?"flex-end":"flex-start",maxWidth:"85%",background:u.role==="user"?"rgb(var(--brand))":"rgb(var(--surface-2))",color:u.role==="user"?"rgb(var(--bg))":"rgb(var(--ink))",padding:"10px 14px",borderRadius:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:u.content},h)),n&&t.jsx("div",{className:"muted",style:{alignSelf:"flex-start",fontStyle:"italic"},children:"o assistente está pensandoâ¦"}),t.jsx("div",{ref:l})]}),i&&t.jsx("p",{className:"error",children:i}),t.jsxs("form",{onSubmit:u=>{u.preventDefault(),d(s)},style:{display:"flex",gap:8},children:[t.jsx("textarea",{value:s,onChange:u=>r(u.target.value),onKeyDown:u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),d(s))},placeholder:"Fale com a Gira⦠(Enter envia, Shift+Enter pula linha)",rows:2,style:{flex:1,resize:"vertical"},disabled:n}),t.jsx("button",{className:"btn primary",type:"submit",disabled:n||!s.trim(),children:n?"â¦":"Enviar"})]})]})}const en="/app/usuarios",Yc=[{value:"admin",label:"Admin",hint:"vê e gere tudo"},{value:"produtor",label:"Produtor",hint:"opera dossiês, cura oportunidades e descobertas"},{value:"artista",label:"Artista",hint:"vê só o próprio perfil"},{value:"visitante",label:"Visitante",hint:"somente leitura, sem dados privados"}],lN=Object.fromEntries(Yc.map(e=>[e.value,e.label]));function cN(){const e=J(),a=D(()=>Da.list());if(a.error)return t.jsx("p",{className:"error",children:a.error});const s=a.data??[];return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[s.length," usuários"]}),t.jsx("button",{className:"btn primary",onClick:()=>e(`${en}/novo`),children:"+ Novo usuário"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Nome"}),t.jsx("th",{children:"E-mail"}),t.jsx("th",{children:"Papel"}),t.jsx("th",{children:"Status"})]})}),t.jsxs("tbody",{children:[s.map(r=>
719t.jsxs("tr",{onClick:()=>e(`${en}/${r.id}/editar`),children:[t.jsx("td",{children:r.name}),t.jsx("td",{children:r.email}),t.jsx("td",{children:lN[r.role]??r.role}),t.jsx("td",{children:r.is_active?"Ativo":"Inativo"})]},r.id)),s.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:4,className:"muted",children:"Nenhum usuário ainda."})})]})]})})]})}function Cp(){const{id:e}=ne(),a=e!=null,s=D(()=>a?Da.get(Number(e)):Promise.resolve(null),[e]),r=D(()=>me.list()),n=D(()=>No.list());return a&&s.loading?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):s.error?t.jsx("p",{className:"error",children:s.error}):t.jsx(dN,{initial:a?s.data:null,artists:r.data??[],producers:n.data??[]})}function dN({initial:e,artists:a,producers:s}){var j;const r=J(),n=!e,[o,i]=y.useState(e?{...e,password:""}:{role:"artista",is_active:!0,password:""}),[c,l]=y.useState(!1),d=ge(),[u,h]=y.useState(null),m=k=>i(N=>({...N,...k})),f=()=>r(en),v=o.role??"artista",g=Ae().user,b=!n&&(g==null?void 0:g.id)===e.id;async function p(){var k,N,C;l(!0),h(null);try{if(!((k=o.name)!=null&&k.trim()))throw new Error("Nome é obrigatório.");const _=v==="artista"?o.artist_id??null:null,A=v==="produtor"?o.producer_id??null:null;if(n){if(!((N=o.email)!=null&&N.trim()))throw new Error("E-mail é obrigatório.");if(!o.password)throw new Error("Defina uma senha.");const z=await Da.create({email:o.email.trim(),name:o.name.trim(),password:o.password,role:v,is_active:o.is_active??!0,artist_id:_,producer_id:A});d.ok("Usuário criado."),r(`${en}/${z.id}/editar`,{replace:!0})}else{const z=(C=o.email)==null?void 0:C.trim();if(!z)throw new Error("E-mail é obrigatório.");if(b&&z!==e.email)throw new Error("Para trocar o seu próprio e-mail, use Minha conta.");await Da.update(e.id,{name:o.name.trim(),email:z,role:v,is_active:o.is_active??!0,artist_id:_,producer_id:A,...o.password?{password:o.password}:{}}),d.ok("Alterações salvas.")}m({password:void 0})}catch(_){const A=String(_.message);h(A),d.erro(A)}finally{l(!1)}}async function x(){if(confirm("Excluir este usuário?")){l(!0);try{await Da.remove(e.id),f()}catch(k){h(String(k.message)),l(!1)}}}return t.jsxs(Re,{backTo:en,title:n?"Novo usuário":e.name,children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Nome",full:!0,children:t.jsx("input",{value:o.name??"",onChange:k=>m({name:k.target.value})})}),t.jsx(S,{label:"E-mail",full:!0,hint:n?void 0:b?"Para trocar o seu próprio e-mail, use Minha conta.":"à o login desta pessoa: ao trocar, ela precisa entrar de novo com o e-mail novo.",children:t.jsx("input",{type:"email",value:o.email??"",disabled:b,onChange:k=>m({email:k.target.value})})}),t.jsx(S,{label:"Papel",hint:(j=Yc.find(k=>k.value===v))==null?void 0:j.hint,children:t.jsx("select",{value:v,onChange:k=>m({role:k.target.value}),children:Yc.map(k=>t.jsx("option",{value:k.value,children:k.label},k.value))})}),t.jsx(S,{label:"Status",children:t.jsxs("select",{value:o.is_active?"1":"0",onChange:k=>m({is_active:k.target.value==="1"}),children:[t.jsx("option",{value:"1",children:"Ativo"}),t.jsx("option",{value:"0",children:"Inativo"})]})}),t.jsx(S,{label:n?"Senha":"Nova senha",hint:n?void 0:"Deixe em branco para manter a senha atual.",children:t.jsx("input",{type:"password",value:o.password??"",autoComplete:"new-password",onChange:k=>m({password:k.target.value})})}),v==="artista"&&t.jsx(S,{label:"Grupo/companhia vinculado",hint:"Este usuário só enxerga este perfil.",children:t.jsxs("select",{value:o.artist_id??"",onChange:k=>m({artist_id:k.target.value?Number(k.target.value):null}),children:[t.jsx("option",{value:"",children:"â selecione â"}),a.map(k=>t.jsx("option",{value:k.id,children:k.name},k.id))]})}),v==="produtor"&&t.jsx(S,{label:"Produtor vinculado",children:t.jsxs("select",{value:o.producer_id??"",onChange:k=>m({producer_id:k.target.value?Number(k.target.value):null}),children:[t.jsx("option",{value:"",children:"â selecione â"}),s.map(k=>t.jsx("option",{value:k.id,children:k.name},k.id))]})}),v==="produtor"&&o.producer_id!=null&&t.jsx(uN,{producerId:o.producer_id,artists:a})]}),u&&t.jsx("p",{className:"error",children:u}),t.jsxs("footer",{className:"modal-foot",children:[!n&&t.jsx("button",{className:"btn danger",onClick:x,disabled:c,
719children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:f,disabled:c,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:p,disabled:c,children:c?"Salvandoâ¦":"Salvar"})]})]})}function uN({producerId:e,artists:a}){const s=D(()=>No.artists(e),[e]),[r,n]=y.useState([]),[o,i]=y.useState(""),[c,l]=y.useState(!1),[d,u]=y.useState(null);O.useEffect(()=>{s.data&&n(s.data.map(g=>g.artist_id))},[s.data]);const h=O.useMemo(()=>new Map(a.map(g=>[g.id,g.name])),[a]),m=a.filter(g=>!r.includes(g.id));async function f(){const g=Number(o);if(g){l(!0),u(null);try{await No.assignArtist(e,g),n(b=>[...b,g]),i("")}catch(b){u(String(b.message))}finally{l(!1)}}}async function v(g){l(!0),u(null);try{await No.unassignArtist(e,g),n(b=>b.filter(p=>p!==g))}catch(b){u(String(b.message))}finally{l(!1)}}return t.jsxs(S,{label:"Companhias que este produtor gere",full:!0,hint:"Só estas companhias ficam visÃveis para o produtor. Lista vazia = ele não vê nada.",children:[s.loading?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsxs("select",{value:o,onChange:g=>i(g.target.value),disabled:c||m.length===0,children:[t.jsx("option",{value:"",children:m.length===0?"â todas já atribuÃdas â":"â escolher companhia â"}),m.map(g=>t.jsx("option",{value:g.id,children:g.name},g.id))]}),t.jsx("button",{type:"button",className:"btn",onClick:f,disabled:c||!o,children:"Adicionar"})]}),t.jsxs("table",{className:"table",style:{marginTop:8},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Companhia"}),t.jsx("th",{style:{width:100,textAlign:"right"},children:"Ação"})]})}),t.jsx("tbody",{children:r.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:2,className:"muted",children:"Nenhuma companhia atribuÃda â o produtor não vê nada."})}):r.map(g=>t.jsxs("tr",{children:[t.jsx("td",{children:h.get(g)??`#${g}`}),t.jsx("td",{style:{textAlign:"right"},children:t.jsx("button",{type:"button",className:"btn danger",onClick:()=>v(g),disabled:c,children:"Remover"})})]},g))})]})]}),d&&t.jsx("p",{className:"error",children:d})]})}const mN=()=>new Date().toISOString().slice(0,10),pg=Object.keys(Yr),pN=Object.keys(ri),hg=Object.keys(ni),hN=Object.keys(fu),xN=[{chave:"todas",label:"Todas"},{chave:"ativas",label:"Ativas"},{chave:"vencidas",label:"Vencidas"},{chave:"pendentes",label:"Pendentes"},{chave:"vencendo",label:"Vencem em 30 dias"},{chave:"cortesia",label:"Cortesia"}];function Rr(e){if(e==null||e==="")return"â";const a=typeof e=="string"?Number(e):e;return Number.isNaN(a)?"â":a.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}function fN(e,a){switch(a){case"ativas":return e.status==="ativa";case"vencidas":return e.status==="vencida";case"pendentes":return e.status==="pendente";case"vencendo":return e.status==="ativa"&&e.days_to_due!=null&&e.days_to_due>=0&&e.days_to_due<=30;case"cortesia":return!e.paying;default:return!0}}function gN({s:e}){if(!e.due_date)return t.jsx("span",{className:"muted",children:"â"});const a=e.days_to_due,s=a==null?void 0:a<0?"#dc2626":a<=30?"#d97706":void 0;return t.jsxs("span",{style:{color:s},children:[X(e.due_date),a!=null&&t.jsx("span",{className:"sub",children:a<0?`venceu há ${-a} dia(s)`:a===0?"vence hoje":`em ${a} dia(s)`})]})}function vN(){const e=ge(),a=D(()=>Ra.list(),[]),s=D(()=>Ra.summary(),[]),[r,n]=y.useState("todas"),[o,i]=y.useState(""),[c,l]=y.useState(""),[d,u]=y.useState(null),[h,m]=y.useState(null),f=y.useMemo(()=>{const j=c.trim().toLowerCase();return(a.data??[]).filter(k=>fN(k,r)).filter(k=>!j||[k.user_name,k.user_email].some(N=>(N??"").toLowerCase().includes(j)))},[a.data,r,c]),v=y.useMemo(()=>{const j={};for(const k of f)j[k.plan]=(j[k.plan]??0)+1;return j},[f]),g=y.useMemo(()=>o?f.filter(j=>j.plan===o):f,[f,o]);function b(){a.reload(),s.reload()}async function p(j){if(confirm(`Excluir a assinatura de ${j.user_name}? 720 721Isso apaga também os ${j.payments.length} pagamento(s) registrado(s). O usuário continua existindo â só deixa de ter assinatura.`))try{await Ra.remove(j.id),e.ok("Assinatura excluÃda."),b()}catch(k){e.erro(String(k.message))}}if(a.error)return t.jsx("p",{className:"error",children:a.error});const x=s.data;return t.jsxs(t.Fragment,{children:[x&&t.jsxs("div",{className:"kpi-row",children:[t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(xt,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:x.ativas}),t.jsxs("span",{children:["ativas de ",x.total]})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(Xo,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:Rr(x.receita_anual_contratada)}),t.jsx("span",{children:"contratado por ano"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(Xo,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:Rr(x.recebido_total)}),t.jsx("span",{children:"recebido até hoje"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(xt,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsxs("strong",{children:[x.vencidas+x.pendentes,x.vencendo_em_30_dias>0&&` + ${x.vencendo_em_30_dias}`]}),t.jsxs("span",{children:["a cobrar",x.vencendo_em_30_dias>0&&" (e vencendo)"]})]})]})]}),t.jsxs("div",{className:"toolbar",children:[t.jsx("div",{className:"seg",children:xN.map(j=>t.jsx("button",{className:`seg-btn ${r===j.chave?"active":""}`,onClick:()=>
721n(j.chave),children:j.label},j.chave))}),t.jsxs("select",{value:o,onChange:j=>i(j.target.value),title:"Filtrar por plano",children:[t.jsxs("option",{value:"",children:["Todos os planos (",f.length,")"]}),pg.map(j=>t.jsxs("option",{value:j,children:[Yr[j].label," (",v[j]??0,")"]},j))]}),t.jsx("input",{type:"search",placeholder:"Buscar por nome ou e-mailâ¦",value:c,onChange:j=>l(j.target.value),style:{minWidth:240}}),t.jsxs("span",{className:"muted",children:[g.length," assinatura(s)"]}),t.jsxs("button",{className:"btn primary",onClick:()=>u("nova"),children:[t.jsx(du,{size:14,strokeWidth:2.4})," Nova assinatura"]})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Usuário"}),t.jsx("th",{children:"Plano"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Vence"}),t.jsx("th",{children:"Valor"}),t.jsx("th",{children:"Pago até hoje"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[g.map(j=>t.jsxs("tr",{onClick:()=>u(j),children:[t.jsxs("td",{children:[t.jsx("strong",{children:j.user_name}),t.jsx("span",{className:"sub",children:j.user_email})]}),t.jsx("td",{children:t.jsx("span",{className:"badge-soft",children:Yr[j.plan].label})}),t.jsx("td",{children:t.jsx("span",{className:"badge",style:{background:ri[j.status].color},children:ri[j.status].label})}),t.jsx("td",{children:t.jsx(gN,{s:j})}),t.jsxs("td",{children:[Rr(j.amount),t.jsx("span",{className:"sub",children:fu[j.periodicity].label})]}),t.jsxs("td",{children:[Rr(j.total_paid),j.payments.length>0&&t.jsxs("span",{className:"sub",children:[j.payments.length," pagamento(s)"]})]}),t.jsxs("td",{style:{whiteSpace:"nowrap",textAlign:"right"},children:[t.jsx("button",{className:"link",onClick:k=>{k.stopPropagation(),m(j)},children:"Lançar pagamento"}),t.jsx("button",{className:"link",style:{marginLeft:10,color:"rgb(var(--danger))"},title:"Excluir assinatura",onClick:k=>{k.stopPropagation(),p(j)},children:t.jsx(hr,{size:13,strokeWidth:2})})]})]},j.id)),g.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:7,className:"muted",style:{textAlign:"center",padding:24},children:o?`Nenhuma assinatura no plano ${Yr[o].label} neste filtro.`:"Nenhuma assinatura neste filtro."})})]})]})}),d&&t.jsx(jN,{inicial:d==="nova"?null:d,onFechar:()=>u(null),onSalvo:()=>{u(null),b()}}),h&&t.jsx(yN,{assinatura:h,onFechar:()=>m(null),onSalvo:()=>{m(null),b()}})]})}function jN({inicial:e,onFechar:a,onSalvo:s}){const r=ge(),n=e===null,o=D(()=>n?Da.list():Promise.resolve([]),[n]),[i,c]=y.useState(e??{plan:"fundador",status:"pendente",payment_method:"pix",periodicity:"anual",amount:"397.00"}),[l,d]=y.useState(!1),u=f=>c(v=>({...v,...f})),h=i.plan!=="gratuito"&&i.plan!=="cortesia"&&i.plan!=="interno";async function m(){d(!0);try{const f={plan:i.plan,status:i.status,payment_method:i.payment_method,amount:h&&i.amount||null,periodicity:i.periodicity,start_date:i.start_date||null,due_date:i.due_date||null,next_charge_on:i.next_charge_on||null,notes:i.notes||null};if(n){if(!i.user_id)throw new Error("Escolha o usuário.");await Ra.create({...f,user_id:i.user_id}),r.ok("Assinatura criada.")}else await Ra.update(e.id,f),r.ok("Alterações salvas.");s()}catch(f){r.erro(String(f.message)),d(!1)}}return t.jsxs(Rn,{title:n?"Nova assinatura":`Assinatura de ${e.user_name}`,onClose:a,children:[t.jsxs("div",{className:"form-grid",children:[n&&t.jsx(S,{label:"Usuário",full:!0,children:t.jsxs("select",{value:i.user_id??"",onChange:f=>u({user_id:Number(f.target.value)||void 0}),children:[t.jsx("option",{value:"",children:"Escolhaâ¦"}),(o.data??[]).map(f=>t.jsxs("option",{value:f.id,children:[f.name," â ",f.email]},f.id))]})}),t.jsx(S,{label:"Plano",children:t.jsx("select",{value:i.plan,onChange:f=>u({plan:f.target.value}),children:pg.map(f=>t.jsx("option",{value:f,children:Yr[f].label},f))})}),t.jsx(S,{label:"Status",children:t.jsx("select",{value:i.status,onChange:f=>u({status:f.target.value}),children:pN.map(f=>t.jsx("option",{value:f,children:ri[f].label},f))})}),h&&t.jsxs(t.Fragment,{children:[t.jsx(S,{label:"Valor (R$)",children:t.jsx("input",{type:"number",step:"0.01",value:i.amount??"",onChange:f=>u({amount:f.target.value})})}),t.jsx(S,{label:"Periodicidade",children:t.jsx("select",{value:i.peri
721odicity,onChange:f=>u({periodicity:f.target.value}),children:hN.map(f=>t.jsx("option",{value:f,children:fu[f].label},f))})}),t.jsx(S,{label:"Forma de pagamento",children:t.jsx("select",{value:i.payment_method,onChange:f=>u({payment_method:f.target.value}),children:hg.map(f=>t.jsx("option",{value:f,children:ni[f].label},f))})})]}),t.jsx(S,{label:"InÃcio",children:t.jsx("input",{type:"date",value:i.start_date??"",onChange:f=>u({start_date:f.target.value})})}),t.jsx(S,{label:"Vencimento",hint:"Lançar um pagamento empurra esta data sozinho.",children:t.jsx("input",{type:"date",value:i.due_date??"",onChange:f=>u({due_date:f.target.value})})}),t.jsx(S,{label:"Observações",full:!0,children:t.jsx("textarea",{rows:3,value:i.notes??"",onChange:f=>u({notes:f.target.value})})})]}),!n&&e.payments.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("h4",{style:{margin:"18px 0 8px"},children:"Histórico de pagamentos"}),t.jsx("table",{className:"table",children:t.jsx("tbody",{children:e.payments.map(f=>t.jsxs("tr",{children:[t.jsx("td",{children:X(f.paid_on)}),t.jsx("td",{children:Rr(f.amount)}),t.jsx("td",{children:ni[f.method].label}),t.jsx("td",{className:"muted",children:f.notes??""})]},f.id))})})]}),t.jsxs("footer",{className:"modal-foot",children:[t.jsx("button",{className:"btn",onClick:a,disabled:l,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:m,disabled:l,children:l?"Salvandoâ¦":"Salvar"})]})]})}function yN({assinatura:e,onFechar:a,onSalvo:s}){const r=ge(),[n,o]=y.useState({amount:e.amount??"",method:e.payment_method,paid_on:mN(),notes:""}),[i,c]=y.useState(!1);async function l(){c(!0);try{if(!n.amount)throw new Error("Informe o valor recebido.");await Ra.addPayment(e.id,{amount:n.amount,method:n.method,paid_on:n.paid_on,notes:n.notes||null}),r.ok("Pagamento registrado â vencimento atualizado."),s()}catch(d){r.erro(String(d.message)),c(!1)}}return t.jsxs(Rn,{title:`Lançar pagamento â ${e.user_name}`,onClose:a,children:[t.jsx("p",{className:"muted",children:"Registrar o pagamento move o vencimento um perÃodo à frente e reativa a assinatura."}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Valor recebido (R$)",children:t.jsx("input",{type:"number",step:"0.01",value:n.amount,onChange:d=>o({...n,amount:d.target.value})})}),t.jsx(S,{label:"Forma",children:t.jsx("select",{value:n.method,onChange:d=>o({...n,method:d.target.value}),children:hg.map(d=>t.jsx("option",{value:d,children:ni[d].label},d))})}),t.jsx(S,{label:"Data do pagamento",children:t.jsx("input",{type:"date",value:n.paid_on,onChange:d=>o({...n,paid_on:d.target.value})})}),t.jsx(S,{label:"Observação",full:!0,hint:"Ex.: identificador da transação Pix.",children:t.jsx("input",{value:n.notes,onChange:d=>o({...n,notes:d.target.value})})})]}),t.jsxs("footer",{className:"modal-foot",children:[t.jsx("button",{className:"btn",onClick:a,disabled:i,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:l,disabled:i,children:i?"Registrandoâ¦":"Registrar pagamento"})]})]})}const tn="/app/leads",ci=[{value:"novo",label:"Novo",hint:"chegou e ainda não foi respondido"},{value:"em_contato",label:"Em contato",hint:"conversa aberta, sem decisão"},{value:"convertido",label:"Convertido",hint:"virou conta na Gira"},{value:"descartado",label:"Descartado",hint:"não é público da Gira ou não quis"}],_p=Object.fromEntries(ci.map(e=>[e.value,e.label])),xg=[{value:"instagram",label:"Instagram"},{value:"whatsapp",label:"WhatsApp"},{value:"indicacao",label:"Indicação"},{value:"site_chat",label:"Chat do site"},{value:"site_lp",label:"Formulário da landing"},{value:"demonstracao_gira",label:"Demonstração ao vivo"},{value:"cadastro",label:"Cadastro no site"},{value:"manual",label:"Cadastro manual"},{value:"outro",label:"Outro"}],Sp=Object.fromEntries(xg.map(e=>[e.value,e.label]));function bN({dados:e,onAplicar:a,onFechar:s,busy:r}){const n=!e.fundidos&&!e.normalizados;return t.jsxs("div",{className:"card",style:{marginBottom:14},children:[t.jsxs("div",{className:"card-head",children:[t.jsxs("div",{children:[t.jsx("h3",{children:e.aplicad
721o?"Base organizada":"Organizar a base"}),t.jsx("p",{className:"sub",children:n?`Nenhum repetido entre os ${e.total} leads, e nenhum campo fora do padrão.`:e.aplicado?`${e.fundidos} ${e.fundidos===1?"registro repetido virou":"registros repetidos viraram"} um só e ${e.normalizados} ${e.normalizados===1?"ficha teve":"fichas tiveram"} os campos arrumados.`:`${e.grupos} ${e.grupos===1?"pessoa está":"pessoas estão"} cadastradas mais de uma vez â ${e.fundidos} ${e.fundidos===1?"registro some":"registros somem"}, sem perder nada: o mais antigo fica e recebe o que faltava. ${e.normalizados} ${e.normalizados===1?"ficha tem":"fichas têm"} campo a arrumar (e-mail em maiúsculas, telefone sem padrão, nome em CAIXA ALTA).`})]}),t.jsx("button",{className:"icon-btn",onClick:s,"aria-label":"Fechar",children:t.jsx(tt,{size:16,strokeWidth:2.2})})]}),!!e.exemplos.length&&!e.aplicado&&t.jsx("ul",{style:{margin:"0 0 12px 18px"},children:e.exemplos.map(o=>t.jsx("li",{className:"muted",style:{fontSize:13},children:o},o))}),!n&&!e.aplicado&&t.jsx("button",{className:"btn primary",onClick:a,disabled:r,children:r?"Organizandoâ¦":"Pode organizar"})]})}function Ep(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}function En(e){return e.replace(/\D/g,"")}function NN(e){const a=En(e);if(a.startsWith("55")&&(a.length===12||a.length===13)){const s=a.slice(2,4),r=a.slice(4),n=r.length===9?5:4;return`+55 (${s}) ${r.slice(0,n)}-${r.slice(n)}`}return a?`+${a}`:e}function fg(e){const a=e.trim(),s=En(a);return`https://wa.me/${!a.startsWith("+")&&(s.length===10||s.length===11)?`55${s}`:s}`}function kN(){const e=J(),a=ge(),[s,r]=y.useState(""),[n,o]=y.useState(""),i=D(()=>Oa.list(s||void 0),[s]),c=y.useMemo(()=>{const m=i.data??[],f=Ep(n);if(!f)return m;const v=En(n);return m.filter(g=>[g.name,g.email,g.whatsapp,g.instagram,g.city,g.art_field,g.interest,g.summary,g.notes,Sp[g.source],_p[g.status]].some(p=>p&&Ep(p).includes(f))?!0:v.length>=3&&En(g.whatsapp??"").includes(v))},[i.data,n]),[l,d]=y.useState({busy:!1});async function u(){d({busy:!0});try{d({busy:!1,previa:await Oa.consolidar(!1)})}catch(m){d({busy:!1,erro:String(m.message)})}}async function h(){d(m=>({...m,busy:!0}));try{const m=await Oa.consolidar(!0);d({busy:!1,previa:m}),i.reload(),a.ok(m.fundidos?`${m.fundidos} ${m.fundidos===1?"registro repetido virou um só":"registros repetidos viraram um só"}.`:"Base já estava organizada.")}catch(m){d({busy:!1,erro:String(m.message)})}}return i.error?t.jsx("p",{className:"error",children:i.error}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("select",{value:s,onChange:m=>r(m.target.value),children:[t.jsx("option",{value:"",children:"Todos os andamentos"}),ci.map(m=>t.jsx("option",{value:m.value,children:m.label},m.value))]}),t.jsx("input",{type:"search",placeholder:"Buscar por nome, e-mail, WhatsApp, cidadeâ¦",value:n,onChange:m=>o(m.target.value),style:{flex:"0 1 340px",minWidth:200}}),t.jsxs("span",{className:"muted",style:{whiteSpace:"nowrap"},children:[c.length," ",c.length===1?"interessado":"interessados"]}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:u,disabled:l.busy,title:"Procura a mesma pessoa cadastrada duas vezes e arruma os campos",children:l.busy?"Conferindoâ¦":"Organizar a base"}),t.jsx("button",{className:"btn primary",onClick:()=>e(`${tn}/novo`),children:"+ Novo lead"})]}),l.previa&&t.jsx(bN,{dados:l.previa,onAplicar:h,busy:l.busy,onFechar:()=>d({busy:!1})}),l.erro&&t.jsx("p",{className:"error",children:l.erro}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table cartoes",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Nome"}),t.jsx("th",{children:"E-mail"}),t.jsx("th",{children:"WhatsApp"}),t.jsx("th",{children:"Cidade"}),t.jsx("th",{children:"Linguagem"}),t.jsx("th",{children:"Origem"}),t.jsx("th",{children:"Andamento"}),t.jsx("th",{children:"Chegou em"})]})}),t.jsxs("tbody",{children:[c.map(m=>t.jsxs("tr",{onClick:()=>e(`${tn}/${m.id}/editar`),children:[t.jsx("td",{className:"cartao-titulo",children:m.name||t.jsx("span",{className:"muted",children:"sem nome"})}),t.jsx("td",{"data-rotulo":"E-mail",children:m.email?t.jsx("a",{href:`mailto:${m.email}`,onClick:f=>f.stopPropagation(),children:m.email}):t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{"data-rotulo":"WhatsApp",children:m.whatsapp?t.jsx("a",{href:fg(m.whatsapp),target:"_blank",rel:"noreferrer",onClick:f=>f.stopPropagation(),children:NN(m.whatsapp)}):t.jsx("span",{className:"muted",children:"â"})}),t.jsx("td",{"data-rotulo":"Cidade",children:m.city??"â"}),t.jsx("td",{"data-rotulo":"Linguagem",children:m.art_field??"â"}),t.jsx("td",{"data-rotulo":"Origem",children:Sp[m.source]??m.source}),t.jsx("td",{"data-rotulo":"Andamento",children:_p[m.status]??m.status}),t.jsx("td",{"data-rotulo":"Chegou em",children:X(m.created_at)})]},m.id)),c.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:8,className:"muted",children:n?"Nenhum lead com esse termo.":s?"Nenhum lead neste andamento.":"Nenhum lead ainda."})})]})]})})]})}function Pp(){const{id:e}=ne(),a=e!=null,s=D(()=>a?Oa.get(Number(e)):Promise.resolve(null),[e]);return a&&s.loading?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):s.error?t.jsx("p",{className:"error",children:s.error}):t.jsx(wN,{initial:a?s.data:null})}function wN({initial:e}){var b;const a=J(),s=!e,[r,n]=y.useState(e??{source:"instagram",status:"novo"}),[o,i]=y.useState(!1),[c,l]=y.useState(null),d=ge(),u=p=>n(x=>({...x,...p})),h=()=>a(tn);function m(){var x;const p=j=>j!=null&&j.trim()?j.trim():null;return{name:p(r.name),email:((x=p(r.email))==null?void 0:x.toLowerCase())??null,whatsapp:p(r.whatsapp),instagram:p(r.instagram),city:p(r.city),art_field:p(r.art_field),interest:p(r.interest),summary:p(r.summary),notes:p(r.notes),source:r.source??"manual",status:r.status??"novo"}}async function f(){var p,x,j,k;i(!0),l(null);try{if(!((p=r.name)!=null&&p.trim())&&!((x=r.email)!=null&&x.trim())&&!((j=r.whatsapp)!=null&&j.trim())&&!((k=r.instagram)!=null&&k.trim()))throw new Error("Preencha ao menos o
721nome ou um contato.");if(s){const N=await Oa.create(m());d.ok("Lead anotado."),a(`${tn}/${N.id}/editar`,{replace:!0})}else await Oa.update(e.id,m()),d.ok("Alterações salvas.")}catch(N){const C=String(N.message);l(C),d.erro(C)}finally{i(!1)}}async function v(){if(confirm("Excluir este lead?")){i(!0);try{await Oa.remove(e.id),h()}catch(p){l(String(p.message)),i(!1)}}}const g=r.status??"novo";return t.jsxs(Re,{backTo:tn,title:s?"Novo lead":r.name||"Lead sem nome",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Nome",children:t.jsx("input",{value:r.name??"",onChange:p=>u({name:p.target.value})})}),t.jsx(S,{label:"E-mail",hint:"à por ele que a ficha se reconhece quando a pessoa cria conta.",children:t.jsx("input",{type:"email",autoComplete:"off",value:r.email??"",onChange:p=>u({email:p.target.value})})}),t.jsxs(S,{label:"WhatsApp",hint:"Com DDD, e com o paÃs (+34, +51â¦) quando não for do Brasil â sem o + a Gira supõe que é brasileiro.",children:[t.jsx("input",{inputMode:"tel",placeholder:"+55 51 99999-9999",value:r.whatsapp??"",onChange:p=>u({whatsapp:p.target.value})}),En(r.whatsapp??"").length>=8&&t.jsxs("a",{href:fg(r.whatsapp??""),target:"_blank",rel:"noreferrer",style:{display:"inline-flex",alignItems:"center",gap:6,marginTop:8,fontSize:"0.85em",fontWeight:600},children:[t.jsx(Fi,{size:15})," Abrir conversa no WhatsApp"]})]}),t.jsx(S,{label:"Instagram",hint:"@ ou o endereço do perfil â para quem chegou pelo Direct.",children:t.jsx("input",{placeholder:"@fulano",value:r.instagram??"",onChange:p=>u({instagram:p.target.value})})}),t.jsx(S,{label:"Cidade",children:t.jsx("input",{value:r.city??"",onChange:p=>u({city:p.target.value})})}),t.jsx(S,{label:"Linguagem artÃstica",hint:"Circo, teatro, música, palhaçariaâ¦",children:t.jsx("input",{value:r.art_field??"",onChange:p=>u({art_field:p.target.value})})}),t.jsx(S,{label:"Origem",children:t.jsx("select",{value:r.source??"manual",onChange:p=>u({source:p.target.value}),children:xg.map(p=>t.jsx("option",{value:p.value,children:p.label},p.value))})}),t.jsx(S,{label:"Andamento",hint:(b=ci.find(p=>p.value===g))==null?void 0:b.hint,children:t.jsx("select",{value:g,onChange:p=>u({status:p.target.value}),children:ci.map(p=>t.jsx("option",{value:p.value,children:p.label},p.value))})}),t.jsx(S,{label:"Interesse",full:!0,hint:"Plano ou serviço que a pessoa procura (site, Radar, representaçãoâ¦).",children:t.jsx("input",{value:r.interest??"",onChange:p=>u({interest:p.target.value})})}),t.jsx(S,{label:"Resumo da conversa",full:!0,children:t.jsx("textarea",{rows:4,value:r.summary??"",onChange:p=>u({summary:p.target.value})})}),t.jsx(S,{label:"Anotação interna",full:!0,hint:"Só a produção vê. Próximo passo, combinado, o que falta.",children:t.jsx("textarea",{rows:3,value:r.notes??"",onChange:p=>u({notes:p.target.value})})}),(e==null?void 0:e.transcript)&&t.jsx(S,{label:"Conversa completa (chat do site)",full:!0,children:t.jsx("pre",{className:"muted",style:{whiteSpace:"pre-wrap",margin:0},children:e.transcript})})]}),c&&t.jsx("p",{className:"error",children:c}),t.jsxs("footer",{className:"modal-foot",children:[!s&&t.jsx("button",{className:"btn danger",onClick:v,disabled:o,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:h,disabled:o,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:f,disabled:o,children:o?"Salvandoâ¦":"Salvar"})]})]})}const oo=1e3,Pl=397,io=497,Pr=30,Al=1979,zl=.25,Tl=.05,lo=10,Jt=e=>e.toLocaleString("pt-BR",{style:"currency",currency:"BRL",maximumFractionDigits:0}),CN=[{n:1,nome:"Fundadores",meta:"30 assinantes",quando:"até dez/2026",como:["As 30 vagas de fundador (R$ 397/ano travado) são o argumento â elas acabam.","Rede direta: conversa individual por Instagram e WhatsApp, uma pessoa por vez.","Todo artista que hoje tem conta e não tem assinatura precisa virar cortesia declarada ou pagante.","Pampalhaço (6â8/11/2026) é o palco: artista que passa pelo festival sai com conta criada."],sinal:"30 assinaturas pagas e a lista de espera do preço de fundador começando."},{n:2,nome:"Prova",meta:"100 assinantes",quando:"1º semestre/2027",como:["Casos de vitrine publicados: site + fólio + inscrição feita pela Gira, com nome e resultado.","Primeiro festival contratante pagando o plano de festival â a porta do outro lado.","Oficina/formação 'inscrição em edital' como isca: quem faz a oficina entra como lead quente.","Extensão do Chrome publicada na loja como porta de entrada gratuita."],sinal:"Chegam assinantes que o André não conhece pessoalmente."},{n:3,nome:"Multiplicação",meta:"300 assinantes",quando:"2º semestre/2027",como:["Parceria com quem já tem lista: festivais, escolas de circo, coletivos, associações, secretarias.","Cada parceiro apresenta a Gira à sua lista â 1 acordo vale por meses de conversa 1 a 1.","Programa de indicação: quem trouxe assinante ganha desconto na própria renovação.","Radar aberto (amostra pública dos editais da semana) como conteúdo que se repete sozinho."],sinal:"Mais da metade das entradas do mês não passa pela mão do André."},{n:4,nome:"Mil",meta:"1.000 assinantes",quando:"2028",como:["O que funcionou na fase 3 vira rotina paga (tráfego, equipe de suporte, produção de conteúdo).","Renovação vira prioridade: manter 1.000 exige perder pouco â cada cancelamento pesa.","Segundo produto para o mesmo assinante (representação, festival, serviços) sustenta o caixa."],sinal:"Entradas do mês maiores que as saÃdas por 6 meses seguidos."}];function _N(){const e=D(()=>Ra.summary(),[]),a=D(()=>Ra.list(),[]),s=D(()=>Da.list(),[]),r=D(()=>Oa.list(),[]),n=a.data??[],o=s.data??[],i=r.data??[],c=n.filter(g=>g.paying&&g.status==="ativa").length,l=n.filter(g=>!g.paying).length,d=o.filter(g=>g.is_active&&!n.some(b=>b.user_id===g.id)),u=Pr*Pl+(oo-Pr)*io,h=Math.max(oo-c,0),m=Math.ceil(h/zl),f=Math.ceil(h/Tl),v=m/(lo*52);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"kpi-row",children:[t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(Xo,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:c}),t.jsx("span",{children:"assinantes pagando hoje"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(Vb,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:l}),t.jsx("span",{children:"cortesias e contas internas"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(pu,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:i.length}),t.jsx("span",{children:"interessados no funil"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(pr,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:h}),t.jsx("span",{children:"faltam para 1.000"})]})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"Onde estamos hoje"}),t.jsxs("p",{className:"muted",children:["Números do banco, não da lembrança: ",e.data?Jt(Number(e.data.receita_anual_contratada)):"â"," ","contratados por ano e ",e.data?Jt(Number(e.data.recebido_total)):"â"," já recebidos. Com ",c," ",c===1?"pagante":"pagantes",", a Gira está em"," ",(c/oo*100).toFixed(1),"% da meta."]}),d.length>0&&t.jsxs("p",{children:[t.jsxs("strong",{children:[d.length," conta(s) ativa(s) sem registro de assinatura"]}
721)," â não aparecem nem como pagante nem como cortesia:"," ",d.map(g=>g.name).join(", "),"."," ",t.jsx(U,{to:"/app/assinaturas",children:"Classificar em Assinaturas"})," (cortesia e interno não contam receita, mas contam como gente usando)."]})]}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"A conta de 1.000 assinantes"}),t.jsxs("p",{children:["Mil artistas assinando valem"," ",t.jsxs("strong",{children:[Jt(u)," por ano"]})," (",Pr," fundadores a"," ",Jt(Pl)," + ",oo-Pr," a ",Jt(io),"). Os festivais são outra porta e outra conta: cada plano de festival a ",Jt(Al),"/ano equivale a"," ",Math.round(Al/io)," assinantes artistas."]}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsxs("th",{children:["Caminho até os ",h," que faltam"]}),t.jsx("th",{children:"Interessados necessários"}),t.jsx("th",{children:"O que isso significa"})]})}),t.jsxs("tbody",{children:[t.jsxs("tr",{children:[t.jsxs("td",{children:["Rede quente (DM, festival, oficina) â ",(zl*100).toFixed(0),"% converte"]}),t.jsx("td",{children:m.toLocaleString("pt-BR")}),t.jsxs("td",{children:["No ritmo de ",lo," conversas por semana, ",v.toFixed(1)," anos só de 1 a 1."]})]}),t.jsxs("tr",{children:[t.jsxs("td",{children:["Audiência fria (post, busca, extensão) â ",(Tl*100).toFixed(0),"% converte"]}),t.jsx("td",{children:f.toLocaleString("pt-BR")}),t.jsx("td",{children:"Volume que nenhuma conta pessoal alcança sozinha."})]})]})]}),t.jsxs("p",{className:"muted",children:[t.jsx("strong",{children:"à esta conta que define o plano."})," A rede direta do André resolve as duas primeiras fases e não chega perto de 1.000 â daà a fase 3 ser inteira sobre parceiros que já têm lista própria. Enquanto a maioria das entradas depender de conversa individual, a meta não é 1.000: é 100."]})]}),CN.map(g=>t.jsxs("div",{className:"card",children:[t.jsxs("h3",{children:["Fase ",g.n," â ",g.nome,": ",g.meta," ",t.jsxs("span",{className:"muted",style:{fontWeight:400},children:["(",g.quando,")"]})]}),t.jsx("ul",{children:g.como.map((b,p)=>t.jsx("li",{children:b},p))}),t.jsxs("p",{className:"muted",children:["Sinal de que a fase fechou: ",g.sinal]})]},g.n)),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"A rotina que faz o plano acontecer"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Toda conversa vira lead."})," Quem manda DM entra em"," ",t.jsx(U,{to:"/app/leads",children:"Leads"})," no mesmo dia, com origem e próximo passo â o que não está anotado não é acompanhado."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Semanal:"})," ",lo,' conversas novas e todo lead "novo" com mais de 7 dias respondido ou descartado.']}),t.jsxs("li",{children:[t.jsx("strong",{children:"Mensal:"})," conferir aqui quantos entraram, quantos converteram e qual origem trouxe mais â e cortar o canal que não trouxe ninguém em dois meses."]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Sempre:"})," nenhuma conta ativa sem plano definido. Cortesia é decisão, não esquecimento."]})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"Premissas (mude aqui, não na cabeça)"}),t.jsxs("p",{className:"muted",children:["Conversão de lead quente ",(zl*100).toFixed(0),"% · lead frio"," ",(Tl*100).toFixed(0),"% · ",lo," conversas novas por semana · fundador ",Jt(Pl)," (",Pr," vagas) · base ",Jt(io)," · festival ",Jt(Al),". As taxas de conversão são apostas iniciais: assim que houver 30 leads fechados, troque pelos números reais do funil."]})]})]})}const _s=e=>e.toLocaleString("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2}),SN={sem_assinatura:"Criou conta, não assinou",pendente:"Pendente",ativa:"Assinante",vencida:"Vencida",cancelada:"Cancelada",suspensa:"Suspensa"};function EN(){const e=ge(),a=D(()=>ko.myPanel(),[]),[s,r]=y.useState(!1);if(a.error)return t.jsx("p",{className:"error",children:a.error});const n=a.data;if(!n)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});async function o(){if(n!=null&&n.referral_url)try{await navigator.clipboard.writeText(n.referral_url),r(!0),setTimeout(()=>r(!1),2500)}catch{e.erro("Não deu para copiar automaticamente â selecione o link acima.")}}return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"kpi-row",children:[t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(pu,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:n.paying}),t.jsx("span",{children:"assinantes que você trouxe"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(Rf,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:_s(n.total)}),t.jsx("span",{children:"comissão acumulada"})]})]}),t.jsxs("div",{className:"kpi-card",children:[t.jsx("span",{className:"kpi-icon",children:t.jsx(wf,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsxs("strong",{children:[n.commission_rate,"%"]}),t.jsx("span",{children:"do valor pago, em toda renovação"})]})]})]}),t.jsxs("div",{className:"card",children:[t.jsxs("h3",{children:[t.jsx(lu,{size:16,strokeWidth:2.2})," Seu link"]}),t.jsx("p",{className:"muted",children:"Toda conta criada por este link fica registrada como sua â inclusive quando a pessoa assina dias depois. V
721ale por 60 dias a partir do clique."}),t.jsxs("div",{className:"toolbar",style:{gap:8,flexWrap:"wrap"},children:[t.jsx("input",{readOnly:!0,value:n.referral_url??"",style:{minWidth:340,flex:1}}),t.jsx("button",{className:"btn",onClick:o,children:s?"Copiado â":"Copiar"})]})]}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"O que a Gira te deve"}),t.jsxs("div",{className:"toolbar",style:{gap:24,flexWrap:"wrap"},children:[t.jsxs("span",{children:[t.jsx("strong",{children:_s(n.forecast)})," ",t.jsx("span",{className:"muted",children:"prevista"})]}),t.jsxs("span",{children:[t.jsx("strong",{children:_s(n.to_pay)})," ",t.jsx("span",{className:"muted",children:"a pagar"})]}),t.jsxs("span",{children:[t.jsx("strong",{children:_s(n.paid)})," ",t.jsx("span",{className:"muted",children:"já repassada"})]})]}),n.commissions.length===0?t.jsx("p",{className:"muted",children:"Nenhuma comissão ainda. Ela nasce quando alguém que entrou pelo seu link paga."}):t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Quem pagou"}),t.jsx("th",{children:"Pagamento"}),t.jsx("th",{children:"Sua comissão"}),t.jsx("th",{children:"Repasse"}),t.jsx("th",{children:"Data"})]})}),t.jsx("tbody",{children:n.commissions.map(i=>t.jsxs("tr",{children:[t.jsx("td",{children:i.payer_name??"â"}),t.jsx("td",{className:"muted",children:i.payment_amount!=null?_s(i.payment_amount):"â"}),t.jsxs("td",{children:[t.jsx("strong",{children:_s(i.amount)})," ",t.jsxs("span",{className:"muted",children:["(",i.percent,"%)"]})]}),t.jsx("td",{children:Vf[i.status]??i.status}),t.jsx("td",{className:"muted",children:X(i.paid_on??i.paid_at)})]},i.id))})]})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Quem entrou pelo seu link"}),t.jsx("th",{children:"Cidade"}),t.jsx("th",{children:"Entrou em"}),t.jsx("th",{children:"Situação"})]})}),t.jsxs("tbody",{children:[n.referred.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:4,className:"muted",style:{padding:16},children:"Ninguém ainda. Mande o link acima para quem você acha que a Gira serve."})}),n.referred.map(i=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("strong",{children:i.name})}),t.jsx("td",{className:"muted",children:i.city??"â"}),t.jsx("td",{className:"muted",children:X(i.signed_up_on)}),t.jsx("td",{className:i.paying?void 0:"muted",children:SN[i.status]??i.status})]},i.id))]})]})})]})}const Ar=e=>e.toLocaleString("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2}),PN=["prevista","a_pagar","paga"];function AN(){const e=ge(),[a,s]=y.useState(0),r=D(()=>ko.list(),[a]),n=D(()=>Da.list(),[a]),o=D(()=>rp.list(),[a]),[i,c]=y.useState("");if(r.error)return t.jsx("p",{className:"error",children:r.error});const l=r.data??[],u=(n.data??[]).filter(v=>!l.some(g=>g.id===v.id));async function h(v,g){try{await ko.update(v.id,g),s(b=>b+1)}catch(b){e.erro(b instanceof Error?b.message:"Não deu para salvar.")}}async function m(v,g){try{await rp.update(v,{status:g}),s(b=>b+1)}catch(b){e.erro(b instanceof Error?b.message:"Não deu para salvar.")}}const f=(o.data??[]).filter(v=>v.status==="a_pagar").reduce((v,g)=>v+g.amount,0);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"Quem vende a Gira"}),t.jsxs("p",{className:"muted",children:["Vender é uma marca no usuário que já existe â o vendedor não precisa de uma segunda conta. Cada um tem o seu percentual; sem percentual próprio, vale o padrão da casa (30%). Mudar o percentual ",t.jsx("strong",{children:"não"}
721)," mexe em comissão já registrada: o valor de cada uma foi congelado no ato do pagamento."]}),t.jsxs("div",{className:"toolbar",style:{gap:8,flexWrap:"wrap"},children:[t.jsxs("select",{value:i,onChange:v=>c(v.target.value),children:[t.jsx("option",{value:"",children:"Tornar alguém vendedorâ¦"}),u.map(v=>t.jsxs("option",{value:String(v.id),children:[v.name," · ",v.email]},v.id))]}),t.jsx("button",{className:"btn",disabled:!i,onClick:async()=>{const v=Number(i);c("");try{await ko.update(v,{is_seller:!0}),s(g=>g+1)}catch(g){e.erro(g instanceof Error?g.message:"Não deu para salvar.")}},children:"Marcar como vendedor"})]})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Vendedor"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"%"}),t.jsx("th",{children:"Contas"}),t.jsx("th",{children:"Assinantes"}),t.jsx("th",{children:"Comissão total"}),t.jsx("th",{children:"A pagar"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[l.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:8,className:"muted",style:{padding:16},children:"Nenhum vendedor ainda. Marque alguém acima."})}),l.map(v=>t.jsxs("tr",{children:[t.jsxs("td",{children:[t.jsx("strong",{children:v.name}),t.jsx("span",{className:"sub",children:v.email})]}),t.jsxs("td",{className:"muted",children:["?v=",v.referral_code]}),t.jsx("td",{children:t.jsx("input",{type:"number",min:1,max:100,defaultValue:v.commission_rate??30,style:{width:64},onBlur:g=>{const b=Number(g.target.value);b&&b!==v.commission_rate&&h(v,{commission_percent:b})}})}),t.jsx("td",{children:v.accounts}),t.jsx("td",{children:t.jsx("strong",{children:v.paying})}),t.jsx("td",{children:Ar(v.total)}),t.jsx("td",{children:Ar(v.to_pay)}),t.jsx("td",{style:{textAlign:"right"},children:t.jsx("button",{className:"link",onClick:()=>h(v,{is_seller:!1}),children:"tirar"})})]},v.id))]})]})}),t.jsxs("div",{className:"card",children:[t.jsx("h3",{children:"Repasses"}),t.jsxs("p",{className:"muted",children:["A Gira ",t.jsx("strong",{children:"não"})," paga sozinha: o repasse é Pix na mão, e esta tela só registra o que já saiu. Total marcado como a pagar hoje:"," ",t.jsx("strong",{children:Ar(f)}),"."]}),t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Vendedor"}),t.jsx("th",{children:"Quem pagou"}),t.jsx("th",{children:"Pagamento"}),t.jsx("th",{children:"Comissão"}),t.jsx("th",{children:"Estado"}),t.jsx("th",{children:"Data do repasse"})]})}),t.jsxs("tbody",{children:[(o.data??[]).length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:6,className:"muted",style:{padding:16},children:"Nenhuma comissão registrada. Ela nasce sozinha quando alguém que entrou por um link de vendedor paga."})}),(o.data??[]).map(v=>t.jsxs("tr",{children:[t.jsx("td",{children:v.seller_name??"â"}),t.jsx("td",{children:v.payer_name??"â"}),t.jsxs("td",{className:"muted",children:[v.payment_amount!=null?Ar(v.payment_amount):"â"," · ",X(v.paid_at)]}),t.jsxs("td",{children:[t.jsx("strong",{children:Ar(v.amount)})," ",t.jsxs("span",{className:"muted",children:["(",v.percent,"%)"]})]}),t.jsx("td",{children:t.jsx("select",{value:v.status,onChange:g=>m(v.id,g.target.value),children:PN.map(g=>t.jsx("option",{value:g,children:Vf[g]},g))})}),t.jsx("td",{className:"muted",children:X(v.paid_on)})]},v.id))]})]})]})]})}const zN={novidade:{label:"Novo",Icon:Be,cor:"#16a34a"},melhoria:{label:"Melhor",Icon:j1,cor:"#2563eb"},correcao:{label:"Correção",Icon:Cb,cor:"#d97706"}};function TN(){const e=D(()=>Df.list(),[]);if(e.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(e.error)return t.jsx("p",{className:"error",children:e.error});const a=e.data??[];return a.length===0?t.jsx("p",{className:"muted",children:"Nenhuma versão publicada ainda."}):t.jsx("div",{className:"novidades",children:a.map((s,r)=>t.jsxs("section",{className:"card novidade",children:[t.jsx("header",{className:"novidade-head",children:t.jsxs("div",{children:[t.jsxs("h3",{children:[s.name??`Versão ${s.version}`,r===0&&t.jsx("span",{className:"badge-soft novidade-atual",children:"no ar"})]}),t.jsxs("p",{className:"muted",children:["versão ",s.version," · ",X(s.released_on)]})]})}),s.summary&&t.jsx("p",{className:"novidade-resumo",children:s.summary}),t.jsx("ul",{className:"novidade-itens",children:s.items.map(n=>{const o=zN[n.kind];return t.jsxs("li",{children:[t.jsx("span",{className:"novidade-tipo",style:{color:o.cor},title:o.label,children:t.jsx(o.Icon,{size:14,strokeWidth:2.2})}),t.jsxs("div",{children:[t.jsx("strong",{children:n.title}),n.description&&t.jsx("p",{className:"muted",children:n.description})]})]},n.id)})})]},s.id))})}function IN(){const a=D(()=>Df.current(),[]).data;return a?t.jsxs("a",{className:"versao-atual",href:"/app/novidades",title:a.name??void 0,children:["v",a.version]}):null}const $N={produtor:"Produtor",artista:"Artista",visitante:"Visitante"};function LN(){const e=D(()=>tp.get()),{refresh:a}=Ae(),[s,r]=y.useState({}),[n,o]=y.useState(null),[i,c]=y.useState(null);if(O.useEffect(()=>
721{e.data&&r(e.data.matrix)},[e.data]),e.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(e.error)return t.jsx("p",{className:"error",children:e.error});const l=e.data;async function d(u,h,m){const f=`${u}:${h}`;o(f),c(null);try{await tp.set(h,u,m),r(v=>({...v,[u]:{...v[u],[h]:m}})),a()}catch(v){c(String(v.message))}finally{o(null)}}return t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"muted",style:{marginBottom:12},children:["Marque quais módulos cada papel enxerga. ",t.jsx("strong",{children:"Admin vê tudo"})," (não editável). A mudança vale no próximo carregamento do usuário."]}),i&&t.jsx("p",{className:"error",children:i}),t.jsx("div",{className:"card no-pad",style:{overflowX:"auto"},children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Módulo"}),l.roles.map(u=>t.jsx("th",{style:{textAlign:"center"},children:$N[u]??u},u))]})}),t.jsx("tbody",{children:l.modules.map(u=>t.jsxs("tr",{children:[t.jsxs("td",{children:[u.label," ",t.jsxs("span",{className:"muted",style:{fontSize:12},children:["(",u.key,")"]})]}),l.roles.map(h=>{var f;const m=`${u.key}:${h}`;return t.jsx("td",{style:{textAlign:"center"},children:t.jsx("input",{type:"checkbox",checked:((f=s[u.key])==null?void 0:f[h])??!1,disabled:n===m,onChange:v=>d(u.key,h,v.target.checked),style:{width:"auto",margin:0}})},h)})]},u.key))})]})})]})}function qN(e){if(!e)return"";const[a,s,r]=e.split("-");return r&&s&&a?`${r}/${s}/${a}`:e}function MN(){const e=D(()=>_n.list(),[]),[a,s]=y.useState(null),[r,n]=y.useState(!1);if(e.loading)return t.jsx("p",{className:"muted",children:"Carregandoâ¦"});if(e.error)return t.jsx("p",{className:"error",children:e.error});const o=e.data??[],i=o.filter(u=>u.tutorial_video_url),c=o.filter(u=>!u.tutorial_video_url);async function l(u){confirm(`Excluir o tutorial de "${u.label}"?`)&&(await _n.deleteTutorial(u.key),e.reload())}const d=()=>{n(!1),s(null)};return t.jsxs("div",{style:{maxWidth:760},children:[t.jsxs("button",{className:"btn",onClick:()=>n(!0),disabled:c.length===0,title:c.length===0?"Todos os módulos já têm tutorial":void 0,style:{display:"inline-flex",alignItems:"center",gap:6,marginBottom:16},children:[t.jsx(du,{size:16})," Cadastrar tutorial"]}),i.length===0?t.jsx("p",{className:"muted",children:"Nenhum tutorial cadastrado ainda."}):t.jsx("div",{style:{display:"grid",gap:8},children:i.map(u=>t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",border:"1px solid #e5e5e5",borderRadius:10},children:[t.jsxs("div",{children:[t.jsx("strong",{children:u.label}),t.jsx("div",{style:{fontSize:12,color:"#999"},children:u.tutorial_updated_on?`Atualizado em ${qN(u.tutorial_updated_on)}`:"sem data"})]}),t.jsxs("div",{style:{display:"flex",gap:6},children:[t.jsx("button",{className:"icon-btn",title:"Editar",onClick:()=>s(u),children:t.jsx(qn,{size:17})}),t.jsx("button",{className:"icon-btn",title:"Excluir",onClick:()=>l(u),children:t.jsx(hr,{size:17})})]})]},u.key))}),(r||a)&&t.jsx(RN,{editing:a,options:a?[a]:c,onClose:d,onSaved:()=>{d(),e.reload()}})]})}function RN({editing:e,options:a,onClose:s,onSaved:r}){var j;const[n,o]=y.useState((e==null?void 0:e.key)??((j=a[0])==null?void 0:j.key)??""),[i,c]=y.useState((e==null?void 0:e.tutorial_video_url)??""),[l,d]=y.useState((e==null?void 0:e.tutorial_body)??""),[u,h]=y.useState((e==null?void 0:e.tutorial_updated_on)??""),[m,f]=y.useState(!1),v=ge(),[g,b]=y.useState(null),p=Yf(i);async function x(){if(!n)return b("Escolha um módulo.");if(!i||!p)return b("Informe um link válido do YouTube.");f(!0),b(null);try{await _n.saveTutorial(n,{tutorial_video_url:i,tutorial_body:l||null,tutorial_updated_on:u||null}),v.ok("Tutorial salvo."),r()}catch(k){const N=String(k.message);b(N),v.erro(N),f(!1)}}return t.jsx("div",{onClick:s,style:{position:"fixed",inset:0,zIndex:50,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},children:t.jsxs("div",{onClick:k=>k.stopPropagation(),style:{background:"#fff",borderRadius:12,maxWidth:560,width:"100%",padding:24},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[t.jsx("h2",{style:{margin:0,fontSize:20},children:e?"Editar tutorial":"Cadastrar tutorial"}),t.jsx("button",{type:"button",onClick:s,"aria-label":"Fechar",style:{border:"none",background:"none",cursor:"pointer",color:"#666"},children:t.jsx(tt,{size:20})})]}),t.jsx("label",{className:"lbl",children:"Módulo"}),e?t.jsx("input",{value:e.label,disabled:!0}):t.jsx("select",{value:n,onChange:k=>o(k.target.value),children:a.map(k=>t.jsx("option",{value:k.key,children:k.label},k.key))}),t.jsx("label",{className:"lbl",style:{marginTop:10},children:"VÃdeo (YouTube)"}),t.jsx("input",{value:i,onChange:k=>c(k.target.value),placeholder:"https://youtu.be/⦠ou watch?v=â¦"}),i&&!p&&t.jsx("small",{style:{color:"#dc2626"},children:"URL do YouTube não reconhecida."}),t.jsx("label",{className:"lbl",style:{marginTop:10},children:"Texto"}
721),t.jsx("textarea",{rows:4,value:l,onChange:k=>d(k.target.value),placeholder:"O que este módulo faz, como usarâ¦"}),t.jsx("label",{className:"lbl",style:{marginTop:10},children:"Data de atualização"}),t.jsx("input",{type:"date",value:u,onChange:k=>h(k.target.value),style:{maxWidth:200}}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:18},children:[t.jsx("button",{className:"btn",onClick:x,disabled:m,children:m?"Salvandoâ¦":"Salvar"}),t.jsx("button",{className:"btn ghost",onClick:s,disabled:m,children:"Cancelar"}),g&&t.jsx("span",{className:"error",children:g})]})]})})}const an="/app/templates",Jc=[{value:"classic",label:"Clássico â menu superior",ready:!0},{value:"sidebar",label:"Lateral â menu à esquerda",ready:!0},{value:"modern",label:"Moderno â capa em destaque (em breve)",ready:!1},{value:"minimal",label:"Minimalista â fotos e agenda (em breve)",ready:!1}],FN=Object.fromEntries(Jc.map(e=>[e.value,e.label]));function ON(){const e=J(),a=D(()=>Hs.list());if(a.error)return t.jsx("p",{className:"error",children:a.error});const s=a.data??[];return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[s.length," templates"]}),t.jsx("button",{className:"btn primary",onClick:()=>e(`${an}/novo`),children:"+ Novo template"})]}),t.jsx("div",{className:"card no-pad",children:t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{style:{width:96},children:"Prévia"}),t.jsx("th",{children:"Nome"}),t.jsx("th",{children:"Layout"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Padrão"}),t.jsx("th",{style:{textAlign:"right"},children:"Ordem"})]})}),t.jsxs("tbody",{children:[s.map(r=>t.jsxs("tr",{onClick:()=>e(`${an}/${r.id}/editar`),children:[t.jsx("td",{children:r.thumbnail?t.jsx("img",{src:r.thumbnail,alt:"",style:{width:80,height:45,objectFit:"cover",borderRadius:6,border:"1px solid rgb(var(--line))"}}):t.jsx("div",{style:{width:80,height:45,display:"grid",placeItems:"center",borderRadius:6,border:"1px dashed rgb(var(--line))",color:"rgb(var(--muted))",fontSize:10},children:"sem prévia"})}),t.jsxs("td",{children:[r.name,r.description&&t.jsx("span",{className:"sub",children:r.description})]}),t.jsx("td",{children:FN[r.layout]??r.layout}),t.jsx("td",{children:r.is_active?"Ativo":"Inativo"}),t.jsx("td",{children:r.is_default?t.jsx(Bi,{size:14,strokeWidth:2,fill:"currentColor"}):"â"}),t.jsx("td",{style:{textAlign:"right"},children:r.sort_order})]},r.id)),s.length===0&&t.jsx("tr",{children:t.jsx("td",{colSpan:6,className:"muted",children:"Nenhum template ainda."})})]})]})})]})}function Ap(){const{id:e}=ne(),a=e!=null,s=D(()=>a?Hs.get(Number(e)):Promise.resolve(null),[e]);return a&&s.loading?t.jsx("p",{className:"muted",children:"Carregandoâ¦"}):s.error?t.jsx("p",{className:"error",children:s.error}):t.jsx(DN,{initial:a?s.data:null})}function DN({initial:e}){var b;const a=J(),s=!e,[r,n]=y.useState(e??{layout:"classic",is_active:!0,is_default:!1,sort_order:0}),[o,i]=y.useState(!1),c=ge(),[l,d]=y.useState(null),u=p=>n(x=>({...x,...p})),h=()=>a(an),m=r.layout??"classic";async function f(){var p;i(!0),d(null);try{if(!((p=r.name)!=null&&p.trim()))throw new Error("Nome é obrigatório.");const x={name:r.name.trim(),description:r.description??null,layout:m,thumbnail:r.thumbnail??null,is_active:r.is_active??!0,is_default:r.is_default??!1,sort_order:r.sort_order??0};if(s){const j=await Hs.create(x);c.ok("Template criado."),a(`${an}/${j.id}/editar`,{replace:!0})}else await Hs.update(e.id,x),c.ok("Alterações salvas.")}catch(x){const j=String(x.message);d(j),c.erro(j)}finally{i(!1)}}async function v(){if(confirm("Excluir este template?")){i(!0);try{await Hs.remove(e.id),h()}catch(p){d(String(p.message)),i(!1)}}}const g=(b=Jc.find(p=>p.value===m))==null?void 0:b.ready;return t.jsxs(Re,{backTo:an,title:s?"Novo template":e.name,children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"Nome",full:!0,children:t.jsx("input",{value:r.name??"",onChange:p=>u({name:p.target.value})})}),t.jsx(S,{label:"Descrição",full:!0,hint:"Aparece como apoio ao escolher o template.",children:t.jsx("textarea",{rows:2,value:r.description??"",onChange:p=>u({description:p.target.value})})}),t.jsx(S,{label:"Layout",hint:g?void 0:"Este layout ainda não foi desenvolvido â
721cai no Clássico até ficar pronto.",children:t.jsx("select",{value:m,onChange:p=>u({layout:p.target.value}),children:Jc.map(p=>t.jsx("option",{value:p.value,children:p.label},p.value))})}),t.jsx(S,{label:"Ordem",hint:"Menor aparece primeiro.",children:t.jsx("input",{type:"number",value:r.sort_order??0,onChange:p=>u({sort_order:Number(p.target.value)})})}),t.jsx(S,{label:"Status",children:t.jsxs("select",{value:r.is_active?"1":"0",onChange:p=>u({is_active:p.target.value==="1"}),children:[t.jsx("option",{value:"1",children:"Ativo (a companhia pode escolher)"}),t.jsx("option",{value:"0",children:"Inativo"})]})}),t.jsx(S,{label:"Padrão",hint:"Usado por quem não escolheu um template.",children:t.jsxs("select",{value:r.is_default?"1":"0",onChange:p=>u({is_default:p.target.value==="1"}),children:[t.jsx("option",{value:"0",children:"Não"}),t.jsx("option",{value:"1",children:"Sim"})]})}),t.jsx(S,{label:"Miniatura (prévia)",full:!0,hint:"Imagem opcional de prévia do template.",children:t.jsx(Wc,{value:r.thumbnail,onChange:p=>u({thumbnail:p}),hint:"Uma captura/ilustração do layout."})})]}),l&&t.jsx("p",{className:"error",children:l}),t.jsxs("footer",{className:"modal-foot",children:[!s&&t.jsx("button",{className:"btn danger",onClick:v,disabled:o,children:"Excluir"}),t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:h,disabled:o,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:f,disabled:o,children:o?"Salvandoâ¦":"Salvar"})]})]})}const BN={admin:"Admin",produtor:"Produtor",artista:"Artista",visitante:"Visitante"};function GN(){const e=J(),{user:a,refresh:s}=Ae(),[r,n]=y.useState((a==null?void 0:a.name)??""),[o,i]=y.useState((a==null?void 0:a.email)??""),[c,l]=y.useState(""),[d,u]=y.useState(!1),h=ge(),[m,f]=y.useState(null),[v,g]=y.useState(!1);async function b(){u(!0),f(null),g(!1);try{if(!r.trim())throw new Error("Nome é obrigatório.");if(!o.trim())throw new Error("E-mail é obrigatório.");await wa.updateMe({name:r.trim(),email:o.trim(),...c?{password:c}:{}}),await s(),l(""),g(!0),h.ok("Dados atualizados.")}catch(p){const x=String(p.message);f(x),h.erro(x)}finally{u(!1)}}return t.jsxs(Re,{backTo:"/app",title:"Minha conta",children:[t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"E-mail",full:!0,children:t.jsx("input",{type:"email",value:o,onChange:p=>i(p.target.value)})}),t.jsx(S,{label:"Papel",children:t.jsx("input",{value:BN[(a==null?void 0:a.role)??""]??(a==null?void 0:a.role)??"",disabled:!0})}),t.jsx(S,{label:"Nome",full:!0,children:t.jsx("input",{value:r,onChange:p=>n(p.target.value)})}),t.jsx(S,{label:"Nova senha",full:!0,hint:"Deixe em branco para manter a senha atual.",children:t.jsx("input",{type:"password",value:c,autoComplete:"new-password",onChange:p=>l(p.target.value)})})]}),m&&t.jsx("p",{className:"error",children:m}),v&&t.jsx("p",{style:{color:"#1a7f37"},children:"Dados atualizados."}),t.jsxs("footer",{className:"modal-foot",children:[t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:()=>e("/app"),disabled:d,children:"Voltar"}),t.jsx("button",{className:"btn primary",onClick:b,disabled:d,children:d?"Salvandoâ¦":"Salvar"})]})]})}function Ss({href:e,to:a,children:s,variant:r="primary",type:n,disabled:o,onClick:i}){const c="inline-flex items-center justify-center gap-2 rounded-xl px-6 py-3 text-base font-semibold transition",l={primary:"bg-giro text-giro-50 hover:bg-giro/90 shadow-sm",ghost:"border border-giro/30 text-giro-ink hover:bg-card",white:"bg-card text-giro-ink hover:bg-giro-100 shadow-sm"}[r],d=`${c} ${l}`;return n?t.jsx("button",{type:n,disabled:o,onClick:i,className:`${d} disabled:opacity-60`,children:s}):a?t.jsx(U,{to:a,className:d,children:s}):t.jsx("a",{href:e,target:e!=null&&e.startsWith("http")?"_blank":void 0,rel:"noreferrer",className:d,children:s})}const zp="w-full rounded-xl border border-giro/20 bg-giro-50 px-4 py-3 text-base text-ink outline-none transition placeholder:text-muted focus:border-giro";function VN({value:e,onChange:a}){return t.jsx("div",{"aria-hidden":!0,className:"absolute left-[-9999px] h-0 w-0 overflow-hidden",children:t.jsxs("label",{children:["Não preencha",t.jsx("input",{type:"text",tabIndex:-1,autoComplete:"off",value:e,onCh
721ange:s=>a(s.target.value)})]})})}const Il=[{label:"Como funciona",anchor:"como-funciona"},{label:"Exemplos",anchor:"exemplos"},{label:"Planos",anchor:"planos"},{label:"Para festivais",to:"/festivais",porta:!0},{label:"A produtora",to:"/produtora"}];function vr(){const{pathname:e}=Pe(),{user:a}=Ae(),[s,r]=O.useState(!1),n=e==="/";O.useEffect(()=>r(!1),[e]),O.useEffect(()=>{if(location.hostname!=="localhost"||!n)return;const c=Il.filter(l=>l.anchor&&!document.getElementById(l.anchor)).map(l=>`#${l.anchor} (${l.label})`);c.length&&console.warn("[SiteHeader] âncoras do menu sem seção correspondente na home:",c.join(", "))},[n,e]);const o=c=>c.anchor?n?`#${c.anchor}`:`/#${c.anchor}`:c.to,i=c=>(e===c.to?"text-giro-ink":"hover:text-giro-ink")+(c.porta?" font-semibold":"");return t.jsxs("header",{className:"sticky top-0 z-20 border-b border-white/10 bg-giro-50/80 backdrop-blur",children:[t.jsxs("div",{className:"flex items-center justify-between px-6 py-4 md:px-12",children:[t.jsxs(U,{to:"/",className:"flex items-center gap-2 text-2xl font-bold tracking-tight text-giro-ink",children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"h-8 w-8 object-contain"}),"Gira"]}),t.jsx("nav",{className:"hidden items-center gap-6 text-sm font-medium text-muted lg:flex",children:Il.map(c=>c.anchor?t.jsx("a",{href:o(c),className:i(c),children:c.label},c.label):t.jsx(U,{to:c.to,className:i(c),children:c.label},c.label))}),t.jsxs("div",{className:"flex items-center gap-2",children:[a?t.jsx(U,{to:"/app",className:"rounded-lg bg-giro px-4 py-2 text-sm font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:"Meu painel"}):t.jsxs(t.Fragment,{children:[t.jsx(U,{to:"/login",className:"rounded-lg border border-giro/30 px-4 py-2 text-sm font-semibold text-giro-ink transition hover:bg-card",children:"Entrar"}),t.jsx(U,{to:"/criar-conta",className:"hidden rounded-lg bg-giro px-4 py-2 text-sm font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90 sm:inline-flex",children:"Começar agora"})]}),t.jsx("button",{type:"button",onClick:()=>r(c=>!c),"aria-label":s?"Fechar menu":"Abrir menu","aria-expanded":s,className:"rounded-lg border border-giro/30 p-2 text-giro-ink transition hover:bg-card lg:hidden",children:s?t.jsx(tt,{size:18}):t.jsx(Tf,{size:18})})]})]}),s&&t.jsx("nav",{className:"border-t border-white/10 bg-giro-50 px-6 py-3 text-sm font-medium text-muted lg:hidden",children:Il.map(c=>c.anchor?t.jsx("a",{href:o(c),onClick:()=>r(!1),className:"block py-2.5 "+i(c),children:c.label},c.label):t.jsx(U,{to:c.to,className:"block py-2.5 "+i(c),children:c.label},c.label))})]})}const UN="https://instagram.com/gira.lat",WN="@gira.lat",Zc="[email protected]",HN="5551999489818",xa=e=>`https://wa.me/${HN}?text=`+encodeURIComponent(e);function jr({waMsg:e}){return t.jsxs("footer",{className:"border-t border-white/10 bg-card px-6 py-12 text-ink",children:[t.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-center justify-between gap-6 md:flex-row",children:[t.jsxs("div",{className:"flex items-center gap-2 text-xl font-bold",children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"h-7 w-7 object-contain"})," Gira",t.jsx("span",{className:"ml-1 text-sm font-normal text-muted",children:"· gira.lat"})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(U,{to:"/map",className:"inline-flex items-center gap-2 rounded-lg bg-giro-100 px-4 py-2 text-sm font-semibold hover:opacity-80",children:[t.jsx(Ja,{size:16})," Mapa de festivais"]}),t.jsxs("a",{href:xa(e),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-lg bg-[#25D366] px-4 py-2 text-sm font-semibold text-[#fff] hover:brightness-95",children:[t.jsx(Fi,{size:16})," WhatsApp"]}),t.jsxs("a",{href:UN,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-lg bg-giro-100 px-4 py-2 text-sm font-semibold hover:opacity-80",children:[t.jsx(Ri,{size:16})," ",WN]}),t.jsxs("a",{href:`mailto:${Zc}`,className:"inline-flex items-center gap-2 rounded-lg bg-giro-100 px-4 py-2 text-sm font-semibold hover:opacity-80",children:[t.jsx(ws,{size:16})," ",Zc]})]})]}),t.jsxs("nav",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-xs text-muted",children:[t.jsx(U,{to:"/",className:"hover:text-giro-ink",children:"Para artistas"}),t.jsx(U,{to:"/festivais",className:"hover:text-giro-ink",children:"Para festivais"}),t.jsx(U,{to:"/produtora",className:"hover:text-giro-ink",children:"A produtora"}),t.jsx(U,{to:"/elenco",className:"hover:text-giro-ink",children:"Elenco"}),t.jsx(U,{to:"/privacidade",className:"hover:text-giro-ink",children:"PolÃtica de privacidade"})]}),t.jsx("p",{className:"mt-4 text-center text-xs text-muted",children:"© 2026 Gira · Produção cultural assistida por tecnologia"})]})}const QN=e=>e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} e ${e[e.length-1]}`;function Su({className:e="",radar:a=!1}){const[s,r]=O.useState(null);if(O.useEffect(()=>{let o=!0;return Rt.stats().then(i=>{o&&r(i)}).catch(()=>{}),()=>{o=!1}},[]),!s)return null;const n=[{n:s.artists,label:s.artists===1?"artista representado":"artistas representados"},{n:s.shows,label:s.shows===1?"produto em repertório":"produtos em repertório"},{n:s.cultural_actions,label:"ações culturais realizadas"},{n:a?s.opportunities:0,label:"oportunidades no Radar"},{n:s.countries.length>1?s.countries.length:0,label:"paÃses"}].filter(o=>o.n>0).slice(0,4);return n.length?t.jsx("section",{className:`px-6 ${e}`,children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:n.map(o=>t.jsxs("div",{className:"rounded-2xl border border-giro/10 bg-card p-6 text-center shadow-sm",children:[t.jsx("div",{className:"text-4xl font-bold tracking-tight text-giro md:text-5xl",children:o.n}),t.jsx("div",{className:"mt-2 text-sm leading-snug text-muted",children:o.label})]},o.label))}),s.countries.length>1&&t.jsxs("p",{className:"mt-4 text-center text-sm text-muted",children:["Artistas em ",QN(s.countries),"."]})]})}):null}const sn={"R$ 497":{parcela:"R$ 50,57",total:"R$ 606,89"},"R$ 397":{parcela:"R$ 40,40",total:"R$ 484,78"},"R$ 1.979":{parcela:"R$ 201,38",total:"R$ 2.416,56"}},gg="Não existe plano mensal: o valor por mês é o plano do ano divi
721dido em 12x no cartão, e o juro do parcelamento é do Mercado Pago â quem cobra é ele, não a Gira.",KN="Olá! Vim pelo site da Gira e quero colocar meu trabalho em circulação.",YN=[{Icon:xt,titulo:"Artista",texto:"Cadastra o trabalho uma vez e ganha página pública, portfólio e documentos técnicos â o que você manda quando pedem material.",href:"#exemplos",link:"Ver sites que saÃram daqui"},{Icon:Wa,titulo:"Festival",texto:"Abre a chamada aqui dentro e recebe as inscrições padronizadas, com release, rider e fotos no lugar certo.",to:"/festivais",link:"Ver o lado do festival"},{Icon:Xa,titulo:"Contratante e produtor",texto:"Vê o trabalho pronto para contratar â e as oportunidades abertas aparecem no mapa público, sem login.",to:"/map",link:"Ver o mapa"}],JN=[{nome:"Seu site",detalhe:"gira.lat/seu-nome, com hospedagem"},{nome:"Página de cada trabalho",detalhe:"sinopse, ficha, fotos e vÃdeo"},{nome:"Página de cada oficina",detalhe:"programa, carga horária e público"},{nome:"portfolio.pdf",detalhe:"trajetória, repertório e contato",arquivo:!0},{nome:"rider.pdf",detalhe:"som, luz, palco e montagem",arquivo:!0},{nome:"croqui.pdf",detalhe:"planta baixa do espaço cênico",arquivo:!0},{nome:"mapa-de-luz.pdf",detalhe:"o desenho de luz, pronto para o técnico",arquivo:!0},{nome:"roteiro-musical.pdf",detalhe:"trilha, autoria e minutagem (ECAD)",arquivo:!0},{nome:"Release",detalhe:"o texto de divulgação, sempre atual"},{nome:"Galeria e clipping",detalhe:"fotos em alta e matérias na imprensa"},{nome:"Histórico de circulação",detalhe:"onde você já passou, ano a ano"}],vg=[{sigla:"pt",nome:"Português"},{sigla:"es",nome:"Espanhol"},{sigla:"en",nome:"Inglês"},{sigla:"fr",nome:"Francês"}],ZN=Object.entries(xr).filter(([e])=>e!=="multi").map(([,e])=>e),XN=["Arquivos espalhados entre Drive, WhatsApp e o celular antigo","Portfólio desatualizado desde a última temporada","Rider que não existe â ou existe em três versões diferentes","Release reescrito à s pressas na véspera de cada inscrição","Croqui e mapa de luz que dependem de um produtor técnico","Material só em português, e o festival é lá fora","Cada edital começando do zero"],ek=["Um cadastro só, feito uma vez","Portfólio que se refaz sozinho quando você muda algo","Rider, croqui e mapa de luz saindo da mesma ficha técnica","Release pronto, na sua voz, atualizado junto","Documentos técnicos sem depender de ninguém","Quatro idiomas, cada um com a sua URL","Um link só, que você manda para todo mundo"],tk=[{n:"1",titulo:"Cadastre você e o seu trabalho",texto:"Quem é você, o que você faz, a sinopse, a equipe. Em campos simples, sem saber design nem programação."},{n:"2",titulo:"Suba as fotos e a ficha técnica",texto:"Espaço cênico, tempo de montagem, necessidades de som e luz, trilha. à a parte que você responde uma vez só."},{n:"3",titulo:"A Gira monta tudo",texto:"Site no ar, PDFs prontos, traduções feitas. A partir daÃ, cada mudança sua atualiza todo o material junto."}],ak=[{titulo:"Radar de oportunidades",texto:"A Gira acompanha festivais, mostras, credenciamentos do Sesc e editais de circo, palhaçaria e teatro de rua â na América Latina e na Europa. Cada achado chega triado, com prazo. à o que a assinatura paga: a curadoria é garimpada uma a uma."},{titulo:"IA que leu o seu cadastro",texto:"Ela responde sobre o seu trabalho, não sobre arte em geral: analisa se um edital combina com o seu trabalho, rascunha as respostas a partir do seu material e escreve as versões em outros idiomas. Roda com a sua chave gratuita do Gemini â a cota é sua."},{titulo:"Extensão que preenche formulário",texto:"Aquele Google Forms de trinta campos que pede sempre as mesmas coisas: a extensão do Chrome preenche com o que já está no seu cadastro. Você revisa e envia."},{titulo:"Histórico que não se perde",texto:"Cada inscrição fica registrada com a análise do edital, o comprovante do envio e o status até sair o resultado. No fim do ano você sabe onde se inscreveu e o que deu."}],sk=[{nome:"Gira Livre",preco:null,linha:"Para existir bem: seu site no ar, portfólio e livro em PDF, e o seu repertório organizado num lugar só.",oferta:null,destaque:!1,economia:null,teto:"Até 3 trabalhos e 3 oficinas · site e portfólio sem limite de visitas"}
721,{nome:"Fundadores",preco:"R$ 397",linha:"Mesmo produto, preço de lançamento. Ele não sobe enquanto você for assinante.",oferta:"fundador-anual",destaque:!0,economia:"Economize R$ 100 por ano",teto:null},{nome:"Gira Base",preco:"R$ 497",linha:"Para quem já circula e quer parar de refazer material.",oferta:"base-anual",destaque:!1,economia:null,teto:null}],rk=[{q:"Preciso saber design?",a:"Não. O desenho já está feito. Você escreve sobre o seu trabalho em campos simples e escolhe a identidade da companhia â logo e cores. O site e os PDFs saem diagramados, sem você abrir Canva nem InDesign."},{q:"Preciso saber programação?",a:"Não. Nada aqui pede código. Seu site fica no ar em gira.lat/seu-nome no dia em que você terminar o cadastro."},{q:"Quantos trabalhos posso cadastrar?",a:"No plano pago, quantos você quiser â não há limite de trabalhos, de oficinas nem de documentos gerados, porque o plano é por artista ou companhia, não por peça. No Gira Livre são até 3 trabalhos e 3 oficinas. Passar do limite nunca apaga nada do que já está lá."},{q:"Preciso pagar para começar?",a:"Não. Você cria a conta, monta o perfil, publica o seu site e gera o portfólio em PDF sem pagar nada, sem cartão e sem prazo para expirar. O que a assinatura libera é a circulação: o Radar de oportunidades com o link de cada edital, a inscrição guiada, os documentos técnicos, as traduções e a IA que escreve por você."},{q:"Como funciona a atualização dos documentos?",a:"Esse é o coração da coisa. Você muda uma foto, um integrante do elenco ou uma linha da ficha técnica, e todos os materiais se refazem junto. Você não reexporta nem reenvia nada: o link que você mandou mês passado já está atualizado."},{q:"A plataforma gera PDFs mesmo?",a:"Sim, e você pode conferir antes de assinar: o portfólio do Tuiga aqui em cima abre nos quatro idiomas. Portfólio, rider, croqui, mapa de luz e roteiro musical saem em PDF, prontos para anexar."},{q:"A plataforma traduz?",a:"Sim â espanhol, inglês e francês, do site e do portfólio, a partir do que você escreveu em português. Cada idioma tem a sua própria URL, para mandar direto ao festival de fora. Você pode revisar e ajustar qualquer texto."},{q:"Quem faz a inscrição, eu ou vocês?",a:"Você faz â muito mais rápido. A IA lê o edital e diz se ele combina com o seu trabalho, rascunha as respostas a partir do que você cadastrou, e a extensão preenche o formulário. Você revisa e envia. A Gira não envia inscrição no seu lugar."},{q:"Posso usar meu próprio domÃnio?",a:"Seu site já fica em gira.lat/seu-nome, com hospedagem incluÃda. DomÃnio próprio a gente configura sob demanda."},{q:"Posso cancelar?",a:"Quando quiser â não há fidelidade, e o plano não renova sozinho. Ao fim do perÃodo você não perde a conta nem o material: cai no Gira Livre e continua entrando, com o seu site no ar e tudo o que você cadastrou visÃvel, inclusive o que passa de 3 trabalhos. O limite impede cadastrar mais um, nunca apaga o que já existe. Só uma coisa para não haver surpresa: se você parcelou no cartão, as parcelas seguem, porque o parcelamento é da compra do ano inteiro e não uma mensalidade."}];function va({n:e,children:a}){return t.jsxs("div",{className:"mb-8 flex items-baseline gap-4",children:[t.jsx("span",{className:"text-sm font-bold tabular-nums text-giro",children:e}),t.jsx("h2",{className:"text-3xl font-bold leading-tight tracking-tight md:text-4xl",children:a})]})}function Tp({to:e,children:a}){return t.jsx(U,{to:e,className:"inline-flex items-center justify-center gap-2 rounded-xl bg-giro px-7 py-4 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:a})}function nk(){return t.jsxs("div",{className:"rounded-2xl border border-giro/20 bg-card p-6 shadow-sm md:p-7",children:[t.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-muted",children:"Feito pela plataforma, não à mão"}),t.jsx("div",{className:"mt-2 text-lg font-bold text-giro-ink",children:"Portfólio do Andre Tuiga"}),t.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:"Saiu do cadastro dele, em quatro idiomas. Abra e veja o que o seu pode ser."}),t.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:vg.map((e,a)=>t.jsxs("a",{href:`/tuiga/portfolio${e.sigla==="pt"?"":`-${e.sigla}`}.pdf`,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-lg px-4 py-2.5 text-sm font-semibold transition "+(a===0?"bg-giro text-giro-50 hover:bg-giro/90":"border border-giro/25 text-giro-ink hover:bg-giro-50"),children:[a===0&&t.jsx(rr,{size:15}),e.nome]},e.sigla))})]})}const ok=[{src:"/telas/painel.jpg",legenda:"O painel: prazos fechando, inscrições envi
721adas e resultados a conferir â telas reais, com dados reais."},{src:"/telas/espetaculos.jpg",legenda:"O repertório cadastrado. à daqui que saem o site, o portfólio e todos os documentos técnicos."},{src:"/telas/radar.jpg",legenda:"O Radar: festivais e editais triados, com prazo e link de inscrição."}];function ik(){const[e,a]=O.useState({}),s=ok.filter(r=>!e[r.src]);return s.length?t.jsx("section",{className:"bg-card px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx(va,{n:"05",children:"Tem um software por trás."}),t.jsx("p",{className:"mb-10 max-w-2xl text-lg leading-relaxed text-muted",children:"A Gira não é um serviço de diagramação nem um modelo de site. à uma plataforma onde a sua carreira fica organizada â e é ela que gera tudo o que você viu até aqui."}),t.jsx("div",{className:"space-y-10",children:s.map(r=>t.jsxs("figure",{children:[t.jsx("div",{className:"overflow-hidden rounded-2xl border border-white/10 shadow-lg",children:t.jsx("img",{src:r.src,alt:r.legenda,loading:"lazy",onError:()=>a(n=>({...n,[r.src]:!0})),className:"w-full"})}),t.jsx("figcaption",{className:"mt-3 text-sm text-muted",children:r.legenda})]},r.src))})]})}):null}const Ip=["tuiga","rocio-walls"];function lk(){const[e,a]=O.useState(null);if(O.useEffect(()=>{let o=!0;return Rt.artists().then(i=>o&&a(i.items)).catch(()=>{}),()=>{o=!1}},[]),!(e!=null&&e.length))return null;const s=[...Ip.map(o=>e.find(i=>i.slug===o)).filter(o=>!!o),...e.filter(o=>!Ip.includes(o.slug))],[r,n]=[s.slice(0,2),s.slice(2)];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid gap-5 md:grid-cols-2",children:r.map(o=>t.jsxs("div",{className:"flex flex-col rounded-2xl border border-white/10 bg-card p-6",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("span",{className:"h-14 w-14 shrink-0 overflow-hidden rounded-full bg-giro-100",children:o.profile_photo&&t.jsx("img",{src:o.profile_photo,alt:o.name,width:56,height:56,loading:"lazy",className:"h-full w-full object-cover"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"font-bold leading-tight text-giro-ink",children:o.name}),t.jsx("div",{className:"mt-0.5 text-sm text-muted",children:[o.city,o.state].filter(Boolean).join(", ")})]})]}),o.subtitle&&t.jsx("p",{className:"mt-4 line-clamp-2 text-sm leading-relaxed text-muted",children:o.subtitle}),t.jsxs("div",{className:"mt-5 flex flex-1 flex-wrap items-end gap-4 text-sm font-semibold",children:[t.jsxs(U,{to:`/${o.slug}`,className:"inline-flex items-center gap-1 text-giro transition hover:opacity-70",children:["Ver página ",t.jsx(qr,{size:15})]}),t.jsxs("a",{href:`/${o.slug}/portfolio.pdf`,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 text-muted transition hover:text-giro-ink",children:[t.jsx(rr,{size:14})," portfólio"]})]})]},o.slug))}),n.length>0&&t.jsxs("ul",{className:"mt-6 flex list-none flex-wrap items-center gap-x-3 gap-y-2 text-sm",children:[t.jsx("li",{className:"text-muted",children:"Também na Gira:"}),n.map(o=>t.jsx("li",{children:t.jsxs(U,{to:`/${o.slug}`,className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-card py-1 pl-1 pr-3 font-medium text-giro-ink transition hover:border-giro/30",children:[t.jsx("span",{className:"h-6 w-6 overflow-hidden rounded-full bg-giro-100",children:o.profile_photo&&t.jsx("img",{src:o.profile_photo,alt:"",width:24,height:24,loading:"lazy",className:"h-full w-full object-cover"})}),o.name]})},o.slug))]})]})}function ck(){const[e,a]=O.useState(null);if(O.useEffect(()=>{let o=!0;return Rt.stats().then(i=>o&&a(i)).catch(()=>{}),()=>{o=!1}},[]),!(e!=null&&e.founders_total))return null;const s=Math.min(e.founders_taken,e.founders_total),r=e.founders_total-s,n=Math.round(s/e.founders_total*100);return t.jsxs("div",{className:"mt-5",children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3 text-sm",children:[t.jsxs("span",{className:"font-semibold text-giro-ink",children:[s," de ",e.founders_total," vagas"]}),t.jsx("span",{className:"text-muted",children:r>0?`restam ${r}`:"esgotado"})]}),t.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-giro-50",children:t.jsx("div",{className:"h-full rounded-full bg-giro transition-all duration-700",style:{width:`${Math.max(n,4)}%`}})})]})}function dk(){const[e,a]=O.useState(""),[s,r]=O.useState(""),[n,o]=O.useState(""),[i,c]=O.useState("idle"),[l,d]=O.useState(null);async function u(h){if(h.preventDefault(),i!=="enviando"){c("enviando"),d(null);try{await Rt.createLead({email:e,name:s,website:n}),c("ok")}catch(m){c("idle"),d(m instanceof Error?m.message:"Não deu para enviar agora.")}}}return t.jsxs("div",{className:"rounded-2xl border border-giro/15 bg-card p-8 md:p-10",children:[t.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-muted",children:[t.jsx(ws,{size:14})," Grátis, sem assinar nada"]}),t.jsx("h2",{className:"mt-3 text-2xl font-bold leading-tight md:text-3xl",children:"Receba as oportunidades do mês."}),t.jsx("p",{className:"mt-3 max-w-xl text-base leading-relaxed text-muted",children:"Festivais, mostras e editais de circo, palhaçaria e teatro de rua que abrirem inscrição â os mesmos que o Radar da Gira já acompanha."}),i==="ok"?t.jsx("p",{className:"mt-7 rounded-xl bg-giro-50 p-5 text-base font-semibold text-giro-ink",children:"Pronto. Você entra na próxima lista."}):t.jsxs("form",{onSubmit:u,className:"mt-7 max-w-xl",children:[t.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[t.jsx("input",{type:"text",value:s,onChange:h=>r(h.target.value),placeholder:"Seu nome (opcional)",autoComplete:"name",maxLength:160,className:zp}
721),t.jsx("input",{type:"email",required:!0,value:e,onChange:h=>a(h.target.value),placeholder:"[email protected]",autoComplete:"email",maxLength:160,className:zp})]}),t.jsx(VN,{value:n,onChange:o}),t.jsx("button",{type:"submit",disabled:i==="enviando",className:"mt-3 inline-flex w-full items-center justify-center gap-2 rounded-xl bg-giro px-6 py-3.5 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90 disabled:opacity-60 sm:w-auto",children:i==="enviando"?t.jsxs(t.Fragment,{children:[t.jsx(js,{size:18,className:"animate-spin"})," Enviandoâ¦"]}):t.jsxs(t.Fragment,{children:["Quero receber ",t.jsx(ae,{size:18})]})}),l&&t.jsx("p",{className:"mt-3 text-sm text-red-400",children:l}),t.jsx("p",{className:"mt-4 text-xs text-muted",children:"Sem spam. à só a lista â você sai quando quiser."})]})]})}function uk(){return t.jsxs("div",{className:"min-h-screen scroll-smooth bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsx("section",{className:"px-6 pt-14 md:pt-20",children:t.jsxs("div",{className:"mx-auto max-w-6xl",children:[t.jsxs("div",{className:"grid items-start gap-12 lg:grid-cols-[1.05fr_0.95fr]",children:[t.jsxs("div",{children:[t.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-giro/20 bg-card px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink",children:[t.jsx(xt,{size:14})," A rede da classe artÃstica"]}),t.jsxs("h1",{className:"mt-5 text-4xl font-bold leading-[1.05] tracking-tight md:text-6xl",children:["Artista, festival e contratante",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"na mesma roda."})]}),t.jsxs("p",{className:"mt-7 max-w-xl text-lg leading-relaxed text-muted md:text-xl",children:["à assim que a circulação acontece. Você entra pelo seu trabalho â site, portfólio, release e documentos técnicos em quatro idiomas, a partir de"," ",t.jsx("strong",{className:"font-semibold text-ink",children:"um cadastro só"}),". Do outro lado do mesmo balcão, festivais abrem chamada aqui dentro, e a sua inscrição sai em poucos cliques com tudo já pronto."]}),t.jsxs("div",{className:"mt-9 flex flex-wrap items-center gap-3",children:[t.jsxs(Tp,{to:"/criar-conta",children:["Começar agora ",t.jsx(ae,{size:18})]}),t.jsx("a",{href:"#gera",className:"inline-flex items-center justify-center gap-2 rounded-xl border border-giro/25 px-7 py-4 text-base font-semibold text-giro-ink transition hover:bg-card",children:"Ver tudo que a Gira gera"})]}),t.jsx("p",{className:"mt-6 text-sm text-muted",children:"Comece grátis · sem cartão · sem fidelidade"})]}),t.jsx(nk,{})]}),t.jsx("div",{className:"mt-14 overflow-hidden rounded-2xl border border-giro/10",children:t.jsx("img",{src:"/lp-publico-roda.jpg",alt:"Público reunido em roda em volta do espetáculo, visto de cima",className:"aspect-[21/9] w-full object-cover",loading:"lazy"})}),t.jsx("div",{className:"mt-4 grid gap-3 md:grid-cols-3",children:YN.map(e=>{const a="block rounded-2xl border border-white/10 bg-card p-6 transition hover:border-giro/30",s=t.jsxs(t.Fragment,{children:[t.jsx(e.Icon,{size:20,className:"text-giro"}),t.jsx("div",{className:"mt-3 font-semibold text-giro-ink",children:e.titulo}),t.jsx("p",{className:"mt-1.5 text-sm leading-relaxed text-muted",children:e.texto}),t.jsxs("span",{className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-giro",children:[e.link," ",t.jsx(qr,{size:15})]})]});return e.href?t.jsx("a",{href:e.href,className:a,children:s},e.titulo):t.jsx(U,{to:e.to,className:a,children:s},e.titulo)})})]})}),t.jsx("section",{className:"px-6 pt-14",children:t.jsxs("div",{className:"mx-auto max-w-5xl rounded-2xl border border-white/10 bg-card p-7 md:p-9",children:[t.jsx("h2",{className:"text-xl font-bold text-giro-ink md:text-2xl",children:"Feita para qualquer linguagem."}),t.jsx("p",{className:"mt-2 max-w-2xl text-base leading-relaxed text-muted",children:"Espetáculo, oficina, exposição, mural, show, performance, residência ou projeto educativo â se é trabalho artÃstico que precisa circular, a Gira organiza."}),t.jsx("ul",{className:"mt-6 flex list-none flex-wrap gap-2",children:ZN.map(e=>t.jsx("li",{className:"rounded-full border border-giro/20 bg-giro-50 px-4 py-1.5 text-sm font-medium text-giro-ink",children:e},e))})]})}),t.jsx("section",{id:"gera",className:"px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsxs("div",{className:"mb-4 flex items-baseline gap-4",children:[t.jsx("span",{className:"text-sm font-bold tabular-nums text-giro",children:"01"}),t.jsxs("h2",{className:"text-3xl font-bold leading-tight tracking-tight md:text-5xl",children:["Um cadastro.",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"Onze materiais. Quatro idiomas."})]})]}),t.jsx("p",{className:"mb-12 max-w-2xl pl-9 text-lg leading-relaxed text-muted",children:"Tudo isto sai do mesmo lugar â e se refaz sozinho toda vez que você muda alguma coisa."}),t.jsx("ul",{className:"grid list-none gap-3 sm:grid-cols-2 lg:grid-cols-3",children:JN.map(e=>t.jsx("li",{className:"rounded-xl border border-white/10 bg-card p-5",children:t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Ze,{size:17,className:"mt-0.5 shrink-0 text-giro"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"font-semibold leading-snug text-giro-ink "+(e.arquivo?"font-mono text-sm":""),children:e.nome}),t.jsx("div",{className:"mt-1 text-sm leading-snug text-muted",children:e.detalhe})]})]})},e.nome))}),t.jsxs("div",{className:"mt-6 rounded-xl border border-giro/20 bg-card p-6",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3",children:[t.jsx("span",{className:"font-semibold text-giro-ink",children:"E cada um deles em quatro idiomas:"}),t.jsx("span",{className:"flex flex-wrap gap-2",children:vg.map(e=>t.jsx("span",{className:"rounded-full bg-giro-50 px-3 py-1 text-sm font-medium text-giro-ink",children:e.nome},e.sigla))})]}),t.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:"Cada idioma com a sua própria URL, para você mandar direto ao festival de fora."}),t.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:"Site, portfólio, release, galeria e histórico valem para qualquer linguagem. Rider, croqui e mapa de luz são documentos de palco â saem para os trabalhos que sobem em cena."})]})]})}),t.jsx("section",{className:"bg-card px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx(va,{n:"02",children:"O que muda no seu dia."}),t.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[t.jsxs("div",{className:"rounded-2xl border border-white/10 bg-giro-50 p-7",children:[t.jsx("h3",{className:"mb-5 text-lg font-bold text-muted",children:"Sem a Gira"}),t.jsx("ul",{className:"list-none space-y-3.5",children:XN.map(e=>t.jsxs("li",{className:"flex gap-3 text-sm leading-relaxed text-muted",children:[t.jsx(tt,{size:16,strokeWidth:2.4,className:"mt-0.5 shrink-0"}),e]},e))})]}),t.jsxs("div",{className:"rounded-2xl border-2 border-giro bg-giro-50 p-7",children:[t.jsx("h3",{className:"mb-5 text-lg font-bold text-giro-ink",children:"Com a Gira"}),t.jsx("ul",{className:"list-none space-y-3.5",children:ek.map(e=>t.jsxs("li",{className:"flex gap-3 text-sm leading-relaxed text-ink",children:[t.jsx(Ze,{size:17,className:"mt-0.5 shrink-0 text-giro"}),e]},e))})]})]})]})}),t.jsx("section",{id:"como-funciona",className:"px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx(va,{n:"03",children:"Como funciona."}),t.jsx("div",{className:"grid gap-8 md:grid-cols-3",children:tk.map(e=>t.jsxs("div",{children:[t.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-giro text-lg font-bold text-giro-50",children:e.n}),t.jsx("h3",{className:"mt-5 text-lg font-bold text-giro-ink",children:e.titulo}),t.jsx("p",{className:"mt-2 text-base leading-relaxed text-muted",children:e.texto})]},e.n))})]})}),t.jsxs("section",{id:"exemplos",className:"bg-card px-6 py-20 md:py-28",children:[t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx(va,{n:"04",children:"Estes sites saÃram daqui."}),t.jsx("p",{className:"mb-10 max-w-2xl text-lg leading-relaxed text-muted",children:"Nenhum foi feito à mão. Cada um preencheu o cadastro â o site, o portfólio e os documentos vieram junto. Abra e confira."}),t.jsx(lk,{})]}),t.jsx(Su,{className:"mt-16",radar:!0})]}),t.jsx(ik,{}),t.jsx("section",{className:"px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsx(va,{n:"06",children:"O que mais vem junto."}),t.jsx("div",{className:"grid gap-x-10 gap-y-9 md:grid-cols-2",children:ak.map(e=>t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-giro-ink",children:e.titulo}),t.jsx("p",{className:"mt-2 text-base leading-relaxed text-muted",children:e.texto})]},e.titulo))})]})}),t.jsx("section",{className:"bg-card px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-3xl",children:[t.jsx(va,{n:"07",children:"Quem fez isto."}),t.jsxs("div",{className:"space-y-5 text-lg leading-relaxed text-ink md:text-xl",children:[t.jsx("p",{children:"Eu sou palhaço. Trabalho com circo e teatro de rua, moro em Porto Alegre e passo boa parte do ano na estrada, com espetáculo montado em praça."}),t.jsxs("p",{children:["A Gira nasceu de uma conta que não fechava:"," ",t.jsx("strong",{className:"font-semibold text-giro-ink",children:"eu passei mais tempo escrevendo editais e me inscrevendo em festivais do que criando e ensaiando"}),". São mil formulários, todos diferentes, sempre pedindo a mesma coisa â e a cada um deles o mesmo release reescrito à s pressas na véspera, o rider que não existia, o portfólio desatualizado."]}),t.jsx("p",{className:"font-semibold text-giro-ink",children:"Então eu construà a ferramenta que eu precisava â e ela funciona porque foi feita de dentro, por quem conhece o formulário pelo lado de quem preenche."})]}),t.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[t.jsxs("div",{children:[t.jsx("div",{className:"font-bold text-giro-ink",children:"Andre Tuiga"}),t.jsx("div",{className:"text-sm text-muted",children:"Palhaço e produtor cultural · fundador da Gira"})]}),t.jsxs(U,{to:"/tuiga",className:"ml-auto inline-flex items-center gap-1.5 text-sm font-semibold text-giro transition hover:opacity-70",children:["A trajetória dele ",t.jsx(qr,{size:15})]})]})]})}),t.jsx("section",{id:"planos",className:"bg-card px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-4xl",children:[t.jsx(va,{n:"08",children:"Quanto custa."}),t.jsx("p",{className:"mb-10 max-w-2xl text-lg leading-relaxed text-muted",children:"Começar não custa nada e não expira. Quando quiser tirar o limite, é um plano anual â sem mensalidade, sem fidelidade e sem cobrar por documento gerado."}),t.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:sk.map(e=>t.jsxs("div",{className:"flex flex-col rounded-2xl p-7 "+(e.destaque?"border-2 border-giro bg-giro-50":"border border-white/10 bg-giro-50"),children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[t.jsx("h3",{className:"text-lg font-bold text-giro-ink",children:e.nome}),e.destaque&&t.jsx("span",{className:"rounded-full bg-giro px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-giro-50",children:"lançamento"})]}),e.preco?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-5 flex items-baseline gap-2",children:[t.jsx("span",{className:"text-4xl font-bold tracking-tight text-ink md:text-5xl",children:sn[e.preco].parcela}),t.jsx("span",{className:"text-base text-muted",children:"/mês"})]}),t.jsxs("p",{className:"mt-1.5 text-sm text-muted",children:["em 12x no cartão, com juros · ou ",e.preco," à vista por ano"]})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mt-5 flex items-baseline gap-2",children:t.jsx("span",{className:"text-4xl font-bold tracking-tight text-ink md:text-5xl",children:"Grátis"})}),t.jsx("p",{className:"mt-1.5 text-sm text-muted",children:"sem cartão e sem prazo para expirar"})]}
721),e.teto&&t.jsx("p",{className:"mt-3 inline-flex w-fit rounded-lg border border-white/10 px-3 py-1.5 text-sm text-muted",children:e.teto}),e.economia&&t.jsx("p",{className:"mt-3 inline-flex w-fit rounded-lg bg-giro-100 px-3 py-1.5 text-sm font-semibold text-giro-ink",children:e.economia}),e.destaque&&t.jsx(ck,{}),t.jsx("p",{className:"mt-5 flex-1 text-base leading-relaxed text-muted",children:e.linha}),t.jsxs(U,{to:e.oferta?`/criar-conta?oferta=${e.oferta}`:"/criar-conta?plano=livre",className:"mt-7 inline-flex items-center justify-center gap-2 rounded-xl px-5 py-3.5 text-base font-semibold transition "+(e.destaque?"bg-giro text-giro-50 shadow-sm hover:bg-giro/90":"border border-giro/25 text-giro-ink hover:bg-card"),children:[e.oferta?"Começar agora":"Criar conta grátis"," ",t.jsx(ae,{size:16})]})]},e.nome))}),t.jsx("p",{className:"mt-7 text-sm leading-relaxed text-muted",children:"Os dois planos pagos dão acesso a tudo â site, portfólio, documentos técnicos, traduções, Radar, IA e extensão. Sem limite de trabalhos, de oficinas nem de documentos gerados. No Gira Livre ficam de fora a inscrição guiada, os documentos técnicos, as traduções e a IA que escreve por você; o que você cadastrou é seu e continua no ar mesmo se você parar de assinar."}),t.jsx("p",{className:"mt-7",children:t.jsxs(U,{to:"/planos",className:"inline-flex items-center gap-2 text-base font-semibold text-giro hover:opacity-70",children:["Comparar os planos linha a linha ",t.jsx(ae,{size:16})]})}),t.jsxs("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:[gg," Em 12x, o Fundadores fecha em"," ",sn["R$ 397"].total," e o Base em ",sn["R$ 497"].total,". à vista, R$ 397 e R$ 497."]})]})}),t.jsx("section",{id:"faq",className:"px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-3xl",children:[t.jsx(va,{n:"09",children:"Perguntas."}),t.jsx("div",{className:"divide-y divide-white/10 border-y border-white/10",children:rk.map(e=>t.jsxs("details",{className:"group py-4 [&_summary]:cursor-pointer",children:[t.jsxs("summary",{className:"flex list-none items-center justify-between gap-4 text-base font-semibold text-ink",children:[e.q,t.jsx(Sf,{size:18,className:"shrink-0 text-giro transition-transform group-open:rotate-180"})]}),t.jsx("p",{className:"mt-3 max-w-2xl text-base leading-relaxed text-muted",children:e.a})]},e.q))})]})}),t.jsx("section",{className:"px-6 pb-8",children:t.jsx("div",{className:"mx-auto max-w-4xl",children:t.jsx(dk,{})})}),t.jsx("section",{className:"px-6 py-20 md:py-28",children:t.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[t.jsxs("h2",{className:"text-3xl font-bold leading-[1.15] tracking-tight md:text-5xl",children:["Você cria.",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"A Gira organiza, traduz e publica."})]}),t.jsx("p",{className:"mx-auto mt-6 max-w-xl text-lg leading-relaxed text-muted",children:"Toda a comunicação profissional do seu trabalho a partir de um cadastro só â e sempre atualizada, no mesmo link, para sempre."}),t.jsx("div",{className:"mt-9 flex justify-center",children:t.jsxs(Tp,{to:"/criar-conta",children:["Começar agora ",t.jsx(ae,{size:18})]})}),t.jsx("p",{className:"mt-5 text-sm text-muted",children:"Prefere conversar antes? à o mesmo botão â quem responde é o André."})]})}),t.jsx("section",{className:"px-6 pb-20",children:t.jsxs("div",{className:"mx-auto grid max-w-4xl gap-4 md:grid-cols-2",children:[t.jsxs(U,{to:"/festivais",className:"rounded-2xl border border-white/10 bg-card p-6 transition hover:border-giro/30",children:[t.jsx("div",{className:"text-sm font-semibold text-giro-ink",children:"Você organiza um festival?"}),t.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:"Tem uma plataforma do outro lado do balcão â abrir a chamada, receber inscrições e fazer a curadoria num painel só."}),t.jsxs("span",{className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-giro",children:["Ver ",t.jsx(qr,{size:15})]})]}),t.jsxs(U,{to:"/produtora",className:"rounded-2xl border border-white/10 bg-card p-6 transition hover:border-giro/30",children:[t.jsx("div",{className:"text-sm font-semibold text-giro-ink",children:"Quer contratar um artista?"}),t.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:"A Gira também é produtora: representa artistas, negocia com contratantes e coloca espetáculo na estrada."}),t.jsxs("span",{className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-giro",children:["Ver a produtora ",t.jsx(qr,{size:15})]})]})]})}),t.jsx(jr,{waMsg:KN})]})}function mk({className:e=""}){return t.jsx("section",{className:`px-6 ${e}`,children:t.jsxs("div",{className:"mx-auto flex max-w-3xl flex-col items-center gap-6 rounded-2xl border border-giro/10 bg-card p-8 text-center shadow-sm md:p-12",children:[t.jsxs("p",{className:"text-lg leading-relaxed text-giro-ink md:text-xl",children:["Fundada por ",t.jsx("strong",{className:"font-semibold",children:"Andre Tuiga"}),", artista e produtor cultural, a Gira representa artistas cuja pesquisa dialoga com a linguagem do circo, da palhaçaria e do teatro fÃsico."]}),t.jsxs(U,{to:"/tuiga",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-giro transition hover:opacity-70",children:["Conheça a trajetória dele ",t.jsx(ae,{size:15})]})]})})}const $p=xa("Olá! Vim pelo site da Gira e quero contratar um artista representado por vocês."),pk=xa("Olá! Vim pelo site da Gira e quero falar sobre produção de um projeto cultural."),hk=[{key:"artistas",to:"/",Icon:xt,etiqueta:"Para artistas e companhias",titulo:"Mais tempo criando. Menos tempo preenchendo formulários.",texto:"A plataforma organiza sua carreira, gera os documentos que o edital pede e mostra as oportunidades que combinam
721com o seu trabalho.",itens:[{Icon:ks,t:"Portfólio, release e rider sempre prontos"},{Icon:Mn,t:"Radar de festivais, mostras e editais"},{Icon:Ff,t:"Inscrições preenchidas com IA"},{Icon:Ja,t:"Site profissional em quatro idiomas"}],cta:"Conhecer a plataforma para artistas",estado:null},{key:"festivais",to:"/festivais",Icon:Wa,etiqueta:"Para festivais e mostras",titulo:"Menos planilhas. Mais tempo para cuidar da programação.",texto:"Abra a chamada, receba as inscrições padronizadas e faça a curadoria num painel só â sem Google Forms, sem pasta compartilhada, sem e-mail perdido.",itens:[{Icon:Di,t:"Chamada pública com link próprio"},{Icon:Pf,t:"Inscrições padronizadas num painel"},{Icon:Be,t:"Curadoria com parecer e nota"},{Icon:eu,t:"Histórico de todas as edições"}],cta:"Conhecer a plataforma para festivais",estado:"Primeiros festivais"}],xk=[{Icon:xt,text:"Representação artÃstica"},{Icon:wb,text:"Produção executiva"},{Icon:Di,text:"Circulação de produtos culturais"},{Icon:Wa,text:"Festivais e mostras"},{Icon:Be,text:"Projetos culturais"},{Icon:Mi,text:"Assessoria"}];function Zt({href:e,to:a,children:s,variant:r="primary"}){const n="inline-flex items-center justify-center gap-2 rounded-xl px-6 py-3 text-base font-semibold transition",o={primary:"bg-giro text-giro-50 hover:bg-giro/90 shadow-sm",ghost:"border border-giro/30 text-giro-ink hover:bg-card",white:"bg-card text-giro-ink hover:bg-giro-100 shadow-sm"}[r],i=`${n} ${o}`;return a?t.jsx(U,{to:a,className:i,children:s}):t.jsx("a",{href:e,target:e!=null&&e.startsWith("http")?"_blank":void 0,rel:"noreferrer",className:i,children:s})}function fk(){const[e,a]=O.useState(null);if(O.useEffect(()=>{let r=!0;return Rt.artists().then(n=>r&&a(n.items)).catch(()=>{}),()=>{r=!1}},[]),!(e!=null&&e.length))return null;const s=r=>r.split(/\s+/).slice(0,2).map(n=>n[0]).join("").toUpperCase();return t.jsx("ul",{className:"mx-auto mt-10 flex max-w-4xl list-none flex-wrap items-start justify-center gap-x-8 gap-y-8",children:e.map(r=>t.jsx("li",{className:"w-28 sm:w-32",children:t.jsxs(U,{to:`/${r.slug}`,className:"group block text-center",children:[t.jsx("span",{className:"mx-auto block h-24 w-24 overflow-hidden rounded-full bg-giro-100 sm:h-28 sm:w-28",children:r.profile_photo?t.jsx("img",{src:r.profile_photo,alt:r.name,loading:"lazy",className:"h-full w-full object-cover transition duration-500 group-hover:scale-105"}):t.jsx("span",{className:"flex h-full w-full items-center justify-center text-2xl font-bold text-muted",children:s(r.name)})}),t.jsx("span",{className:"mt-3 block text-sm font-semibold leading-tight text-giro-ink",children:r.name}),r.subtitle&&t.jsx("span",{className:"mt-1 line-clamp-2 text-xs leading-snug text-muted",children:r.subtitle})]})},r.slug))})}function gk(){return t.jsxs("div",{className:"min-h-screen scroll-smooth bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsxs("section",{className:"px-6 pt-16 pb-12 text-center md:pt-24",children:[t.jsx("span",{className:"mb-5 inline-block rounded-full bg-card px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink shadow-sm",children:"Ecossistema de circulação artÃstica"}),t.jsxs("h1",{className:"mx-auto max-w-4xl text-4xl font-bold leading-[1.1] tracking-tight md:text-6xl",children:["A Gira conecta quem cria",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"com quem programa."})]}),t.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-lg leading-relaxed text-muted",children:"Uma plataforma para artistas. Outra para festivais. Um único ecossistema que une produção cultural, tecnologia e inteligência de dados para fortalecer a circulação artÃstica."}),t.jsxs("div",{className:"mt-9 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(Zt,{to:"/",children:["Sou artista ",t.jsx(ae,{size:18})]}),t.jsx(Zt,{to:"/festivais",variant:"ghost",children:"Organizo um festival"})]})]}),t.jsxs("section",{id:"plataformas",className:"mx-auto max-w-6xl px-6 py-12 md:py-16",children:[t.jsx("div",{className:"grid items-stretch gap-6 md:grid-cols-2",children:hk.map(e=>t.jsxs("div",{className:"flex flex-col rounded-3xl border border-white/10 bg-card p-7 shadow-sm transition hover:shadow-lg md:p-9",children:[t.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-xl bg-giro-100 text-giro",children:t.jsx(e.Icon,{size:22})}),e.estado&&t.jsx("span",{className:"rounded-full bg-giro px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-giro-50",children:e.estado})]}),t.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:e.etiqueta}),t.jsx("h2",{className:"mt-2 text-xl font-bold leading-snug text-giro-ink md:text-2xl",children:e.titulo}),t.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted",children:e.texto}),t.jsx("ul",{className:"mt-6 flex-1 space-y-3",children:e.itens.map(a=>t.jsxs("li",{className:"flex items-center gap-3 text-sm text-ink",children:[t.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-giro-50 text-giro",children:t.jsx(a.Icon,{size:16})}),a.t]},a.t))}),t.jsxs(U,{to:e.to,className:"mt-7 inline-flex items-center justify-center gap-2 rounded-xl bg-giro px-5 py-3.5 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:[e.cta," ",t.jsx(ae,{size:16})]})]},e.key))}),t.jsx("div",{className:"mt-8 rounded-2xl border border-giro/15 bg-card p-6 text-center md:p-8",children:t.jsxs("p",{className:"mx-auto max-w-3xl text-base leading-relaxed text-muted md:text-lg",children:["Quem cria precisa circular. Quem programa precisa encontrar bons trabalhos.",t.jsx("br",{}),t.jsx("br",{}),"A Gira aproxima esses dois lados com"," ",t.jsx("strong",{className:"font-semibold text-ink",children:"tecnologia construÃda por quem vive a cultura"}),"."]})})]}),t.jsx(Su,{className:"py-12 md:py-16",radar:!0}),t.jsx("section",{id:"produtora",className:"bg-card px-6 py-16 md:py-24",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsxs("div",{className:"mb-10 text-center",children:[t.jsx("span",{className:"mb-4 inline-block rounded-full bg-giro-50 px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink",children:"Gira Produções"}),t.jsx("h2",{className:"text-2xl font-bold md:text-4xl",children:"Também produzimos artistas, projetos e circulações."}),t.jsx("p",{className:"mx-auto mt-3 max-w-2xl text-lg text-muted",children:"A tecnologia nasceu da produção, não o contrário. A Gira representa artistas, negocia com contratantes e coloca espetáculo na estrada â e usa a própria plataforma para dar conta disso."})]}),t.jsx(fk,{}),t.jsx("ul",{className:"mx-auto mt-12 grid max-w-3xl gap-3 sm:grid-cols-2 md:grid-cols-3",children:xk.map(e=>t.jsxs("li",{className:"flex items-center gap-3 rounded-xl border border-white/10 bg-giro-50 p-4 text-sm",children:[t.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-giro-100 text-giro-ink",children:t.jsx(e.Icon,{size:16})}),e.text]},e.text))}),t.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(Zt,{to:"/elenco",children:["Ver o elenco representado ",t.jsx(ae,{size:18})]}),t.jsx(Zt,{href:$p,variant:"ghost",children:"Contratar um artista"}),t.jsx(Zt,{href:pk,variant:"ghost",children:"Produzir um projeto"})]})]})}),t.jsx(mk,{className:"py-16 md:py-20"}),t.jsx("section",{className:"bg-card px-6 py-16 md:py-20",children:t.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-center gap-6 text-center md:flex-row md:text-left",children:[t.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl bg-giro-100 text-giro-ink",children:t.jsx(Ja,{size:28})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h2",{className:"text-xl font-bold md:text-2xl",children:"A Gira acompanha os festivais da América Latina e da Europa"}),t.jsx("p",{className:"mt-2 text-muted",children:"Nosso Radar monitora festivais, mostras e editais. O mapa é público â veja onde a circulação está acontecendo."})]}),t.jsxs(Zt,{to:"/map",variant:"ghost",children:["Ver o mapa ",t.jsx(ae,{size:18})]})]})}),t.jsx("section",{id:"contato",className:"px-6 py-16 md:py-24",children:t.jsxs("div",{className:"mx-auto max-w-4xl rounded-3xl bg-giro px-8 py-14 text-center text-giro-50",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-4xl",children:"Vamos fazer a cultura circular?"}),t.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-base opacity-90 md:text-lg",children:"Organize a sua carreira, gerencie o seu festival ou contrate um artista representado pela Gira."}),t.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(Zt,{to:"/",variant:"white",children:["Sou artista ",t.jsx(ae,{size:18})]}),t.jsx(Zt,{to:"/festivais",variant:"white",children:"Organizo um festival"}),t.jsx(Zt,{href:$p,variant:"white",children:"Quero contratar"})]})]})}),t.jsx(jr,{waMsg:"Olá! Vim pelo site da Gira e quero falar com vocês."})]})}const vk=e=>
721(e/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}),jk=e=>e.replace(/^Erro \d{3}:\s*/,"");function di({children:e}){return t.jsxs("div",{className:"min-h-screen bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsx("main",{className:"mx-auto max-w-lg px-6 py-16 md:py-24",children:e}),t.jsx(jr,{waMsg:"Olá! Estou tentando assinar a Gira e preciso de ajuda."})]})}const $l="w-full rounded-xl border border-giro/20 bg-card px-4 py-3 text-base text-ink outline-none transition placeholder:text-muted focus:border-giro",Fn="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-giro px-6 py-3.5 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90 disabled:opacity-60",ui=10,rn=[{rotulo:`${ui} caracteres ou mais`,ok:e=>e.length>=ui},{rotulo:"uma letra maiúscula",ok:e=>/[A-ZÃ-Ã]/.test(e)},{rotulo:"uma letra minúscula",ok:e=>/[a-zà -þ]/.test(e)},{rotulo:"um número",ok:e=>/\d/.test(e)},{rotulo:"um caractere especial (!, @, #â¦)",ok:e=>/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~`]/.test(e)}];function jg({senha:e}){const a=rn.filter(r=>r.ok(e)).length,s=e.length>0;return t.jsxs("div",{className:"mt-3",children:[t.jsx("div",{className:"flex gap-1.5","aria-hidden":!0,children:rn.map((r,n)=>t.jsx("span",{className:"h-1 flex-1 rounded-full transition "+(s&&n<a?"bg-giro":"bg-giro/15")},r.rotulo))}),t.jsx("ul",{className:"mt-2.5 list-none space-y-1",children:rn.map(r=>{const n=r.ok(e);return t.jsxs("li",{className:"flex items-center gap-2 text-xs "+(n?"text-giro-ink":"text-muted"),children:[n?t.jsx(bt,{size:13,className:"shrink-0 text-giro"}):t.jsx(Ef,{size:13,className:"shrink-0 opacity-50"}),r.rotulo]},r.rotulo)})}),t.jsx("p",{className:"mt-2 text-xs text-muted",children:"Evite o seu nome ou e-mail na senha â é a primeira coisa que um ataque dirigido tenta."})]})}function yk(){const{signup:e,user:a}=Ae(),{lang:s}=vu(),r=J(),[n]=mr(),o=n.get("oferta"),i=n.get("plano")==="livre",c=n.get("volta"),l=c&&c.startsWith("/")&&!c.startsWith("//")?c:o?`/checkout/${o}`:i?"/app":"/planos?novo=1",[d,u]=O.useState(""),[h,m]=O.useState(""),[f,v]=O.useState(""),[g,b]=O.useState(!1),[p,x]=O.useState(null);O.useEffect(()=>{a&&r(l,{replace:!0})},[a,l,r]);async function j(k){if(k.preventDefault(),!g){b(!0),x(null);try{await e({name:d,email:h,password:f,language:s}),r(l,{replace:!0})}catch(N){x(N instanceof Error?N.message:"Não deu para criar a conta agora."),b(!1)}}}return t.jsxs(di,{children:[t.jsx("h1",{className:"text-3xl font-bold leading-tight tracking-tight md:text-4xl",children:"Criar sua conta"}),t.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted",children:o?"à o primeiro passo. Depois você escolhe o plano e a gente organiza tudo.":i?"à de graça e leva um minuto. Você entra na plataforma direto â o plano fica para quando você quiser tirar o limite.":"à de graça e leva um minuto. No passo seguinte você escolhe o plano â inclusive o gratuito, que entra na hora e não pede cartão."}),t.jsxs("form",{onSubmit:j,className:"mt-8 space-y-3",children:[t.jsx("input",{className:$l,placeholder:"Seu nome ou o da companhia",value:d,onChange:k=>u(k.target.value),autoComplete:"name",required:!0,maxLength:160}),t.jsx("input",{className:$l,type:"email",placeholder:"[email protected]",value:h,onChange:k=>m(k.target.value),autoComplete:"email",required:!0,maxLength:160}),t.jsxs("div",{children:[t.jsx("input",{className:$l,type:"password",placeholder:"Crie uma senha",value:f,onChange:k=>v(k.target.value),autoComplete:"new-password",required:!0,minLength:ui,"aria-describedby":"regras-senha"}),t.jsx("div",{id:"regras-senha",children:t.jsx(jg,{senha:f})})]}),t.jsx("p",{className:"text-xs text-muted",children:"Onde você está você preenche no perfil, e o idioma da plataforma troca no topo do painel â quando quiser."}),p&&t.jsx("p",{className:"text-sm text-red-400",children:p}),t.jsx("button",{type:"submit",className:Fn,disabled:g||rn.some(k=>!k.ok(f)),children:g?t.jsxs(t.Fragment,{children:[t.jsx(js,{size:18,className:"animate-spin"})," Criandoâ¦"]}):t.jsxs(t.Fragment,{children:["Continuar ",t.jsx(ae,{size:18})]})})]}),t.jsxs("p",{className:"mt-6 text-sm text-muted",children:["Já tem conta?"," ",t.jsx(U,{to:"/login",className:"font-semibold text-giro hover:opacity-70",children:"Entrar"})]})]})}function Lp(){const{offerCode:e}=ne(),{user:a,loading:s}=Ae(),r=J(),[n,o]=O.useState(null),[i,c]=O.useState(null),[l,d]=O.useState(!1);O.useEffect(()=>{Oc.offers().then(o).catch(()=>c("Não deu para carregar os planos agora."))},[]),O.useEffect(()=>{!s&&!a&&r(`/criar-conta${e?`?oferta=${e}`:""}`,{replace:!0})},[s,a,e,r]);const u=(n==null?void 0:n.find(f=>f.code===e))??null;async function h(f){if(!l){d(!0),c(null);try{const{checkout_url:v}=await Oc.create(f);window.location.href=v}catch(v){c(v instanceof Error?jk(v.message):"Não deu para abrir o pagamento."),d(!1)}}}if(s||!n)return t.jsx(di,{children:t.jsxs("p",{className:"flex items-center gap-2 text-muted",children:[t.jsx(js,{size:18,className:"animate-spin"})," Carregandoâ¦"]})});const m=u?[u]:n;return t.jsxs(di,{children:[t.jsx("h1",{className:"text-3xl font-bold leading-tight tracking-tight md:text-4xl",children:u?"Confirmar assinatura":"Escolha o seu plano"}),t.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted",children:"Plano anual, sem fidelidade. Você paga uma vez por ano e usa a plataforma
721inteira."}),t.jsx("div",{className:"mt-8 space-y-4",children:m.map(f=>t.jsxs("div",{className:"rounded-2xl border border-giro/20 bg-card p-6",children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[t.jsx("h2",{className:"text-lg font-bold text-giro-ink",children:f.label}),f.seats_left!==null&&f.seats_left>0&&t.jsxs("span",{className:"shrink-0 rounded-full bg-giro-100 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-giro-ink",children:["restam ",f.seats_left," de ",f.seats_total]})]}),t.jsx("p",{className:"mt-1 text-sm leading-relaxed text-muted",children:f.tagline}),t.jsxs("div",{className:"mt-5 flex items-baseline gap-2",children:[t.jsx("span",{className:"text-4xl font-bold tracking-tight text-ink",children:vk(f.price_cents)}),t.jsxs("span",{className:"text-base text-muted",children:["/ ",f.months===12?"ano":`${f.months} meses`]})]}),t.jsx("button",{type:"button",className:`${Fn} mt-6`,disabled:l,onClick:()=>h(f.code),children:l?t.jsxs(t.Fragment,{children:[t.jsx(js,{size:18,className:"animate-spin"})," Abrindo o pagamentoâ¦"]}):t.jsxs(t.Fragment,{children:["Continuar para pagamento ",t.jsx(ae,{size:18})]})})]},f.code))}),i&&t.jsxs("div",{className:"mt-6 rounded-xl border border-giro/20 bg-card p-5",children:[t.jsx("p",{className:"text-sm leading-relaxed text-ink",children:i}),t.jsxs("a",{href:xa("Olá! Quero assinar a Gira e o pagamento online não abriu."),target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-giro hover:opacity-70",children:["Falar com a gente no WhatsApp ",t.jsx(ae,{size:15})]})]}),t.jsxs("div",{className:"mt-8 space-y-2 text-sm text-muted",children:[t.jsxs("p",{className:"flex items-center gap-2",children:[t.jsx(Za,{size:15,className:"shrink-0 text-giro"}),"Pagamento no ambiente do Mercado Pago â a Gira não vê o seu cartão."]}),t.jsxs("p",{className:"flex items-center gap-2",children:[t.jsx(Mf,{size:15,className:"shrink-0 text-giro"}),"Pix ou cartão. Sem fidelidade, cancele quando quiser."]})]})]})}function Eu({Icon:e,cor:a,titulo:s,children:r,acao:n}){return t.jsxs(di,{children:[t.jsx(e,{size:44,className:a}),t.jsx("h1",{className:"mt-5 text-3xl font-bold leading-tight tracking-tight md:text-4xl",children:s}),t.jsx("div",{className:"mt-4 space-y-3 text-base leading-relaxed text-muted",children:r}),t.jsx("div",{className:"mt-8",children:n})]})}function bk(){return t.jsxs(Eu,{Icon:bt,cor:"text-giro",titulo:"Pagamento aprovado.",acao:t.jsxs(U,{to:"/app",className:Fn,children:["Ir para a plataforma ",t.jsx(ae,{size:18})]}),children:[t.jsx("p",{children:"Sua assinatura está sendo liberada. Se o painel ainda mostrar a conta sem plano, aguarde um minuto e recarregue â a confirmação vem do Mercado Pago."}),t.jsx("p",{children:"Comece pelo seu perfil: é o cadastro que alimenta o site, o portfólio e todos os documentos."})]})}function Nk(){return t.jsxs(Eu,{Icon:Ya,cor:"text-giro",titulo:"Pagamento em processamento.",acao:t.jsxs(U,{to:"/app",className:Fn,children:["Ir para a plataforma ",t.jsx(ae,{size:18})]}),children:[t.jsx("p",{children:"O Mercado Pago ainda está confirmando. Se você pagou por Pix, costuma sair em minutos; no cartão, pode levar um pouco mais."}),t.jsxs("p",{children:["Você não precisa fazer nada: assim que for aprovado, sua conta é liberada sozinha. ",t.jsx("strong",{className:"text-ink",children:"Não pague de novo"})," â se demorar, fale com a gente."]})]})}function kk(){return t.jsxs(Eu,{Icon:qi,cor:"text-red-400",titulo:"O pagamento não foi concluÃdo.",acao:t.jsxs(U,{to:"/checkout",className:Fn,children:["Tentar de novo ",t.jsx(ae,{size:18})]}),children:[t.jsx("p",{children:"Nada foi cobrado. Pode ter sido um dado do cartão, o limite ou uma recusa do banco â vale tentar outro meio, como o Pix."}),t.jsxs("p",{children:["Se acontecer de novo,"," ",t.jsx("a",{href:xa("Olá! Tentei assinar a Gira e o pagamento foi recusado."),target:"_blank",rel:"noreferrer",className:"font-semibold text-giro hover:opacity-70",children:"fale com a gente"})," ","que resolvemos junto."]})]})}const Ll=xa("Olá! Organizo um festival e quero agendar uma demonstração da Gira Festivais."),wk=xa("Olá! Quero abrir a chamada do meu festival na Gira, no plano gratuito."),Ck=[{Icon:Ob,text:"A chamada vive num Google Forms, e a curadoria numa planilha à parte."},{Icon:Gb,text:"Release, foto e rider chegam em cinco formatos diferentes â quando chegam."},{Icon:s1,text:"Metade das inscrições volta por e-mail pedindo material que faltou."},{Icon:Fb,text:"Cada parecerista lê de um jeito, e ninguém compara duas propostas do mesmo jeito."},{Icon:Ya,text:"A seleção trava porque o material está espalhado entre drive, e-mail e WhatsApp."},{Icon:iu,text:"Terminou a edição, ficou nada: no ano que vem se recomeça do zero."}],qp=[{Icon:lu,n:"01",titulo:"Você abre a chamada",itens:["PerÃodo de inscrição e categorias","Perguntas e critérios do seu edital","Documentos obrigatórios","Um link público para divulgar"]},{Icon:Di,n:"02",titulo:"O artista se inscreve",itens:["Quem já usa a Gira escolhe o produto e envia","Release, rider, fotos e vÃdeos vão junto, prontos","Quem não usa preenche o formulário normalmente","Só responde o que é especÃfico do seu festival"]},{Icon:Pf,n:"03",titulo:"A curadoria decide",itens:["Todas as inscrições num painel, no mesmo formato","Busca, filtro e favoritos","Parecer e nota por curador","Resultado exportado e edição arquivada"]}],_k=["Chamada pública com link próprio e regulamento","Categorias, perguntas personalizadas e documentos obrigatórios","Inscrição de artista cadastrado na Gira em poucos cliques","Inscrição de artista de fora, sem c
721onta","Painel de inscrições com busca, filtro e favoritos","Curadoria com parecer e nota por curador","Exportação do resultado e histórico da edição"],Sk=["Comunicação com os inscritos pela própria plataforma","Contratos e cartas-convite","Agenda e programação da edição","Certificados","Relatórios e prestação de contas","EstatÃsticas das inscrições"],Ek=["Uma chamada por ano, sem limite de inscrições","As inscrições num lugar só, com o material padronizado","Seu festival no mapa público da Gira","Divulgação da chamada para a base de artistas","Suporte direto com a produção da Gira","O artista nunca paga para se inscrever"],Pk=[{q:"O módulo já está pronto?",a:"Não, e a gente não vai fingir que está. A Gira Festivais está sendo construÃda agora, junto com os primeiros festivais que entrarem. à por isso que é gratuito: você não compra um produto de prateleira, você entra cedo, participa das decisões e é uma das primeiras chamadas a rodar na plataforma. A demonstração mostra exatamente o que existe hoje â sem tela de mentira."},{q:"E os artistas que não usam a Gira?",a:"Se inscrevem normalmente, sem conta e sem pagar nada. O formulário público funciona como qualquer outro. A diferença é para quem já está na Gira: o material vem preenchido. Nenhum artista fica de fora da sua chamada por não ser assinante."},{q:"O artista paga para se inscrever?",a:"Nunca. Quem paga a plataforma é o festival. O plano de artista é outro produto, opcional, para quem quer organizar a própria carreira o ano inteiro."},{q:"As inscrições do meu festival são minhas?",a:"São. Os dados da sua chamada são do festival, exportáveis a qualquer momento, e não viram vitrine para ninguém. A Gira não usa o material inscrito para vender nada."},{q:"Já abri a chamada deste ano em outro formulário. Serve?",a:"Serve conversar. Dependendo do momento, o melhor caminho é começar pela curadoria desta edição e usar a plataforma inteira na próxima. Isso a gente resolve na demonstração."},{q:"Quanto custa?",a:"Nada. Abrir a chamada do seu festival na Gira é gratuito: sem mensalidade, sem cartão, sem fidelidade â e o artista nunca paga para se inscrever. Até 15/08/2026 esta página vendia um plano anual de R$ 1.979; a gente preferiu abrir para os festivais entrarem agora, porque é conversando com eles que o módulo é construÃdo."},{q:"Vai passar a ser pago depois?",a:"O que existe hoje continua gratuito. O que vier depois â curadoria com vários pareceristas, comunicação com os inscritos, contratos, agenda, relatórios â vai ser plano pago, e quem já estiver dentro é avisado antes de qualquer cobrança existir. A gente não muda a regra pelas costas de quem entrou primeiro."}];function Ak(){return t.jsxs("div",{className:"min-h-screen scroll-smooth bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsxs("section",{className:"px-6 pt-16 pb-12 text-center md:pt-24",children:[t.jsxs("span",{className:"mb-5 inline-flex items-center gap-2 rounded-full bg-card px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink shadow-sm",children:[t.jsx(Wa,{size:14})," Plataforma para festivais e mostras"]}),t.jsxs("h1",{className:"mx-auto max-w-4xl text-4xl font-bold leading-[1.08] tracking-tight md:text-6xl",children:["Menos planilhas.",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"Mais tempo para a programação."})]}),t.jsxs("p",{className:"mx-auto mt-6 max-w-2xl text-lg leading-relaxed text-muted md:text-xl",children:["Abra a chamada, receba as inscrições padronizadas e faça a curadoria num painel só."," ",t.jsx("strong",{className:"font-semibold text-giro-ink",children:"Sem Google Forms, sem pasta compartilhada, sem e-mail perdido."})]}),t.jsxs("div",{className:"mt-9 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(Ss,{href:Ll,children:["Agendar demonstração ",t.jsx(ae,{size:18})]}),t.jsx(Ss,{href:"#plano",variant:"ghost",children:"Ver o plano"})]}),t.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-2.5",children:[t.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-giro px-4 py-2 text-sm font-semibold text-giro-50 shadow-sm",children:[t.jsx(Bi,{size:16})," Gratuito para festivais"]}),["Sem mensalidade e sem cartão","O artista nunca paga para se inscrever"].map(e=>t.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-card px-4 py-2 text-sm font-medium text-giro-ink shadow-sm",children:[t.jsx(bt,{size:16,className:"text-giro"})," ",e]},e))]})]}),t.jsx("section",{className:"px-6 pb-4",children:t.jsxs("div",{className:"mx-auto max-w-3xl rounded-2xl border border-giro/25 bg-card p-7 text-center md:p-9",children:[t.jsx("p",{className:"text-lg font-semibold leading-snug text-ink md:text-xl",children:"A plataforma que organiza a gestão do seu festival, do inÃcio ao fim."}),t.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted",children:"Site do festival, edital escrito na plataforma, inscrições e curadoria em um único lugar."})]})}),t.jsxs("section",{id:"problema",className:"mx-auto max-w-5xl px-6 py-16 md:py-24",children:[t.jsxs("div",{className:"mx-auto mb-10 max-w-2xl text-center",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"Organizar um festival não deveria ser um trabalho de arquivo."}),t.jsx("p",{className:"mt-3 text-lg text-muted",children:"Mas é o que acontece quando a chamada é aberta com ferramenta genérica:"})]}),t.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Ck.map(e=>t.jsxs("div",{className:"flex items-start gap-3 rounded-2xl border border-white/10 bg-card p-5",children:[t.jsx("span",{className:"mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-red-500/15 text-red-400",children:t.jsx(e.Icon,{size:18})}),t.jsx("p",{className:"text-sm leading-relaxed text-ink",children:e.text})]},e.text))})]}),t.jsx("section",{id:"como-funciona",className:"bg-card px-6 py-16 md:py-24",children:t.jsxs("div",{className:"mx-auto max-w-5xl",children:[t.jsxs("div",{className:"mb-12 text-center",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"Como funciona"}),t.jsx("p",{className:"mt-3 text-lg text-muted",children:"Da chamada ao resultado, num lugar só."})]}),t.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:qp.map((e,a)=>t.jsxs("div",{className:"relative rounded-2xl border border-white/10 bg-giro-50 p-6",children:[t.jsx("span",{className:"absolute right-5 top-5 text-3xl font-bold text-giro/15",children:e.n}),t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-giro text-giro-50",children:t.jsx(e.Icon,{size:24})}),t.jsx("h3",{className:"text-lg font-semibold text-giro-ink",children:e.titulo}),t.jsx("ul",{className:"mt-4 space-y-2 text-sm text-muted",children:e.itens.map(s=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(bt,{size:15,className:"mt-0.5 shrink-0 text-giro"})," ",s]},s))}),a<qp.length-1&&t.jsx(ae,{className:"absolute -right-5 top-1/2 hidden -translate-y-1/2 text-giro/30 md:block",size:26})]},e.titulo))})]})}),t.jsx("section",{className:"px-6 py-16 md:py-24",children:t.jsxs("div",{className:"mx-auto grid max-w-6xl items-center gap-12 lg:grid-cols-2",children:[t.jsxs("div",{children:[t.jsxs("span",{className:"mb-3 inline-flex items-center gap-2 rounded-full bg-card px-3 py-1 text-xs font-semibold uppercase tracking-wide text-giro-ink shadow-sm",children:[t.jsx(Ff,{size:14})," O diferencial"]}),t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"A inscrição chega completa, porque já estava pronta."}),t.jsx("p",{className:"mt-3 text-lg text-muted",children:"O artista que usa a Gira mantém release, rider, fotos, vÃdeos e histórico atualizados o ano inteiro. Quando a sua chamada abre, ele escolhe o produto e envia â e o que chega até a sua curadoria já vem no mesmo formato de todas as outras."}),t.jsx("ul",{className:"mt-6 space-y-3",children:[{Icon:Nb,t:"Nada de material faltando",d:"o obrigatório é conferido antes do envio"},{Icon:Kb,t:"Tudo no mesmo formato",d:"duas propostas ficam comparáveis lado a lado"},{Icon:xt,t:"Aberto a quem não usa a Gira",d:"artista de fora se inscreve pelo formulário público"},{Icon:eu,t:"A edição não se perde",d:"no ano seguinte, o histórico está lá"}].map(e=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx("span",{className:"mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-card text-giro shadow-sm",children:t.jsx(e.Icon,{size:18})}),t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-ink",children:e.t}),t.jsx("div",{className:"text-sm text-muted",children:e.d})]})]},e.t))})]}),t.jsx(zk,{})]})}),t.jsxs("section",{className:"bg-card px-6 py-16 md:py-24",children:[t.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[t.jsxs("span",{className:"mb-4 inline-flex items-center gap-2 rounded-full bg-giro-50 px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink",children:[t.jsx(Ja,{size:14})," Os dois lados"]}),t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"Você não abre a chamada no vazio."}),t.jsxs("p",{className:"mx-auto mt-4 max-w-2xl text-lg leading-relaxed text-muted",children:["A Gira já é usada por artistas para organizar carreira e por uma produtora para colocar espetáculo na estrada. A sua chamada entra nesse circuito: vai para a base de artistas da plataforma, aparece no"," ",t.jsx(U,{to:"/map",className:"font-semibold text-giro underline",children:"mapa público de oportunidades"})," ","e chega a quem procura exatamente esse tipo de festival."]}),t.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[t.jsx(Ss,{to:"/",variant:"ghost",children:"Ver o lado do artista"}),t.jsxs(Ss,{to:"/map",variant:"ghost",children:[t.jsx(Mn,{size:17})," Ver o mapa"]}
721)]})]}),t.jsx(Su,{className:"pt-12",radar:!0})]}),t.jsxs("section",{id:"escopo",className:"mx-auto max-w-5xl px-6 py-16 md:py-24",children:[t.jsxs("div",{className:"mb-10 text-center",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"O que entra agora, o que vem depois"}),t.jsx("p",{className:"mx-auto mt-3 max-w-2xl text-lg text-muted",children:"A ordem de construção é pública. Quem entra agora ajuda a mexer nela."})]}),t.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[t.jsxs("div",{className:"rounded-3xl border-2 border-giro bg-card p-7 shadow-lg",children:[t.jsxs("h3",{className:"mb-1 flex items-center gap-2 text-lg font-bold text-giro-ink",children:[t.jsx(Be,{size:18,className:"text-giro"})," Primeira versão"]}),t.jsx("p",{className:"mb-5 text-sm text-muted",children:"O que a plataforma vai entregar para a chamada dos primeiros festivais."}),t.jsx("ul",{className:"space-y-3 text-sm text-ink",children:_k.map(e=>t.jsxs("li",{className:"flex gap-2.5",children:[t.jsx(bt,{size:17,className:"mt-0.5 shrink-0 text-giro"}),e]},e))})]}),t.jsxs("div",{className:"rounded-3xl border border-white/10 bg-card p-7",children:[t.jsxs("h3",{className:"mb-1 flex items-center gap-2 text-lg font-bold text-muted",children:[t.jsx(Ub,{size:18})," Na fila, depois"]}),t.jsx("p",{className:"mb-5 text-sm text-muted",children:"Existe no plano do produto, ainda não tem data. Não conte com isso na edição deste ano."}),t.jsx("ul",{className:"space-y-3 text-sm text-muted",children:Sk.map(e=>t.jsxs("li",{className:"flex gap-2.5",children:[t.jsx(tt,{className:"mt-0.5 shrink-0",size:15,strokeWidth:2.4}),e]},e))})]})]})]}),t.jsx("section",{id:"plano",className:"px-6 py-16 md:py-24",children:t.jsxs("div",{className:"mx-auto max-w-3xl",children:[t.jsxs("div",{className:"mb-10 text-center",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-4xl",children:"Plano"}),t.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-lg text-muted",children:"Abrir a chamada do seu festival na Gira é gratuito. Sem mensalidade, sem cartão e sem cobrar nada do artista."})]}),t.jsxs("div",{className:"relative rounded-3xl border-2 border-giro bg-card p-8 shadow-2xl md:p-10",children:[t.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full bg-giro px-4 py-1 text-xs font-bold uppercase tracking-wide text-giro-50 shadow",children:"Plano gratuito"}),t.jsx("div",{className:"mb-4 flex h-11 w-11 items-center justify-center rounded-xl bg-giro-50 text-giro",children:t.jsx(Wa,{size:22})}),t.jsx("h3",{className:"text-xl font-bold text-giro-ink",children:"Gira Festivais"}),t.jsx("p",{className:"mt-1 text-sm text-muted",children:"Para festivais, mostras e circuitos que abrem chamada pública."}),t.jsx("div",{className:"mt-6 flex items-baseline gap-1",children:t.jsx("span",{className:"text-4xl font-bold tracking-tight text-ink md:text-5xl",children:"Grátis"})}),t.jsx("p",{className:"mt-1.5 text-sm font-medium text-giro-ink",children:"sem mensalidade, sem cartão e sem fidelidade"}),t.jsx("ul",{className:"mt-7 space-y-2.5 text-sm text-ink",children:Ek.map(e=>t.jsxs("li",{className:"flex gap-2.5",children:[t.jsx(bt,{size:17,className:"mt-0.5 shrink-0 text-giro"}),t.jsx("span",{children:e})]},e))}),t.jsx("p",{className:"mt-7 rounded-xl bg-giro-50 px-4 py-3 text-sm leading-relaxed text-giro-ink",children:"O que vem depois â curadoria com vários pareceristas, comunicação com os inscritos, contratos, agenda e relatórios â vai ser plano pago. Quem começa agora ajuda a decidir o que entra e é avisado antes de qualquer cobrança existir."}),t.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[t.jsxs("a",{href:wk,target:"_blank",rel:"noreferrer",className:"inline-flex flex-1 items-center justify-center gap-2 rounded-xl bg-giro px-5 py-3.5 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:["Falar no WhatsApp ",t.jsx(ae,{size:16})]}),t.jsx("a",{href:Ll,target:"_blank",rel:"noreferrer",className:"inline-flex flex-1 items-center justify-center gap-2 rounded-xl border border-giro/30 px-5 py-3.5 text-base font-semibold text-giro-ink transition hover:bg-giro-50",children:"Agendar demonstração"})]}),t.jsx("p",{className:"mt-4 text-center text-xs leading-relaxed text-muted",children:"O atendimento é do André, por WhatsApp â enquanto o módulo é
721construÃdo, quem faz a chamada rodar é a produção da Gira junto com o festival."})]})]})}),t.jsxs("section",{id:"faq",className:"mx-auto max-w-3xl px-6 py-16 md:py-24",children:[t.jsx("h2",{className:"mb-10 text-center text-2xl font-bold md:text-3xl",children:"Perguntas frequentes"}),t.jsx("div",{className:"space-y-3",children:Pk.map(e=>t.jsxs("details",{className:"group rounded-2xl border border-white/10 bg-card p-5 [&_summary]:cursor-pointer",children:[t.jsxs("summary",{className:"flex list-none items-center justify-between gap-4 font-semibold text-ink",children:[e.q,t.jsx(Sf,{size:18,className:"shrink-0 text-giro transition-transform group-open:rotate-180"})]}),t.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:e.a})]},e.q))})]}),t.jsx("section",{className:"px-6 pb-20",children:t.jsxs("div",{className:"mx-auto max-w-4xl rounded-3xl bg-giro px-8 py-14 text-center text-giro-50",children:[t.jsx("h2",{className:"mx-auto max-w-2xl text-2xl font-bold leading-tight md:text-4xl",children:"Vamos ver como isso funcionaria no seu festival?"}),t.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-lg leading-relaxed opacity-90",children:"Meia hora de conversa: você mostra como a sua chamada funciona hoje, a gente mostra o que a plataforma já faz e o que dá para construir até a sua próxima edição."}),t.jsxs("div",{className:"mt-9 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs(Ss,{href:Ll,variant:"white",children:["Agendar demonstração ",t.jsx(ae,{size:18})]}),t.jsx(Ss,{href:`mailto:${Zc}?subject=Gira%20Festivais`,variant:"white",children:"Falar por e-mail"})]})]})}),t.jsx(jr,{waMsg:"Olá! Organizo um festival e quero falar com a Gira."})]})}function zk(){const e=[{t:"Espetáculo de circo · 45 min",g:"Companhia A",completo:!0,nota:"4,5"},{t:"Palhaçaria de rua · 50 min",g:"Companhia B",completo:!0,nota:"4,0"},{t:"Teatro fÃsico · 60 min",g:"Companhia C",completo:!0,nota:null},{t:"Cortejo · 30 min",g:"Artista solo",completo:!1,nota:null}];return t.jsxs("div",{className:"overflow-hidden rounded-2xl border border-white/10 bg-card shadow-2xl",children:[t.jsxs("div",{className:"flex items-center gap-1.5 border-b border-white/10 bg-giro-50 px-4 py-3",children:[t.jsx("span",{className:"h-3 w-3 rounded-full bg-red-300"}),t.jsx("span",{className:"h-3 w-3 rounded-full bg-yellow-300"}),t.jsx("span",{className:"h-3 w-3 rounded-full bg-green-300"}),t.jsx("span",{className:"ml-3 rounded-md bg-card px-3 py-1 text-xs text-muted",children:"gira.lat/app · Chamada 2026"})]}),t.jsxs("div",{className:"space-y-3 p-4",children:[t.jsx("div",{className:"grid grid-cols-3 gap-2",children:[{k:"Inscrições",v:"84"},{k:"Completas",v:"79"},{k:"Avaliadas",v:"51"}].map(a=>t.jsxs("div",{className:"rounded-xl border border-white/10 bg-giro-50/50 p-3",children:[t.jsx("div",{className:"text-[10px] uppercase tracking-wide text-muted",children:a.k}),t.jsx("div",{className:"text-lg font-bold text-giro-ink",children:a.v})]},a.k))}),t.jsx("div",{className:"divide-y divide-white/10 rounded-xl border border-white/10",children:e.map(a=>t.jsxs("div",{className:"flex items-center justify-between gap-3 px-3.5 py-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"truncate text-sm font-medium text-ink",children:a.t}),t.jsx("div",{className:"mt-0.5 text-xs text-muted",children:a.g})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[a.nota&&t.jsx("span",{className:"rounded-full bg-giro px-2 py-0.5 text-[10px] font-bold text-giro-50",children:a.nota}),t.jsx("span",{className:"rounded-full px-2 py-0.5 text-[10px] font-bold "+(a.completo?"bg-giro-50 text-giro-ink":"bg-white/5 text-muted"),children:a.completo?"completa":"falta doc"})]})]},a.t))}),t.jsxs("div",{className:"flex items-center gap-2 rounded-xl border border-white/10 bg-giro-50/50 p-3 text-xs text-muted",children:[t.jsx(n1,{size:14,className:"shrink-0 text-giro"}),"âParecer da curadoria registrado â exportar seleção final.â"]})]})]})}const yg="w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",bg="flex w-full items-center justify-center gap-2 rounded-lg bg-giro px-4 py-2.5 font-semibold text-giro-50 transition hover:opacity-90 disabled:opacity-60";function mi({children:e}){return t.jsxs("div",{className:"min-h-screen bg-giro-50 flex flex-col items-center justify-center px-6 text-ink",children:[t.jsxs(U,{to:"/",className:"mb-8 flex items-center gap-2 text-2xl font-bold text-giro-ink",children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"h-8 w-8 object-contain"}),"Gira"]}),t.jsx("div",{className:"w-full max-w-sm rounded-2xl bg-card p-8 shadow-sm",children:e}),t.jsx("p",{className:"mt-4 text-sm text-muted",children:t.jsx(U,{className:"font-semibold underline",to:"/login",children:"Voltar para o login"})})]})}const Ng=e=>e.replace(/^Erro \d{3}:\s*/,"");function Tk(){var u;const e=Pe(),[a,s]=y.useState(((u=e.state)==null?void 0:u.email)??""),[r,n]=y.useState(!1),[o,i]=y.useState(null),[c,l]=y.useState(null);async function d(h){h.preventDefault(),n(!0),i(null);try{l((await wa.esqueciSenha(a.trim())).detail)}catch(m){i(Ng(String(m.message)))}finally{n(!1)}}return c?t.jsxs(mi,{children:[t.jsx(a1,{size:28,className:"mb-3 text-giro"}),t.jsx("h1",{className:"mb-2 text-xl font-bold",children:"Confira o seu e-mail"}),t.jsx("p",{className:"text-sm text-muted",children:c})]}):t.jsx(mi,{children:t.jsxs("form",{onSubmit:d,children:[t.jsx("h1",{className:"mb-1 text-xl font-bold",children:"Esqueci minha senha"}),t.jsx("p",{className:"mb-6 text-sm text-muted",children:"Digite o e-mail da sua conta. Mandamos um link para você criar uma senha nova."}),t.jsxs("label",{className:"mb-6 block",children:[t.jsx("span",{className:"mb-1 block text-sm font-medium",children:"E-mail"}),t.jsx("input",{type:"email",autoFocus:!0,required:!0,autoComplete:"email",value:a,onChange:h=>s(h.target.value),className:yg,placeholder:"[email protected]"})]}),o&&t.jsx("p",{className:"mb-4 rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:o}
721),t.jsxs("button",{type:"submit",disabled:r||!a.trim(),className:bg,children:[r?t.jsx(js,{size:18,className:"animate-spin"}):t.jsx(Hb,{size:18}),r?"Enviandoâ¦":"Mandar o link"]})]})})}function Ik(){const[e]=mr(),a=e.get("t")??"",s=J(),{refresh:r}=Ae(),[n,o]=y.useState(""),[i,c]=y.useState(!1),[l,d]=y.useState(null);async function u(h){h.preventDefault(),c(!0),d(null);try{await wa.novaSenha(a,n),await r(),s("/app",{replace:!0})}catch(m){d(Ng(String(m.message))),c(!1)}}return a?t.jsx(mi,{children:t.jsxs("form",{onSubmit:u,children:[t.jsx("h1",{className:"mb-1 text-xl font-bold",children:"Crie a nova senha"}),t.jsx("p",{className:"mb-6 text-sm text-muted",children:"Depois disso você já entra na Gira."}),t.jsx("input",{type:"password",autoFocus:!0,required:!0,autoComplete:"new-password",minLength:ui,value:n,onChange:h=>o(h.target.value),className:yg,placeholder:"Nova senha"}),t.jsx(jg,{senha:n}),l&&t.jsxs("p",{className:"mt-4 rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:[l,l.includes("venceu")&&t.jsxs(t.Fragment,{children:[" ",t.jsx(U,{className:"underline",to:"/esqueci-senha",children:"Pedir outro link"})]})]}),t.jsx("button",{type:"submit",disabled:i||rn.some(h=>!h.ok(n)),className:bg+" mt-6",children:i?"Salvandoâ¦":"Salvar e entrar"})]})}):t.jsxs(mi,{children:[t.jsx("h1",{className:"mb-2 text-xl font-bold",children:"Link incompleto"}),t.jsxs("p",{className:"text-sm text-muted",children:["Abra o link direto do e-mail ou"," ",t.jsx(U,{className:"underline",to:"/esqueci-senha",children:"peça um novo"}),"."]})]})}const zr=e=>(e/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:0}).replace(/\u00a0/g," "),$k=[{titulo:"O seu trabalho publicado",linhas:[{tipo:"sempre",rotulo:"Seu site no ar em gira.lat/seu-nome",nota:"no mesmo link para sempre, sempre atualizado"},{tipo:"sempre",rotulo:"Portfólio em PDF, pronto para anexar"},{tipo:"recurso",chave:"book",rotulo:"Livro de vendas: o PDF de foto grande para quem programa",nota:"no mesmo endereço, gira.lat/seu-nome/book.pdf"},{tipo:"sempre",rotulo:"Release, elenco, ficha técnica e galeria"},{tipo:"limite",chave:"shows",rotulo:"Produtos culturais"},{tipo:"limite",chave:"oficinas",rotulo:"Oficinas"},{tipo:"limite",chave:"media_count",rotulo:"Fotos no acervo"},{tipo:"limite",chave:"storage_bytes",rotulo:"Espaço para imagens"},{tipo:"recurso",chave:"identity",rotulo:"Identidade da companhia: logo, cores e template do site"},{tipo:"recurso",chave:"languages",rotulo:"Site e documentos em quatro idiomas",nota:"português, espanhol, inglês e francês â cada um com a sua própria URL"},{tipo:"recurso",chave:"tech_docs",rotulo:"Rider, croqui, mapa de luz e roteiro musical em PDF"}]},{titulo:"Achar as oportunidades",linhas:[{tipo:"recurso",chave:"radar",rotulo:"Radar completo, com o link do edital e do formulário",nota:"a curadoria é garimpada uma a uma â é o trabalho que a assinatura paga"},{tipo:"sempre",rotulo:"Mapa público de festivais, em gira.lat/map"},{tipo:"recurso",chave:"radar_filters",rotulo:"Filtrar por linguagem e ver os prazos fechando"},{tipo:"recurso",chave:"quick_analysis",rotulo:"Análise rápida: este edital serve para mim?",nota:"a IA lê o edital e cruza com o seu produto â nota, prós e contras"}]},{titulo:"Se inscrever",linhas:[{tipo:"recurso",chave:"submissions",rotulo:"Inscrição guiada, com o passo a passo do edital"},{tipo:"recurso",chave:"ai",rotulo:"A IA que rascunha as respostas do formulário"},{tipo:"recurso",chave:"autofill",rotulo:"Extensão do Chrome que preenche o formulário por você"},{tipo:"recurso",chave:"action_import",rotulo:"Importar o seu currÃculo e virar histórico automaticamente"},{tipo:"recurso",chave:"reports",rotulo:"Relatório de inscrições e aproveitamento"}]}],pi={borderStyle:"solid"},Lk={storage_bytes:e=>`${Math.round(e/(1024*1024))} MB`};function qk(e,a){if(a===null)return"sem limite";const s=Lk[e];return s?s(a):`até ${a}`}function Mp(){return t.jsxs("span",{className:"inline-flex items-center gap-1.5 font-semibold text-giro-ink",children:[t.jsx(Ze,{size:17,className:"text-giro","aria-hidden":!0}),t.jsx("span",{className:"sr-only",children:"sim"})]})}function Mk(){return t.jsxs("span",{className:"inline-flex items-center text-muted",children:[t.jsx(o1,{size:17,"aria-hidden":!0}),t.jsx("span",{className:"sr-only",children:"não"})]})}function ql({nome:e,preco:a,parcela:s,linha:r,destaque:n,vagas:o,acao:i,onClick:c,carregando:l}){return t.jsxs("div",{style:pi,className:"flex flex-col rounded-2xl bg-giro-50 p-7 "+(n?"border-2 border-giro":"border border-[rgb(var(--line))]"),children:[t.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[t.jsx("h2",{className:"text-lg font-bold text-giro-ink",children:e}),n&&t.jsx("span",{className:"rounded-full bg-giro px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-giro-50",children:"lançamento"})]}),s?t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"mt-4 text-3xl font-bold tracking-tight text-ink",children:[s,t.jsx("span",{className:"ml-1 text-base font-normal text-muted",children:"/mês"})]}),t.jsxs("p",{className:"mt-1 text-sm text-muted",children:["em 12x no cartão · ou ",a," à vista, por um ano"]})]}):t.jsx("p",{className:"mt-4 text-3xl font-bold tracking-tight text-ink",children:a}),o,t.jsx("p",{className:"mt-5 flex-1 text-base leading-relaxed text-muted",children:r}),t.jsx("button",{type:"button",onClick:c,disabled:l,style:n?void 0:pi,className:"mt-7 inline-flex items-center justify-center gap-2 rounded-xl px-5 py-3.5 text-base font-semibold transition disabled:opacity-60 "+(n?"bg-giro text-giro-50 shadow-sm hover:bg-giro/90":"border border-giro/25 text-giro-ink hover:bg-card"),children:l?t.jsxs(t.Fragment,{children:[t.jsx(js,{size:16,className:"animate-spin"})," Abrindoâ¦"]}):t.jsxs(t.Fragment,{children:[i," ",t.jsx(ae,{size:16})]})})]})}function Rk({stats:e}){if(!(e!=null&&e.founders_total))return null;const a=Math.min(e.founders_taken,e.founders_total),s=e.founders_total-a;
721return t.jsx("p",{className:"mt-3 inline-flex w-fit rounded-lg bg-giro-100 px-3 py-1.5 text-sm font-semibold text-giro-ink",children:s>0?`restam ${s} das ${e.founders_total} vagas`:"vagas esgotadas"})}function Fk(){var j,k;const e=J(),[a]=mr(),{user:s}=Ae(),r=a.get("novo")==="1",[n,o]=O.useState(null),[i,c]=O.useState(null),[l,d]=O.useState(null),[u,h]=O.useState(null);O.useEffect(()=>{let N=!0;return Rt.plans().then(C=>N&&o(C)).catch(()=>{}),Oc.offers().then(C=>N&&c(C)).catch(()=>{}),Rt.stats().then(C=>N&&d(C)).catch(()=>{}),()=>{N=!1}},[]);const m=N=>(i==null?void 0:i.find(C=>C.code===N))??null,f=m("fundador-anual"),v=m("base-anual");function g(N){h(N),e(s?`/checkout/${N}`:`/criar-conta?oferta=${N}`)}function b(){e(s?"/app":"/criar-conta?plano=livre")}const p=!!s&&(s==null?void 0:s.plan)!=="gratuito",x=(f==null?void 0:f.seats_left)!==null&&(f==null?void 0:f.seats_left)!==void 0?f.seats_left<=0:!1;return t.jsxs("div",{className:"min-h-screen bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsxs("main",{className:"mx-auto max-w-5xl px-6 py-16 md:py-20",children:[t.jsx("h1",{className:"max-w-2xl text-3xl font-bold leading-tight tracking-tight md:text-5xl",children:r?t.jsxs(t.Fragment,{children:["Sua conta está criada.",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"Como você quer começar?"})]}):t.jsxs(t.Fragment,{children:["Os planos da Gira,",t.jsx("br",{}),t.jsx("span",{className:"text-giro",children:"linha a linha."})]})}),t.jsx("p",{className:"mt-5 max-w-2xl text-lg leading-relaxed text-muted",children:r?"Dá para entrar agora, de graça e sem cartão â e assinar depois, quando o limite apertar. O que muda de um lado para o outro está na tabela aqui embaixo, inteira.":"Nenhuma linha desta tabela é promessa de vendedor: ela é lida do mesmo lugar que o sistema consulta para liberar ou recusar cada recurso."}),t.jsxs("div",{className:"mt-12 grid gap-5 md:grid-cols-3",children:[p?t.jsxs("div",{style:pi,className:"md:col-span-3 rounded-2xl border-2 border-giro bg-giro-50 p-7",children:[t.jsx("h2",{className:"text-lg font-bold text-giro-ink",children:"Você já tem a plataforma inteira."}),t.jsx("p",{className:"mt-3 text-base leading-relaxed text-muted",children:"Nada aqui embaixo está fora do seu plano â a tabela fica para consulta, e para mostrar a quem você quiser indicar."}),t.jsxs("button",{type:"button",onClick:()=>e("/app"),className:"mt-6 inline-flex items-center justify-center gap-2 rounded-xl bg-giro px-5 py-3.5 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:["Ir para o meu painel ",t.jsx(ae,{size:16})]})]}):t.jsx(ql,{nome:"Gira Livre",preco:"Grátis",linha:"Para existir bem: seu site no ar, portfólio e livro em PDF, e o seu repertório organizado num lugar só.",acao:r?"Começar no Gira Livre":s?"Continuar no Gira Livre":"Criar conta grátis",onClick:b}),f&&!x&&!p?t.jsx(ql,{nome:f.label,preco:zr(f.price_cents),parcela:(j=sn[zr(f.price_cents)])==null?void 0:j.parcela,linha:f.tagline,destaque:!0,vagas:t.jsx(Rk,{stats:l}),acao:"Quero o Fundadores",onClick:()=>g(f.code),carregando:u===f.code}):t.jsx("div",{className:"hidden md:block"}),v&&!p&&t.jsx(ql,{nome:v.label,preco:zr(v.price_cents),parcela:(k=sn[zr(v.price_cents)])==null?void 0:k.parcela,linha:v.tagline,acao:"Assinar o Base",onClick:()=>g(v.code),carregando:u===v.code})]}),t.jsxs("p",{className:"mt-6 text-sm leading-relaxed text-muted"+(p?" hidden":""),children:["Os dois planos pagos dão exatamente o mesmo acesso â a diferença é o preço: quem entra pelo Fundadores trava"," ",f?zr(f.price_cents):"R$ 397"," por ano enquanto continuar assinante. Por isso a tabela abaixo compara o Gira Livre com os pagos, e não um pago com o outro."]}),t.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted",children:gg}),t.jsx("h2",{className:"mt-16 text-2xl font-bold tracking-tight md:text-3xl",children:"O que muda de um para o outro"}),n===null?t.jsxs("p",{className:"mt-6 flex items-center gap-2 text-muted",children:[t.jsx(js,{size:16,className:"animate-spin"})," Carregando os planosâ¦"]}):t.jsx("div",{className:"mt-6 overflow-x-auto",children:t.jsxs("table",{className:"w-full table-fixed border-collapse text-left",children:[t.jsxs("colgroup",{children:[t.jsx("col",{}),t.jsx("col",{className:"w-[4.5rem] sm:w-32"}),t.jsx("col",{className:"w-[4.5rem] sm:w-32"})]}),t.jsx("thead",{children:t.jsxs("tr",{className:"sticky top-0 bg-giro-50",children:[t.jsx("th",{className:"border-0 border-b border-solid border-[rgb(var(--line))] py-3 pr-3 text-sm font-semibold uppercase tracking-wide text-muted",children:"Recurso"}),t.jsxs("th",{className:"border-0 border-b border-solid border-[rgb(var(--line))] px-2 py-3 text-sm font-semibold text-giro-ink sm:px-4",children:[t.jsx("span",{className:"sm:hidden",children:"Livre"}),t.jsx("span",{className:"hidden sm:inline",children:"Gira Livre"})]}),t.jsxs("th",{className:"border-0 border-b-2 border-solid border-giro px-2 py-3 text-sm font-semibold text-giro-ink sm:px-4",children:[t.jsx("span",{className:"sm:hidden",children:"Pagos"}),t.jsx("span",{className:"hidden sm:inline",children:"Planos pagos"})]})]})}),t.jsx("tbody",{children:$k.map(N=>t.jsxs(O.Fragment,{children:[t.jsx("tr",{children:t.jsx("th",{colSpan:3,className:"pt-8 pb-2 text-left text-sm font-bold uppercase tracking-wide text-giro",children:N.titulo})}),N.linhas.map(C=>t.jsxs("tr",{className:"border-0 border-b border-solid border-[rgb(var(--line))]/60",children:[t.jsxs("td",{className:"py-3 pr-3 align-top",children:[t.jsx("span",{className:"text-[15px] text-ink sm:text-base",children:C.rotulo}),C.nota&&t.jsx("span",{className:"mt-0.5 block text-sm text-muted",children:C.nota})]}),t.jsx("td",{className:"px-2 py-3 align-top text-[15px] sm:px-4 sm:text-base",children:t.jsx(Rp,{linha:C,direitos:n.free})}),t.jsx("td",{className:"bg-card px-2 py-3 align-top text-[15px] sm:px-4 sm:text-base",children:t.jsx(Rp,{linha:C,direitos:n.paid})})]},C.rotulo))]},N.titulo))})]})}),t.jsx("p",{className:"mt-8 max-w-2xl text-sm leading-relaxed text-muted",children:"Passar do limite nunca apaga nem esconde o que você fez. Se você cadastrou oito produtos culturais num plano pago e depois parar de assinar, os oito continuam lá e o seu site continua no ar â o que muda é o direito de criar o nono."}),t.jsxs("div",{className:"mt-12 flex flex-wrap items-center gap-3 border-0 border-t border-solid border-[rgb(var(--line))] pt-10"+(p?" hidden":""),children:[f&&!x&&t.jsxs("button",{type:"button",onClick:()=>g(f.code),className:"inline-flex items-center justify-center gap-2 rounded-xl bg-giro px-7 py-4 text-base font-semibold text-giro-50 shadow-sm transition hover:bg-giro/90",children:["Quero o Fundadores ",t.jsx(ae,{size:18})]}),t.jsx("button",{type:"button",onClick:b,style:pi,className:"inline-flex items-center justify-center gap-2 rounded-xl border border-giro/25 px-7 py-4 text-base font-semibold text-giro-ink transition hover:bg-card",children:r?"Começar no Gira Livre":"Criar conta grátis"})]}),t.jsxs("p",{className:"mt-6 text-sm text-muted",children:["Ficou em dúvida?"," ",t.jsx(U,{to:"/demonstracao",className:"font-semibold text-giro hover:opacity-70",children:"Veja uma demonstração"})," ","â ou fale com o André, que é quem responde."]})]}),t.jsx(jr,{waMsg:"Olá! Estou escolhendo um plano da Gira e tenho uma dúvida."})]})}function Rp({linha:e,direitos:a}
721){if(e.tipo==="sempre")return t.jsx(Mp,{});if(e.tipo==="recurso")return a.features.includes(e.chave)?t.jsx(Mp,{}):t.jsx(Mk,{});const s=a.limits[e.chave]??null;return t.jsx("span",{className:s===null?"font-semibold text-giro-ink":"text-ink",children:qk(e.chave,s)})}function Ok(e){typeof window.gtag=="function"&&window.gtag("event","page_view",{page_path:e,page_location:window.location.href,page_title:document.title})}function Dk(){var v;const e=Z(),{login:a}=Ae(),s=J(),n=((v=Pe().state)==null?void 0:v.from)??"/app",[o,i]=y.useState(""),[c,l]=y.useState(""),[d,u]=y.useState(!1),[h,m]=y.useState(null);async function f(g){g.preventDefault(),u(!0),m(null);try{await a(o.trim(),c),s(n,{replace:!0})}catch(b){m(String(b.message)),u(!1)}}return t.jsxs("div",{className:"min-h-screen bg-giro-50 flex flex-col items-center justify-center px-6 text-ink",children:[t.jsxs(U,{to:"/",className:"mb-8 flex items-center gap-2 text-2xl font-bold text-giro-ink",children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"h-8 w-8 object-contain"}),"Gira"]}),t.jsxs("form",{onSubmit:f,className:"w-full max-w-sm rounded-2xl bg-card p-8 shadow-sm",children:[t.jsx("h1",{className:"mb-1 text-xl font-bold",children:e("Entrar")}),t.jsx("p",{className:"mb-6 text-sm text-muted",children:e("Acesse o painel da Gira.")}),t.jsxs("label",{className:"mb-4 block",children:[t.jsx("span",{className:"mb-1 block text-sm font-medium",children:e("E-mail")}),t.jsx("input",{type:"email",autoFocus:!0,value:o,onChange:g=>i(g.target.value),className:"w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",placeholder:e("[email protected]")})]}),t.jsxs("label",{className:"mb-6 block",children:[t.jsxs("span",{className:"mb-1 flex items-baseline justify-between text-sm font-medium",children:[e("Senha"),t.jsx(U,{to:"/esqueci-senha",state:{email:o.trim()},className:"text-xs font-normal text-muted underline",children:e("Esqueci minha senha")})]}),t.jsx("input",{type:"password",value:c,onChange:g=>l(g.target.value),className:"w-full rounded-lg border border-white/10 px-3 py-2 outline-none focus:border-giro",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),h&&t.jsx("p",{className:"mb-4 rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:h}),t.jsxs("button",{type:"submit",disabled:d,className:"flex w-full items-center justify-center gap-2 rounded-lg bg-giro px-4 py-2.5 font-semibold text-giro-50 transition hover:opacity-90 disabled:opacity-60",children:[t.jsx(e1,{size:18}),d?"Entrandoâ¦":"Entrar"]})]}),t.jsxs("p",{className:"mt-4 text-sm text-muted",children:["Ainda não tem conta?"," ",t.jsx(U,{className:"font-semibold underline",to:`/criar-conta?plano=livre${n!=="/app"?`&volta=${encodeURIComponent(n)}`:""}`,children:"Criar conta grátis"})]}),t.jsx("p",{className:"mt-6 text-xs text-muted",children:"© 2026 Gira · gira.lat"})]})}const hi=e=>[e.city,e.state,e.country].filter(Boolean).join(" · ");function Bk(e){if(!e)return null;const[a,s,r]=e.split("-");return`${r}/${s}/${a}`}function Gk(e){const a=new Map;for(const s of e){const r=`${s.lat.toFixed(3)},${s.lng.toFixed(3)}`,n=a.get(r);n?n.items.push(s):a.set(r,{key:r,lat:s.lat,lng:s.lng,items:[s]})}return[...a.values()]}function Vk(e){const a=e.items.length>1?`<p class="map-pop-place">${st(hi(e.items[0]))} · ${e.items.length} oportunidades</p>`:"",s=e.items.map(r=>{var l,d;const n=[];r.reach_label&&n.push(st(r.reach_label)),r.usual_month?n.push(`costuma acontecer em ${st(r.usual_month)}`):r.recurrence&&n.push(st(r.recurrence)),(l=r.edition)!=null&&l.period&&n.push(st(r.edition.period));const o=Bk(((d=r.edition)==null?void 0:d.deadline)??null),i=r.edition?r.edition.open?`<span class="map-tag map-tag-open">Inscrições até ${o}</span>`:o?`<span class="map-tag">Ãltimo prazo: ${o} (${r.edition.year})</span>`:`<span class="map-tag">Edição ${r.edition.year}</span>`:"",c=r.precision==="city"?"":`<p class="map-pop-approx">Local ${st(r.precision_label)}</p>`;return`<div class="map-pop-item"> 722 <strong>${st(r.name)}</strong> 723 ${r.organizer?`<p class="map-pop-org">${st(r.organizer)}</p>`:""} 724 <p class="map-pop-place">${st(hi(r))}</p> 725 ${n.length?`<p class="map-pop-meta">${n.join(" · ")}</p>`:""} 726 ${i} 727 ${c} 728 </div>`}).join("");return`<div class="map-pop">${a}${s}</div>`}function Uk(e){const a=e.items.some(n=>{var o;return(o=n.edition)==null?void 0:o.open}),s=e.items.every(n=>n.precision!=="city"),r=e.items.length>1?String(e.items.length):"";return`<span class="map-pin${a?" is-open":""}${s?" is-approx":""}">${r}</span>`}function Wk(){const[e,a]=O.useState(null),[s,r]=O.useState(null),[n,o]=O.useState(""),[i,c]=O.useState("all"),[l,d]=O.useState("all"),[u,h]=O.useState(!1),[m,f]=O.useState(!1),v=O.useRef(null),g=O.useRef(null),b=O.useRef(null),p=O.useRef(new Map);O.useEffect(()=>
728{Rt.festivalsMap().then(a).catch(()=>r("Não foi possÃvel carregar as oportunidades agora."))},[]),O.useEffect(()=>{let z=!1;return og().then(P=>{if(z||!v.current||g.current)return;const w=P.map(v.current,{zoomControl:!0,scrollWheelZoom:!0,attributionControl:!0}).setView([-15,-60],3);P.tileLayer(ig,{maxZoom:18,attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>'}).addTo(w),b.current=P.layerGroup().addTo(w),g.current=w,f(!0)}).catch(P=>r(P.message)),()=>{var P;z=!0,(P=g.current)==null||P.remove(),g.current=null}},[]);const x=O.useMemo(()=>{const z=new Map;for(const P of(e==null?void 0:e.items)??[]){const w=P.region??"outros",L=z.get(w)??[];L.includes(P.country)||L.push(P.country),z.set(w,L)}for(const P of z.values())P.sort((w,L)=>w.localeCompare(L,"pt-BR"));return z},[e]),j=O.useMemo(()=>{const z={latam:0,europa:0};for(const P of(e==null?void 0:e.items)??[])P.region==="latam"&&(z.latam+=1),P.region==="europa"&&(z.europa+=1);return z},[e]),k=O.useMemo(()=>{const z=n.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return((e==null?void 0:e.items)??[]).filter(P=>{var L;return l!=="all"&&P.region!==l||i!=="all"&&P.country!==i||u&&!((L=P.edition)!=null&&L.open)?!1:z?`${P.name} ${P.organizer??""} ${hi(P)}`.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(z):!0})},[e,n,l,i,u]),N=O.useMemo(()=>Gk(k),[k]);O.useEffect(()=>{const z=window.L;if(!(!m||!z||!b.current)){b.current.clearLayers(),p.current.clear();for(const P of N){const w=z.marker([P.lat,P.lng],{icon:z.divIcon({className:"map-pin-wrap",html:Uk(P),iconSize:[26,26],iconAnchor:[13,13],popupAnchor:[0,-14]}),title:P.items.map(L=>L.name).join(" · ")}).bindPopup(Vk(P),{maxWidth:320,maxHeight:340});w.addTo(b.current),p.current.set(P.key,w)}N.length&&g.current&&g.current.fitBounds(z.latLngBounds(N.map(P=>[P.lat,P.lng])),{padding:[50,50],maxZoom:7})}},[N,m]);const C=z=>{const P=`${z.lat.toFixed(3)},${z.lng.toFixed(3)}`,w=p.current.get(P);!w||!g.current||(g.current.flyTo([z.lat,z.lng],Math.max(g.current.getZoom(),6),{duration:.6}),w.openPopup())},_=O.useMemo(()=>{const z=new Map;for(const P of k){const w=z.get(P.country)??[];w.push(P),z.set(P.country,w)}return[...z.entries()].sort((P,w)=>P[1].length!==w[1].length?w[1].length-P[1].length:P[0].localeCompare(w[0],"pt-BR"))},[k]),A=k.filter(z=>{var P;return(P=z.edition)==null?void 0:P.open}).length;return t.jsxs("div",{className:"flex h-screen flex-col bg-giro-50 text-ink",children:[t.jsxs("header",{className:"flex shrink-0 flex-wrap items-center gap-3 border-b border-white/10 bg-giro-50/90 px-5 py-3 backdrop-blur md:px-8",children:[t.jsxs(U,{to:"/",className:"flex items-center gap-2 text-xl font-bold tracking-tight text-giro-ink",children:[t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"h-7 w-7 object-contain"}),"Gira"]}),t.jsx("span",{className:"hidden text-sm text-muted sm:inline",children:"· Mapa de festivais â América Latina e Europa"}),t.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[t.jsx(U,{to:"/",className:"rounded-lg px-3 py-2 text-sm font-medium text-muted transition hover:text-giro-ink",children:"Site"}),t.jsx(U,{to:"/login",className:"rounded-lg border border-giro/30 px-4 py-2 text-sm font-semibold text-giro-ink transition hover:bg-card",children:"Entrar"})]})]}),t.jsxs("div",{className:"flex min-h-0 flex-1 flex-col-reverse md:flex-row",children:[t.jsxs("aside",{className:"flex min-h-0 w-full flex-col border-t border-white/10 bg-card md:w-[380px] md:shrink-0 md:border-r md:border-t-0",children:[t.jsxs("div",{className:"shrink-0 border-b border-white/10 p-4",children:[t.jsxs("h1",{className:"flex items-center gap-2 text-lg font-bold",children:[t.jsx(qb,{size:18})," Festivais e editais"]}),t.jsxs("p",{className:"mt-1 text-xs leading-relaxed text-muted",children:["As oportunidades que a Gira acompanha no Radar, da Patagônia à Europa.",e?` ${e.count} no mapa.`:""]}),t.jsxs("div",{className:"mt-3 flex items-center gap-2 rounded-lg border border-white/10 bg-giro-50 px-3 py-2",children:[t.jsx(Oi,{size:15,className:"shrink-0 text-muted"}),t.jsx("input",{value:n,onChange:z=>o(z.target.value),placeholder:"Buscar festival ou cidade",className:"w-full bg-transparent text-sm outline-none"}),n&&t.jsx("button",{className:"text-muted hover:text-ink",onClick:()=>o(""),children:t.jsx(tt,{size:14})})]}),t.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[[["all","Tudo",j.latam+j.europa],["latam","América Latina",j.latam],["europa","Europa",j.europa]].map(([z,P,w])=>t.jsxs("button",{onClick:()=>{d(z),c("all")},className:"rounded-lg border px-2.5 py-1.5 text-xs font-semibold transition "+(l===z?"border-giro bg-giro text-card":"border-white/10 bg-giro-50 text-muted hover:text-ink"),children:[P," (",w,")"]},z)),t.jsxs("select",{value:i,onChange:z=>c(z.target.value),className:"rounded-lg border border-white/10 bg-giro-50 px-2 py-1.5 text-xs",children:[t.jsx("option",{value:"all",children:"Todos os paÃses"}),[["latam","América Latina"],["europa","Europa"],["outros","Outros"]].map(([z,P])=>{const w=x.get(z)??[];return w.length?t.jsx("optgroup",{label:P,children:w.map(L=>t.jsx("option",{value:L,children:L},L))},z):null})]}),t.jsxs("button",{onClick:()=>h(z=>!z),className:"rounded-lg border px-2.5 py-1.5 text-xs font-semibold transition "+(u?"border-giro bg-giro text-card":"border-white/10 bg-giro-50 text-muted hover:text-ink"),children:["Inscrições abertas (",A,")"]})]})]}),t.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[s&&t.jsx("p",{className:"p-4 text-sm text-muted",children:s}),!s&&!e&&t.jsx("p",{className:"p-4 text-sm text-muted",children:"Carregandoâ¦"}),e&&k.length===0&&t.jsx("p",{className:"p-4 text-sm text-muted",children:"Nenhuma oportunidade com esses filtros."}),_.map(([z,P])=>t.jsxs("section",{children:[t.jsxs("h2",{className:"sticky top-0 z-[1] flex items-center justify-between border-b border-white/10 bg-card/95 px-4 py-2 text-xs font-bold uppercase tracking-wide text-muted backdrop-blur",children:[z," ",t.jsx("span",{children:P.length})]}),t.jsx("ul",{className:"m-0 list-none p-0",children:P.map(w=>{var L;return t.jsx("li",{children:t.jsxs("button",{onClick:()=>C(w),className:"w-full border-b border-white/5 px-4 py-3 text-left transition hover:bg-giro-50",children:[t.jsx("p",{className:"text-sm font-semibold leading-snug",children:w.name}),t.jsxs("p",{className:"mt-0.5 flex items-center gap-1 text-xs text-muted",children:[t.jsx(Xa,{size:12,className:"shrink-0"}),hi(w),w.precision!=="city"&&" (aprox.)"]}),t.jsxs("p",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-[11px]",children:[((L=w.edition)==null?void 0:L.open)&&t.jsx("span",{className:"rounded bg-giro px-1.5 py-0.5 font-semibold text-card",children:"inscrições abertas"}),w.reach_label&&t.jsx("span",{className:"rounded bg-giro-100 px-1.5 py-0.5 text-muted",children:w.reach_label}),w.usual_month&&t.jsx("span",{className:"text-muted",children:w.usual_month})]})]})},w.id)})})]},z))]}),t.jsxs("div",{className:"shrink-0 border-t border-white/10 px-4 py-3 text-[11px] leading-relaxed text-muted",children:["Quer o seu festival aqui â ou o seu espetáculo circulando por eles?"," ",t.jsx("a",{href:"https://wa.me/5551999489818?text=Ol%C3%A1!%20Vim%20pelo%20mapa%20de%20festivais%20da%20Gira.",target:"_blank",rel:"noreferrer",className:"font-semibold text-giro-ink underline",children:"fala com a gente"}),"."]})]}
728),t.jsxs("div",{className:"relative min-h-[52vh] flex-1 md:min-h-0",children:[t.jsx("div",{ref:v,className:"absolute inset-0"}),t.jsxs("div",{className:"pointer-events-none absolute bottom-6 left-3 z-[500] flex flex-col gap-1 rounded-lg border border-white/10 bg-card/90 px-3 py-2 text-[11px] text-muted shadow-sm backdrop-blur",children:[t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx("i",{className:"map-legend map-legend-open"})," inscrições abertas"]}),t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx("i",{className:"map-legend"})," festival mapeado"]}),t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx("i",{className:"map-legend map-legend-approx"})," local aproximado"]})]})]})]})]})}const Hk=e=>e.split(/\s+/).slice(0,2).map(a=>a[0]).join("").toUpperCase();function Qk({name:e,language:a,place:s,photo:r,to:n,href:o}){const i="inline-flex items-center gap-1.5 rounded-lg border border-giro/30 px-4 py-2 text-sm font-semibold text-giro-ink transition hover:bg-giro-50";return t.jsxs("article",{className:"group flex h-full flex-col overflow-hidden rounded-2xl border border-white/10 bg-card shadow-sm transition hover:shadow-md",children:[t.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden bg-giro-100",children:r?t.jsx("img",{src:r,alt:e,className:"h-full w-full object-cover transition duration-500 group-hover:scale-105"}):t.jsx("div",{className:"flex h-full w-full items-center justify-center text-5xl font-bold tracking-tight text-muted",children:Hk(e)})}),t.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[t.jsx("h3",{className:"text-lg font-bold leading-tight text-giro-ink",children:e}),a&&t.jsx("p",{className:"mt-1 text-sm text-muted",children:a}),s&&t.jsxs("p",{className:"mt-1 flex items-center gap-1 text-xs text-muted",children:[t.jsx(Xa,{size:12})," ",s]}),t.jsx("div",{className:"mt-auto pt-4",children:n?t.jsxs(U,{to:n,className:i,children:["Conhecer ",t.jsx(ae,{size:15})]}):t.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",className:i,children:["Conhecer ",t.jsx(ae,{size:15})]})})]})]})}const Kk=xa("Olá! Vim pela página do elenco da Gira e quero contratar um artista representado por vocês."),Yk=xa("Olá! Sou artista e quero ser representado pela Gira."),Jk=e=>[e.city,e.state,e.country!=="Brasil"?e.country:null].filter(Boolean).join(" · ");function Zk(){const[e,a]=O.useState(null),[s,r]=O.useState(null);return O.useEffect(()=>{Rt.artists().then(n=>a(n.items)).catch(()=>r("Não foi possÃvel carregar os artistas agora."))},[]),t.jsxs("div",{className:"min-h-screen scroll-smooth bg-giro-50 text-ink",children:[t.jsx(vr,{}),t.jsxs("section",{className:"px-6 pt-14 pb-10 text-center md:pt-20",children:[t.jsx("span",{className:"mb-5 inline-block rounded-full bg-card px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-giro-ink shadow-sm",children:"Elenco Gira"}),t.jsx("h1",{className:"mx-auto max-w-3xl text-4xl font-bold leading-[1.1] tracking-tight md:text-5xl",children:"Artistas representados"}),t.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-lg leading-relaxed text-muted",children:"Quem a Gira leva para festivais, mostras, circuitos e editais. Cada artista tem aqui a sua página, com produtos culturais, oficinas, fotos e ficha técnica â tudo pronto para quem contrata."})]}),t.jsx("section",{className:"px-6 pb-16 md:pb-24",children:t.jsxs("div",{className:"mx-auto max-w-6xl",children:[s&&t.jsx("p",{className:"text-center text-muted",children:s}),!s&&!e&&t.jsx("p",{className:"text-center text-muted",children:"Carregandoâ¦"}),e&&e.length===0&&t.jsx("p",{className:"text-center text-muted",children:"Nenhum artista publicado ainda."}),e&&e.length>0&&t.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(n=>t.jsx(Qk,{name:n.name,language:n.subtitle,place:Jk(n)||null,photo:n.profile_photo,to:`/${n.slug}`},n.slug))})]})}),t.jsx("section",{className:"px-6 pb-20",children:t.jsxs("div",{className:"mx-auto max-w-4xl rounded-3xl bg-giro px-8 py-12 text-center text-giro-50",children:[t.jsx("h2",{className:"text-2xl font-bold md:text-3xl",children:"Quer um desses artistas no seu festival?"}),t.jsx("p",{className:"mx-auto mt-3 max-w-2xl opacity-90",children:"A Gira cuida de proposta, contrato, ficha técnica e logÃstica. Fale com a produção e a gente monta a data."}),t.jsxs("div",{className:"mt-7 flex flex-wrap items-center justify-center gap-3",children:[t.jsxs("a",{href:Kk,target:"_blank",rel:"noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-card px-6 py-3 text-base font-semibold text-giro-ink shadow-sm transition hover:bg-giro-50",children:["Contrate um artista ",t.jsx(ae,{size:18})]}),t.jsx("a",{href:Yk,target:"_blank",rel:"noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-card px-6 py-3 text-base font-semibold text-giro-ink shadow-sm transition hover:bg-giro-50",children:"Quero ser representado"})]})]})}),t.jsx(jr,{waMsg:"Olá! Vim pela página do elenco da Gira e quero falar com a produção."})]})}const Fp=new Intl.NumberFormat("pt-BR"),Xk=e=>
728e.toLocaleString("pt-BR",{style:"currency",currency:"BRL",maximumFractionDigits:0});function ew({data:e}){const[a,s]=O.useState(null);if(!e.length)return null;const r=1200,n=300,o={top:28,right:8,bottom:30,left:8},i=r-o.left-o.right,c=n-o.top-o.bottom,l=Math.max(...e.map(f=>f.count)),d=i/e.length,u=Math.min(24,d-2),h=e.reduce((f,v)=>v.count>f.count?v:f),m=(f,v,g,b)=>{const p=Math.min(4,b);return`M${f},${v+b} L${f},${v+p} Q${f},${v} ${f+p},${v} L${f+g-p},${v} Q${f+g},${v} ${f+g},${v+p} L${f+g},${v+b} Z`};return t.jsxs("figure",{style:{margin:0},children:[t.jsxs("svg",{viewBox:`0 0 ${r} ${n}`,style:{width:"100%",height:"auto",display:"block"},role:"img","aria-label":`Ações por ano, de ${e[0].year} a ${e[e.length-1].year}. Pico em ${h.year} com ${h.count} ações.`,children:[t.jsx("line",{x1:o.left,y1:o.top+c,x2:r-o.right,y2:o.top+c,stroke:"rgb(var(--line))",strokeWidth:"1"}),e.map((f,v)=>{const g=l?f.count/l*c:0,b=o.left+v*d+(d-u)/2,p=o.top+c-g,x=a===v,j=f.year===h.year||x;return t.jsxs("g",{onMouseEnter:()=>s(v),onMouseLeave:()=>s(null),children:[t.jsx("rect",{x:o.left+v*d,y:o.top,width:d,height:c,fill:"transparent"}),t.jsx("path",{d:m(b,p,u,g),fill:"rgb(var(--ink))",opacity:a===null||x?1:.35}),j&&t.jsx("text",{x:b+u/2,y:p-7,textAnchor:"middle",fontSize:"12",fontWeight:"600",fill:"rgb(var(--ink))",children:f.count}),t.jsx("text",{x:b+u/2,y:n-9,textAnchor:"middle",fontSize:"11",fill:"rgb(var(--muted))",children:String(f.year).slice(2)})]},f.year)})]}),t.jsx("figcaption",{className:"muted",style:{fontSize:12,marginTop:6},children:"Ações por ano · passe o mouse para ver cada uma"})]})}function tw(){const{artistId:e}=ne(),a=J(),{data:s,error:r,loading:n}=D(()=>z1.get(Number(e)),[e]),[o,i]=O.useState(!1);if(n)return t.jsx("p",{className:"muted",children:"Carregando painel de carreiraâ¦"});if(r)return t.jsx("p",{className:"error",children:r});if(!s)return null;const{artist:c,actions:l,repertoire:d,submissions:u,audience:h,fees:m,missing:f}=s,v=l.first_year&&l.last_year?l.last_year-l.first_year+1:0,g=[{label:"ações culturais registradas",value:Fp.format(l.total),Icon:Wa},{label:v===1?"ano de estrada":"anos de estrada",value:v,Icon:_f},{label:d.shows===1?"produto cultural":"produtos culturais",value:d.shows,Icon:mu},{label:d.oficinas===1?"oficina":"oficinas",value:d.oficinas,Icon:Af}];return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"toolbar",children:[t.jsxs("div",{style:{marginRight:"auto"},children:[t.jsx("h2",{style:{margin:0,fontSize:20,letterSpacing:"-0.02em"},children:c.name}),t.jsx("p",{className:"muted",style:{margin:"2px 0 0",fontSize:13},children:[c.subtitle,l.first_year?`Histórico de ${l.first_year} a ${l.last_year}
728`:"Sem ações cadastradas ainda"].filter(Boolean).join(" · ")})]}),t.jsx("button",{className:"btn",onClick:()=>a(`/app/perfil/${e}/acoes`),children:"Ver ações culturais"})]}),t.jsx("div",{className:"kpi-row",style:{gridTemplateColumns:"repeat(4, 1fr)"},children:g.map(b=>t.jsxs("div",{className:"kpi-card",children:[t.jsx("div",{className:"kpi-icon",children:t.jsx(b.Icon,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:b.value}),t.jsx("span",{children:b.label})]})]},b.label))}),l.by_year.length>0&&t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsxs("div",{className:"toolbar",style:{marginBottom:4},children:[t.jsx("strong",{children:"Evolução por ano"}),t.jsx("button",{className:"btn",onClick:()=>i(b=>!b),children:o?"Ver gráfico":"Ver tabela"})]}),o?t.jsxs("table",{className:"table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Ano"}),t.jsx("th",{style:{textAlign:"right"},children:"Ações"})]})}),t.jsx("tbody",{children:l.by_year.map(b=>t.jsxs("tr",{children:[t.jsx("td",{children:b.year}),t.jsx("td",{style:{textAlign:"right"},children:b.count})]},b.year))})]}):t.jsx(ew,{data:l.by_year})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("strong",{children:"Público e cachê"}),t.jsx("p",{className:"sub",children:"Preenchidos a mão, ação por ação. O painel só mostra o total quando há dado â nunca estima."}),h.filled>0||m.filled>0?t.jsxs("div",{className:"kpi-row",style:{gridTemplateColumns:"repeat(2, 1fr)",marginTop:12},children:[h.filled>0&&t.jsxs("div",{className:"kpi-card",children:[t.jsx("div",{className:"kpi-icon",children:t.jsx(xt,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:Fp.format(h.total??0)}),t.jsxs("span",{children:["pessoas · apurado em ",h.filled," de ",l.total," ações"]})]})]}),m.filled>0&&t.jsxs("div",{className:"kpi-card",children:[t.jsx("div",{className:"kpi-icon",children:t.jsx(su,{size:20,strokeWidth:2})}),t.jsxs("div",{children:[t.jsx("strong",{children:Xk(m.total??0)}),t.jsxs("span",{children:["em cachê · apurado em ",m.filled," de ",l.total," ações"]})]})]})]}):t.jsx("p",{className:"muted",style:{marginTop:8},children:"Nenhuma ação tem público ou cachê preenchido ainda. Os campos já existem no cadastro da ação cultural â conforme forem preenchidos, os totais aparecem aqui."})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("strong",{children:"O que ainda falta"}),t.jsx("p",{className:"sub",children:"Estes números não aparecem porque o dado não existe â e não porque seja zero."}),t.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.8},children:f.map(b=>t.jsxs("li",{children:[t.jsx("strong",{children:b.label})," ",t.jsxs("span",{className:"muted",children:["â ",b.why]})]},b.key))})]}),t.jsxs("div",{className:"card",style:{marginTop:16},children:[t.jsx("strong",{children:"Inscrições"}),t.jsxs("p",{className:"sub",children:["Medem candidatura, não circulação realizada: ",u.total," inscrições registradas, ",u.confirmed," confirmada",u.confirmed===1?"":"s","."]})]})]})}const aw="/app/perfil",Op=3,kg=[{value:"instagram",label:"Instagram"},{value:"email",label:"E-mail"},{value:"formulario",label:"Formulário"},{value:"ficha",label:"Ficha de avaliação"}],sw=Object.fromEntries(kg.map(e=>[e.value,e.label]));function rw(){var g;const{artistId:e}=ne(),a=Number(e),{readonly:s}=de(),r=ge(),n=D(()=>me.get(a),[e]),o=D(()=>Er.list(a),[e]),[i,c]=y.useState(null),[l,d]=y.useState(null);if(o.error)return t.jsx("p",{className:"error",children:o.error});const u=o.data??[],h=new Set(u.filter(b=>b.visible).slice(0,Op).map(b=>b.id));async function m(b){if(confirm("Excluir este depoimento?"))try{await Er.remove(b.id),o.reload()}catch(p){d(String(p.message))}}async function f(b,p){try{await Er.update(b.id,{[p]:!b[p]}),o.reload()}catch(x){d(String(x.message))}}async function v(b){var j,k;const p=(b.quote??"").trim();if(!p)throw new Error("Sem a frase não há depoimento.");const x={quote:p,author:((j=b.author)==null?void 0:j.trim())||null,context:((k=b.context)==null?void 0:k.trim())||null,happened_on:b.happened_on||null,source:b.source||null,visible:b.visible??!0,featured:b.featured??
728!1,sort_order:b.sort_order??0};b.id?await Er.update(b.id,x):await Er.create(a,x),r.ok(b.id?"Depoimento salvo.":"Depoimento cadastrado."),c(null),o.reload()}return t.jsxs(t.Fragment,{children:[t.jsx(U,{to:aw,className:"back-link",children:"â¹ Perfis"}),t.jsxs("div",{className:"toolbar",children:[t.jsxs("span",{className:"muted",children:[((g=n.data)==null?void 0:g.name)??"Perfil"," · ",u.length," ",u.length===1?"depoimento":"depoimentos"]}),!s&&!i&&t.jsx("button",{className:"btn primary",onClick:()=>c({visible:!0}),children:"+ Novo depoimento"})]}),t.jsxs("p",{className:"sub",style:{marginTop:-6,marginBottom:14},children:["Copie e cole o que já disseram do seu trabalho â do Instagram, de um e-mail, de uma ficha de avaliação. O livro de vendas usa ",Op,": os marcados como destaque vêm primeiro."]}),l&&t.jsx("p",{className:"error",children:l}),i&&t.jsx(nw,{inicial:i,onCancelar:()=>c(null),onSalvar:v}),u.length===0&&!i&&t.jsx("p",{className:"muted",children:"Nenhum depoimento cadastrado ainda."}),t.jsx("div",{style:{display:"grid",gap:12},children:u.map(b=>t.jsx("div",{className:"card",style:{opacity:b.visible?1:.6},children:t.jsxs("div",{style:{display:"flex",gap:12,alignItems:"flex-start"},children:[t.jsx(Lf,{size:18,strokeWidth:2,style:{flexShrink:0,marginTop:3,opacity:.5}}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsxs("blockquote",{style:{margin:0,fontSize:15,lineHeight:1.5},children:["â",b.quote,"â"]}),t.jsx("p",{className:"sub",style:{marginTop:6},children:[b.author,b.context,b.happened_on?X(b.happened_on):null,b.source?sw[b.source]??b.source:null].filter(Boolean).join(" · ")||"sem autor nem contexto"}),t.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[h.has(b.id)&&t.jsx("span",{className:"badge",style:{background:"rgb(var(--brand))",color:"rgb(var(--bg))"},children:"vai para o livro"}),b.featured&&t.jsx("span",{className:"badge-soft",children:"destaque"}),!b.visible&&t.jsx("span",{className:"badge-soft",children:"oculto"})]})]}),!s&&t.jsxs("div",{className:"linha-acoes",style:{flexShrink:0},children:[t.jsx("button",{className:"btn",onClick:()=>f(b,"featured"),children:b.featured?"Tirar destaque":"Destacar"}),t.jsx("button",{className:"btn",onClick:()=>f(b,"visible"),children:b.visible?"Ocultar":"Mostrar"}),t.jsx("button",{className:"btn",onClick:()=>c({...b}),children:"Editar"}),t.jsx("button",{className:"btn danger",onClick:()=>m(b),children:"Excluir"})]})]})},b.id))})]})}function nw({inicial:e,onCancelar:a,onSalvar:s}){const[r,n]=y.useState({...e}),[o,i]=y.useState(!1),[c,l]=y.useState(null),d=h=>n(m=>({...m,...h}));async function u(){i(!0),l(null);try{await s(r)}catch(h){l(String(h.message))}finally{i(!1)}}return t.jsxs("div",{className:"card",style:{marginBottom:16},children:[t.jsx("div",{className:"card-head",children:t.jsx("h3",{children:r.id?"Editar depoimento":"Novo depoimento"})}),t.jsxs("div",{className:"form-grid",children:[t.jsx(S,{label:"O que disseram",full:!0,children:t.jsx("textarea",{rows:3,value:r.quote??"",onChange:h=>d({quote:h.target.value}),placeholder:"Cole aqui a frase, como ela foi escrita.",autoFocus:!0})}),t.jsx(S,{label:"Quem disse",hint:"Pode ficar vazio â o contexto vale mais.",children:t.jsx("input",{value:r.author??"",onChange:h=>d({author:h.target.value}),placeholder:"ex.: Marina Souza"})}),t.jsx(S,{label:"Onde/quando foi dito",hint:"à o que dá lastro à frase: âSESC Alegrete, 2025â.",children:t.jsx("input",{value:r.context??"",onChange:h=>d({context:h.target.value}),placeholder:"ex.: SESC Alegrete, 2025"})}),t.jsx(S,{label:"Data",children:t.jsx("input",{type:"date",value:r.happened_on??"",onChange:h=>d({happened_on:h.target.value||null})})}),t.jsx(S,{label:"De onde veio",children:t.jsxs("select",{value:r.source??"",onChange:h=>d({source:h.target.value||null}),children:[t.jsx("option",{value:"",children:"â"}),kg.map(h=>t.jsx("option",{value:h.value,children:h.label},h.value))]})}),t.jsxs("div",{className:"field field-full",children:[t.jsx("span",{children:"No livro de vendas e no site"}
728),[{chave:"featured",marcado:r.featured??!1,texto:"Destacar â vai na frente da fila do livro"},{chave:"visible",marcado:r.visible??!0,texto:"Mostrar â desmarque para guardar sem publicar"}].map(h=>t.jsxs("label",{style:{display:"flex",gap:8,alignItems:"center",fontSize:13},children:[t.jsx("input",{type:"checkbox",checked:h.marcado,onChange:m=>d({[h.chave]:m.target.checked}),style:{width:"auto",flex:"0 0 auto",margin:0}}),h.texto]},h.chave))]})]}),c&&t.jsx("p",{className:"error",children:c}),t.jsxs("footer",{className:"modal-foot",children:[t.jsx("div",{className:"spacer"}),t.jsx("button",{className:"btn",onClick:a,disabled:o,children:"Cancelar"}),t.jsx("button",{className:"btn primary",onClick:u,disabled:o,children:o?"Salvandoâ¦":"Salvar"})]})]})}const xi="rgb(var(--site-ink))",Ft="var(--brand-accent)",ow="var(--brand-font)",iw="#b81f1f",wg="#0d0d0d",lw="#f4f1ea",Xc="'IBM Plex Mono', 'Courier New', monospace",Dp="#0d0d0d",cw="#ffffff",dw={light:{bg:"255 255 255",ink:"13 13 13",muted:"115 115 115",faint:"163 163 163",line:"229 229 229",soft:"245 245 245"},dark:{bg:"13 13 13",ink:"245 245 245",muted:"163 163 163",faint:"115 115 115",line:"38 38 38",soft:"26 26 26"}};function uw(e){const a=dw[e==="dark"?"dark":"light"];return{"--site-bg":a.bg,"--site-ink":a.ink,"--site-muted":a.muted,"--site-faint":a.faint,"--site-line":a.line,"--site-soft":a.soft}}function mw(e){return{"--brand-accent":e.accent||e.primary||iw,"--brand-primary":e.primary||wg,"--brand-secondary":e.secondary||lw,"--brand-font":Xc,...uw(e.theme)}}function pw(e){if(!/^#[0-9a-fA-F]{6}$/.test(e))return Dp;const a=parseInt(e.slice(1,3),16),s=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return(.299*a+.587*s+.114*r)/255>.6?Dp:cw}function Ot(){return Ry()}function Pn(e){return(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Cg(e,a,s){if(a)return e.find(r=>Pn(s(r))===a)??e.find(r=>String(r.id)===a)}const An="inline-flex items-center justify-center gap-2 rounded-sm bg-site-ink px-6 py-3 text-sm font-medium text-site-bg transition hover:opacity-90",ps="inline-flex items-center justify-center gap-2 rounded-sm border border-site-ink bg-transparent px-6 py-3 text-sm font-medium text-site-ink transition hover:bg-site-soft";function _g(e){return Object.entries(e??{}).filter(([,a])=>!!a)}function hw({label:e,urls:a,lang:s,className:r=ps,icon:n}){const o=_g(a);if(o.length===0)return null;const i=(a==null?void 0:a[s])??o[0][1],c=o.filter(([l])=>l!==s);return t.jsxs("span",{className:"inline-flex items-center gap-2",children:[t.jsxs("a",{href:i,target:"_blank",rel:"noreferrer",className:r,children:[n," ",e]}),c.length>0&&t.jsx("span",{className:"flex items-center gap-1.5 text-[11px] uppercase tracking-widest text-site-muted",children:c.map(([l,d])=>t.jsx("a",{href:d,target:"_blank",rel:"noreferrer",title:`${e} â ${Sg[l]??l}`,className:"transition hover:text-site-ink hover:underline",children:l},l))})]})}const Sg={pt:"Português",es:"Español",en:"English",fr:"Français"};function wt({children:e}){return t.jsx("p",{className:"mb-4 text-xs font-medium uppercase tracking-[0.25em] text-site-muted",children:e})}function es({eyebrow:e,title:a,children:s}){return t.jsxs("div",{className:"mb-12 md:mb-16",children:[t.jsx("div",{className:"mb-6 h-0.5 w-16",style:{background:Ft}}),e&&t.jsx(wt,{children:e}),t.jsx("h1",{className:"text-4xl font-bold tracking-tight md:text-6xl",children:a}),s&&t.jsx("div",{className:"mt-6 max-w-2xl text-lg text-site-muted",children:s})]})}function ts({children:e}){return t.jsx("div",{className:"mx-auto max-w-5xl px-6 py-16 md:px-8 md:py-24",children:e})}function Bp({id:e,eyebrow:a,title:s,children:r,border:n=!0}){return t.jsx("section",{id:e,className:`py-16 md:py-24 ${n?"border-t border-site-line":""}`,children:t.jsxs("div",{className:"mx-auto max-w-5xl px-6 md:px-8",children:[(a||s)&&t.jsxs("div",{className:"mb-10",children:[t.jsx("div",{className:"mb-6 h-0.5 w-16",style:{background:Ft}}),a&&t.jsx(wt,{children:a}),s&&t.jsx("h2",{className:"text-3xl font-bold tracking-tight md:text-4xl",children:s})]}),r]})})}function Qi({children:e}){return t.jsx("p",{className:"text-site-muted",children:e})}const Ml={pt:{nav_inicio:"InÃcio",nav_sobre:"Quem sou",nav_produtos:"Produtos",nav_oficinas:"Oficinas",
728nav_acoes:"Ações",nav_galeria:"Galeria",nav_contato:"Contato",eyebrow_repertorio:"Repertório",eyebrow_formacao:"Formação",eyebrow_registros:"Registros",eyebrow_trajetoria:"Trajetória",eyebrow_quem_sou:"Quem sou",eyebrow_produto:"Produto",eyebrow_oficina:"Oficina",eyebrow_vamos_conversar:"Vamos conversar",title_sobre:"Sobre",title_produtos:"Produtos",title_oficinas:"Oficinas",title_galeria:"Galeria",title_contato:"Contato",title_acoes:"Histórico de Ações Culturais",label_sinopse:"Sinopse",label_historia:"História",label_galeria:"Galeria",label_objetivos:"Objetivos",label_destaques:"Destaques",label_mestres:"Mestres e formadores",label_todas:"Todas",label_imprensa:"Imprensa",btn_portfolio:"Portfólio",btn_contato:"Contato",cta_ver_produto:"Ver produto",cta_ver_oficina:"Ver oficina",cta_ver_todos:"Ver todos",contato_sub:"Para contratações, festivais e oficinas.",empty_produtos:"Nenhum produto publicado ainda.",empty_oficinas:"Nenhuma oficina publicada ainda.",empty_galeria:"Nenhuma mÃdia publicada ainda.",empty_acoes:"Nenhuma ação publicada ainda.",cta_assistir:"Assistir",cta_teaser:"Teaser",doc_rider:"Rider técnico",doc_croqui:"Croqui do cenário",doc_mapa_luz:"Mapa de luz",foto_fechar:"Fechar",foto_anterior:"Foto anterior",foto_proxima:"Próxima foto",foto_credito:"Foto",share_btn:"Compartilhar",share_title:"Compartilhar site",share_sub:"Aponte a câmera do celular para o código.",share_copy:"Copiar link",share_copied:"Link copiado",share_send:"Enviar link",share_download:"Baixar QR code (PNG)",share_qr_alt:"QR code do site"},es:{nav_inicio:"Inicio",nav_sobre:"Quién soy",nav_produtos:"Productos",nav_oficinas:"Talleres",nav_acoes:"Acciones",nav_galeria:"GalerÃa",nav_contato:"Contacto",eyebrow_repertorio:"Repertorio",eyebrow_formacao:"Formación",eyebrow_registros:"Registros",eyebrow_trajetoria:"Trayectoria",eyebrow_quem_sou:"Quién soy",eyebrow_produto:"Producto",eyebrow_oficina:"Taller",eyebrow_vamos_conversar:"Hablemos",title_sobre:"Acerca",title_produtos:"Productos",title_oficinas:"Talleres",title_galeria:"GalerÃa",title_contato:"Contacto",title_acoes:"Historial de acciones culturales",label_sinopse:"Sinopsis",label_historia:"Historia",label_galeria:"GalerÃa",label_objetivos:"Objetivos",label_destaques:"Destacados",label_mestres:"Maestros y formadores",label_todas:"Todas",label_imprensa:"Prensa",btn_portfolio:"Portafolio",btn_contato:"Contacto",cta_ver_produto:"Ver producto",cta_ver_oficina:"Ver taller",cta_ver_todos:"Ver todos",contato_sub:"Para contrataciones, festivales y talleres.",empty_produtos:"Aún no hay productos publicados.",empty_oficinas:"Aún no hay talleres publicados.",empty_galeria:"Aún no hay contenido publicado.",empty_acoes:"Aún no hay acciones publicadas.",cta_assistir:"Ver",cta_teaser:"Teaser",doc_rider:"Rider técnico",doc_croqui:"Croquis del escenario",doc_mapa_luz:"Mapa de luces",foto_fechar:"Cerrar",foto_anterior:"Foto anterior",foto_proxima:"Foto siguiente",foto_credito:"Foto",share_btn:"Compartir",share_title:"Compartir sitio",share_sub:"Apunta la cámara del celular al código.",share_copy:"Copiar enlace",share_copied:"Enlace copiado",share_send:"Enviar enlace",share_download:"Descargar código QR (PNG)",share_qr_alt:"Código QR del sitio"},en:{nav_inicio:"Home",nav_sobre:"About",nav_produtos:"Products",nav_oficinas:"Workshops",nav_acoes:"Activities",nav_galeria:"Gallery",nav_contato:"Contact",eyebrow_repertorio:"Repertoire",eyebrow_formacao:"Education",eyebrow_registros:"Records",eyebrow_trajetoria:"Journey",eyebrow_quem_sou:"About",eyebrow_produto:"Product",eyebrow_oficina:"Workshop",eyebrow_vamos_conversar:"Let's talk",title_sobre:"About",title_produtos:"Products",title_oficinas:"Workshops",title_galeria:"Gallery",title_contato:"Contact",title_acoes:"Cultural activities",label_sinopse:"Synopsis",label_historia:"History",label_galeria:"Gallery",label_objetivos:"Objectives",label_destaques:"Highlights",label_mestres:"Mentors and teachers",label_todas:"All",label_imprensa:"Press",btn_portfolio:"Portfolio",btn_contato:"Contact",cta_ver_produto:"View product",cta_ver_oficina:"View workshop",cta_ver_todos:"View all",contato_sub:"For bookings, festivals and workshops.",empty_produtos:"No products published yet.",empty_oficinas:"No workshops published yet.",empty_galeria:"No media published yet.",empty_acoes:"No activities published yet.",cta_assistir:"Watch",cta_teaser:"Teaser",doc_rider:"Technical rider",doc_croqui:"Stage plan",doc_mapa_luz:"Lighting plan",foto_fechar:"Close",foto_anterior:"Previous photo",foto_proxima:"Next photo",foto_credito:"Photo",share_btn:"Share",share_title:"Share this site",share_sub:"Point your phone camera at the code.",share_copy:"Copy link",share_copied:"Link copied",share_send:"Send link",share_download:"Download QR code (PNG)",share_qr_alt:"QR code for this site"},fr:{nav_inicio:"Accueil",nav_sobre:"à propos",nav_produtos:"Produits",nav_oficinas:"Ateliers",nav_acoes:"Actions",nav_galeria:"Galerie",nav_contato:"Contact",eyebrow_repertorio:"Répertoire",eyebrow_formacao:"Formation",eyebrow_registros:"Archives",eyebrow_trajetoria:"Parcours",eyebrow_quem_sou:"à propos",eyebrow_produto:"Produit",eyebrow_oficina:"Atelier",eyebrow_vamos_conversar:"Parlons",title_sobre:"à propos",title_produtos:"Produits",title_oficinas:"Ateliers",t
728itle_galeria:"Galerie",title_contato:"Contact",title_acoes:"Historique des actions culturelles",label_sinopse:"Synopsis",label_historia:"Histoire",label_galeria:"Galerie",label_objetivos:"Objectifs",label_destaques:"Points forts",label_mestres:"Maîtres et formateurs",label_todas:"Toutes",label_imprensa:"Presse",btn_portfolio:"Portfolio",btn_contato:"Contact",cta_ver_produto:"Voir le produit",cta_ver_oficina:"Voir l'atelier",cta_ver_todos:"Voir tout",contato_sub:"Pour les engagements, festivals et ateliers.",empty_produtos:"Aucun produit publié pour l'instant.",empty_oficinas:"Aucun atelier publié pour l'instant.",empty_galeria:"Aucun média publié pour l'instant.",empty_acoes:"Aucune action publiée pour l'instant.",cta_assistir:"Regarder",cta_teaser:"Teaser",doc_rider:"Fiche technique",doc_croqui:"Plan de scène",doc_mapa_luz:"Plan lumière",foto_fechar:"Fermer",foto_anterior:"Photo précédente",foto_proxima:"Photo suivante",foto_credito:"Photo",share_btn:"Partager",share_title:"Partager le site",share_sub:"Pointez l'appareil photo du téléphone vers le code.",share_copy:"Copier le lien",share_copied:"Lien copié",share_send:"Envoyer le lien",share_download:"Télécharger le QR code (PNG)",share_qr_alt:"QR code du site"}};function Ki(e,a){return(Ml[e]??Ml.pt)[a]??Ml.pt[a]??a}function Dt(){const{lang:e}=Ot();return a=>Ki(e,a)}function Eg(){const{pathname:e}=Pe();return y.useEffect(()=>{window.scrollTo(0,0)},[e]),null}function Pg(e){const{artist:a,shows:s,oficinas:r,cultural_actions:n,media:o}=e,i=!!(a.mini_cv||a.highlights.length||a.mentors.length),c=o.galeria.length+o.imprensa.length+s.reduce((u,h)=>u+h.photos.length,0)+r.reduce((u,h)=>u+h.photos.length,0),l=u=>Ki(e.lang,u);return[["",l("nav_inicio"),!0],["sobre",l("nav_sobre"),i],["produtos",l("nav_produtos"),s.length>0],["oficinas",l("nav_oficinas"),r.length>0],["acoes",l("nav_acoes"),n.length>0],["galeria",l("nav_galeria"),c>0],["contato",l("nav_contato"),!0]].filter(([,,u])=>u).map(([u,h])=>({to:u,label:h}))}function Ag(e){return e.book_pdf??e.portfolio_pdf??null}function ed({data:e,className:a,maxHeight:s=52}){const{logo:r}=e.brand;return r?t.jsx("img",{src:r,alt:e.artist.name,className:a,style:{maxHeight:s,maxWidth:"100%",width:"auto",objectFit:"contain"}}):t.jsx("span",{className:a,children:e.artist.name})}function td({data:e,tone:a}){const s=e.languages??[],{slug:r,lang:n}=ne(),o=Pe(),i=J();if(s.length<=1)return null;const c=n?`/${r}/${n}`:`/${r}`,l=o.pathname.slice(c.length),d=u=>{const h=u===e.default_language?`/${r}`:`/${r}/${u}`;i(h+l)};return t.jsx("div",{style:{display:"flex",gap:8,alignItems:"center"},children:s.map(u=>{const h=e.lang===u;return t.jsx("button",{type:"button",onClick:()=>d(u),"aria-current":h,style:{fontSize:11,textTransform:"uppercase",letterSpacing:1.5,background:"none",border:"none",padding:2,cursor:"pointer",fontWeight:h?700:400,opacity:h?1:.55,color:(a==null?void 0:a.ink)??"inherit"},children:u},u)})})}function zg({nav:e,portfolioPdf:a,portfolioLabel:s="Portfólio",tone:r,className:n=""}){const[o,i]=O.useState(!1),{pathname:c}=Pe();y.useEffect(()=>{i(!1)},[c]);const l=(r==null?void 0:r.ink)??xi,d=r?{background:r.bg,color:r.ink}:{background:"rgb(var(--site-bg))",color:xi};return t.jsxs("div",{className:`relative ${n}`,style:{color:l},children:[t.jsx("button",{type:"button","aria-label":o?"Fechar menu":"Abrir menu","aria-expanded":o,onClick:()=>i(u=>!u),className:"flex h-10 w-10 items-center justify-center",children:t.jsx("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:o?t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"5",y1:"5",x2:"19",y2:"19"}),t.jsx("line",{x1:"19",y1:"5",x2:"5",y2:"19"})]}):t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),t.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),t.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})})}),o&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button","aria-label":"Fechar menu",tabIndex:-1,onClick:()=>i(!1),className:"fixed inset-0 z-30 cursor-default bg-black/20"}),t.jsxs("nav",{className:"absolute right-0 top-full z-40 mt-2 flex min-w-[13rem] flex-col gap-0.5 rounded-lg border border-black/10 p-2 shadow-xl",style:d,children:[e.map(({to:u,label:h})=>t.jsx(na,{to:u,end:u==="",onClick:()=>i(!1),className:({isActive:m})=>`rounded px-3 py-2 text-sm transition ${m?"font-semibold":"opacity-80 hover:opacity-100"}`,children:h},u||"home")),a&&t.jsxs("a",{href:a,target:"_blank",rel:"noreferrer",onClick:()=>i(!1),className:"rounded px-3 py-2 text-sm font-semibold",style:{color:r?r.ink:Ft},children:[s," â"]})]})]})]})}function Tg({data:e,slug:a}){const{artist:s}=e,r=Ag(e),n=Pg(e),o=Ki(e.lang,"btn_portfolio");return t.jsxs(t.Fragment,{children:[t.jsx(Eg,{}),t.jsx("header",{className:"sticky top-0 z-20 border-b border-site-line bg-site-bg/90 backdrop-blur",children:t.jsxs("div",{className:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-6 py-5 md:px-8",children:[t.jsx(na,{to:"",end:!0,className:"shrink-0 text-lg font-bold tracking-tight",children:t.jsx(ed,{data:e})}),t.jsxs("nav",{className:"hidden gap-5 text-sm text-site-muted md:flex md:gap-8",children:[n.map(({to:i,label:c})=>t.jsx(na,{to:i,end:i==="",className:({isActive:l})=>`whitespace-nowrap transition hover:text-site-ink ${l?"font-semibold text-site-ink":""}`,children:c},i||"home")),r&&t.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",className:"whitespace-nowrap font-semibold transition hover:opacity-70",style:{color:Ft},children:[o," â"]})]}),t.jsx(td,{data:e}),t.jsx(zg,{nav:n,portfolioPdf:r,portfolioLabel:o,className:"md:hidden"})]})}),t.jsx("main",{children:t.jsx(Li,{context:{...e,slug:a}})}),t.jsxs("footer",{className:"border-t border-site-line px-6 py-10 text-center text-sm text-site-faint md:px-8",children:[s.name," · feito com"," ",t.jsx("a",{href:"/",className:"font-semibold text-site-ink",children:"Gira"})," ","· gira.lat/",a]})]})}function xw({data:e,slug:a}){const{artist:s}=e,r=Ag(e),n=Pg(e),o=Ki(e.lang,"btn_portfolio"),i=e.brand.primary||wg,c=pw(i),l=(d="")=>({isActive:u})=>`whitespace-nowrap rounded px-3 py-2 text-sm transition ${d} ${u?"font-semibold":"opacity-70 hover:opacity-100"}`;return t.jsxs(t.Fragment,{children:[t.jsx(Eg,{}),t.jsxs("aside",{className:"hidden md:fixed md:inset-y-0 md:left-0 md:flex md:w-60 md:flex-col md:justify-between md:gap-6 md:p-6",style:{background:i,color:c},children:[t.jsxs("div",{children:[t.jsx(na,{to:"",end:!0,className:"mb-8 block text-lg font-bold tracking-tight",children:t.jsx(ed,{data:e,maxHeight:128})}),t.jsx("nav",{className:"flex flex-col gap-1",children:n.map(({to:d,label:u})=>t.jsx(na,{to:d,end:d==="",className:l(),children:u},d||"home"))})]}),t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(td,{data:e,tone
728:{ink:c}}),r&&t.jsxs("a",{href:r,target:"_blank",rel:"noreferrer",className:"rounded px-3 py-2 text-sm font-semibold transition hover:opacity-70",children:[o," â"]})]})]}),t.jsxs("header",{className:"sticky top-0 z-20 flex items-center justify-between gap-4 px-6 py-4 md:hidden",style:{background:i,color:c},children:[t.jsx(na,{to:"",end:!0,className:"text-lg font-bold tracking-tight",children:t.jsx(ed,{data:e,maxHeight:60})}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(td,{data:e,tone:{ink:c}}),t.jsx(zg,{nav:n,portfolioPdf:r,portfolioLabel:o,tone:{bg:i,ink:c}})]})]}),t.jsxs("main",{className:"md:ml-60",children:[t.jsx(Li,{context:{...e,slug:a}}),t.jsxs("footer",{className:"border-t border-site-line px-6 py-10 text-center text-sm text-site-faint md:px-8",children:[s.name," · feito com"," ",t.jsx("a",{href:"/",className:"font-semibold",style:{color:Ft},children:"Gira"})," ","· gira.lat/",a]})]})]})}const fw={classic:Tg,sidebar:xw};function gw(e){return fw[e]??Tg}function Gp(){const{slug:e,lang:a}=ne(),s=D(()=>Rt.artistSite(e,a),[e,a]);if(s.loading)return t.jsx("div",{className:"grid min-h-screen place-items-center bg-site-bg text-site-muted",style:{fontFamily:Xc},children:"Carregandoâ¦"});if(s.error||!s.data)return t.jsx("div",{className:"grid min-h-screen place-items-center bg-site-bg px-6 text-center",style:{fontFamily:Xc},children:t.jsxs("div",{children:[t.jsx("h1",{className:"text-2xl font-bold",style:{color:xi},children:"Site não encontrado"}),t.jsxs("p",{className:"mt-2 text-site-muted",children:["Não há uma companhia publicada em â/",e,"â."]})]})});const r=s.data,n=gw(r.brand.layout);return t.jsx("div",{className:"min-h-screen bg-site-bg",style:{fontFamily:ow,color:xi,letterSpacing:"0.01em",...mw(r.brand)},children:t.jsx(n,{data:{...r,slug:e},slug:e})})}function vw(){const{artist:e,shows:a,oficinas:s}=Ot(),r=Dt(),n=[e.city,e.state].filter(Boolean).join(" / "),o=a.slice(0,3);return t.jsxs(t.Fragment,{children:[t.jsx("section",{className:"px-6 pt-20 pb-14 md:px-8 md:pt-28 md:pb-20",children:t.jsxs("div",{className:"mx-auto grid max-w-5xl items-center gap-12 lg:grid-cols-2",children:[t.jsxs("div",{children:[t.jsx("div",{className:"mb-8 h-px w-16 bg-site-ink"}
728),e.subtitle&&t.jsx(wt,{children:e.subtitle}),t.jsx("h1",{className:"mb-6 text-5xl font-bold tracking-tight md:text-7xl",children:e.name}),e.summary&&t.jsx("p",{className:"mb-9 max-w-md text-lg leading-relaxed text-site-muted",children:e.summary}),t.jsxs("div",{className:"mb-8 flex flex-wrap gap-3 text-sm text-site-muted",children:[n&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(Xa,{size:12,strokeWidth:2})," ",n]}),e.drt&&t.jsxs("span",{children:["DRT ",e.drt]})]}),t.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.length>0&&t.jsxs(U,{to:"produtos",className:An,children:[r("nav_produtos")," ",t.jsx(ae,{size:16})]}),t.jsxs(U,{to:"contato",className:ps,children:[t.jsx(ws,{size:16})," ",r("nav_contato")]})]})]}),t.jsx("div",{className:"order-first lg:order-none",children:e.profile_photo?t.jsx("img",{src:e.profile_photo,alt:e.name,className:"h-72 w-full rounded-lg object-cover sm:h-96 lg:h-[520px]"}):t.jsx("div",{className:"grid h-72 w-full place-items-center rounded-lg bg-site-soft text-7xl font-bold text-site-faint sm:h-96 lg:h-[520px]",children:e.name.charAt(0)})})]})}),o.length>0&&t.jsxs(Bp,{eyebrow:r("eyebrow_repertorio"),title:r("title_produtos"),children:[t.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:o.map(i=>t.jsxs(U,{to:`produtos/${Pn(i.name)}`,className:"group block border border-site-line transition hover:border-site-ink",children:[i.cover?t.jsx("img",{src:i.cover,alt:i.name,className:"h-48 w-full object-cover"}):t.jsx("div",{className:"h-48 w-full bg-site-soft"}),t.jsxs("div",{className:"p-5",children:[t.jsx("h3",{className:"text-lg font-bold tracking-tight",children:i.name}),i.subtitle&&t.jsx("p",{className:"mt-1 text-sm text-site-muted",children:i.subtitle})]})]},i.id))}),a.length>o.length&&t.jsxs(U,{to:"produtos",className:"mt-8 inline-flex items-center gap-2 text-sm font-medium",style:{color:Ft},children:[r("cta_ver_todos")," ",t.jsx(ae,{size:15})]})]}),s.length>0&&t.jsxs(Bp,{eyebrow:r("eyebrow_formacao"),title:r("title_oficinas"),children:[t.jsx("div",{className:"flex flex-wrap gap-3",children:s.map(i=>t.jsx(U,{to:`oficinas/${Pn(i.title)}`,className:"border border-site-line px-4 py-2 text-sm transition hover:border-site-ink",children:i.title},i.id))}),t.jsxs(U,{to:"oficinas",className:"mt-8 inline-flex items-center gap-2 text-sm font-medium",style:{color:Ft},children:[r("cta_ver_todos")," ",t.jsx(ae,{size:15})]})]})]})}function jw(){const{artist:e}=Ot(),a=Dt();return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:a("eyebrow_quem_sou"),title:a("title_sobre"),children:e.subt
728itle}),t.jsxs("div",{className:"grid gap-12 lg:grid-cols-[2fr,1fr]",children:[t.jsxs("div",{children:[e.mini_cv&&t.jsx("p",{className:"whitespace-pre-line text-lg leading-relaxed text-site-muted",children:e.mini_cv}),e.highlights.length>0&&t.jsxs("div",{className:"mt-10",children:[t.jsx(wt,{children:a("label_destaques")}),t.jsx("div",{className:"flex flex-wrap gap-3",children:e.highlights.map(s=>t.jsx("span",{className:"border border-site-line px-4 py-2 text-sm",children:s},s))})]}),e.mentors.length>0&&t.jsxs("div",{className:"mt-10",children:[t.jsx(wt,{children:a("label_mestres")}),t.jsx("p",{className:"text-site-ink/80",children:e.mentors.join(" · ")})]})]}),e.profile_photo&&t.jsx("img",{src:e.profile_photo,alt:e.name,className:"h-80 w-full rounded-lg object-cover lg:h-[420px]"})]})]})}function yw(){const{shows:e}=Ot(),a=Dt();return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:a("eyebrow_repertorio"),title:a("title_produtos")}),e.length===0?t.jsx(Qi,{children:a("empty_produtos")}):t.jsx("div",{className:"grid gap-px overflow-hidden border border-site-line bg-site-line",children:e.map(s=>t.jsxs(U,{to:Pn(s.name),className:"group bg-site-bg transition md:flex",children:[s.cover&&t.jsx("img",{src:s.cover,alt:s.name,className:"h-56 w-full object-cover md:h-auto md:w-80"}),t.jsxs("div",{className:"flex-1 p-7 md:p-9",children:[t.jsx("h3",{className:"text-2xl font-bold tracking-tight group-hover:underline",children:s.name}),s.subtitle&&t.jsx("p",{className:"mt-1 text-site-muted",children:s.subtitle}),t.jsxs("div",{className:"mt-3 flex flex-wrap gap-4 text-sm text-site-muted",children:[s.duration_min&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",s.duration_min," min"]}),s.rating&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(uu,{size:12,strokeWidth:2})," ",s.rating]})]}),s.synopsis&&t.jsx("p",{className:"mt-4 line-clamp-3 leading-relaxed text-site-muted",children:s.synopsis}),t.jsxs("span",{className:"mt-5 inline-flex items-center gap-2 text-sm font-medium",children:[a("cta_ver_produto")," ",t.jsx(ae,{size:15})]})]})]},s.id))})]})}const bw="#080808";function Pu({photos:e,className:a="grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4",aspect:s="1 / 1"}){const[r,n]=O.useState(null),o=Dt();return e.length===0?null:t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a,children:e.map((i,c)=>t.jsxs("button",{type:"button",onClick:()=>n(c),"aria-label":i.caption||void 0,className:"group relative block w-full overflow-hidden rounded-sm",style:{aspectRatio:s,cursor:"zoom-in"},children:[t.jsx("img",{src:i.url,alt:i.caption??"",loading:"lazy",className:"h-full w-full object-cover transition duration-300 group-hover:scale-[1.03]"}),i.caption&&t.jsx("span",{className:"pointer-events-none absolute inset-x-0 bottom-0 hidden bg-gradient-to-t from-black/80 to-transparent p-3 text-left text-xs leading-snug text-white opacity-0 transition group-hover:opacity-100 md:block",children:i.caption})]},i.url))}),r!==null&&t.jsx(Nw,{photos:e,index:r,onIndex:n,onClose:()=>n(null),rotulos:{fechar:o("foto_fechar"),anterior:o("foto_anterior"),proxima:o("foto_proxima"),credito:o("foto_credito")}})]})}function Nw({photos:e,index:a,onIndex:s,onClose:r,rotulos:n}){const o=e[a],i=e.length>1,c=O.useRef(null),l=O.useCallback(u=>s((a+u+e.length)%e.length),[a,e.length,s]);if(O.useEffect(()=>{var m;function u(f){f.key==="Escape"?r():f.key==="ArrowRight"&&i?l(1):f.key==="ArrowLeft"&&i&&l(-1)}window.addEventListener("keydown",u);const h=document.body.style.overflow;return document.body.style.overflow="hidden",(m=c.current)==null||m.focus(),()=>{window.removeEventListener("keydown",u),document.body.style.overflow=h}},[l,r,i]),!o)return null;const d="absolute top-1/2 -translate-y-1/2 grid h-11 w-11 place-items-center rounded-full bg-white/10 text-white transition hover:bg-white/25";return t.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o.caption||void 0,onClick:r,className:"fixed inset-0 z-[60] flex flex-col items-center justify-center p-4 md:p-8",style:{background:bw},children:[t.jsx("button",{ref:c,type:"button",onClick:r,"aria-label":n.fechar,title:n.fechar,className:"absolute right-4 top-4 grid h-11 w-11 place-items-center rounded-full bg-white/10 text-white transition hover:bg-white/25",children:t.jsx(tt,{size:20})}),i&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),l(-1)},"aria-label":n.anterior,title:n.anterior,className:`${d} left-3 md:left-6`,children:t.jsx(Pb,{size:22})}),t.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),l(1)},"aria-label":n.proxima,title:n.proxima,className:`${d} right-3 md:right-6`,children:t.jsx(Ab,{size:22})})]}),t.jsxs("figure",{onClick:u=>u.stopPropagation(),className:"m-0 flex max-h-full max-w-5xl flex-col items-center gap-4",children:[t.jsx("img",{src:o.url,alt:o.caption??"",className:"max-h-[78vh] w-auto max-w-full object-contain"}),(o.caption||o.credit||i)&&t.jsxs("figcaption",{className:"max-w-2xl text-center text-sm leading-relaxed text-white/85",children:[o.caption,(o.credit||i)&&t.jsxs("span",{className:"mt-1 block text-xs uppercase tracking-widest text-white/45",children:[o.credit&&`${n.credito}: ${o.credit}`,o.credit&&i&&" · ",i&&`${a+1}/${e.length}`]})]})]})]})}function kw(){const{shows:e,lang:a}=Ot(),s=Dt(),{showId:r}=ne(),n=Cg(e,r,o=>o.name);return n?t.jsxs(ts,{children:[t.jsxs(U,{to:"..",className:"mb-10 inline-flex items-center gap-2 text-sm text-site-muted hover:text-site-ink",children:[t.jsx(Xd,{size:15})," ",s("nav_produtos")]}),t.jsx(es,{eyebrow:s("eyebrow_produto"),title:n.name,children:n.subtitle}),t.jsxs("div",{className:"mb-8 flex flex-wrap gap-4 text-sm text-site-muted",children:[n.duration_min&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",n.duration_min," min"]}),n.rating&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(uu,{size:12,strokeWidth:2})," ",n.rating]})]}),n.cover&&t.jsx("img",{src:n.cover,alt:n.name,className:"mb-10 max-h-[520px] w-full rounded-lg object-cover"}
728),(n.video_teaser_url||n.rider_pdf||n.croqui_pdf||n.mapa_luz_pdf)&&t.jsxs("div",{className:"mb-10 flex flex-wrap items-center gap-3",children:[n.video_teaser_url&&t.jsxs("a",{href:n.video_teaser_url,target:"_blank",rel:"noreferrer",className:An,children:[t.jsx(m1,{size:15})," ",s("cta_teaser")]}),[["doc_rider",n.rider_pdfs],["doc_croqui",n.croqui_pdfs],["doc_mapa_luz",n.mapa_luz_pdfs]].map(([o,i])=>t.jsx(hw,{label:s(o),urls:i,lang:a,icon:t.jsx(ks,{size:15})},o))]}),n.synopsis&&t.jsxs("div",{className:"mb-10 max-w-3xl",children:[t.jsx(wt,{children:s("label_sinopse")}),t.jsx("p",{className:"whitespace-pre-line text-lg leading-relaxed text-site-muted",children:n.synopsis})]}),n.history&&t.jsxs("div",{className:"mb-10 max-w-3xl",children:[t.jsx(wt,{children:s("label_historia")}),t.jsx("p",{className:"whitespace-pre-line leading-relaxed text-site-muted",children:n.history})]}),n.awards&&t.jsx("p",{className:"mb-10 max-w-3xl border-l-2 pl-4 text-site-ink/80",style:{borderColor:Ft},children:n.awards}),n.photos.length>0&&t.jsxs("div",{children:[t.jsx(wt,{children:s("label_galeria")}),t.jsx(Pu,{photos:n.photos,className:"grid grid-cols-2 gap-3 sm:grid-cols-3",aspect:"4 / 3"})]})]}):t.jsx(pt,{to:"..",replace:!0})}function ww(){const{oficinas:e}=Ot(),a=Dt();return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:a("eyebrow_formacao"),title:a("title_oficinas")}),e.length===0?t.jsx(Qi,{children:a("empty_oficinas")}):t.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:e.map(s=>t.jsxs(U,{to:Pn(s.title),className:"group border border-site-line transition hover:border-site-ink",children:[s.cover&&t.jsx("img",{src:s.cover,alt:s.title,className:"h-44 w-full object-cover"}),t.jsxs("div",{className:"p-6",children:[t.jsx("h3",{className:"text-xl font-bold tracking-tight group-hover:underline",children:s.title}),t.jsxs("div",{className:"mt-2 flex flex-wrap gap-4 text-sm text-site-muted",children:[s.duration&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",s.duration]}),s.audience&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(xt,{size:12,strokeWidth:2})," ",s.audience]})]}),s.synopsis&&t.jsx("p",{className:"mt-3 line-clamp-2 text-sm leading-relaxed text-site-muted",children:s.synopsis}),t.jsxs("span",{className:"mt-4 inline-flex items-center gap-2 text-sm font-medium",children:[a("cta_ver_oficina")," ",t.jsx(ae,{size:15})]})]})]},s.id))})]})}function Cw(){const{oficinas:e}=Ot(),a=Dt(),{oficinaId:s}=ne(),r=Cg(e,s,n=>n.title);return r?t.jsxs(ts,{children:[t.jsxs(U,{to:"..",className:"mb-10 inline-flex items-center gap-2 text-sm text-site-muted hover:text-site-ink",children:[t.jsx(Xd,{size:15})," ",a("nav_oficinas")]}),t.jsx(es,{eyebrow:a("eyebrow_oficina"),title:r.title}),t.jsxs("div",{className:"mb-8 flex flex-wrap gap-4 text-sm text-site-muted",children:[r.duration&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(Ya,{size:12,strokeWidth:2})," ",r.duration]}),r.audience&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(xt,{size:12,strokeWidth:2})," ",r.audience]}),r.facilitator&&t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx(ou,{size:12,strokeWidth:2})," ",r.facilitator]})]}),r.cover&&t.jsx("img",{src:r.cover,alt:r.title,className:"mb-10 max-h-[480px] w-full rounded-lg object-cover"}),r.synopsis&&t.jsx("p",{className:"mb-10 max-w-3xl whitespace-pre-line text-lg leading-relaxed text-site-muted",children:r.synopsis}),r.objectives.length>0&&t.jsxs("div",{className:"mb-10 max-w-3xl",children:[t.jsx(wt,{children:a("label_objetivos")}),t.jsx("ul",{className:"space-y-2 text-site-ink/80",children:r.objectives.map(n=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx("span",{style:{color:Ft},children:"â"})," ",n]},n))})]}),r.photos.length>0&&t.jsxs("div",{children:[t.jsx(wt,{children:a("label_registros")}),t.jsx(Pu,{photos:r.photos,className:"grid grid-cols-2 gap-3 sm:grid-cols-3",aspect:"4 / 3"})]})]}):t.jsx(pt,{to:"..",replace:!0})}const _w=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],Vp=e=>e&&e>=1&&e<=12?_w[e-1]:"";function Sw(){const{cultural_actions:e}=Ot(),a=Dt(),s=y.useMemo(()=>{const r=new Map;for(const n of e){r.has(n.year)||r.set(n.year,new Map);const o=r.get(n.year),i=n.month??0;o.has(i)||o.set(i,[]),o.get(i).push(n)}return[...r.entries()].sort((n,o)=>o[0]-n[0]).map(([n,o])=>({year:n,months:[...o.entries()].sort((i,c)=>c[0]-i[0])}))},[e]);return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:a("eyebrow_trajetoria"),title:a("title_acoes")}),e.length===0?t.jsx(Qi,{children:a("empty_acoes")}):t.jsx("div",{className:"flex flex-col gap-12",children:s.map(({year:r,months:n})=>t.jsxs("section",{children:[t.jsxs("h2",{className:"mb-5 text-2xl font-bold tracking-tight",children:[r," ",t.jsxs("span",{className:"text-sm font-normal text-site-faint",children:["(",n.reduce((o,[,i])=>o+i.length,0)," ações)"]}
728)]}),t.jsx("div",{className:"flex flex-col gap-6",children:n.map(([o,i])=>t.jsxs("div",{children:[Vp(i[0].month)&&t.jsx("h3",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-site-muted",children:Vp(i[0].month)}),t.jsx("ul",{className:"flex flex-col gap-2 border-l-2 border-site-line pl-4",children:i.map((c,l)=>t.jsxs("li",{className:"text-sm leading-relaxed text-site-ink/80",children:[c.date_label&&t.jsxs("span",{className:"font-semibold text-site-ink",children:[c.date_label," · "]}),c.description]},l))})]},`${r}-${o}`))})]},r))})]})}function Ew(){const{media:e,shows:a,oficinas:s}=Ot(),r=Dt(),n=[];e.galeria.length&&n.push({key:"galeria",label:r("label_galeria"),photos:e.galeria}),a.forEach(l=>{l.photos.length&&n.push({key:`show-${l.id}`,label:l.name,photos:l.photos})}),s.forEach(l=>{l.photos.length&&n.push({key:`oficina-${l.id}`,label:l.title,photos:l.photos})}),e.imprensa.length&&n.push({key:"imprensa",label:r("label_imprensa"),photos:e.imprensa});const[o,i]=O.useState("todas"),c=o==="todas"?n:n.filter(l=>l.key===o);return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:r("eyebrow_registros"),title:r("title_galeria")}),n.length===0?t.jsx(Qi,{children:r("empty_galeria")}):t.jsxs(t.Fragment,{children:[n.length>1&&t.jsx("div",{className:"mb-10 flex flex-wrap gap-2",children:[{key:"todas",label:r("label_todas")},...n].map(l=>{const d=o===l.key;return t.jsx("button",{type:"button",onClick:()=>i(l.key),className:"rounded-full border px-4 py-1.5 text-sm font-medium transition",style:d?{background:Ft,borderColor:Ft,color:"#fff"}:{borderColor:"#e5e5e5",color:"#525252"},children:l.label},l.key)})}),c.map(l=>t.jsxs("div",{className:"mb-14 last:mb-0",children:[(o==="todas"||n.length>1)&&t.jsx(wt,{children:l.label}),t.jsx(Pu,{photos:l.photos})]},l.key))]})]})}function Pw(){const{slug:e,lang:a,default_language:s,artist:r}=Ot(),n=Dt(),[o,i]=y.useState(!1),[c,l]=y.useState(!1),d=a&&a!==s?`/${e}/${a}`:`/${e}`,u=`${window.location.origin}${d}`,h=`/api/public/artists/${encodeURIComponent(e)}/qr`,m=typeof navigator.share=="function";y.useEffect(()=>{if(!o)return;const g=b=>b.key==="Escape"&&i(!1);return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[o]);const f=async()=>{try{await navigator.clipboard.writeText(u),l(!0),setTimeout(()=>l(!1),2e3)}catch{}},v=async()=>{try{await navigator.share({title:r.name,url:u})}catch{}};return t.jsxs(t.Fragment,{children:[t.jsxs("button",{type:"button",className:ps,onClick:()=>i(!0),children:[t.jsx($f,{size:16})," ",n("share_btn")]}),o&&t.jsx("div",{role:"dialog","aria-modal":"true","aria-label":n("share_title"),className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4",onClick:()=>i(!1),children:t.jsxs("div",{className:"relative w-full max-w-sm rounded-sm bg-site-bg p-6 text-center shadow-xl sm:p-8",onClick:g=>g.stopPropagation(),children:[t.jsx("button",{type:"button",onClick:()=>i(!1),"aria-label":n("foto_fechar"),className:"absolute right-2 top-2 cursor-pointer border-0 bg-transparent p-2 text-site-muted transition hover:text-site-ink",children:t.jsx(tt,{size:20})}),t.jsx("p",{className:"text-xs font-medium uppercase tracking-[0.25em] text-site-muted",children:n("share_title")}),t.jsx("h2",{className:"mt-2 text-2xl font-bold tracking-tight",children:r.name}),t.jsx("img",{src:`${h}.svg`,alt:n("share_qr_alt"),className:"mx-auto mt-6 block h-auto w-full max-w-[16rem]"}),t.jsx("p",{className:"mt-3 text-sm text-site-muted",children:n("share_sub")}),t.jsx("p",{className:"mt-4 select-all break-all text-sm font-medium",children:u.replace(/^https?:\/\//,"")}),t.jsxs("div",{className:"mt-6 flex flex-col gap-3",children:[m&&t.jsxs("button",{type:"button",className:`${An} cursor-pointer border-0`,onClick:v,children:[t.jsx(x1,{size:16})," ",n("share_send")]}),t.jsxs("button",{type:"button",className:`${m?ps:`${An} border-0`} cursor-pointer`,onClick:f,children:[c?t.jsx(Ze,{size:16}):t.jsx(ru,{size:16})," ",n(c?"share_copied":"share_copy")]}),t.jsx("a",{href:`${h}.png?download=1`,download:!0,className:"mt-1 text-sm text-site-muted underline underline-offset-4 transition hover:text-site-ink",children:n("share_download")})]})]})})]})}function Aw(){const{artist:e,portfolio_pdfs:a}=Ot(),s=Dt(),r=_g(a),n=[{url:e.instagram,Icon:Ri,label:"Instagram"},{url:e.youtube,Icon:y1,label:"YouTube"},{url:e.facebook,Icon:Rb,label:"Facebook"},{url:e.site_url,Icon:Ja,label:"Site"}].filter(o=>o.url);return t.jsxs(ts,{children:[t.jsx(es,{eyebrow:s("eyebrow_vamos_conversar"),title:s("title_contato"),children:s("contato_sub")}),t.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.email&&t.jsxs("a",{href:`mailto:${e.email}`,className:An,children:[t.jsx(ws,{size:16})," ",e.email]}),e.phone&&t.jsxs("a",{href:`tel:${e.phone}`,className:ps,children:[t.jsx(cu,{size:16})," ",e.phone]}
728),n.map(({url:o,Icon:i,label:c})=>t.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",className:ps,children:[t.jsx(i,{size:16})," ",c]},c)),t.jsx(Pw,{})]}),r.length>0&&t.jsxs("div",{className:"mt-14",children:[t.jsx(wt,{children:s("btn_portfolio")}),t.jsx("div",{className:"flex flex-wrap gap-3",children:r.map(([o,i])=>t.jsxs("a",{href:i,target:"_blank",rel:"noreferrer",className:ps,children:[t.jsx(rr,{size:16})," ",Sg[o]??o.toUpperCase()]},o))})]})]})}const zw=[{title:"Bem-vindo à Gira",body:"Um tour rápido pelos cantos do painel. Leva menos de um minuto â e você pode reabrir depois no â?â do topo."},{selector:'[data-tour="/app"]',title:"Painel",body:"A visão geral da sua circulação: próximos prazos, resultados e o que precisa de atenção."},{selector:'[data-tour="/app/perfil"]',title:"Perfil e produtos culturais",body:"Seu grupo/companhia, produtos culturais e oficinas â a base que alimenta inscrições e o site público."},{selector:'[data-tour="/app/oportunidades"]',title:"Radar",body:"Festivais, editais, mostras e credenciamentos. à onde as oportunidades ficam organizadas com prazos e prestÃgio."},{selector:'[data-tour="/app/circuitos"]',title:"Circuitos",body:"Locais permanentes onde seu trabalho pode circular â escolas, bibliotecas, centros culturais, prefeituras, SESC⦠Cada um com contatos e histórico."},{selector:'[data-tour="/app/orcamentos"]',title:"Orçamentos",body:"Monte propostas por grupo/companhia e produto cultural â puxando o cliente de um circuito â e exporte o PDF direto no seu computador, com um clique."},{selector:'[data-tour="/app/descobertas"]',title:"Descobertas",body:"O que o coletor encontra automaticamente na web. Separado em Oportunidades e Circuitos â você tria e converte com um clique."},{selector:'[data-tour="/app/assistente"]',title:"Assistente",body:"Converse com a IA da Gira para analisar oportunidades, prazos e o que combina com o seu trabalho."},{title:"Pronto! Bom giro â¨",body:"à isso. Quando quiser rever este tour, clique no â?â no topo do painel."}],Ig=e=>`giro_tour_seen_v1_${e}`;function Tw(e){try{return localStorage.getItem(Ig(e))==="1"}catch{return!1}}function Iw(e){try{localStorage.setItem(Ig(e),"1")}catch{}}function $w({steps:e,onClose:a}){const[s]=y.useState(()=>e.filter(f=>!f.selector||document.querySelector(f.selector))),[r,n]=y.useState(0),[o,i]=y.useState(null),c=s[r],l=r===s.length-1;if(y.useLayoutEffect(()=>{if(!c)return;function f(){if(!c.selector)return i(null);const v=document.querySelector(c.selector);if(!v)return i(null);v.scrollIntoView({block:"nearest"});const g=v.getBoundingClientRect();i({top:g.top,left:g.left,width:g.width,height:g.height})}return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)}},[c]),y.useEffect(()=>{const f=v=>{v.key==="Escape"&&a(),(v.key==="ArrowRight"||v.key==="Enter")&&n(g=>Math.min(g+1,s.length-1)),v.key==="ArrowLeft"&&n(g=>Math.max(g-1,0))};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[s.length,a]),!c)return null;const d=8,u=o?{top:o.top-d,left:o.left-d,width:o.width+d*2,height:o.height+d*2}:null,h=340,m=u?{position:"fixed",top:Math.max(16,Math.min(u.top,window.innerHeight-220)),left:Math.min(u.left+u.width+16,window.innerWidth-h-16),width:h}:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:h};return t.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999},children:[u?t.jsx("div",{style:{position:"fixed",top:u.top,left:u.left,width:u.width,height:u.height,borderRadius:12,boxShadow:"0 0 0 9999px rgba(15,23,42,.62)",transition:"all .2s ease",pointerEvents:"none"}}):t.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(15,23,42,.62)"},onClick:a}),t.jsxs("div",{style:{...m,background:"#fff",color:"#0f172a",borderRadius:14,boxShadow:"0 20px 60px rgba(0,0,0,.35)",padding:18},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},children:[t.jsx("strong",{style:{fontSize:16},children:c.title}),t.jsxs("span",{style:{fontSize:12,color:"#64748b"},children:[r+1,"/",s.length]})]}),t.jsx("p",{style:{margin:"0 0 14px",fontSize:14,lineHeight:1.55,color:"#334155"},children:c.body}),t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t.jsx("button",{className:"btn",onClick:a,style:{fontSize:13},children:"Pular"}),t.jsx("div",{style:{flex:1}}),r>0&&t.jsx("button",{className:"btn",onClick:()=>n(f=>f-1),style:{fontSize:13},children:"Voltar"}),t.jsx("button",{className:"btn primary",onClick:()=>l?a():n(f=>f+1),style:{fontSize:13},children:l?"Concluir":"Próximo"})]})]})]})}const Lw=O.lazy(()=>Ns(()=>import("./Demo-CwiLhbwD.js"),[]));function at(e,a){const s=O.lazy(()=>e().then(r=>({default:r[a]})));return function(){return t.jsx(O.Suspense,{fallback:t.jsx("p",{className:"muted",children:"Carregandoâ¦"}),children:t.jsx(s,{})})}}const Yi=()=>Ns(()=>import("./Calls-jYTVgVNm.js"),[]),Ji=()=>Ns(()=>
728import("./CallApplications-Da52l-Ym.js"),[]),$g=()=>Ns(()=>import("./FestivalSite-Blzj5sSl.js"),__vite__mapDeps([0,1,2])),Au=()=>Ns(()=>import("./PublicCall-CHR5NW9r.js"),__vite__mapDeps([1,2])),qw=at(Yi,"default"),Up=at(Yi,"CallFormPage"),Mw=at(Yi,"CallTeam"),Rw=at(Yi,"CallView"),Fw=at(Ji,"default"),Ow=at(Ji,"CallApplicationView"),Dw=at(Ji,"CallApplications"),Bw=at(()=>Ns(()=>import("./CallPainel-Cg_tFXFw.js"),[]),"default"),Gw=at(Ji,"MinhaInscricaoEnviada"),Vw=at(()=>Ns(()=>import("./FestivalManage-pYPytoi6.js"),__vite__mapDeps([3,4])),"default"),Uw=at($g,"FestivalSite"),Ww=at($g,"FestivalInscricao"),Hw=at(Au,"default"),Qw=at(Au,"ApplicationByToken"),Kw=at(Au,"InscricaoNaPlataforma");function Yw(e){if(e.role!=="artista"||!e.artist_id)return[];const a=`/app/perfil/${e.artist_id}`,s=(n,o,i,c)=>({path:`${a}/${n}`,moduleKey:"perfil",label:o,Icon:i,title:o,subtitle:c}),r=[s("produtos","Produtos culturais",Af,"Espetáculos, shows e demais produtos da companhia"),s("oficinas","Oficinas",ou,"Formações que você oferece"),s("acoes","Ações",Sb,"Onde você já apresentou â o histórico que sustenta a inscrição"),s("carreira","Carreira",kf,"Prêmios, formações e imprensa"),s("depoimentos","Depoimentos",Lf,"O que já disseram do seu trabalho â vai para o book e para o site")];return e.artist_slug&&r.push({path:`/${e.artist_slug}`,external:`/${e.artist_slug}`,moduleKey:"perfil",label:"Site â",Icon:nu,title:"Site",subtitle:"Seu site público"}),r}const Wp=[{path:"/app",moduleKey:"painel",end:!0,label:"Painel",Icon:Yb,title:"Painel",subtitle:"Visão geral da circulação"},{path:"/app/perfil",moduleKey:"perfil",label:"Meu Perfil",Icon:v1,title:"Meu Perfil",subtitle:"Grupo/companhia e dados de contato"},{path:"/app/oportunidades",moduleKey:"radar",label:"Radar",Icon:Mn,title:"Radar",subtitle:"Festivais, editais, mostras e credenciamentos"},{path:"/app/analise",moduleKey:"analise",label:"Análise rápida",Icon:Of,title:"Análise rápida de edital",subtitle:"Vale a pena? Cole a URL ou o PDF e a IA cruza com o seu trabalho â sem cadastrar",roles:["admin","produtor"]},{path:"/app/edicoes",moduleKey:"edicoes",label:"Edições",Icon:_f,title:"Edições",subtitle:"Cada ano de um festival e seu edital",roles:["admin"]},{path:"/app/inscricoes",moduleKey:"inscricoes",label:"Inscrições",Icon:iu,title:"Inscrições",subtitle:"Sua participação em cada edição"},{path:"/app/relatorio",moduleKey:"inscricoes",label:"Relatório",Icon:Eb,title:"Relatório de inscrições",subtitle:"Como tem sido: quanto você inscreve e quanto emplaca"},{path:"/app/chamadas",moduleKey:null,label:"Chamadas",Icon:Cn,title:"Chamadas do seu festival",subtitle:"Publique a chamada, receba as inscrições e conduza a curadoria",onlyIf:(e,a)=>a.organizaFestival||e.role==="admin"},{path:"/app/circuitos",moduleKey:"circuitos",label:"Circuitos",Icon:Xa,title:"Circuitos",subtitle:"Locais permanentes de circulação (escolas, bibliotecas, prefeiturasâ¦)",roles:["admin","produtor"]},{path:"/app/orcamentos",moduleKey:"orcamentos",label:"Orçamentos",Icon:ks,title:"Orçamentos",subtitle:"Propostas por grupo/companhia e produto cultural â exporte em PDF no seu computador",roles:["admin","produtor"]},{path:"/app/creditos",moduleKey:"creditos",label:"Créditos",Icon:su,title:"Créditos",subtitle:"Saldo, compra via Pix e consumo por serviço",roles:["admin","produtor"],hidden:!0},{path:"/app/descobertas",moduleKey:"descobertas",label:"Descobertas",Icon:f1,title:"Descobertas",subtitle:"Editais e convocatórias coletados automaticamente",roles:["admin","produtor"]},{path:"/app/assistente",moduleKey:"assistente",label:"Assistente",Icon:Be,title:"Assistente",subtitle:"Converse com a IA da Gira para analisar suas oportunidades",roles:["admin","produtor"]},{path:"/app/extensao",moduleKey:"extensao",label:"Extensão",Icon:Rc,title:"Extensão de autofill",subtitle:"A extensão do Chrome que preenche formulários de inscrição",roles:["admin","produtor"]},{path:"/app/templates",moduleKey:"templates",label:"Templates",Icon:Jb,title:"Templates de site",subtitle:"Catálogo de layouts que as companhias podem escolher",roles:["admin"]},{path:"/app/novidades",moduleKey:null,label:"Novidades",Icon:Cn,title:"Novidades",subtitle:"O que mudou na Gira em cada versão",hidden:!0},{path:"/app/leads",moduleKey:"leads",label:"Leads",Icon:pu,title:"Leads",subtitle:"Quem demonstrou interesse na Gira e ainda não é
728cliente",roles:["admin"]},{path:"/app/plano",moduleKey:"plano",label:"Plano 1.000",Icon:pr,title:"Plano de crescimento",subtitle:"O caminho até 1.000 assinantes, com os números de hoje",roles:["admin"]},{path:"/app/vendas",moduleKey:null,label:"Vendas",Icon:Mi,title:"Suas vendas",subtitle:"Seu link, quem entrou por ele e a sua comissão",onlyIf:e=>e.is_seller},{path:"/app/vendedores",moduleKey:"usuarios",label:"Vendedores",Icon:wf,title:"Vendedores e repasses",subtitle:"Quem vende a Gira, com qual percentual, e o que falta repassar",roles:["admin"]},{path:"/app/assinaturas",moduleKey:"usuarios",label:"Assinaturas",Icon:Xo,title:"Assinaturas",subtitle:"Quem paga pela Gira, planos e pagamentos recebidos",roles:["admin"]},{path:"/app/usuarios",moduleKey:"usuarios",label:"Usuários",Icon:xt,title:"Usuários",subtitle:"Contas de acesso e seus papéis",roles:["admin"]},{path:"/app/permissoes",moduleKey:"permissoes",label:"Permissões",Icon:Mf,title:"Permissões",subtitle:"Quais módulos cada papel enxerga",roles:["admin"]},{path:"/app/tutoriais",moduleKey:"tutoriais",label:"Tutoriais",Icon:au,title:"Tutoriais",subtitle:"VÃdeo e texto de ajuda por módulo",roles:["admin"]}],Jw={admin:"Admin",produtor:"Produtor",artista:"Artista",visitante:"Visitante"};function Zw(){const{user:e,loading:a}=Ae(),s=Pe();return a?t.jsx("p",{className:"muted",style:{padding:24},children:"Carregandoâ¦"}):e?t.jsx(Li,{}):t.jsx(pt,{to:"/login",replace:!0,state:{from:s.pathname}})}function Xw(){const{user:e}=Ae();return e!=null&&e.festival_only?t.jsx(pt,{to:"/app/chamadas",replace:!0}):t.jsx(r0,{})}function eC(){const{pathname:e}=Pe(),{user:a,logout:s}=Ae(),{libera:r}=St(),n=Z(),o=(a==null?void 0:a.role)??"artista",[i,c]=O.useState(!1),[l,d]=O.useState(!1),[u,h]=O.useState(!1);O.useEffect(()=>h(!1),[e]);const[m,f]=O.useState(()=>{try{return localStorage.getItem("gira.menu-recolhido")==="1"}catch{return!1}}),[v,g]=O.useState(null),b=I=>{const R=I.currentTarget,V=R.getAttribute("data-nome");if(!V)return;const B=R.getBoundingClientRect();g({texto:V,y:B.top+B.height/2})},p=()=>g(null);O.useEffect(()=>{m||g(null)},[m]),O.useEffect(()=>g(null),[e]);const x=O.useCallback(()=>{f(I=>{try{localStorage.setItem("gira.menu-recolhido",I?"0":"1")}catch{}return!I})},[]),j=D(()=>_n.list(),[]),k=D(()=>I1.myFestivals(),[]);O.useEffect(()=>{a&&!a.festival_only&&!Tw(a.id)&&c(!0)},[a]);const N=()=>{a&&Iw(a.id),c(!1)},C=(a==null?void 0:a.modules)??[],_={radar:"radar",analise:"quick_analysis",inscricoes:"submissions",assistente:"ai",extensao:"autofill"},A=I=>{const R=_[I];return R===void 0||r(R)},z={organizaFestival:(k.data??[]).length>0},P=new Set(["/app/chamadas","/app/novidades"]),w=I=>a!=null&&a.festival_only?P.has(I.path):I.onlyIf&&!(a&&I.onlyIf(a,z))?!1:I.moduleKey===null?!0:C.length?C.includes(I.moduleKey):!I.roles||I.roles.includes(o),L=Wp.filter(w).flatMap(I=>I.path!=="/app/perfil"?[I]:o!=="artista"?[{...I,label:"Perfis",title:"Perfis",subtitle:"Perfis cadastrados na Gira"}]:a!=null&&a.artist_id?[{...I,path:`/app/perfil/${a.artist_id}/editar`},...Yw(a)]:[I]),$=L.filter(I=>!I.hidden),H=[...L].sort((I,R)=>R.path.length-I.path.length).find(I=>e===I.path||e.startsWith(I.path+"/"))??L[0],re=(j.data??[]).find(I=>I.key===H.moduleKey&&I.tutorial_video_url)??null,K=[...Wp].sort((I,R)=>R.path.length-I.path.length).find(I=>e===I.path||e.startsWith(I.path+"/")),le=!!K&&K.moduleKey!==null&&C.length>0&&K.moduleKey!=="painel"&&!C.includes(K.moduleKey);return t.jsxs("div",{className:"shell"+(u?" menu-aberto":"")+(m?" menu-recolhido":""),children:[u&&t.jsx("div",{className:"menu-overlay",onClick:()=>h(!1)}),t.jsxs("aside",{className:"sidebar",children:[t.jsxs("div",{className:"brand",children:[t.jsx("button",{className:"icon-btn recolher-btn",onClick:x,title:n(m?"Expandir o menu":"Recolher o menu"),"aria-label":n(m?"Expandir o menu":"Recolher o menu"),"aria-expanded":!m,children:m?t.jsx(l1,{size:20}):t.jsx(i1,{size:20})}),t.jsx("img",{src:"/logo-gira.svg",alt:"Gira",className:"brand-logo"}),t.jsxs("span",{className:"brand-nome",children:[t.jsx("span",{className:"brand-mark",children:"Gi"}),"ra"]})]}),t.jsx("nav",{children:$.map(I=>{const R=I.moduleKey!==null&&!A(I.moduleKey),V=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"nav-icon",children:t.jsx(I.Icon,{size:18,strokeWidth:2})}),t.jsx("span",{className:"nav-rotulo",children:n(I.label)}),R&&t.jsx(Za,{size:13,strokeWidth:2,className:"nav-cadeado","aria-label":n("do plano pago")})]});return I.external?t.jsx("a",{href:I.external,target:"_blank",rel:"noreferrer","data-nome":n(I.label),onMouseEnter:b,onMouseLeave:p,onFocus:b,onBlur:p,children:V},I.path):t.jsx(na,{to:I.path,end:I.end,"data-tour":I.path,"data-nome":n(I.label),onMouseEnter:b,onMouseLeave:p,onFocus:b,onBlur:p,className:({isActive:B})=>
728[B?"active":"",R?"trancado":""].filter(Boolean).join(" "),children:V},I.path)})}),t.jsx("div",{className:"sidebar-foot",children:t.jsxs("small",{children:["© 2026 Gira",t.jsx(IN,{})]})})]}),m&&v&&t.jsx("div",{className:"nav-tooltip visivel",style:{top:v.y,left:86},role:"tooltip",children:v.texto}),t.jsxs("main",{className:"main",children:[t.jsxs("header",{className:"topbar",children:[t.jsx("button",{className:"icon-btn menu-btn",title:n("Menu"),"aria-label":n("Abrir o menu"),onClick:()=>h(!0),children:t.jsx(Tf,{size:22})}),t.jsxs("div",{className:"topbar-titulo",children:[t.jsx("h1",{children:n(H.title)}),t.jsx("p",{children:n(H.subtitle)})]}),t.jsxs("div",{className:"topbar-acoes",children:[t.jsx(B1,{}),re&&t.jsxs("button",{className:"btn primary tutorial-btn",title:n("Tutorial deste módulo"),onClick:()=>d(!0),children:[t.jsx(au,{size:16,strokeWidth:2.2}),t.jsx("span",{children:n("Ver tutorial")})]}),!(a!=null&&a.festival_only)&&t.jsx("button",{className:"icon-btn",title:"Rever o tour de apresentação",onClick:()=>c(!0),children:t.jsx(tu,{size:20})}),t.jsx("div",{className:"topbar-divisor"}),t.jsx(na,{to:"/app/novidades",className:({isActive:I})=>"icon-btn"+(I?" active":""),title:n("Novidades"),"aria-label":n("Novidades"),children:t.jsx(Cn,{size:20})}),t.jsx(na,{to:"/app/conta",className:({isActive:I})=>"topbar-conta"+(I?" active":""),title:a?`${a.name} · ${n(Jw[a.role])} â ${n("Minha conta")}`:n("Minha conta"),"aria-label":n("Minha conta"),children:t.jsx("div",{className:"avatar sm",children:((a==null?void 0:a.name)??"?").charAt(0)})}),t.jsx("button",{className:"icon-btn",title:n("Sair"),"aria-label":n("Sair"),onClick:s,children:t.jsx(t1,{size:20})})]})]}),t.jsx("div",{className:"content",children:le?t.jsx(pt,{to:"/app",replace:!0}):t.jsx(Li,{})})]}),i&&t.jsx($w,{steps:zw,onClose:N}),l&&re&&t.jsx(Jf,{tutorial:re,onClose:()=>d(!1)})]})}function tC(){const{pathname:e,search:a}=Pe();return t.jsx(pt,{to:e.replace("/espetaculos","/produtos")+a,replace:!0})}function aC(){const{showId:e}=ne();return t.jsx(pt,{to:`../produtos/${e}`,replace:!0})}function Hp(){return t.jsxs(t.Fragment,{children:[t.jsx(M,{index:!0,element:t.jsx(vw,{})}),t.jsx(M,{path:"sobre",element:t.jsx(jw,{})}),t.jsx(M,{path:"quem-sou",element:t.jsx(pt,{to:"../sobre",replace:!0})}),t.jsx(M,{path:"produtos",element:t.jsx(yw,{})}),t.jsx(M,{path:"produtos/:showId",element:t.jsx(kw,{})}),t.jsx(M,{path:"espetaculos",element:t.jsx(pt,{to:"../produtos",replace:!0})}),t.jsx(M,{path:"espetaculos/:showId",element:t.jsx(aC,{})}),t.jsx(M,{path:"oficinas",element:t.jsx(ww,{})}),t.jsx(M,{path:"oficinas/:oficinaId",element:t.jsx(Cw,{})}),t.jsx(M,{path:"acoes",element:t.jsx(Sw,{})}),t.jsx(M,{path:"galeria",element:t.jsx(Ew,{})}),t.jsx(M,{path:"contato",element:t.jsx(Aw,{})})]})}function sC(){const{pathname:e,hash:a}=Pe();return O.useEffect(()=>{if(!a){window.scrollTo(0,0);return}const s=decodeURIComponent(a.slice(1));let r=0,n=0;const o=()=>{const i=document.getElementById(s);if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}n++<30&&(r=requestAnimationFrame(o))};return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)},[e,a]),null}function Qp(){const{search:e}=Pe();return t.jsx(pt,{to:{pathname:"/",search:e},replace:!0})}function rC(){const{pathname:e,search:a}=Pe();return O.useEffect(()=>{Ok(e+a)},[e,a]),null}function nC(){return t.jsxs(t.Fragment,{children:[t.jsx(sC,{}),t.jsx(rC,{}),t.jsxs(tb,{children:[t.jsx(M,{path:"/",element:t.jsx(uk,{})}),t.jsx(M,{path:"/produtora",element:t.jsx(gk,{})}),t.jsx(M,{path:"/festivais",element:t.jsx(Ak,{})}),t.jsx(M,{path:"/demonstracao",element:t.jsx(O.Suspense,{fallback:null,children:t.jsx(Lw,{})})}),t.jsx(M,{path:"/demo",element:t.jsx(pt,{to:"/demonstracao",replace:!0})}),t.jsx(M,{path:"/elenco",element:t.jsx(Zk,{})}),t.jsx(M,{path:"/artistas",element:t.jsx(Qp,{})}),t.jsx(M,{path:"/plataforma",element:t.jsx(Qp,{})}),t.jsx(M,{path:"/map",element:t.jsx(Wk,{})}),t.jsx(M,{path:"/mapa",element:t.jsx(pt,{to:"/map",replace:!0})}),t.jsx(M,{path:"/criar-conta",element:t.jsx(yk,{})}),t.jsx(M,{path:"/planos",element:t.jsx(Fk,{})}),t.jsx(M,{path:"/checkout",element:t.jsx(Lp,{})}),t.jsx(M,{path:"/checkout/sucesso",element:t.jsx(bk,{})}),t.jsx(M,{path:"/checkout/pendente",element:t.jsx(Nk,{})}),t.jsx(M,{path:"/checkout/erro",element:t.jsx(kk,{})}),t.jsx(M,{path:"/checkout/:offerCode",element:t.jsx(Lp,{})}),t.jsx(M,{path:"/privacidade",element:t.jsx(P0,{})}),t.jsx(M,{path:"/chamada/:slug",element:t.jsx(Hw,{})}),t.jsx(M,{path:"/festival/:slug",element:t.jsx(Uw,{})}),t.jsx(M,{path:"/festival/:slug/inscricao",element:t.jsx(Ww,{})}),t.jsx(M,{path:"/inscricao/:token",element:t.jsx(Qw,{})}),t.jsx(M,{path:"/login",element:t.jsx(Dk,{})}),t.jsx(M,{path:"/esqueci-senha",element:t.jsx(Tk,{})}),t.jsx(M,{path:"/nova-senha",element:t.jsx(Ik,{})}),t.jsx(M,{element:t.jsx(Zw,{}),children:t.jsxs(M,{path:"/app",element:t.jsx(eC,{}),children:[t.jsx(M,{index:!0,element:t.jsx(Xw,{})}),t.jsx(M,{path:"perfil",element:t.jsx(d0,{})}),t.jsx(M,{path:"perfil/novo",element:t.jsx(dp,{})}),t.jsx(M,{path:"perfil/:id/editar",element:t.jsx(dp,{})}),t.jsx(M,{path:"perfil/:artistId/produtos",element:t.jsx(v0,{})}),t.jsx(M,{path:"perfil/:artistId/produtos/novo",element:t.jsx(up,{})}),t.jsx(M,{path:"perfil/:artistId/produtos/:id/editar",element:t.jsx(up,{})}),t.jsx(M,{path:"perfil/:artistId/espetaculos/*",element:t.jsx(tC,{})}),t.jsx(M,{path:"perfil/:artistId/oficinas",element:t.jsx(y0,{})}),t.jsx(M,{path:"perfil/:artistId/oficinas/novo",element:t.jsx(mp,{})}),t.jsx(M,{path:"perfil/:artistId/oficinas/:id/editar",element:t.jsx(mp,{})}),t.jsx(M,{path:"perfil/:artistId/carreira",element:t.jsx(tw,{})}),t.jsx(M,{path:"perfil/:artistId/depoimentos",element:t.jsx(rw,{})}),t.jsx(M,{path:"perfil/:artistId/acoes",element:t.jsx(k0,{})}),t.jsx(M,{path:"perfil/:artistId/acoes/novo",element:t.jsx(pp,{})}),t.jsx(M,{path:"perfil/:artistId/acoes/importar",element:t.jsx(S0,{})}),t.jsx(M,{path:"perfil/:artistId/acoes/:id/editar",element:t.jsx(pp,{})}),t.jsx(M,{path:"oportunidades",element:t.jsx(O0,{})}),t.jsx(M,{path:"oportunidades/:id",element:t.jsx(V0,{})}),t.jsx(M,{path:"oportunidades/edicao/:id",element:t.jsx(j2,{})}),t.jsx(M,{path:"oportunidades/edicao/:id/editar",element:t.jsx(El,{})}),t.jsx(M,{path:"analise",element:t.jsx(l2,{})}),t.jsx(M,{path:"oportunidades/novo",element:t.jsx(fp,{})}),t.jsx(M,{path:"oportunidades/:id/editar",element:t.jsx(fp,{})}),t.jsx(M,{path:"circuitos",element:t.jsx(X0,{})}),t.jsx(M,{path:"circuitos/novo",element:t.jsx(vp,{})}),t.jsx(M,{path:"circuitos/:id/editar",element:t.jsx(vp,{})}),t.jsx(M,{path:"orcamentos",element:t.jsx(n2,{})}),t.jsx(M,{path:"orcamentos/novo",element:t.jsx(jp,{})}),t.jsx(M,{path:"orcamentos/:id/editar",element:t.jsx(jp,{})}),t.jsx(M,{path:"edicoes",element:t.jsx(g2,{})}),t.jsx(M,{path:"edicoes/novo",element:t.jsx(El,{})}),t.jsx(M,{path:"edicoes/:id/editar",element:t.jsx(El,{})}),t.jsx(M,{path:"chamadas",element:t.jsx(qw,{})}),t.jsx(M,{path:"chamadas/nova",element:t.jsx(Up,{})}),t.jsx(M,{path:"chamadas/equipe",element:t.jsx(Mw,{})}),t.jsx(M,{path:"chamadas/festival",element:t.jsx(Vw,{})}),t.jsx(M,{path:"chamadas/:id",element:t.jsx(Rw,{})}),t.jsx(M,{path:"chamadas/:id/editar",element:t.jsx(Up,{})}),t.jsx(M,{path:"chamadas/:id/inscricoes",element:t.jsx(Dw,{})}),t.jsx(M,{path:"chamadas/:id/painel",element:t.jsx(Bw,{})}),t.jsx(M,{path:"chamadas/:id/inscricoes/:applicationId",element:t.jsx(Ow,{})}),t.jsx(M,{path:"inscricoes",element:t.jsx(yp,{})}),t.jsx(M,{path:"relatorio",element:t.jsx(L2,{})}),t.jsx(M,{path:"inscricoes/chamadas",element:t.jsx(Fw,{})}),t.jsx(M,{path:"inscricoes/chamadas/:slug",element:t.jsx(Kw,{})}),t.jsx(M,{path:"inscricoes/enviada/:id",element:t.jsx(Gw,{})}),t.jsx(M,{path:"inscricoes/arquivadas",element:t.jsx(yp,{archived:!0})}),t.jsx(M,{path:"inscricoes/novo",element:t.jsx(bp,{})}),t.jsx(M,{path:"inscricoes/inscrever/:editionId",element:t.jsx(T2,{})}),t.jsx(M,{path:"inscricoes/:id/ver",element:t.jsx(_2,{})}),t.jsx(M,{path:"inscricoes/:id",element:t.jsx(B2,{})}),t.jsx(M,{path:"inscricoes/:id/editar",element:t.jsx(bp,{})}),t.jsx(M,{path:"creditos",element:t.jsx(Q2,{})}),t.jsx(M,{path:"descobertas",element:t.jsx(aN,{})}),t.jsx(M,{path:"descobertas/:id",element:t.jsx(sN,{})}),t.jsx(M,{path:"assistente",element:t.jsx(nN,{})}),t.jsx(M,{path:"extensao",element:t.jsx(x2,{})}),t.jsx(M,{path:"novidades",element:t.jsx(TN,{})}),t.jsx(M,{path:"leads",element:t.jsx(kN,{})}),t.jsx(M,{path:"leads/novo",element:t.jsx(Pp,{})}),t.jsx(M,{path:"leads/:id/editar",element:t.jsx(Pp,{})}),t.jsx(M,{path:"plano",element:t.jsx(_N,{})}),t.jsx(M,{path:"vendas",element:t.jsx(EN,{})}),t.jsx(M,{path:"vendedores",element:t.jsx(AN,{})}),t.jsx(M,{path:"assinaturas",element:t.jsx(vN,{})}),t.jsx(M,{path:"usuarios",element:t.jsx(cN,{})}),t.jsx(M,{path:"usuarios/novo",element:t.jsx(Cp,{})}),t.jsx(M,{path:"usuarios/:id/editar",element:t.jsx(Cp,{})}),t.jsx(M,{path:"permissoes",element:t.jsx(LN,{})}),t.jsx(M,{path:"tutoriais",element:t.jsx(MN,{})}),t.jsx(M,{path:"templates",element:t.jsx(ON,{})}),t.jsx(M,{path:"templates/novo",element:t.jsx(Ap,{})}),t.jsx(M,{path:"templates/:id/editar",element:t.jsx(Ap,{})}),t.jsx(M,{path:"conta",element:t.jsx(GN,{})})]})}),t.jsxs(M,{path:"/:slug",children:[t.jsx(M,{element:t.jsx(Gp,{}),children:Hp()}),t.jsx(M,{path:":lang",element:t.jsx(Gp,{}),children:Hp()})]}),t.jsx(M,{path:"*",element:t.jsx(pt,{to:"/",replace:!0})})]})]})}class oC extends O.Component{constructor(){super(...arguments);Iu(this,"state",{error:null})}static getDerivedStateFromError(s){return{error:s}}componentDidCatch(s,r){console.error("[giro] erro de render",s,r.componentStack)}render(){const{error:s}=this.state;return s?t.jsx("div",{className:"grid min-h-screen place-items-center bg-white px-6 py-12 text-center",children:t.jsxs("div",{className:"w-full max-w-lg",children:[t.jsx("h1",{className:"text-2xl font-bold text-[#0d0d0d]",children:"Algo quebrou por aqui"}),t.jsx("p",{className:"mt-2 text-neutral-500",children:"Recarregue a página. Se continuar acontecendo, mande um print desta tela."}),t.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-6 rounded-lg bg-[#0d0d0d] px-5 py-2.5 text-sm font-semibold text-white",children:"Recarregar"}),t.jsxs("pre",{className:"mt-8 overflow-x-auto whitespace-pre-wrap rounded-lg bg-neutral-100 p-4 text-left text-xs text-neutral-600",children:[s.message,s.stack?` 729 730${s.stack}`:""]})]})}):this.props.children}}N1();Rl.createRoot(document.getElementById("root")).render(t.jsx(O.StrictMode,{children:t.jsx(oC,{children:t.jsx(db,{children:t.jsx(D1,{children:t.jsx(L1,{children:t.jsx(t0,{children:t.jsx(o0,{children:t.jsx(nC,{})})})})})})})}));export{Eb as $,ae as A,J as B,Ss as C,Pe as D,Za as E,ks as F,Ja as G,Ub as H,Ri as I,mC as J,W1 as K,U as L,n1 as M,pt as N,$1 as O,cu as P,nr as Q,Mn as R,vr as S,Wa as T,v1 as U,ge as V,I1 as W,tt as X,y1 as Y,Re as Z,Bi as _,zp as a,ke as a0,xt as a1,pC as a2,Ks as a3,iu as a4,eu as a5,lC as a6,Xb as a7,Lf as a8,o1 as a9,hr as aa,mr as ab,cC as ac,S as ad,du as ae,Di as af,hC as ag,pu as ah,nu as ai,Fa as aj,uC as ak,xC as al,Sb as b,q as c,ru as d,Be as e,jr as f,O as g,bt as h,VN as i,t as j,js as k,D as l,dC as m,Xa as n,Ae as o,Rt as p,Tf as q,y as r,_f as s,ii as t,ne as u,X as v,lu as w,Fi as x,ws as y,Rb as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.