1"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[5030],{22944:function(e,t,r){r.d(t,{IW:function(){return d},NF:function(){return u},NJ:function(){return i},Ub:function(){return s},Vh:function(){return a},j8:function(){return o},jC:function(){return l},rB:function(){return c}});let n={pix:"PIX",picpay:"picpay",courtesy:"courtesy",credit_card:"creditCard",debit_card:"debitCard",cash:"cash",boleto:"boleto"};function l(e,t){let r=n[(null!=e?e:"").toLowerCase()];return r?t(r):null!=e?e:"-"}function s(e){var t;let r=(null!=e?e:"").toLowerCase();return"inline-flex items-center text-xxxs rounded-pill px-2 py-[2px] label-sm ".concat(null!==(t=({completed:"text-success-800 bg-success-100",refunded:"text-[#E63757] bg-[#FAD7DD]",preauthorized:"text-black bg-[#FDF3D9]",transferred:"text-grey-700 bg-grey-200",finalizado:"text-success-800 bg-success-100",pendente_estorno:"text-black bg-[#FDF3D9]","pr\xe9-autorizada":"text-black bg-[#FDF3D9]",estornado:"text-[#E63757] bg-[#FAD7DD]",estornado_parcialmente:"text-[#E63757] bg-[#FAD7DD]"})[r])&&void 0!==t?t:"text-grey-700 bg-grey-200")}function a(e,t){switch((null!=e?e:"").toLowerCase()){case"finalizado":return t("confirmed");case"pr\xe9-autorizada":return t("preAuthorized");case"pendente_estorno":return t("processing");default:return t("refunded")}}function i(e,t){let r=(null!=e?e:"").toLowerCase(),n=(null!=t?t:"").toLowerCase();return"pendente"===n?"pending":"recusado"===n?"declined":["estornado","estornada","estornado_parcialmente"].includes(r)?"completed":["pendente_estorno","processando_devolucao","processando"].includes(r)||"fonte"===n||"pix"===n?"processing":null}function o(e){var t;return"Repassa"===e.situation_rate?(null!==(t=e.tax)&&void 0!==t?t:0)/100:0}function c(e){var t;return Math.max((null!==(t=e.total_value)&&void 0!==t?t:0)-o(e),0)}function d(e){var t;return null!==(t=e.tickets)&&void 0!==t?t:[]}function u(e){var t,r,n,l,s,a,i,o,c,d,u,x,f,p;let m=(null===(t=e.buyerName)||void 0===t?void 0:t.trim())||"-";return{token:e.order.token_ticket,status:null!==(r=e.order.status)&&void 0!==r?r:"",eventStatus:null!==(n=e.eventStatus)&&void 0!==n?n:null,createdAt:e.order.created_at,buyerName:m,paymentMethodLabel:null!==(l=e.order.payment_type)&&void 0!==l?l:"-",tickets:(null!==(s=e.order.tickets)&&void 0!==s?s:[]).map(e=>{var t,r;return{id:e.id,ticketName:null!==(t=e.ticket_name)&&void 0!==t?t:"",value:null!==(r=e.value)&&void 0!==r?r:null}}),convenienceFee:null!==(a=e.order.tax)&&void 0!==a?a:null,absorbsConvenienceFee:"Absorve"===e.order.situation_rate,processingFee:null!==(i=e.order.processing_fee)&&void 0!==i?i:null,installmentFee:null!==(o=e.order.installment_fee)&&void 0!==o?o:null,insuranceFee:null!==(c=e.order.insurance_fee)&&void 0!==c?c:null,totalValue:null!==(d=e.order.total_value)&&void 0!==d?d:null,isRefundable:null!==(u=e.order.is_refundable)&&void 0!==u&&u,refundBlockReason:null!==(x=e.order.refund_block_reason)&&void 0!==x?x:null,refundOutcome:null!==(f=e.order.refund_outcome)&&void 0!==f?f:null,refundPixKey:null!==(p=e.order.refund_pix_key)&&void 0!==p?p:null}}},29080:function(e,t,r){r.d(t,{A:function(){return n}});/** 2 * @license lucide-react v0.436.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let n=(0,r(45685).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},52499:function(e,t,r){r.d(t,{RB:function(){return a},UO:function(){return i},WI:function(){return s}});var n=r(40813),l=r(95416);let s=e=>["my-ticket-order",e];function a(e,t,r){e.setQueryData(s(t),r)}function i(e){var t,r;let i=(0,n.useQueryClient)(),o=function(e){if(!e)return;if(Array.isArray(e))return e[0];let t=e.trim();return t.length?t:void 0}(e),c=o?s(o):["my-ticket-order",""],d=(0,n.useQuery)({queryKey:c,enabled:!!o,initialData:()=>o?i.getQueryData(s(o)):void 0,staleTime:6e4,queryFn:async()=>{var e;let t=(null!==(e=(await (0,l.getMyTickets)({page:1,perPage:15,searchTerm:o,includeCourtesies:!0})).data)&&void 0!==e?e:[]).flatMap(e=>{var t;return(null!==(t=e.orders)&&void 0!==t?t:[]).map(t=>({event:e,order:t}))}).find(e=>{var t;return(null===(t=e.order)||void 0===t?void 0:t.token_ticket)===o});if(!t)throw Error("Order not found");return a(i,o,t),t}});return{token:o,data:d.data,event:null===(t=d.data)||void 0===t?void 0:t.event,order:null===(r=d.data)||void 0===r?void 0:r.order,isLoading:d.isLoading,isFetching:d.isFetching,isError:d.isError,error:d.error}}},58666:function(e,t,r){r.d(t,{A:function(){return n}});/** 7 * @license lucide-react v0.436.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let n=(0,r(45685).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},61633:function(e,t,r){r.d(t,{$:function(){return f}});var n=r(23078),l=r(95416),s=r(71781),a=r(77399),i=r(45685);/** 12 * @license lucide-react v0.436.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let o=(0,i.A)("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"}]]),c=(0,i.A)("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"}]]);var d=r(45835);let u="flex items-center gap-2 text-xxs text-grey-700 leading-[150%] hover:underline",x="stroke-primary-pure flex-shrink-0";function f(e){let{name:t,email:r,phone:i,instagram:f}=e,p=(0,d.useTranslations)("Refund"),m=!!(r||i||f),h=(0,l.formatBrazilianPhone)(i),v=h.replace(/[^\d+]/g,"");return(0,n.jsxs)("div",{className:"w-full mt-5 flex flex-col gap-3 rounded-md border border-grey-200 bg-white p-4",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("p",{className:"text-xs font-bold text-grey-900 leading-[150%]",children:p("queue.producerDoubtsTitle")}),(0,n.jsx)("p",{className:"text-xxs text-grey-700 leading-[150%]",children:p.rich("queue.producerDoubtsDesc",{producer:t,...(0,l.render
16StrongText)()})})]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Divider,{}),(0,n.jsx)("p",{className:"text-xxs font-bold text-grey-900 leading-[150%]",children:p("queue.producerContactTitle")}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[r&&(0,n.jsxs)("a",{href:"mailto:".concat(r),className:u,children:[(0,n.jsx)(a.A,{size:20,className:x}),r]}),i&&(0,n.jsxs)("a",{href:"tel:".concat(v),className:u,children:[(0,n.jsx)(o,{size:20,className:x}),h]}),f&&(0,n.jsxs)("a",{href:"https://instagram.com/".concat(f.replace(/^@/,"")),target:"_blank",rel:"noopener noreferrer",className:u,children:[(0,n.jsx)(c,{size:20,className:x}),f.startsWith("@")?f:"@".concat(f)]})]})]})]})}},75527:function(e,t,r){r.d(t,{k:function(){return u}});var n=r(23078),l=r(71781),s=r(21870),a=r(45835),i=r(58666),o=r(69326);function c(e){let{status:t,position:r}=e,s="flex items-center justify-center w-[21px] h-[21px] rounded-full flex-shrink-0";return"done"===t?(0,n.jsx)("div",{className:(0,l.cn)(s,"bg-success-500"),children:(0,n.jsx)(i.A,{size:12,strokeWidth:3,className:"stroke-white"})}):"error"===t?(0,n.jsx)("div",{className:(0,l.cn)(s,"bg-error-500"),children:(0,n.jsx)(o.A,{size:12,strokeWidth:3,className:"stroke-white"})}):"current"===t?(0,n.jsx)("div",{className:(0,l.cn)(s,"border-2 bg-white","border-[color:var(--color-primary-light,#1C70E9)]"),children:(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-[color:var(--color-primary-light,#1C70E9)]"})}):"warning"===t?(0,n.jsx)("div",{className:(0,l.cn)(s,"border-2 border-warning-500 bg-white")}):(0,n.jsx)("div",{className:(0,l.cn)(s,"border-2 border-grey-300 bg-white"),children:(0,n.jsx)("span",{className:"text-xxxs font-bold text-grey-500 leading-none",children:r})})}function d(e){let{steps:t,className:r=""}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col w-full",r),children:t.map((e,r)=>{let s=r===t.length-1;return(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)(c,{status:e.status,position:r+1}),!s&&(0,n.jsx)("span",{className:"w-[2px] flex-1 min-h-[16px] bg-grey-200 my-1","aria-hidden":!0})]}),(0,n.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1 flex-1",!s&&"border-b border-grey-200 pb-4"),children:[(0,n.jsx)("p",{className:"text-xxs font-bold text-grey-900 leading-[150%]",children:e.title}),(0,n.jsx)("p",{className:"text-xxs font-normal text-grey-600 leading-[150%]",children:e.description})]})]},e.title)})})}function u(e){let{illustration:t,title:r,orderCode:i,steps:o,onOpenOrderDetails:c,extra:u,className:x=""}=e,f=(0,a.useTranslations)("Refund");return(0,n.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,n.jsxs)("div",{className:(0,l.cn)("flex flex-col items-center w-full max-w-[468px] mx-auto border border-grey-200 rounded-lg p-6",x),children:[(0,n.jsx)("div",{className:"flex justify-center items-center w-[135px] h-[135px]",children:t}),(0,n.jsx)("h2",{className:"text-[18px] font-bold text-grey-900 leading-[120%] text-center mt-2",children:r}),(0,n.jsx)("p",{className:"text-xxs text-grey-500 leading-[150%] text-center mt-1",children:f("orderLabel",{code:i}
16)}),(0,n.jsx)("div",{className:"flex flex-col w-full bg-grey-100 rounded-md p-4 mt-6",children:(0,n.jsx)(d,{steps:o})}),u]}),c&&(0,n.jsxs)("button",{type:"button",className:"text-xxxs font-bold uppercase leading-[120%] text-primary-pure inline-flex items-center gap-1 cursor-pointer mt-6",onClick:c,children:[f("detailOrder"),(0,n.jsx)(s.A,{size:15,"aria-hidden":!0})]})]})}},77399:function(e,t,r){r.d(t,{A:function(){return n}});/** 17 * @license lucide-react v0.436.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let n=(0,r(45685).A)("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"}]])},80707:function(e,t,r){r.d(t,{c:function(){return a}});var n=r(23078),l=r(71781),s=r(91402);function a(e){let{className:t=""}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex w-full items-center justify-center min-h-[60vh]",t),children:(0,n.jsx)(s.p,{isLoading:!0,variant:"inline"})})}},91402:function(e,t,r){r.d(t,{p:function(){return u}});var n=r(23078),l=r(95416),s=r(27103),a=r.n(s),i=r(59065),o=r(5470);let c=a()(()=>r.e(1918).then(r.bind(r,62361)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[62361]},ssr:!1});function d(){return(0,n.jsx)("svg",{stroke:"var(--color-primary-pure)",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"w-[120px] h-[120px]",children:(0,n.jsxs)("g",{children:[(0,n.jsxs)("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",strokeWidth:"3",strokeLinecap:"round",children:[(0,n.jsx)("animate",{attributeName:"stroke-dasharray",dur:"1.5s",calcMode:"spline",values:"0 150;42 150;42 150;42 150",keyTimes:"0;0.475;0.95;1",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",repeatCount:"indefinite"}),(0,n.jsx)("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",calcMode:"spline",values:"0;-16;-59;-59",keyTimes:"0;0.475;0.95;1",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",repeatCount:"indefinite"})]}),(0,n.jsx)("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})]})})}function u(e){let{isLoading:t,variant:r="full-screen"}=e,[s,a]=(0,i.useState)(!1),u=(0,l.useIsZigWhitelabel)();return((0,i.useEffect)(()=>{a(!0)},[]),s&&t)?(0,n.jsx)("div",{className:"full-screen"===r?"fixed inset-0 z-[60] flex items-center justify-center bg-white opacity-95":"flex items-center justify-center",children:u?(0,n.jsx)(c,{src:o,autoplay:!0,loop:!0,className:"w-[120px] h-[120px]"}):(0,n.jsx)(d,{})}):null}}}]);
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.