1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[674],{6738:function(e,t,o){o.d(t,{Z:function(){return m}});var n=o(1309),i=o(5893),s=o(5697),a=o.n(s),l=o(7294),r=o(2332),c={background:"focus:outline-none relative h-20px w-40px rounded-full",circle:"rounded-full h-16px w-16px border border-grayScaleColor-white",title:"font-tertiaryFont text-grayScaleColor-300",option:"font-tertiaryFont font-light text-grayScaleColor-700 text-20px",activeBg:"bg-primaryColor-100",inactiveBg:"bg-grayScaleColor-100",activeCircle:"right-0.5 bg-primaryColor-600",inactiveCircle:"left-0.5 bg-grayScaleColor-500",disabledCircle:"left-0.5 bg-grayScaleColor-white"},d=o(9066),u=o(4037),p=o(1881),x=function(e){var t,o=e.tooltipText,s=e.title,a=e.option1,x=e.option2,m=e.showOptions,f=e.showTitle,y=e.titleClass,b=e.containerClass,v=e.disabled,h=e.section,g=e.name,C=e.selectedOption,w=e.styles,j=e.setGTMevents,S=e.switchClass,N=e.onChange,T=(0,n._)((0,l.useState)(C||x),2),Z=T[0],M=T[1],R=(0,r.I0)(),q=(0,r.v9)(function(e){return e.quotation}),O=(0,r.v9)(function(e){return e.utils}).promocodeData;t=v?c.disabledCircle:Z===a?c.activeCircle:c.inactiveCircle;var k=function(e){var t=e.fiscalRegime,o=t===u.$Z,n=o?null==O?void 0:O.tin:u.v6,i=o?null==O?void 0:O.businessName:u.v6;o&&(R((0,p.xJ)(h,"birthdate",u.v6)),R((0,p.xJ)(h,"firstName",u.v6)),R((0,p.xJ)(h,"paternalSurname",u.v6)),R((0,p.xJ)(h,"maternalSurname",u.v6))),R((0,p.xJ)(h,"fiscalRegime",t)),R((0,p.xJ)(h,"companyName",i)),R((0,p.xJ)(h,"tin",n)),R((0,p.xJ)(h,"hasFinancing","Si"))},E=function(e){if(M(Z===a?x:a),!e){N&&N(Z);return}var t=Z;"gender"===e&&(t="Mujer"===Z?"female":"male",R((0,p.xJ)(h,"prevGender",q.client.gender))),"beneficiary"===h&&"fiscalRegime"===e&&k({fiscalRegime:t="Moral"===Z?"company":"individual"}),"beneficiary"===h&&"hasFinancing"===e?(t="No"===Z?void 0:{fiscalRegime:"company"})?(k({fiscalRegime:t.fiscalRegime}),j(u.QF.SEND_EVENT),q[h]=t,R((0,p.Yd)(q.policy.selectedQuotation.providerCode,q))):(delete q[h],R((0,p.Yd)(q.policy.selectedQuotation.providerCode,q)),R((0,p.z6)(h))):R((0,p.xJ)(h,e,t))};return(0,l.useEffect)(function(){M(C===a?x:a)},[a,x,C]),(0,i.jsxs)("div",{className:"relative h-56px flex justify-between ".concat(b),children:[f&&(0,i.jsxs)("div",{className:"".concat(y," flex items-center"),children:[(0,i.jsx)("div",{className:"mr-3 ".concat(c.title," text-ellipsis overflow-hidden"),children:s}),o.length>0&&(0,i.jsx)(d.Z,{direction:"bottom",text:o,styles:null==w?void 0:w.tooltip})]}),(0,i.jsxs)("div",{className:"w-318px flex items-center ".concat(S),children:[m&&(0,i.jsx)("div",{className:"mr-3 ".concat(c.option),children:a}),(0,i.jsx)("button",{type:"button",onClick:function(){return E(g)},className:"".concat(c.background," ").concat(Z===a?"".concat(c.activeBg):"".concat(c.inactiveBg)),disabled:v,children:(0,i.jsx)("div",{className:"absolute top-0.5 ".concat(t," ").concat(c.circle)})}),m&&(0,i.jsx)("div",{className:"ml-3 ".concat(c.option),children:x})]})]})};x.defaultProps={tooltipText:[],showOptions:!1,showTitle:!1,titleClass:"",containerClass:"",switchClass:"",disabled:!1,section:"",name:"",selectedOption:"",styles:{},setGTMevents:function(){},onChange:function(){}},x.propTypes={tooltipText:a().arrayOf(s.any),title:a().string.isRequired,option1:a().string.isRequired,option2:a().string.isRequired,showOptions:a().bool,showTitle:a().bool,titleClass:a().string,containerClass:a().string,switchClass:a().string,disabled:a().bool,section:a().string,name:a().string,selectedOption:a().string,styles:a().objectOf(s.any),setGTMevents:a().func,onChange:a().func};var m=x},1425:function(e,t,o){o.d(t,{Z:function(){return u}});var n=o(5893),i=o(5697),s=o.n(i),a=o(1309),l=o(7294),r=o(9132),c=function(e){var t=e.countdownStyles,o=e.timeInHrs,i=new Date(new Date().getTime()+36e5*o),s=(0,a._)((0,l.useState)({days:0,hours:0,minutes:0,seconds:0}),2),c=s[0],d=s[1];return(0,l.useEffect)(function(){var e=setInterval(function(){var e=i-new Date().getTime(),t=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),n=Math.floor(e%6e4/1e3);d({hours:t="0".concat(t).slice(-2),minutes:o="0".concat(o).slice(-2),seconds:n="0".concat(n).slice(-2)})},1e3);return function(){clearInterval(e)}},[i]),(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{text:"".concat(c.hours," : ").concat(c.minutes," : ").concat(c.seconds),className:"".concat("text-primaryColor-600"," ").concat(t)})})};c.propTypes={timeInHrs:s().number.isRequired,countdownStyles:s().string},c.defaultProps={countdownStyles:""};var d=function(e){var t=e.countdownText,o=e.displayStyles,i=e.wrapperStyles,s=e.styles;return(0,n.jsx)("div",{className:"".concat(i," hidden"),children:(0,n.jsxs)("div",{className:"".concat(o," flex items-center tablet:max-w-215"),children:[(0,n.jsx)(r.Z,{text:t,className:"".concat(null==s?void 0:s.clockStyles)}),(0,n.jsx)(c,{timeInHrs:5,countdownStyles:"".concat(null==s?void 0:s.textStyles)})]})})};d.propTypes={wrapperStyles:s().string,countdownText:s().string.isRequired,displayStyles:s().string,
1styles:s().objectOf(i.any)},d.defaultProps={wrapperStyles:"",displayStyles:"",styles:{}};var u=d},1461:function(e,t,o){var n=o(1309),i=o(5893),s=o(2175),a=o(5697),l=o.n(a),r=o(7294),c=o(2332),d=o(4790),u=o(5981),p=o(9132),x=o(4151),m=o(8090),f=o(7713),y=o(8614),b=o(8762),v=o(4231),h=function(e){var t=e.isButton,o=e.minimized,a=e.styles,l=e.discountModalTexts,h=e.modal,g=(0,y.Z)(),C=(0,n._)((0,r.useState)(!1),2),w=C[0],j=C[1],S=(0,c.I0)(),N=(0,c.v9)(function(e){return e.quotation.policy.promoCode}),T=function(e){S({type:"UPDATE_QUOTATION_INFO",payload:{section:"policy",field:l.name,value:e}})},Z=(0,b.Z)(),M=function(){var e;return(null==Z?void 0:null===(e=Z.queryParams)||void 0===e?void 0:e.promocode)!==(null==l?void 0:l.promocodeToDisableEdition)},R=function(e){M()&&(j(!0),S({type:"SET_UTIL_VALUE",payload:{component:"summarySidebar",value:e}}))};return(0,i.jsxs)("div",{className:"relative",children:[t&&(0,i.jsx)("div",{className:"h-48px",children:!N&&(0,i.jsx)(d.Z,{title:l.buttonText,active:!0,onClick:function(){return j(!0)},activeClass:x.s.buttonStyles})}),!t&&!N&&M()&&(0,i.jsxs)("div",{className:"".concat(o&&"".concat(x.b.miniContainer," bg-grayScaleColor-20")),children:[(0,i.jsx)("span",{className:"".concat(o?"":"pl-44px pt-16px"," ").concat(x.b.promocode," text-grayScaleColor-500"),children:l.promocode}),(0,i.jsx)("span",{role:"button",tabIndex:0,className:"".concat(o?"":"pl-1 pt-16px"," ").concat(x.b.promoLink," font-secondaryFont text-grayScaleColor-500"),onClick:function(){return R(!1)},onKeyDown:function(){return R(!1)},children:l.promoLink})]}),(0,i.jsx)(f.Z,{onClose:function(){return j(!1)},show:w,modal:h,className:null==a?void 0:a.styledModal,children:(0,i.jsxs)("div",{className:x.b.modal,children:[(0,i.jsx)(u.Z,{path:l.imgPath,name:l.imgName,className:x.b.img}),(0,i.jsx)(p.Z,{text:l.title,className:"".concat(x.b.title," font-tertiaryFont")}),(0,i.jsx)(p.Z,{text:l.text,className:"".concat(x.b.text," text-grayScaleColor-300 font-tertiaryFont")}),(0,i.jsx)(s.J9,{initialValues:{promoCode:""},validationSchema:v.Ry({promoCode:v.Z_().required("El c\xf3digo de descuento es requerido")}),onSubmit:function(e){var t=e.promoCode;""!==t&&(T(t),j(!1))},children:(0,i.jsxs)(s.l0,{children:[(0,i.jsx)(m.Z,{label:l.inputLabel,placeholder:l.inputPlaceholder,inputTextClass:x.s.inputTextClass,name:l.name,inputClass:x.b.inputClass,showLabel:!0,type:"text",pattern:"^[a-zA-Z0-9]*$",id:"promoCode",errorMessageClass:"-mt-10px ml-16px",inputLabelClass:"left-16px",section:"policy",styles:null==a?void 0:a.inputText,formErrorHandler:g}),(0,i.jsx)(d.Z,{title:l.buttonTextModal,active:!0,className:"".concat(x.b.buttonModalStyles," bg-primaryColor-300 text-grayScaleColor-white font-primaryFont"),type:"submit"})]})})]})})]})};h.defaultProps={minimized:!1,styles:{},discountModalTexts:{},modal:{}},h.propTypes={isButton:l().bool.isRequired,minimized:l().bool,styles:l().objectOf(a.any),discountModalTexts:l().objectOf(a.any),modal:l().objectOf(a.any)},t.Z=h},4151:function(e,t,o){o.d(t,{b:function(){return i},s:function(){return n}});var n={buttonStyles:"w-276px tablet:w-216px xl:w-224px h-48px hover:bg-grayScaleColor-white bg-primaryColor-600 border border-primaryColor-600 hover:text-primaryColor-600 text-grayScaleColor-white text-14px shadow-card rounded-button",inputTextClass:""},i={inputClass:"w-307px h-48px mb-20px text-14px pl-16px",img:"mx-auto",buttonModalStyles:"w-307px h-48px text-14px rounded-button mt-14px mb-30px",title:"font-light text-20px leading-titleMobile mt-20px mb-14px text-titleModal",text:"text-14px leading-sectionTitleMobile mb-20px",modal:"mx-auto w-308px",dropdown:"w-307px h-48px",promocode:"text-12px font-bold",promoLink:"text-12px underline cursor-pointer",miniContainer:"absolute flex flex-col items-center justify-center h-44px pt-1 pb-2 w-full"}},1775:function(e,t,o){o.d(t,{Z:function(){return d}});var n=o(5893),i=o(5697),s=o.n(i),a=o(4944),l=o(5981),r=o(6838),c=function(e){var t=e.show,o=e.onClose,i=e.children,s=e.sidebarStylesProp,c=e.sidebarTitle,d=e.sidebarIcon,u=e.sidebarTexts,p=function(e){e.preventDefault(),o()};return(0,n.jsxs)("div",{children:[t&&(0,n.jsx)(r.Z,{bgColor:"bg-overlay"}),(0,n.jsx)("div",{className:"".concat(s," fixed top-0 w-screen tablet:w-392px h-screen fixed z-40 bg-grayScaleColor-white shadow-card overflow-y-auto transform ease-in-out transition-all duration-300 ").concat(t?"translate-x-0":"-translate-x-full"),children:(0,n.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,n.jsxs)("div",{className:"w-full flex justify-between items-center p-37px pb-20px",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(a.Z,{fill:"text-primaryColor-600"}),(0,n.jsx)("div",{className:"font-primaryFont text-grayScaleColor-700 text-20px ml-8",children:c})]}),(0,n.jsx)("button",{type:"button",className:"focus:outline-none",onClick:function(e){return p(e)},children:(0,n.jsx)(l.Z,{path:d,name:u.imgName,width:"16px",height:"16px"})})]}),(0,n.jsx)("div",{children:i})]})})]})};c.defaultProps={sidebarStylesProp:"",sidebarTexts:{}},c.propTypes={sidebarTitle:s().string.isRequired,children:s().node.isRequired,onClose:s().func.isRequired,show:s().bool.isRequired,sidebarStylesProp:s().string,
1sidebarIcon:s().string.isRequired,sidebarTexts:s().objectOf(i.any)};var d=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.