PageSourceSearch

https://iluminarte.art/static/js/9629.a0921564.chunk.js

js iluminarte.art collected 2026-09-24 14:34:18 UTC 6,905 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9629],{6434:function(t,e,n){n.d(e,{NN:function(){return h},Xg:function(){return v},nR:function(){return i},y4:function(){return l},zt:function(){return u}});var r=n(5861),a=n(4687),o=n.n(a),s=n(1718);function i(t){return c.apply(this,arguments)}function c(){return(c=(0,r.Z)(o().mark((function t(e){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URLSearchParams,null!==e&&void 0!==e&&e.startDate&&r.set("startDate",e.startDate),null!==e&&void 0!==e&&e.endDate&&r.set("endDate",e.endDate),a="/api/reports/participation".concat(r.toString()?"?".concat(r):""),t.next=6,s.Z.get(a);case 6:return i=t.sent,t.abrupt("return",null!==(n=i.data)&&void 0!==n?n:[]);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)(o().mark((function t(e){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URLSearchParams,null!==e&&void 0!==e&&e.startDate&&r.set("startDate",e.startDate),null!==e&&void 0!==e&&e.endDate&&r.set("endDate",e.endDate),a="/api/reports/cancellations".concat(r.toString()?"?".concat(r):""),t.next=6,s.Z.get(a);case 6:return i=t.sent,t.abrupt("return",null!==(n=i.data)&&void 0!==n?n:[]);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)(o().mark((function t(e){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URLSearchParams,null!==e&&void 0!==e&&e.startDate&&r.set("startDate",e.startDate),null!==e&&void 0!==e&&e.endDate&&r.set("endDate",e.endDate),a="/api/reports/conversion".concat(r.toString()?"?".concat(r):""),t.next=6,s.Z.get(a);case 6:return i=t.sent,t.abrupt("return",null!==(n=i.data)&&void 0!==n?n:{emFila:0,confirmadosNoPeriodo:0});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)(o().mark((function t(e){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URLSearchParams,null!==e&&void 0!==e&&e.startDate&&r.set("startDate",e.startDate),null!==e&&void 0!==e&&e.endDate&&r.set("endDate",e.endDate),a="/api/reports/trends".concat(r.toString()?"?".concat(r):""),t.next=6,s.Z.get(a);case 6:return i=t.sent,t.abrupt("return",null!==(n=i.data)&&void 0!==n?n:[]);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(t){return x.apply(this,arguments)}function x(){return(x=(0,r.Z)(o().mark((function t(e){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URLSearchParams,null!==e&&void 0!==e&&e.startDate&&r.set("startDate",e.startDate),null!==e&&void 0!==e&&e.endDate&&r.set("endDate",e.endDate),a="/api/reports/growth".concat(r.toString()?"?".concat(r):""),t.next=6,s.Z.get(a);case 6:return i=t.sent,t.abrupt("return",null!==(n=i.data)&&void 0!==n?n:[]);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}
1,5968:function(t,e){var n=null===""?void 0:"".trim(),r={urlServer:n||"http://localhost:8000"},a={urlServer:n||window.location.origin},o=window.location.href.match("localhost")?r:a;e.Z=o},9629:function(t,e,n){n.r(e),n.d(e,{Conversion:function(){return x},default:function(){return m}});var r=n(9439),a=n(7313),o=n(1413),s=n(80),i=n(6434);function c(t,e){var n,r=function(t){if((null===t||void 0===t||!t.startDate)&&(null===t||void 0===t||!t.endDate))return"/api/reports/conversion";var e=new URLSearchParams;return t.startDate&&e.set("startDate",t.startDate),t.endDate&&e.set("endDate",t.endDate),"/api/reports/conversion?".concat(e.toString())}(t),a=(0,s.ZP)(r,(function(){return(0,i.y4)(t)}),(0,o.Z)({dedupingInterval:6e4,revalidateOnFocus:!1},e));return{data:null!==(n=a.data)&&void 0!==n?n:{emFila:0,confirmadosNoPeriodo:0},error:a.error,isLoading:!a.data&&!a.error,mutate:a.mutate}}var u=n(6417),d={display:"flex",flexWrap:"wrap",alignItems:"center",gap:"16px",marginBottom:"24px"},l={fontWeight:600,marginRight:"8px"},p={padding:"8px 12px",border:"1px solid #e5e7eb",borderRadius:"6px",fontSize:"14px"},v={padding:"24px",background:"#f9fafb",borderRadius:"10px",border:"1px solid #e5e7eb",maxWidth:"400px",marginBottom:"16px"},f={margin:"0 0 8px 0",fontSize:"14px",color:"#6b7280"},h={margin:0,fontSize:"24px",fontWeight:700},x=function(){var t=(0,a.useState)(""),e=(0,r.Z)(t,2),n=e[0],o=e[1],s=(0,a.useState)(""),i=(0,r.Z)(s,2),x=i[0],m=i[1],D=c((0,a.useMemo)((function(){if(n||x){var t={};return n&&(t.startDate=n),x&&(t.endDate=x),t}}),[n,x])),g=D.data,y=D.isLoading,w=D.error;return y?(0,u.jsx)("div",{className:"admin-content",children:(0,u.jsxs)("div",{className:"content-section",children:[(0,u.jsx)("h2",{children:"Taxa de Convers\xe3o"}),(0,u.jsx)("p",{children:"Carregando dados..."})]})}):w?(0,u.jsx)("div",{className:"admin-content",children:(0,u.jsxs)("div",{className:"content-section",children:[(0,u.jsx)("h2",{children:"Taxa de Convers\xe3o"}),(0,u.jsx)("p",{style:{color:"red"},children:"Erro ao carregar dados. Por favor, tente novamente."})]})}):(0,u.jsx)("div",{className:"admin-content",children:(0,u.jsxs)("div",{className:"content-section",children:[(0,u.jsx)("h2",{children:"Taxa de Convers\xe3o"}),(0,u.jsxs)("div",{style:d,children:[(0,u.jsx)("label",{style:l,htmlFor:"conv-start",children:"Data inicial:"}),(0,u.jsx)("input",{id:"conv-start",type:"date",value:n,onChange:function(t){return o(t.target.value)},style:p}),(0,u.jsx)("label",{style:l,htmlFor:"conv-end",children:"Data final:"}),(0,u.jsx)("input",{id:"conv-end",type:"date",value:x,onChange:function(t){return m(t.target.value)},style:p})]}),(0,u.jsx)("p",{style:{marginBottom:"24px",color:"#6b7280"},children:"Em fila: reservas aguardando vaga. Confirmados no per\xedodo: reservas confirmadas no intervalo selecionado."}),(0,u.jsxs)("div",{style:v,children:[(0,u.jsx)("p",{style:f,children:"Em fila de espera"}),(0,u.jsx)("p",{style:h,children:g.emFila})]}),(0,u.jsxs)("div",{style:v,children:[(0,u.jsx)("p",{style:f,children:"Confirmados no per\xedodo"}),(0,u.jsx)("p",{style:h,children:g.confirmadosNoPeriodo})]})]})})},m=x},1718:function(t,e,n){var r=n(1881),a=n.n(r),o=n(9884),s=n(5968),i=n(2933),c=a().create({baseURL:s.Z.urlServer,timeout:72e4,headers:{"Content-Type":"application/json"}});c.interceptors.request.use((function(t){var e=(0,o.$l)(i.Z).token;return e&&(t.headers.Authorization="Bearer ".concat(e)),t.data instanceof FormData&&delete t.headers["Content-Type"],t}),(function(t){return Promise.reject(t)})),c.interceptors.response.use((function(t){return t}),(function(t){var e;return 401===(null===(e=t.response)||void 0===e?void 0:e.status)&&((0,o.z8)(i.Z,{isAuthenticate:!1,token:"",user:null}),["#/"].includes(window.location.hash)||(window.location.hash="/")),Promise.reject(t)})),e.Z=c}}]);

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.