%PDF- %PDF-
Direktori : /var/www/html/.next/static/chunks/pages/rent/ |
Current File : /var/www/html/.next/static/chunks/pages/rent/[slug]-295f356997898958.js |
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{4723:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rent/[slug]",function(){return n(2391)}])},2391:function(e,i,n){"use strict";n.r(i),n.d(i,{__N_SSP:function(){return N}});var s=n(7568),t=n(92),a=n(5893),l=n(7294),r=n(1163),o=n(5675),c=n.n(o),d=n(5935),u=n(4231),m=n(787),h=n(8777),v=n(4078),x=n(5024),j=n(2175),p=n(990),g=n(6546),f=n.n(g);p.ZP.registerPlugin(f());var N=!0;i.default=function(e){var i,n=e.data,o=e.title,p=e.seo,g=(0,r.useRouter)().query.slug,f=(0,l.useState)(n.prices[0].duration),N=f[0],b=f[1],_=(0,l.useState)(n.prices[0].price),y=_[0],w=_[1],k=(0,l.useState)(!1),P=k[0],D=k[1],E=(0,l.useState)(""),S=E[0],F=E[1];return(0,l.useEffect)((function(){setTimeout((function(){b(n.prices[0].duration),w(n.prices[0].price)}),[])}),[g]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Z,{data:p}),(0,a.jsxs)("div",{className:"mainTourDetails",children:[(0,a.jsx)("div",{className:"animationWrap",children:(0,a.jsxs)("div",{className:"animate",children:[(0,a.jsxs)("div",{className:"items sec",children:[(0,a.jsx)("span",{children:"Rent"}),(0,a.jsx)("span",{children:"Rent"})]}),(0,a.jsxs)("div",{className:"items",children:[(0,a.jsx)("span",{children:"Rent"}),(0,a.jsx)("span",{children:"Rent"})]})]})}),(0,a.jsx)("div",{className:"content",children:(0,a.jsxs)("div",{className:"contentWrapper",children:[(0,a.jsx)("div",{className:"toursBackground",children:(0,a.jsx)(v.nA,{})}),(0,a.jsx)("div",{className:"toursDiv",children:(0,a.jsx)("h4",{children:"Rent"})}),(0,a.jsx)("h1",{children:o}),(0,a.jsxs)("div",{className:"intro",children:[(0,a.jsx)("div",{className:"introSpecs"}),(0,a.jsx)("div",{className:"image",children:(0,a.jsx)(c(),{src:null===n||void 0===n?void 0:n.image_hero,alt:"",layout:"responsive",width:1550,height:819,objectFit:"cover"})}),(0,a.jsxs)("div",{className:"about",children:[(0,a.jsxs)("div",{className:"info",children:[(0,a.jsx)("div",{className:"aboutDiv",children:(0,a.jsx)("h4",{children:null===n||void 0===n?void 0:n.small_title_about})}),(0,d.ZP)(null===n||void 0===n?void 0:n.title_about),(0,a.jsx)("p",{children:(0,d.ZP)(null===n||void 0===n?void 0:n.description_about)})]}),(0,a.jsxs)("div",{className:"imgInfo",children:[(null===n||void 0===n?void 0:n.max_people)&&(0,a.jsxs)("h5",{children:["Max ",null===n||void 0===n?void 0:n.max_people," people per vehicle"]}),(0,a.jsx)("div",{className:"img",children:(0,a.jsx)(c(),{src:null===n||void 0===n?void 0:n.image_about,alt:"",width:586,height:615,objectFit:"contain",quality:100})})]})]})]})]})})]}),(0,a.jsxs)("div",{className:"bookNow",children:[(0,a.jsx)("div",{className:"animationWrap",children:(0,a.jsxs)("div",{className:"animate",children:[(0,a.jsxs)("div",{className:"items sec",children:[(0,a.jsx)("span",{children:"Rent "}),(0,a.jsx)("span",{children:"Rent"})]}),(0,a.jsxs)("div",{className:"items",children:[(0,a.jsx)("span",{children:"Rent"}),(0,a.jsx)("span",{children:"Rent"})]})]})}),(0,a.jsxs)("div",{className:"bookIntro",children:[(0,a.jsx)("div",{className:"bookNowDiv",children:(0,a.jsx)("h4",{children:null===n||void 0===n?void 0:n.small_title_rent})}),(0,a.jsx)("h2",{children:null===n||void 0===n?void 0:n.small_title_rent}),(0,a.jsx)("h1",{children:(0,d.ZP)(null===n||void 0===n?void 0:n.title_rent)})]}),(0,a.jsxs)("div",{className:"bookContent",children:[(0,a.jsxs)("div",{className:"requirements",children:[(0,a.jsxs)("div",{className:"included",children:[(0,a.jsx)("h1",{children:"Included in price"}),(0,a.jsx)("ul",{children:null===n||void 0===n?void 0:n.price_includes.map((function(e,i){return(0,a.jsxs)("li",{children:[(0,a.jsx)(h.vz,{})," ",e.text]},i)}))})]}),(0,a.jsx)(v.oV,{}),(0,a.jsxs)("div",{className:"included",children:[(0,a.jsx)("h1",{children:"What to bring"}),(0,a.jsx)("ul",{children:null===n||void 0===n?void 0:n.what_to_bring.map((function(e,i){return(0,a.jsxs)("li",{children:[(0,a.jsx)(c(),{src:null===e||void 0===e?void 0:e.icon,alt:"",width:24,height:24,objectFit:"contain"})," ",(0,a.jsx)("span",{children:null===e||void 0===e?void 0:e.text})]},i)}))})]}),(0,a.jsxs)("div",{className:"included",children:[(0,a.jsx)(v.oV,{}),(0,a.jsx)("h1",{children:"Requirements"}),(0,a.jsx)("ul",{children:null===n||void 0===n?void 0:n.requirments.map((function(e,i){return(0,a.jsxs)("li",{children:[(0,a.jsx)(h.vz,{})," ",e.text]},i)}))})]})]}),(0,a.jsxs)("div",{className:"calendar",children:[(0,a.jsx)("div",{className:"chooseInputs",children:(0,a.jsxs)("div",{className:"time",children:[(0,a.jsx)("h1",{children:"Choose Duration"}),(0,a.jsx)("div",{className:"select-wrapper",children:(0,a.jsx)("select",{name:"time",id:"time",value:N,onChange:function(e){null===n||void 0===n||n.prices.filter((function(i){i.duration===e.target.value&&(b(i.duration),w(i.price))}))},children:null===n||void 0===n||null===(i=n.prices)||void 0===i?void 0:i.map((function(e,i){return(0,a.jsx)("option",{value:e.duration,children:e.duration},i)}))})})]})}),(0,a.jsxs)("div",{className:"tourInfo",children:[(0,a.jsx)("h1",{children:"Rent Information"}),(0,a.jsxs)("h2",{children:["Renting: ",(0,a.jsx)("span",{children:null===n||void 0===n?void 0:n.title_rent})]}),(0,a.jsxs)("h2",{children:["Duration:",(0,a.jsxs)("span",{children:[" ",N," "]})]}),(0,a.jsx)("div",{className:"calendarBookRent",children:(0,a.jsxs)("button",{className:"book bokunButton",onClick:function(){return D(!0)},children:[(0,a.jsx)("div",{className:"arrows",children:(0,a.jsx)(h.CG,{})}),(0,a.jsx)("span",{children:"ON REQUEST"})]})}),S?(0,a.jsx)("p",{className:"msg",children:S.message}):""]}),(0,a.jsxs)("p",{className:"important-info",children:[(0,a.jsx)("span",{children:"Important information:"})," consuming alcohol and other addictive substances during tour is strictly forbidden. Alcoholic drivers will be excluded without the right of a refund."]})]})]})]}),P&&(0,a.jsx)("div",{className:"modalForm",children:(0,a.jsx)("div",{className:"modalBody",children:(0,a.jsx)(j.J9,{validationSchema:(0,u.Ry)({Email:(0,u.Z_)().email().required("Email is required")}),initialValues:{Subject:n.title_rent,Duration:N,Price:y,First_name:"",Last_name:"",Email:"",Phone:"",Participants:"",Date:""},onSubmit:function(){var e=(0,s.Z)((function(e){var i,n,s,a,l,r,o,c,d,u,m;return(0,t.__generator)(this,(function(t){switch(t.label){case 0:return i=e.Subject,n=e.Duration,s=e.Price,a=e.First_name,l=e.Last_name,r=e.Email,o=e.Phone,c=e.Participants,d=e.Date,u={Subject:i,Duration:n,Price:s,First_name:a,Last_name:l,Email:r,Phone:o,Participants:c,Date:d},D(!1),[4,fetch("https://api.atvbuggy-dubrovnik.com/wp-json/api/v1/sendMail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)})];case 1:return[4,t.sent().json()];case 2:return m=t.sent(),F(m),[2]}}))}));return function(i){return e.apply(this,arguments)}}(),children:function(e){var i=e.isSubmitting,n=e.isValidating;return(0,a.jsxs)(j.l0,{children:[(0,a.jsxs)("div",{className:"form-block",children:[(0,a.jsx)("h3",{children:"On Request"}),(0,a.jsx)("button",{type:"button",className:"closeBtn",onClick:function(){return D(!1)},children:"X"})]}),(0,a.jsxs)("div",{className:"form-block",children:[(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"First_name",children:"Enter your first name"}),(0,a.jsx)(j.gN,{type:"text",name:"First_name"})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"Last_name",children:"Enter your last name"}),(0,a.jsx)(j.gN,{type:"text",name:"Last_name"})]})]}),(0,a.jsxs)("div",{className:"form-block",children:[(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"Email",children:"Enter your email"}),(0,a.jsx)(j.gN,{type:"text",name:"Email"}),(0,a.jsx)(j.Bc,{name:"Email",children:function(e){return(0,a.jsx)("div",{className:"error-msg",children:e})}})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"Phone",children:"Enter your phone number"}),(0,a.jsx)(j.gN,{type:"text",name:"Phone"})]})]}),(0,a.jsxs)("div",{className:"form-block",children:[(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"Participants",children:"Participants"}),(0,a.jsx)(j.gN,{type:"text",name:"Participants"})]}),(0,a.jsxs)("div",{className:"form-control",children:[(0,a.jsx)("label",{htmlFor:"Date",children:"Choose a date"}),(0,a.jsx)(j.gN,{type:"date",name:"Date"})]})]}),(0,a.jsx)("div",{className:"form-control",children:(0,a.jsx)("button",{type:"submit",disabled:!(!i||!n),children:"SEND"})})]})}})})}),(0,a.jsx)(x.Z,{})]})}},5024:function(e,i,n){"use strict";var s=n(5893),t=n(7294),a=n(1664),l=n.n(a),r=n(8777),o=n(5935),c=n(3308);i.Z=function(){var e,i,n,a,d,u,m,h,v=(0,t.useState)(!1),x=v[0],j=v[1],p=(0,c.b)().footer;return(0,s.jsx)("div",{className:"mainContact",children:(0,s.jsxs)("div",{className:"footer",style:{padding:"2rem 16.2rem"},children:[(0,s.jsxs)("a",{href:"https://digitalpresent.io/",target:"_blank",rel:"noopener noreferrer","aria-label":"developed by Digital Present",className:"developed",children:[(0,s.jsx)("p",{className:"developed__p",children:"Developed by"}),(0,s.jsx)(r.V7,{color:"#fff"})]}),(0,s.jsxs)("p",{children:["Copyright ",(new Date).getFullYear()," ATV. All rights reserved."]}),null===p||void 0===p||null===(e=p.footer)||void 0===e?void 0:e.slice(0,1).map((function(e,i){return(0,s.jsxs)("div",{className:"legal",children:[(0,s.jsx)("p",{onClick:function(){j(!0),document.querySelector("html").classList.add("overflowHidden")},children:null===e||void 0===e?void 0:e.title}),(0,s.jsx)("div",{className:"legal-modal",style:{display:x?"flex":"none"},children:(0,s.jsxs)("div",{className:"legal-modal-content",children:[(0,s.jsx)("button",{onClick:function(e){j(!1),document.querySelector("html").classList.remove("overflowHidden")},children:(0,s.jsx)(r.Tw,{})}),(0,s.jsx)("p",{children:(0,o.ZP)(null===p||void 0===p?void 0:p.legal)})]})})]},i)})),null===p||void 0===p||null===(i=p.footer)||void 0===i?void 0:i.slice(1).map((function(e,i){return(0,s.jsx)("div",{className:"terms",children:(0,s.jsx)(l(),{href:"/".concat(e.slug),passHref:!0,children:(0,s.jsx)("p",{children:e.title})})},i)})),(0,s.jsxs)("div",{className:"icons",children:["".concat(null===p||void 0===p||null===(n=p.socials)||void 0===n?void 0:n.tw)?(0,s.jsx)("a",{href:"".concat(null===p||void 0===p||null===(a=p.socials)||void 0===a?void 0:a.tw),children:(0,s.jsx)(r.Zm,{})}):"","".concat(null===p||void 0===p||null===(d=p.socials)||void 0===d?void 0:d.in)?(0,s.jsx)("a",{href:"".concat(null===p||void 0===p||null===(u=p.socials)||void 0===u?void 0:u.in),children:(0,s.jsx)(r.kd,{})}):"","".concat(null===p||void 0===p||null===(m=p.socials)||void 0===m?void 0:m.fb)?(0,s.jsx)("a",{href:"".concat(null===p||void 0===p||null===(h=p.socials)||void 0===h?void 0:h.fb),children:(0,s.jsx)(r.BM,{})}):""]})]})})}},787:function(e,i,n){"use strict";var s=n(5893),t=n(9008),a=n.n(t);i.Z=function(e){var i,n,t;return(0,s.jsxs)(a(),{children:[(0,s.jsx)("link",{rel:"canonical",href:e.data.og_url.replace("api.","")}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, user-scalable=0"}),(0,s.jsx)("title",{children:e.data.title}),(0,s.jsx)("meta",{name:"title",content:e.data.title}),(0,s.jsx)("meta",{name:"description",content:null!==(i=e.data.description)&&void 0!==i?i:"ATV Dubrovnik"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:e.data.og_url.replace("api.","")}),(0,s.jsx)("meta",{property:"og:title",content:e.data.title}),(0,s.jsx)("meta",{property:"og:description",content:null!==(n=e.data.description)&&void 0!==n?n:"ATV Dubrovnik"}),(0,s.jsx)("meta",{property:"og:image",content:e.data.og_image?e.data.og_image.url:"https://api.atvbuggy-dubrovnik.com/wp-content/uploads/2022/08/atv_dubrovnik.png"}),(0,s.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{property:"twitter:url",content:e.data.og_url.replace("api.","")}),(0,s.jsx)("meta",{property:"twitter:title",content:e.data.title}),(0,s.jsx)("meta",{property:"twitter:description",content:null!==(t=e.data.description)&&void 0!==t?t:"ATV Dubrovnik"}),(0,s.jsx)("meta",{property:"twitter:image",content:e.data.og_image?e.data.og_image.url:"https://api.atvbuggy-dubrovnik.com/wp-content/uploads/2022/08/atv_dubrovnik.png"}),(0,s.jsx)("script",{src:"https://www.googletagmanager.com/gtag/js?id=G-YP99VQ2N62"}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-YP99VQ2N62');"}})]})}}},function(e){e.O(0,[494,774,888,179],(function(){return i=4723,e(e.s=i);var i}));var i=e.O();_N_E=i}]);