PageSourceSearch

https://appcasacor.com.br/_next/static/chunks/pages/orders/[slug]/[orderId]-398b1914e91cb87c.js

js appcasacor.com.br collected 2026-09-24 18:07:08 UTC 11,420 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9441],{69734:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orders/[slug]/[orderId]",function(){return t(27797)}])},96013:function(e,n,t){"use strict";var o=t(85893),r=t(67294),i=t(89755),a=t.n(i),l=t(45332);let s=e=>{let{src:n,...t}=e,[i,s]=(0,r.useState)((0,l.e6)(n));return r.useEffect(()=>{s((0,l.e6)(n))},[n]),(0,o.jsx)(a(),{src:i,alt:"",placeholder:"blur",className:"placeholder image-with-fallback",draggable:!1,objectFit:"contain",blurDataURL:l.LG,unoptimized:"/placeholder.png"===i,onError:()=>{s("/placeholder.png")},...t})};n.Z=s},27797:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return k},default:function(){return I}});var o=t(85893),r=t(67294),i=t(72132),a=t(53416),l=t(94552),s=t(96013),u=t(89834),c=t(34768),d=t(46870),m=t(45332),f=t(42166),p=t(77058),v=t(11163),h=t(801),N=t(95444),x=t(83321);let g=e=>{var n,t;let g=(0,v.useRouter)(),{updateCart:y}=(0,l.jD)(),{t:b,i18n:j}=(0,p.$)("admin"),{title:D,image:k,imageObjectPosition:I="center",description:w,address:S,slug:C,startAt:T,endAt:E,pageHeaderImage:P,sponsors:_}=e.event||{},F=e.order,B=e.tickets,[Z,A]=r.useState(!1);r.useEffect(()=>{try{var e,n,t,o,r,l;A(!0);let i=F.order;console.log("\uD83D\uDE80 ~ handleOrderFromQueryParams ~ orderData:",i);let s=i.items.map((e,n)=>{var t,o;let r=B.find(n=>n.id===e.ticketId),l=null==r?void 0:r.eventPriceRules.find(n=>n.id===e.ticketTypeId),s=Object.keys((null==r?void 0:r.hours)||{}),u={};return s.forEach(n=>{(null==u?void 0:u.id)||(u=null==r?void 0:r.hours[n].find(n=>n.id===e.ticketHourId))}),{id:(0,a.x0)(),uniqueId:(0,a.x0)(),origin:"order-automation",ticketHourId:e.ticketHourId,ticketId:(null==r?void 0:r.id)||"",ticketSlug:(null==r?void 0:r.slug)||"",ticketTitle:(null==r?void 0:r.title)||"",date:e.date,type:(null==r?void 0:r.type)||"normal",donation:(null==r?void 0:r.donation)||{name:"",value:0},packId:(0,a.x0)(),eventId:(null==r?void 0:r.eventId)||"",time:"".concat(null==u?void 0:u.startTime,"-").concat(null==u?void 0:u.endTime),ticketType:{id:(null==l?void 0:l.id)||"",type:(null==l?void 0:l.type)||"",description:(null==l?void 0:l.description)||"",discount:(null==l?void 0:l.discount)||0},value:(null==u?void 0:u.price)||0,totalValue:(null==u?void 0:u.price)||0,discount:0,user:{name:null===(t=i.payerInfo)||void 0===t?void 0:t.name,email:null===(o=i.payerInfo)||void 0===o?void 0:o.email}}});console.log("\uD83D\uDE80 ~ cartItems ~ cartItems:",s),y({items:s,userInfo:{name:null===(e=i.payerInfo)||void 0===e?void 0:e.name,email:null===(n=i.payerInfo)||void 0===n?void 0:n.email,emailCheck:"",celphone:null===(t=i.payerInfo)||void 0===t?void 0:t.celphone,gender:"",birthday:"",profession:"",docNumber:null===(o=i.payerInfo)||void 0===o?void 0:o.docNumber,docType:null===(r=i.payerInfo)||void 0===r?void 0:r.docType,address:null===(l=i.payerInfo)||void 0===l?void 0:l.address},editTicketPackId:(0,a.x0)(),donation:{qty:0,value:0,totalValue:0,name:""},updatedAt:Date.now(),createdAt:Date.now()})}catch(e){console.error("Error processing order:",e),i.Am.error("Erro ao processar pedido")}finally{A(!1)}},[F,B]);let z=()=>{g.push("/events/".concat(C,"/tickets?checkout=true"))};return(0,o.jsx)("div",{className:"order-automation",children:(0,o.jsxs)("div",{className:"event fade-in-animation",children:[(0,o.jsx)("div",{className:"header",style:{backgroundImage:"url(".concat((0,m.e6)(null==P?void 0:P.image),")")}}),(0,o.jsx)("div",{className:"content",children:(0,o.jsxs)("div",{className:"row",children:[(0,o.jsxs)("section",{children:[(0,o.jsx)("div",{className:"cover-image",children:(0,o.jsx)(s.Z,{src:k,layout:"fill",objectPosition:I})}),(0,o.jsx)("div",{className:"cover-image-tablet",children:(0,o.jsx)(s.Z,{src:k,layout:"fill"})})]}),(0,o.jsxs)("section",{children:[(0,o.jsxs)("h2",{children:["CASACOR / ",(0,o.jsxs)("span",{children:[" ",D]})]}),(0,o.jsxs)("div",{className:"info",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(h.qQ,{className:"icon-text"}),(0,o.jsx)("span",{children:(0,m.Cy)(S)})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(h.Qu,{className:"icon-text"}),(0,o.jsxs)("span",{children:["De ",null===(n=(0,d.p6)(T,"P",j.language))||void 0===n?void 0:n.slice(0,5)," a ",(0,d.p6)(E,"P",j.language)]})]})]}),(0,o.jsxs)("div",{className:"order-info",children:[(0,o.jsx)("h3",{children:"Recebemos seu pedido criado pelo WhatsApp"}),(0,o.jsxs)("div",{className:"order-info-item",children:[(0,o.jsx)("div",{className:"order-info-item-label",children:"Nome do comprador"}),(0,o.jsx)("span",{children:F.order.payerInfo.name})]}),(0,o.jsxs)("div",{className:"order-info-item",children:[(0,o.jsx)("div",{className:"order-info-item-label",children:"Email do comprador"}),(0,o.jsx)("span",{children:F.order.payerInfo.email})]}),(0,o.jsxs)("div",{className:"order-info-item",children:[(0,o.jsx)("div",{className:"order-info-item-label",children:"Telefone do comprador"}),(0,o.jsx)("span",{children:F.order.payerInfo.celphone})]}),(0,o.jsxs)("div",{className:"order-info-item",children:[(0,o.jsx)("div",{className:"order-info-item-label",children:"Documento"}),(0,o.jsx)("span",{children:F.order.payerInfo.docNumber})]}),(0,o.jsxs)("div",{className:"order-info-item",children:[(0,o.jsx)("div",{className:"order-info-item-label",children:"Ingressos"}),(0,o.jsxs)("span",{children:[F.order.items.length," X ",null===(t=B.find(e=>
1e.id===F.order.items[0].ticketId))||void 0===t?void 0:t.title]})]}),(0,o.jsx)(x.Z,{variant:"contained",className:"checkout-button",onClick:z,children:"Continuar para Checkout"})]}),(0,o.jsx)("h3",{children:(0,f.n$)(e.event)}),(0,o.jsx)(u.D,{rehypePlugins:[c.Z],className:"description",children:w})]})]})}),(0,o.jsx)(N.Z,{sponsors:_})]})})};var y=t(28133),b=t(4298),j=t.n(b);let D=e=>((0,y.Z)(),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(j(),{type:"text/javascript",id:"iubenda",children:'\n        var _iub = _iub || [];\n        _iub.csConfiguration = {"countryDetection":true,"enableGdpr":false,"enableLgpd":true,"floatingPreferencesButtonDisplay":"bottom-right","lang":"pt-BR","lgpdAppliesGlobally":true,"perPurposeConsent":true,"siteId":3082029,"whitelabel":false,"cookiePolicyId":84558789, "banner":{ "acceptButtonCaptionColor":"#FFFFFF","acceptButtonColor":"#010436","acceptButtonDisplay":true,"backgroundColor":"#FBF6EF","closeButtonDisplay":false,"customizeButtonCaptionColor":"#010436","customizeButtonColor":"#E1DDD7","customizeButtonDisplay":true,"explicitWithdrawal":true,"fontSizeBody":"12px","position":"bottom","prependOnBody":true,"rejectButtonCaptionColor":"#FFFFFF","rejectButtonColor":"#010436","rejectButtonDisplay":true,"theme":"autumn-neutral","textColor":"#010436","content":"N\xf3s usamos cookies ou tecnologias similares afim de oferecer uma melhor experi\xeancia, e com seu consentimento, para outras finalidades. Negar consentimento pode tornar as funcionalidades relacionadas indispon\xedveis.\n\nVoc\xea pode livremente dar, negar ou retirar seu consentimento a qualquer momento.\n\nUse o bot\xe3o “Aceitar” para consentir. Use o bot\xe3o “Recusar” para continuar sem aceitar." }};\n      '}),(0,o.jsx)(j(),{type:"text/javascript",src:"https://cdn.iubenda.com/cs/iubenda_cs.js",charset:"UTF-8",async:!0}),(0,o.jsx)(g,{...e})]}));var k=!0,I=D},95444:function(e,n,t){"use strict";var o=t(85893),r=t(45332);t(67294);let i=e=>{let n=e.sponsors;return(0,o.jsx)("div",{className:"sponsors-events",children:null==n?void 0:n.map(e=>(0,o.jsxs)("div",{className:"sponsor",children:[(0,o.jsx)("h3",{className:"title",children:e.title}),(0,o.jsx)("a",{className:"logo-sponsor-master",href:e.link,style:{backgroundImage:"url(".concat((0,r.e6)(e.image),")"),backgroundSize:e.backgroundSize?"".concat(e.backgroundSize,"%"):"contain"}})]},e.id))})};n.Z=i},42166:function(e,n,t){"use strict";t.d(n,{XG:function(){return o},lM:function(){return i},mH:function(){return r},n$:function(){return a}});let o=["Entusiastas por arquitetura e d\xe9cor","Arquiteto","Designer","Paisagista","Engenheiro","Estudantes","Profissionais do segmento (lojas e fornecedores)","Outros"],r=[{value:"mostra",label:"Mostra",title:"Sobre a Mostra"},{value:"evento",label:"Evento",title:"Sobre o Evento"},{value:"palestra",label:"Palestra",title:"Sobre a Palestra"},{value:"show",label:"Show",title:"Sobre o Show"}];function i(e){return(null==e?void 0:e.aboutSectionType)?e.aboutSectionType:(null==e?void 0:e.isLecture)?"palestra":(null==e?void 0:e.isExhibition)?"evento":"mostra"}function a(e){var n;let t=i(e);return(null===(n=r.find(e=>e.value===t))||void 0===n?void 0:n.title)||"Sobre a Mostra"}},46870:function(e,n,t){"use strict";t.d(n,{Au:function(){return x},GT:function(){return D},MQ:function(){return h},O:function(){return m},Rg:function(){return y},U6:function(){return k},Y5:function(){return d},YR:function(){return u},j9:function(){return I},mX:function(){return f},mr:function(){return g},nv:function(){return p},oJ:function(){return b},p6:function(){return c},qb:function(){return w},tE:function(){return N},uP:function(){return v},y5:function(){return j}});var o=t(61436),r=t(32912),i=t(29081),a=t(95826),l=t(99490);let s={pt:i.Z,en:a.Z},u="America/Sao_Paulo";function c(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PPPP",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pt";if(!e)return;if(!(0,o.Z)(new Date(e)))return"".concat(e);let i=(0,r.Z)(new Date(e),n,{locale:s[t]});return i}function d(){return new Date().getTimezoneOffset()}function m(e){let n=new Date(e);if(Number.isNaN(n.getTime()))return{year:NaN,month:NaN,day:NaN};if(0===n.getHours()&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds())return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()};let t=l.ou.fromJSDate(n,{zone:u});return t.isValid?{year:t.year,month:t.month,day:t.day}
1:{year:NaN,month:NaN,day:NaN}}function f(e){let{year:n,month:t,day:o}=m(e);return Number.isNaN(n)?"":"".concat(n,"-").concat(String(t).padStart(2,"0"),"-").concat(String(o).padStart(2,"0"))}function p(e,n){let t=f(e),o=f(n);return Boolean(t&&o&&t===o)}function v(e){let{year:n,month:t,day:o}=m(e);return Number.isNaN(n)?"NaN":new Date(Date.UTC(n,t-1,o,12)).getUTCDay().toString()}function h(e,n){let t=f(e),o=f(n);return!!t&&!!o&&t>o}function N(e){let{year:n,month:t,day:o}=m(e);return Number.isNaN(n)?new Date(NaN):new Date(n,t-1,o)}function x(){return l.ou.now().toJSDate()}function g(e,n){let{year:t,month:o,day:r}=m(e);if(Number.isNaN(t))return new Date(NaN);let[i="0",a="0"]=n.split(":");return l.ou.fromObject({year:t,month:o,day:r,hour:Number(i)||0,minute:Number(a)||0,second:0,millisecond:0},{zone:u}).toJSDate()}function y(e,n){let[t="00:00",o="23:00"]=(n||"").split("-");return{start:g(e,t),end:g(e,o)}}function b(e){let n=l.ou.fromJSDate(new Date(e));return!n.isValid||n.toMillis()<l.ou.now().toMillis()}function j(e,n){return new Date(e).getTime()>new Date(n).getTime()}function D(e,n){return new Date(e).getTime()<new Date(n).getTime()}function k(e,n){return(null==n?void 0:n.onlyToday)?N(x()):N(e)}function I(e,n){return(null==n?void 0:n.onlyToday)?N(x()):N(e)}function w(e){return(0,o.Z)(new Date(e))}},53416:function(e,n,t){"use strict";t.d(n,{x0:function(){return o}});let o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,n)=>((n&=63)<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"")}},function(e){e.O(0,[9809,9755,8423,9774,2888,179],function(){return e(e.s=69734)}),_N_E=e.O()}]);

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.