"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[394],{63355:function(a,b,c){c.d(b,{b:function(){return i}});var d=c(63470),e=c(74751),f=c(97312),g=c(204),h=c(85893);function i(a){return(0,h.jsxs)(g.k,{direction:"column",align:"center",children:[(0,h.jsx)(g.k,{justify:"center",mb:"30px",children:(0,h.jsx)(d.Z,{pillColor:"pink",pillWidth:100,faceStyle:"shock",faceWidth:40,facePosition:"middle"})}),(0,h.jsx)(g.k,{mb:"10px",children:(0,h.jsx)(e.Z,{model:"h2",weight:"bold",children:"Tem certeza que deseja sair da receita?"})}),(0,h.jsx)(e.Z,{model:"body",size:"large",weight:"regular",color:"support.dark",children:"Ao prosseguir, o processo de dispensa\xe7\xe3o ser\xe1 interrompido"}),(0,h.jsxs)(g.k,{mt:"30px",width:"100%",gridGap:"10px",children:[(0,h.jsx)(f.Z,{model:"primary",justifyContent:"center",onClick:a.onCancel,children:"N\xe3o"}),(0,h.jsx)(f.Z,{backgroundColor:"notification.error",textProps:{color:"notification.error"},hoverColor:"secondary.50",outlined:!0,justifyContent:"center",onClick:a.onConfirm,children:"Sim, sair"})]})]})}},68786:function(a,b,c){c.d(b,{H:function(){return m}});var d=c(67294),e=c(37779),f=c(18600),g=c(28916),h=c(63470),i=c(74751),j=c(97312),k=c(204),l=c(85893);function m(a){var b=(0,d.useContext)(e.Ti),c=b.prescription,m=b.setPDFAlreadDownloaded,n=(0,d.useCallback)(function(){c&&((0,g.S)(c.PDFUrl,"Receita M\xe9dica",c.CodigoValidacao),m(!0),f.f.trackEvent({event:"Pop Up PDF Downloaded",parameters:{PrescriptionCode:c.CodigoValidacao,"Prescription Signed":c.PrescricaoAssinada,"Prescription needs Notification":c.NecessitaNotificacaoReceitaPapel,"Special Prescription Required":c.RequerReceituarioEspecial}}))},[c,m]);return(0,l.jsxs)(k.k,{direction:"column",align:"center",children:[(0,l.jsx)(k.k,{justify:"center",mb:"30px",children:(0,l.jsx)(h.Z,{pillColor:"yellow",pillWidth:88,faceStyle:"kiss",faceWidth:45,facePosition:"top",offset:28})}),(0,l.jsx)(k.k,{mb:"10px",children:(0,l.jsx)(i.Z,{model:"h2",weight:"bold",children:"Gostaria de baixar o PDF da receita antes de sair?"})}),(0,l.jsx)(i.Z,{model:"body",size:"large",weight:"regular",color:"support.dark",children:"Ao sair, o PDF da receita ficar\xe1 indispon\xedvel para download"}),(0,l.jsxs)(k.k,{w:"100%",mt:"20px",gridGap:"10px",children:[(0,l.jsx)(j.Z,{outlined:!0,backgroundColor:"notification.error",textProps:{color:"notification.error"},hoverColor:"secondary.50",justifyContent:"center",onClick:a.onGoBack,children:"Sair"}),(0,l.jsx)(j.Z,{model:"primary",justifyContent:"center",onClick:n,children:"Baixar PDF"})]})]})}},27394:function(a,b,c){c.d(b,{Z:function(){return L}});var d,e,f,g,h,i=c(67294),j=c(11163),k=c(37779),l=c(18600),m=c(63355),n=c(68786),o=c(48404),p=c(82604),q=c(59499);function r(){return(r=Object.assign?Object.assign.bind():function(a){for(var b=1;b path:nth-of-type(1){fill:transparent;}& > path:not(:nth-of-type(1)){fill:",";}}&.logo SVG{height:auto;width:","px;& path{fill:"," !important;}}"],function(a){return a.backgorund?(0,q.u)(a.backgorund):"transparent"},function(a){return a.icon?"5px":"0"},function(a){return a.onClick?"pointer":"auto"},function(a){return a.width||30},function(a){return(0,q.u)(a.color||"secondary.400")},function(a){return a.width||82},function(a){return(0,q.u)(a.color)})},28916:function(a,b,c){c.d(b,{S:function(){return e}});var d=c(35069),e=function(a,b,c){(0,d.WJ)("alreadyDownloaded:".concat(c),"true");var e=document.createElement("a");e.setAttribute("download",b),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener; noreferrer"),e.href=a,document.body.appendChild(e),e.click()}}}])