1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9915],{5838:e=>{e.exports={main_container:"index_main_container__eW9P_",image_container:"index_image_container__mnW3M",special_form:"index_special_form__PBSBI",special_form_title:"index_special_form_title__2JK3v",special_form_dash:"index_special_form_dash__oBpNU",special_form_group:"index_special_form_group__TnL2D","input-wrapper":"index_input-wrapper___ZFxu","px-3":"index_px-3___U3ny"}},29915:(e,s,o)=>{"use strict";o.r(s),o.d(s,{__N_SSG:()=>E,default:()=>C});var r=o(37876),a=o(89159),n=o(85664),t=o(14232),l=o(89848);o(43434);var i=o(50277),c=o(87961),d=o(21726),p=o(87136);o(96629);var u=o(25992);o(53009);var m=o(56600),_=o(40242),h=o(22929),g=o(34890),x=o.n(g),v=o(40955);let f=e=>{let{placeholder:s,onTextChange:o,onFocus:a,onBlur:i,onSelection:c,value:d}=e,p=(0,n.vc)(_.sl),[u,m]=(0,n.L4)(_.xx),g=(0,n.lZ)(_.Nm),[f,y]=(0,t.useState)(!1),[j,A]=(0,t.useState)(""),{placesService:N,placePredictions:b,getPlacePredictions:E,isPlacePredictionsLoading:C}=(0,v.A)({apiKey:h.A.MAP_API_KEY,options:{componentRestrictions:{country:"cl"},fields:["place_id","geometry","name","formatted_address"]}});(0,t.useEffect)(()=>{(null==b?void 0:b.length)&&(null==N||N.getDetails({placeId:b[0].place_id},e=>w(e))),f||y(!0)},[b]);let w=e=>{};return(0,r.jsxs)("div",{className:x().common_kupos_places_input,children:[(0,r.jsx)("input",{"data-fullstory-unmask":!0,placeholder:s,onChange:e=>(e=>{A(""),E({input:e}),o(e)})(e.target.value),value:j?j.address:d,style:{fontSize:16},onFocus:a||null,onBlur:i?e=>i(e.target.value):null}),f&&(null==b?void 0:b.length)>0&&(0,r.jsx)("div",{className:x().suggestions_container,children:b.map(e=>(e=>(0,r.jsxs)("div",{className:x().single_suggestion,onClick:()=>(e=>{let s=l.A.copyObject(u);null==N||N.getDetails({placeId:e.place_id},e=>{let o={latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng(),address:(e.name?e.name+" - ":"")+l.A.normalizeAddress(e.formatted_address)};c(o),A(o),"origins"===p?s.selectedOrigin=o:s.selectedDestination=o,m({...s}),g(!1)}),y(!1)})(e),children:[(0,r.jsx)("img",{src:"/images/icons/destination-new.svg",width:"20px",style:{marginRight:5}}),(0,r.jsx)("span",{className:x().place_value,children:e.description})]}))(e))})]})};var y=o(93440),j=o(23798),A=o(5838),N=o.n(A),b=o(34846),E=!0;let C=()=>{var e,s,o,_,h,g,x,v,A;let E=(0,n.vc)(y.Ci),[C,w]=(0,n.L4)(a.D1),[k,S]=(0,n.L4)(a.Lc),O=(0,n.lZ)(y.Ks),P=(0,m.cS)(),I={name:"",nameError:"",lastNameError:"",lastName:"",email:"",emailError:"",origin:"",originError:"",destination:"",destinationError:"",date:"",dateError:"",noOfPassengers:"",noOfPassengersError:"",comments:"",commentsError:"",showModal:!1},[M,T]=(0,t.useState)(I),{t:z}=(0,b.Bd)("common"),L=(0,t.useRef)({}),[B,D]=(0,t.useState)({source:"",destination:"",date:""}),R=e=>{D({...B,source:null}),w(e),q(E,C),k&&e.value===k.value&&F(null)},F=e=>{D({...B,destination:null}),S(e)},q=(e,s)=>{if(e&&s)return e.map(function(e){if(e.label!=s.label)return e}).filter(function(e){return void 0!==e})},W=(e,s)=>{T({...M,[s]:e,["".concat(s,"Error")]:""})};return(0,r.jsxs)("div",{className:"content-container font10 special-services",children:[j.A&&"traveltur"===j.A.operator_name?(0,r.jsx)("div",{className:"px-4",children:(0,r.jsxs)("p",{style:{textAlign:"justify",fontSize:"14px"},children:["En ",(0,r.jsx)("b",{children:"Traveltur "})," ponemos a tu disposici\xf3n nuestro servicio de viajes especiales, que te permite acceder a traslados exclusivos para tu empresa, organizaci\xf3n o viaje grupal. Este servicio es ideal para grupos de al menos 7 pasajeros, garantiz\xe1ndoles un servicio excepcional y personalizado, en buses de \xfaltima generaci\xf3n y con los m\xe1s altos est\xe1ndares de seguridad."]})}):j.A&&"fernandez"===j.A.operator_name?(0,r.jsx)("div",{className:"px-4",children:(0,r.jsxs)("p",{className:"text-center",style:{textAlign:"justify",fontSize:"12px"},children:["Buses Fern\xe1ndez te invita a conocer la ",(0,r.jsx)("b",{children:" Patagonia Chilena"})," y para esto contamos con servicios exclusivos y especiales para atender tus necesidades en la"," ",(0,r.jsx)("b",{children:"Regi\xf3n de Magallanes y la Ant\xe1rtica Chilena."}),(0,r.jsx)("br",{}),"Contamos con una"," ",(0,r.jsx)("b",{children:"flota de buses equipado para entregar confort y seguridad "}),"de nuestros pasajeros durante el viaje y que nos permite atender requerimientos de traslado de pasajeros para turismo, con visita a las t\xedpicas alternativas de nuestra regi\xf3n: City tour Punta Arenas o Puerto Natales, Fuerte Bulnes, Conexi\xf3n con expediciones a ping\xfcineras, Parque Nacional Torres del Paine y mucho m\xe1s. Tambi\xe9n trabajamos con"," ",(0,r.jsx)("b",{children:"traslados para empresas y requerimientos de particulares."})]})}):" ",(0,r.jsxs)("div",{className:"".concat(N().special_form," "),children:[(0,r.jsxs)("div",{className:N().special_form_title,style:{backgroundColor:null===j.A||void 0===j.A||null==(e=j.A.color_codes)?void 0:e.primary_color},children:["SERVICIO ESPECIALES",(0,r.jsx)("span",{className:N().special_form_dash})]}),(0,r.jsxs)("div",{className:" mt-30 justify-content-between",children:[(0,r.jsx)("div",{className:N().special_form_group,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"w-100",htmlFor:"",style:{color:null===j.A||void 0===j.A||null==(s=j.A.color_codes)?void 0:s.secondary_color},children:"Nombre Y Apellido"}),(0,r.jsx)(u.A,{type:"text",t:z,value:M.name,onChange:e=>W(e,"name"),placeholder:"Nombre Y Apellido",error:!!M.nameError,errorMessage:M.nameError,className:"kupos-border"})]})}),(0,r.jsx)("div",{className:N().special_form_group,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"w-100",style:{color:null===j.A||void 0===j.A||null==(o=j.A.color_codes)?void 0:o.secondary_color},children:"Correo electr\xf3nico"}),(0,r.jsx)(u.A,{type:"text",t:z,value:M.email,onChange:e=>W(e,"email"),placeholder:"Correo electr\xf3nico",error:M.emailError,errorMessage:M.emailError,className:"kupos-border"})]})})]}),(0,r.jsxs)("div",{className:" justify-content-between",children:[(0,r.jsx)("div",{className:N().special_form_group,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"w-100",htmlFor:"",style:{color:null===j.A||void 0===j.A||null==(_=j.A.color_codes)?void 0:_.secondary_color},children:"Origen"}),(0,r.jsx)(f,{type:"places",t:z,reactSelect:!0,selectType:"origin",placeholder:z("HOME.ORIGIN"),options:E,selectedOption:C,onSelection:R,onTextChange:R,icon:"/images/icons/destination-new.svg",error:!!B.source,errorMessage:z(B.source),className:"w-50 ",height:40,inputWi
1dth:{paddingLeft:"30px"}})]})}),(0,r.jsx)("div",{className:N().special_form_group,style:{color:null===j.A||void 0===j.A||null==(h=j.A.color_codes)?void 0:h.secondary_color},children:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"w-100 ",style:{color:null===j.A||void 0===j.A||null==(g=j.A.color_codes)?void 0:g.secondary_color},children:"Destino"}),(0,r.jsx)(f,{t:z,type:"places",reactSelect:!0,selectType:"destination",selectRef:L,options:C?q(E,C):[],selectedOption:k,onSelection:F,onTextChange:F,className:"w-50 block",hideArrow:!0,placeholder:"Destino",error:!!B.destination,errorMessage:z(B.destination),height:40,inputWidth:{paddingLeft:"30px"}})]})})]}),(0,r.jsxs)("div",{className:"justify-content-between",children:[(0,r.jsxs)("div",{className:N().special_form_group,children:[(0,r.jsx)("div",{children:(0,r.jsx)("label",{className:"w-100",style:{color:null===j.A||void 0===j.A||null==(x=j.A.color_codes)?void 0:x.secondary_color},children:"FECHA de viaje"})}),(0,r.jsx)(d.A,{t:z,minDate:i.A.getTodayString(),img:'<img src="/assets/traveltur/services/datum.svg" />',selectedDate:M.date,onDateChange:e=>W(e,"date"),error:!!M.dateError,errorMessage:M.dateError})]}),(0,r.jsx)("div",{className:N().special_form_group,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"w-100",style:{color:null===j.A||void 0===j.A||null==(v=j.A.color_codes)?void 0:v.secondary_color},children:"N\xb0 de pasajeros"}),(0,r.jsx)(u.A,{type:"text",t:z,value:M.noOfPassengers,onChange:e=>W(e,"noOfPassengers"),placeholder:"N\xb0 de pasajeros",error:!!M.noOfPassengersError,errorMessage:M.noOfPassengersError,className:"kupos-border"})]})})]}),(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:N().special_form_group,children:[(0,r.jsx)("label",{className:"w-100",style:{color:null===j.A||void 0===j.A||null==(A=j.A.color_codes)?void 0:A.secondary_color},children:"Comentarios / Observaciones"}),(0,r.jsx)("textarea",{t:z,type:"text",className:"w-100 px-2 py-3",rows:"5",placeholder:"Comentarios / Observaciones",value:M.comments,onChange:e=>W(e.target.value,"comments")}),M.commentsError&&(0,r.jsx)("span",{className:"error font11",style:{color:"red"},children:M.commentsError})]})}),(0,r.jsx)("div",{className:" text-center",children:(0,r.jsx)(c.A,{t:z,className:"less-bold-text text-center mt-20",style:{background:j.A&&j.A.color_codes&&j.A.color_codes.button_color},onClick:()=>{if(!(()=>{let e=0;return!M.name&&(T(e=>({...e,nameError:"Ingresa tu nombre y apellido"})),e++),!M.lastName&&(T(e=>({...e,lastNameError:"Selecciona tu Tipo de solicitud"})),e++),!M.date&&(T(e=>({...e,dateError:"Ingresa tu apellido"})),e++),M.email?!l.A.isEMailValid(M.email)&&(T(e=>({...e,emailError:"Ingresa tu correo electr\xf3nico"})),e++):(T(e=>({...e,emailError:"Ingresa tu correo electr\xf3nico"})),e++),!M.noOfPassengers&&(T(e=>({...e,noOfPassengersError:"Ingresa el n\xb0 de pasajeros"})),e++),!M.comments&&(T(e=>({...e,commentsError:"Ingresa los detalles de tu solicitud"})),e++),!M.date&&(T(e=>({...e,dateError:"Ingresa tu fecha de viaje"})),e++),e})())return;if(!C||!k)return void D({...B,destination:k?"":"Selecciona tu destino",source:C?"":"Selecciona tu origen"});let e=C&&C.label,s=k&&k.label;P({callback:e=>{if(console.log("RES",e),(null==e?void 0:e.status)===200)O({showModal:!0,success:!0,modalBody:(null==e?void 0:e.message)||"Success"});else{var s;O({showModal:!0,success:!1,modalBody:(null==e||null==(s=e.data)?void 0:s.message)||"Failure"})}T(I)},data:{special_service_request:{first_name:M.name,last_name:M.lastName,rut_number:"",phone_number:"",email:M.email,origin:C.address||e,destination:k.address||s,travel_date:M.date,no_of_passengers:M.noOfPassengers,comments:M.comments,api_operator_id:j.A.operator_id}}})},children:"ENVIAR SOLICITUD"})})]}),(0,r.jsx)(p.A,{success:!0,showModal:M.showModal,onButtonClick:()=>{T({showModal:!1}),window.location.reload()},bodyText:M.responseMessage})]})}},34890:e=>{e.exports={common_kupos_places_input:"kupos-places-input_common_kupos_places_input__U5HId",suggestions_container:"kupos-places-input_suggestions_container__y_RNS",single_suggestion:"kupos-places-input_single_suggestion__fj41q"}},48363:e=>
1{e.exports={common_kupos_input:"kupos-hybrid-input_common_kupos_input__lPA3f",input_outer:"kupos-hybrid-input_input_outer__WE9cO",icon_left:"kupos-hybrid-input_icon_left__3MtLQ",error:"kupos-hybrid-input_error__yDb3f","country-code-container":"kupos-hybrid-input_country-code-container__6zpWR","icon-right":"kupos-hybrid-input_icon-right__J4xeB",cross:"kupos-hybrid-input_cross__mGptV"}},96629:(e,s,o)=>{"use strict";o.d(s,{A:()=>m});var r=o(37876),a=o(14232),n=o(31403),t=o(22929),l=o(89848),i=o(48363),c=o.n(i),d=o(54587),p=o.n(d);class u extends a.PureComponent{componentDidMount(){this.renderAutoComplete()}render(){return(0,r.jsxs)("div",{className:c().common_kupos_input,style:this.props.style,children:[(0,r.jsxs)("div",{className:c().input_outer+" "+this.props.className+" flex-row "+(this.props.error?" error":""),style:this.props.inputOuterStyle,children:[this.props.icon?(0,r.jsx)(p(),{className:c().icon_size+" "+c().icon_left,src:this.props.icon,height:20,width:20,alt:"icon-left"}):null,(0,r.jsx)("input",{ref:e=>this.autocomplete=e,type:"text",className:this.props.fontSize?this.props.fontSize+" common-kupos-pleaces-input":" common-kupos-pleaces-input",placeholder:this.props.placeholder,onFocus:e=>this.props.onFocus(e.target),value:this.state.focused?null:this.props.value,style:this.props.inputWidth,onChange:this.props.onTextChange?e=>this.props.onTextChange(e.target.value):null,onBlur:this.props.onBlur?e=>this.props.onBlur(e.target.value):null,disabled:this.props.disabled,readOnly:this.props.readOnly}),this.props.value&&this.props.erasable?(0,r.jsx)("div",{className:c().cross,onClick:this.props.eraseSelectedInput,children:(0,r.jsx)(p(),{className:"input-cross",src:"/images/icons/home/at-x-mark.png",height:15,width:15,alt:"cross-icon"})}):null]}),this.props.error?(0,r.jsx)("span",{className:"error font8",children:this.props.t(this.props.errorMessage)}):null]})}constructor(e){super(e),this.renderAutoComplete=()=>{let{google:e}=this.props;if(!e)return;let s=new e.maps.places.Autocomplete(this.autocomplete,{componentRestrictions:{country:"cl"}});s.addListener("place_changed",()=>{let e=s.getPlace();console.log("place.geometry.location.lat()",e),e.geometry&&(this.props.onChange({location:{lat:e.geometry.location.lat(),lon:e.geometry.location.lng()},address:(e.name&&0>e.formatted_address.toLowerCase().indexOf(e.name.toLowerCase())?e.name+" - ":"")+l.A.normalizeAddress(e.formatted_address)}),this.props.onTextChange&&this.props.onTextChange((e.name&&0>e.formatted_address.toLowerCase().indexOf(e.name.toLowerCase())?e.name+" - ":"")+l.A.normalizeAddress(e.formatted_address)))})},this.onFocusChange=()=>{},this.state={focused:this.props.focused}}}let m=(0,n.GoogleApiWrapper)({apiKey:t.A.MAP_API_KEY})(u)}}]);
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.