PageSourceSearch

https://zeroq.cl/static/js/26.e510323a.chunk.js

js zeroq.cl collected 2026-10-04 21:58:52 UTC 12,855 bytes, 2 lines download raw bytes

1(this["webpackJsonpwebapp-v5"]=this["webpackJsonpwebapp-v5"]||[]).push([[26],{1247:function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var i,o,a,c,r,s,d,l,f,b,u,j=n(15),p=n(134),O=n(1576),g=n(443),h=n(1577),v=n(1114),x=n(1613),m=n(1614),w=n(1088),k=n(0),C=n(26),y=n(33),_=n(66),M=n(219),R=n(110),S=n(31),z=_.a.apiOrigin,T=v.a.Title,B=v.a.Text,N=Object(R.c)(x.a)(i||(i=Object(p.a)(["\n\t.ant-modal-content {\n\t\tborder-radius: 16px;\n\t\toverflow: hidden;\n\t\tpadding: 0;\n\t}\n\t.ant-modal-body {\n\t\tpadding: 0;\n\t}\n\t.ant-modal-footer {\n\t\tdisplay: none;\n\t}\n"]))),E=R.c.div(o||(o=Object(p.a)(["\n\tbackground: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);\n\tpadding: 28px 24px 20px;\n\ttext-align: center;\n\tcolor: white;\n"]))),I=R.c.div(a||(a=Object(p.a)(["\n\twidth: 56px;\n\theight: 56px;\n\tbackground: rgba(255, 255, 255, 0.2);\n\tborder-radius: 50%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin: 0 auto 12px;\n\tfont-size: 26px;\n\tcolor: white;\n"]))),L=R.c.div(c||(c=Object(p.a)(["\n\tpadding: 20px 20px 24px;\n"]))),A=Object(R.c)(B)(r||(r=Object(p.a)(["\n\tdisplay: block;\n\tcolor: #8c8c8c;\n\tfont-size: 13px;\n\tmargin-bottom: 16px;\n\ttext-align: center;
1\n"]))),V=R.c.div(s||(s=Object(p.a)(["\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 12px;\n\tpadding: 14px 16px;\n\tmargin-bottom: 8px;\n\tborder: 2px solid ",";\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tbackground: ",";\n\ttransition: all 0.15s ease;\n\n\t&:hover {\n\t\tborder-color: #ff7875;\n\t\tbackground: #fff1f0;\n\t\tbox-shadow: 0 2px 8px rgba(255, 77, 79, 0.12);\n\t}\n\n\t&:last-child {\n\t\tmargin-bottom: 0;\n\t}\n"])),(function(t){return t.selected?"#ff4d4f":"#f0f0f0"}),(function(t){return t.selected?"#fff1f0":"#fafafa"})),P=R.c.div(d||(d=Object(p.a)(["\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 50%;\n\tborder: 2px solid ",";\n\tbackground: ",';\n\tflex-shrink: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttransition: all 0.15s ease;\n\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tborder-radius: 50%;\n\t\tbackground: white;\n\t\topacity: ',";\n\t\ttransition: opacity 0.15s ease;\n\t}\n"])),(function(t){return t.selected?"#ff4d4f":"#d9d9d9"}),(function(t){return t.selected?"#ff4d4f":"white"}),(function(t){return t.selected?1:0})),q=Object(R.c)(B)(l||(l=Object(p.a)(["\n\tfont-size: 14px;\n\tcolor: ",";\n\tfont-weight: ",";\n\tflex: 1;\n\tline-height: 1.4;\n"])),(function(t){return t.selected?"#cf1322":"#262626"}),(function(t){return t.selected?"500":"400"})),D=R.c.div(f||(f=Object(p.a)(["\n\tdisplay: flex;\n\tgap: 10px;\n\tmargin-top: 20px;\n"]))),G=R.c.div(b||(b=Object(p.a)(["\n\ttext-align: center;\n\tpadding: 20px 0;\n\tcolor: #8c8c8c;\n"]))),J=R.c.div(u||(u=Object(p.a)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n"]))),F=function CancellationReasonModal(t){var e=t.visible,n=t.onCancel,i=t.onConfirm,o=t.loading,a=t.officeId,c=Object(C.useGlobal)("user"),r=Object(j.a)(c,1)[0],s=Object(k.useState)([]),d=Object(j.a)(s,2),l=d[0],f=d[1],b=Object(k.useState)(!1),u=Object(j.a)(b,2),p=u[0],v=u[1],x=Object(k.useState)(!1),_=Object(j.a)(x,2),R=_[0],B=_[1],F=Object(k.useState)(null),H=Object(j.a)(F,2),W=H[0],K=H[1],Q=function fetchReasons(){v(!0),B(!1),y.a.get("".concat(z,"/services/organizations/api/v1/cancellation-reasons/office/").concat(a),{headers:{Authorization:null===r||void 0===r?void 0:r.token}}).then((function(t){var e,n=(null===(e=t.data)||void 0===e?void 0:e.data)||t.data||[];f(n),v(!1)})).catch((function(){B(!0),v(!1)}))};Object(k.useEffect)((function(){e&&(K(null),Q())}),[e]);return Object(S.jsxs)(N,{visible:e,footer:null,onCancel:n,width:440,centered:!0,closable:!1,destroyOnClose:!0,children:[Object(S.jsxs)(E,{children:[Object(S.jsx)(I,{children:Object(S.jsx)(O.a,{})}),Object(S.jsx)(T,{level:4,style:{color:"white",margin:0,fontSize:17},children:M.a.t("booking:cancellationReasonModalTitle")})]}),Object(S.jsxs)(L,{children:[Object(S.jsx)(A,{children:M.a.t("booking:cancellationReasonModalSubtitle")}),p&&Object(S.jsx)(J,{children:[1,2,3,4].map((function(t){return Object(S.jsx)(m.a.Input,{active:!0,style:{width:"100%",height:50,borderRadius:10}},t)}))}),R&&!p&&Object(S.jsxs)(G,{children:[Object(S.jsx)(g.a,{style:{fontSize:28,color:"#ff4d4f",marginBottom:8}}),Object(S.jsx)("div",{style:{marginBottom:12,fontSize:13},children:M.a.t("booking:cancellationReasonLoadingError")}),Object(S.jsx)(w.a,{icon:Object(S.jsx)(h.a,{}),size:"small",onClick:Q,children:"Reintentar"})]}),!p&&!R&&l.map((function(t){return Object(S.jsxs)(V,{selected:(null===W||void 0===W?void 0:W.id)===t.id,onClick:function onClick(){return K(t)},children:[Object(S.jsx)(P,{selected:(null===W||void 0===W?void 0:W.id)===t.id}),Object(S.jsx)(q,{selected:(null===W||void 0===W?void 0:W.id)===t.id,children:t.description})]},t.id)})),Object(S.jsxs)(D,{children:[Object(S.jsx)(w.a,{block:!0,onClick:n,style:{borderRadius:8,height:40},disabled:o,children:M.a.t("booking:cancellationReasonBackBtn")}),Object(S.jsx)(w.a,{block:!0,danger:!0,type:"primary",disabled:!W||o,loading:o,onClick:function handleConfirm(){W&&i(W.description)},style:{borderRadius:8,height:40},children:M.a.t("booking:cancellationReasonConfirmBtn")})]})]})]})}},1522:function(t,e,n){"use strict";var i=n(1),o=n(15),a=n(1247),c=n(55),r=n(1128),s=n(1117),d=n(263),l=n(1216),f=n(108),b=n(1134),u=n(176),j=n(1140),p=n(1165),O=n(1127),g=n(0),h=n(1126),v=n(26),x=n(31);e.a=Object(r.a)((function ReserveScreen(t){var e=t.match,n=t.children,r=Object(c.g)(),m=Object(g.useState)("open"),w=Object(o.a)(m,2),k=w[0],C=w[1],y=Object(v.useDispatch)("requestLines"),_=Object(v.useDispatch)("getReservationById"),M=Object(v.useDispatch)("getReservationByIdV3"),R=Object(u.a)().isLoggedInTemporary,S=e.params.office,z=e.params.line,T=e.params.id,B=Object(v.useGlobal)("user"),N=Object(o.a)(B,1)[0],E=Object(v.useGlobal)("myReservations"),I=Object(o.a)(E,1)[0],L=Object(g.useState)(""),A=Object(o.a)(L,2),V=A[0],P=A[1],q=Object(g.useState)(!1),D=Object(o.a)(q,2),G=D[0],J=D[1],F=Object(g.useState)(!1),H=Object(o.a)(F,2),W=H[0],K=H[1],Q=Object(O.b)(S),U=Object(o.a)(Q,2),X=U[0],Y=U[1],Z=Object(p.a)(z,S),$=Object(o.a)(Z,2),tt=$[0],et=$[1],nt=Object(b.f)(I),it=Object(b.e)(I,T)||nt||{},ot=Object(f.a)(!1,["options","isAllowRervationsV3"],X),at=Object(f.a)(!1,["options","cancellation_reasons_enabled"],X),ct=Object(f.a)(!1,["notifications","whatsapp"],N),rt=Object(f.a)(!1,["token"],N),st=Object(f.a)(!1,["notifications","push"],N),dt=Object(f.a)("America/Santiago",["timezone"],X),lt=it&&it.from&&Object(d.l)(it.from,-15,dt),ft=Object(f.a)(!1,["notifications","never_show_popup_notifications"],N),bt=Object(f.a)(!1,["meta","redirect_after_reservation"],tt);Object(v.useEffect)((function(){var t;if(bt&&bt.active){var e=1e3*bt.delay;t=setTimeout((function(){bt.newTab?window.open(bt.url,"_blank"):window.location.href=bt.url}),e)}return function(){clearTimeout(t)}}),[bt]),Object(v.useEffect)((function(){null!==T&&void 0!==T&&T.length&&(ot?M(T):_(T))}),[]);var ut=Object(g.useState)({whatsapp:ct,push:st,never_show_popup_notifications:ft}),jt=Object(o.a)(ut,2),pt=jt[0],Ot=jt[1],gt=Object(h.d)(),ht=Object(o.a)(gt,4),vt=ht[0],xt=(ht[1],ht[2],ht[3],Object(j.a)(T,it.isV2,R,S)),mt=Object(o.a)(xt,2),wt=mt[0],kt=mt[1],Ct="open"===k;if(Object(v.useEffect)((function(){S&&y({officeSlug:S})}),[S]),Object(v.useEffect)((function(){!0===pt.push&&vt(Object(i.a)(Object(i.a)({},pt),{},{onlyPreferences:!0})),!0===pt.never_show_popup_notifications&&vt(Object(i.a)(Object(i.a)({},pt),{},{onlyPreferences:!0}))}),[pt]),Object(v.useEffect)((function(){if(!l.a){if(window&&window.Notification&&"default"===window.Notification.permission||!pt.push&&!pt.never_show_popup_notifications||!1===pt.push&&!1===pt.never_show_popup_notifications)return void C("open");if(window&&window.Notification&&"granted"===window.Notification.permission&&!pt.push&&!pt.never_show_popup_notifications)return void C("open");if(window&&window.Notification&&"granted"===window.Notification.permission&&!1===pt.push&&!1===pt.never_show_popup_notifications)return void C("open")}}),[]),Object(v.useEffect)((function(){P(JSON.stringify(N.user_id
1))}),[N]),it.deleted)return Object(x.jsx)(c.a,{to:"/offices/".concat(S,"/lines/").concat(z)});if(!X||!tt||!it)return Object(x.jsx)(s.j,{full:!0});var yt=Object(f.a)(!1,["confirmed"],it);return Object(x.jsxs)(x.Fragment,{children:[n({goToMeet:function goToMeet(t){window.open("https://meet.zeroq.cl/".concat(t))},activeMeetButton:lt,history:r,setOpenCancelModal:J,openCancelModal:G,line:tt,reservation:it,user:N,isLoggedInTemporary:R,userId:V,never_show_popup_notifications:ft,push:st,setPreferences:Ot,isVisibleNotificationModal:Ct,setCloseModal:function setCloseModal(){return C("closed")},setModalState:C,code:it.code,reservationCofirmed:yt,office:X,name:tt.name,wait:tt.wait,waiting:tt.waiting,onClick:function handleConfirmCancel(){J(!1),at?K(!0):wt()},loading:Y||et||I.loading,datetime:Object(d.f)(it.from,X.timezone),cancelLoading:kt,token:rt}),Object(x.jsx)(a.a,{visible:W,onCancel:function onCancel(){return K(!1)},onConfirm:function handleReasonConfirm(t){wt(t)},loading:kt,officeId:X.id})]})}))},1576:function(t,e,n){"use strict";var i=n(1),o=n(0),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},c=n(43),r=function WarningOutlined(t,e){return o.createElement(c.a,Object(i.a)(Object(i.a)({},t),{},{ref:e,icon:a}))};r.displayName="WarningOutlined";e.a=o.forwardRef(r)},1577:function(t,e,n){"use strict";var i=n(1),o=n(0),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43
1c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},c=n(43),r=function ReloadOutlined(t,e){return o.createElement(c.a,Object(i.a)(Object(i.a)({},t),{},{ref:e,icon:a}))};r.displayName="ReloadOutlined";e.a=o.forwardRef(r)},1662:function(t,e,n){"use strict";n.r(e);var i,o,a,c=n(134),r=n(110),s=n(262),d=r.c.div(i||(i=Object(c.a)(["\n\t/* background: linear-gradient(46.7deg, #2d93db 0%, #145ab4 100%); */\n\tbackground: ",";\n\twidth: 100%;\n\tpadding-top: 80px; /* accounts for <Header /> */\n\theight: 100%;\n\toverflow: scroll;\n\t.qr-ticket__refresh-label {\n\t\tcolor: #fff;\n\t\ttext-align: center;\n\t\tmargin-bottom: 12px;\n\t}\n"])),Object(s.c)("reservation_bg")),l=r.c.div(o||(o=Object(c.a)(["\n\tpadding-left: 1rem;\n\tmax-width: 460px;\n\tpadding-right: 1rem;\n\tmargin: 0 auto;\n\tmin-height: 100vh;\n\tpadding-bottom: 70px;\n"]))),f=(r.c.div(a||(a=Object(c.a)(["\n\theight: 10px;\n\twidth: 100%;\n"]))),n(1162)),b=n(1572),u=n(1240),j=n(1130),p=n(1215),O=n(1522),g=(n(26),n(219)),h=n(31);e.default=Object(O.a)((function ReservationScreen(t){var e=t.activeMeetButton,n=t.history,i=t.setOpenCancelModal,o=t.openCancelModal,a=t.user,c=t.isLoggedInTemporary,r=t.userId,s=t.never_show_popup_notifications,O=t.setPreferences,v=t.push,x=t.isVisibleNotificationModal,m=t.setCloseModal,w=t.setModalState,k=t.office,C=t.name,y=t.wait,_=(t.waiting,t.code),M=t.datetime,R=t.onClick,S=(t.loading,t.reservationCofirmed),z=t.reservation,T=t.line,B=t.cancelLoading,N=t.goToMeet;return Object(h.jsxs)(d,{children:[!c&&Object(h.jsx)(h.Fragment,{children:x&&(!s||!1===s)&&(!v||!1===v)&&Object(h.jsx)(p.a,{user:r,onClose:m,setModalState:w,setPreferences:O})}),Object(h.jsx)(j.d,{title:g.a.t("booking:bookingCardTitle"),goBack:n.goBack,fixed:!0}),Object(h.jsxs)(l,{children:[Object(h.jsx)(f.a,{onClick:R,visible:o,type:"reservationCancel",onCancel:function onCancel(){return i(!1)},loading:B}),Object(h.jsx)(b.a,{activeMeetButton:e,name:C,user:a,office:k,wait:y,dowloadTicketAction:u.a,ticket:z,code:_,datetime:M,reservation:z,line:T,onClick:function onClick(){return i(!0)},reservationCofirmed:S,goToMeet:N})]})]})}))}}]);
2//# sourceMappingURL=26.e510323a.chunk.js.map

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.