PageSourceSearch

https://www.sunsafaris.com/_nuxt/70ae171.js

js sunsafaris.com collected 2026-09-25 07:21:16 UTC 18,349 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1004:function(t,e,r){"use strict";r(852)},1005:function(t,e,r){var o=r(18)(!1);o.push([t.i,'.radio[data-v-906e8054]{position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.radio input[data-v-906e8054]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.dot[data-v-906e8054]{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--checkbox-background);border-radius:50%}.radio:hover input~.dot[data-v-906e8054]{background-color:var(--checkbox-hover-background)}.radio input:checked~.dot[data-v-906e8054]{background-color:var(--checkbox-active-background)}.dot[data-v-906e8054]:after{content:"";position:absolute;display:none}.radio input:checked~.dot[data-v-906e8054]:after{display:block}.radio .dot[data-v-906e8054]:after{top:9px;left:9px;width:8px;height:8px;border-radius:50%;background:var(--checkbox-checked-colour)}',""]),t.exports=o},1006:function(t,e,r){"use strict";r(853)},1007:function(t,e,r){var o=r(18)(!1);o.push([t.i,".content p[data-v-18243791]{padding-top:.5rem;padding-bottom:.5rem}.content a[data-v-18243791]{--text-opacity:1;color:#00a99d;color:rgba(0,169,157,var(--text-opacity))}",""]),t.exports=o},1042:function(t,e,r){"use strict";r.r(e);r(191);var o=r(688),n=r.n(o),l=r(698),c=r(3),d=(r(41),r(32),r(700),r(689)),f=r(780),m=(r(60),{model:{prop:"checked",event:"change"},props:{title:{type:String,required:!0},label:{type:String,required:!1},checked:{type:Boolean,default:!1},name:{type:String,required:!0}},methods:{slugify:function(t){return t.toLowerCase().replace(/ /g,"-")}}}),v=(r(1004),r(4)),h=Object(v.a)(m,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("label",{staticClass:"flex flex-row items-center relative cursor-pointer items-center w-full",attrs:{for:t.slugify(t.title)}},[r("div",{staticClass:"relative flex flex-row radio pt-6"},[r("input",{staticClass:"mr-2 leading-tight",attrs:{id:t.slugify(t.title),type:"radio",name:t.name},domProps:{checked:t.checked,value:t.title},on:{change:function(e){return t.$emit("change",{checked:e.target.checked,title:e.target.value})}}}),t._v(" "),r("span",{staticClass:"dot"})]),t._v(" "),t.label?r("div",{staticClass:"ml-8 text-xl"},[t._v("\n    "+t._s(t.label)+"\n  ")]):t._e()])}),[],!1,null,"906e8054",null).exports,x={components:{Heading:d.a,InlineCheckbox:f.a,InlineRadio:h},data:function(){return{form:{name:void 0,email:void 0,confirmEmail:void 0,countries:[],comfort:void 0,arrival:void 0,departure:void 0,adults:void 0,children:void 0,comments:void 0,tracking:void 0},countries:["South Africa","Botswana","Namibia","Zimbabwe","Victoria Falls","Zambia","Tanzania","Kenya","Malawi","Mozambique","Mauritius"],comfort:["Comfortable","Luxury","Premier"],error:!1}},mounted:function(){var t=this.$route.query;null==t||"Google Ads"!==t.utm_source&&"Google+Ads"!==t.utm_source||(this.form.tracking=t.utm_source);var e=this.$store.state.enquiry.client;e&&(this.form.name=e.name,this.form.email=e.email,this.form.confirmEmail=e.email)},computed:{client:function(){return this.$store.state.enquiry.client}},methods:{toggleSelectedCountries:function(t){if(!1===t.checked){var e=this.form.countries.indexOf(t.title);e>-1&&this.form.countries.splice(e,1)}else this.form.countries.push(t.title)},setComfort:function(t){this.form.comfort=t.title},atLeastSomethingAdded:function(){return this.form.countries.length>0||void 0!==this.form.comfort||void 0!==this.form.arrival||void 0!==this.form.departure||void 0!==this.form.adults||void 0!==this.form.children||void 0!==this.form.comments},formatDate:function(t){var e=new Date(t),dd=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear();return"".concat(o,"-").concat(r,"-").concat(dd)},submit:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.atLeastSomethingAdded()){e.next=13;break}return void 0===t.client.name&&t.$store.dispatch("enquiry/SET_CLIENT",t.form),t.$store.dispatch("enquiry/SET_MORE_INFO",t.form),t.$toaster.info("Making your enquiry"),r=t.formatDate(t.form.arrival),o=t.formatDate(t.form.depart),t.form.arrival=r,t.form.depart=o,t.form.page=t.$route.path,e.next=11,t.$axios.$post("https://www.sunsafaris.com/api/send-mail",t.form).then(function(){var e=Object(c.a)(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$toaster.success("Thank y
1ou for your Enquiry!  You email has been successfully sent!"),e.next=3,t.$gtm.pushEvent({event:"enquiry",formName:"TellUsMoreEnquiry"});case 3:t.$router.push({name:"thanks-again"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$toaster.error("Sorry, something went wrong, please try again."),t.$toaster.error(e)}));case 11:e.next=14;break;case 13:t.error=!0;case 14:case"end":return e.stop()}}),e)})))()}}},_=Object(v.a)(x,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"flex flex-col max-w-4xl mx-auto text-xl py-10"},[r("div",{staticClass:"text-center uppercase text-2xl glegoo py-4"},[r("Heading",{attrs:{heading:"Tell us more about yourself",stripeColour:"bg-black"}})],1),t._v(" "),r("form",{staticClass:"flex flex-col lg:flex-row flex-wrap",on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[r("div",{staticClass:"w-full md:w-1/2 px-3 mb-6"},[t._m(0),t._v(" "),r("div",{staticClass:"flex flex-row flex-wrap py-4"},t._l(t.countries,(function(e){return r("InlineCheckbox",{key:e,staticClass:"w-1/2",attrs:{title:e,label:e,name:"countries[]"},on:{change:function(e){return t.toggleSelectedCountries(e)}}})})),1),t._v(" "),t._m(1),t._v(" "),r("div",{staticClass:"flex flex-row flex-wrap py-4"},t._l(t.comfort,(function(e){return r("InlineRadio",{key:e,staticClass:"w-full",attrs:{title:e,label:e,name:"comfort"},on:{change:function(e){return t.setComfort(e)}}})})),1)]),t._v(" "),r("div",{staticClass:"w-full md:w-1/2 mb-6"},[r("div",{staticClass:"pt-4"},[r("h3",{staticClass:"text-2xl uppercase font-bold"},[t._v("\n          Length of Stay\n        ")]),t._v(" "),r("div",{staticClass:"flex flex-wrap w-full pt-4 mb-6"},[r("div",{staticClass:"w-1/2 pr-2"},[r("label",{staticClass:"block uppercase tracking-wide text-xs font-bold mb-2",attrs:{for:"arrive"}},[t._v("\n              Arrival Date\n            ")]),t._v(" "),r("client-only",[r("v-date-picker",{attrs:{id:"arrive","min-date":new Date,name:"arrive"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.inputValue,n=e.inputEvents,l=e.placeholder;return[r("input",t._g({staticClass:"appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{placeholder:l},domProps:{value:o}},n))]}}]),model:{value:t.form.arrival,callback:function(e){t.$set(t.form,"arrival","string"==typeof e?e.trim():e)},expression:"form.arrival"}})],1)],1),t._v(" "),r("div",{staticClass:"w-1/2 pl-2"},[r("label",{staticClass:"block uppercase tracking-wide text-xs font-bold mb-2",attrs:{type:"date",for:"depart"}},[t._v("\n              Departure Date\n            ")]),t._v(" "),r("client-only",[r("v-date-picker",{attrs:{id:"depart",name:"depart","min-date":t.form.arrival},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.inputValue,n=e.inputEvents,l=e.placeholder;return[r("input",t._g({staticClass:"appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{placeholder:l},domProps:{value:o}},n))]}}]),model:{value:t.form.depart,callback:function(e){t.$set(t.form,"depart","string"==typeof e?e.trim():e)},expression:"form.depart"}})],1)],1)]),t._v(" "),r("div",{staticClass:"flex flex-wrap w-full mb-6"},[r("div",{staticClass:"w-1/2 pr-2"},[r("label",{staticClass:"block uppercase tracking-wide text-xs font-bold mb-2",attrs:{for:"adults"}},[t._v("\n              Number of Adults\n            ")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.adults,expression:"form.adults",modifiers:{trim:!0}}],staticClass:"appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{id:"adults",type:"sting"},domProps:{value:t.form.adults},on:{input:function(e){e.target.composing||t.$set(t.form,"adults",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),r("div",{staticClass:"w-1/2 pl-2"},[r("label",{staticClass:"block uppercase tracking-wide text-xs font-bold mb-2",attrs:{for:"children"}},[t._v("\n              Number of Children under age 12\n            ")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.children,expression:"form.children",modifiers:{trim:!0}}],staticClass:"appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{id:"children",type:"string"},domProps:{value:t.form.children},on:{input:function(e){e.target.composing||t.$set(t.form,"children",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])])]),t._v(" "),r("div",{staticClass:"pt-4"},[r("h3",{staticClass:"text-2xl uppercase font-bold"},[t._v("\n          Comments and Questions\n        ")]),t._v(" "),r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.comments,expression:"form.comments"}],staticClass:"appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{name:"comments",id:"comments",cols:"30",rows:"8"},domProps:{value:t.form.comments},on:{input:function(e){e.target.composing||t.$set(t.form,"comments",e.target.value)}}})])]),t._v(" "),r("div",{staticClass:"w-full flex justify-center flex-wrap"},[t.error?r("div",{staticClass:"text-coral max-w-2xl py-6"},[t._v("\n        You have not added any additional information. If you would like to\n        provide us with more information, please select the relevant options\n        you would like to share and then submit.\n      ")]):t._e()]),t._v(" "),r("div",{staticClass:"w-full flex justify-center"},[r("button",{staticClass:"bg-gray-900 rounded glegoo uppercase text-white py-4 px-6 w-full",on:{click:function(e){return e.preventDefault(),t.submit(e)}}},[t._v("\n        Submit\n      ")])])])])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pt-4"},[r("h3",{staticClass:"text-2xl uppercase font-bold"},[t._v("\n          Other Countries of Interest\n        ")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pt-4"},[r("h3",{staticClass:"text-2xl uppercase font-bold"},[t._v("\n          Type of Holiday\n        ")])])}],!1,null,"39bc57a7",null).exports,y={components:{Hero:l.a,BlockContent:n.a,TellUsMore:_},head:function(){return{title:this.page.title}},data:function(){return{prevPage:null,form:{countries:[],arrival:void 0,departure:void 0,adults:void 0,children:void 0,comments:void 0},countries:["South Africa","Botswana","Namibia","Zimbabwe","Victoria Falls","Zambia","Tanzania","Kenya","Malawi","Mozambique","Mauritius"]}},validations:{form:{countries:{}}},computed:{prev:function(){return this.prevPage},client:function(){return this.$store.state.enquiry.client},page:function(){return this.$store.getters.GET_CONFIG.pageConfigs.find((function(t){return"Thank You"===t.title}))}},methods:{backOne:function(){this.$router.go(-1)}}},w=(r(1006),Object(v.a)(y,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("section",[r("Hero",{attrs:{image:t.page.image[0],alt:"Sun Safaris - Thank You",heading:"Thank You","heading-colour":"white","sub-heading":"We've received your enquiry"}})],1),t._v(" "),r("section",{staticClass:"max-w-4xl mx-auto text-xl py-10 px-4"},[t._v("\n    Hi "+t._s(t.client&&t.client.name?t.client.name:"")+",\n    "),r("div",{staticClass:"content"},[r("BlockContent",{attrs:{blocks:t.page.body}})],1),t._v(" "),t.client&&void 0!==t.client?r("div",{staticClass:"py-8 flex flex-col"},[r("div",{staticClass:"flex flex-row"},[t._m(0),t._v(" "),r("div",[t._v(t._s(t.client.name))])]),t._v(" "),r("div",{staticClass:"flex flex-row"},[t._m(1),t._v(" "),r("div",[t._v(t._s(t.client.surname))])]),t._v(" "),r("div",{staticClass:"flex flex-row"},[t._m(2),t._v(" "),r("div",[t._v(t._s(t.client.email))])])]):t._e(),t._v(" "),r("p",{staticClass:"pb-4"},[t._v("\n      Kind Regards from the Sun Safaris Team!\n    ")]),t._v(" "),t._m(3)]),t._v(" "),r("section",{staticClass:"flex flex-col max-w-4xl mx-auto text-xl py-10 px-4"}
1,[r("div",{staticClass:"self-center"},[r("button",{staticClass:"text-xl bg-coral text-white  cursor-pointer py-2 px-4 rounded shadow-lg",on:{click:function(e){return e.preventDefault(),t.backOne(e)}}},[t._v("\n        Continue browsing from where you left off...\n      ")])]),t._v(" "),r("p",{staticClass:"self-center mt-4 py-3 text-4xl font-bold uppercase"},[t._v("\n      or\n    ")]),t._v(" "),r("TellUsMore")],1)])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"w-32"},[r("strong",[t._v("Name:")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"w-32"},[r("strong",[t._v("Surname:")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"w-32"},[r("strong",[t._v("Email:")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",[t._v("\n      Tel:\n      "),r("a",{staticClass:"text-teal",attrs:{href:"tel:+27212017151"}},[t._v("+27 21 201 7151")]),t._v(" "),r("br"),t._v("\n      Email:\n      "),r("a",{staticClass:"text-teal",attrs:{href:"mailto:[email protected]"}},[t._v("\n        [email protected]\n      ")])])}],!1,null,"18243791",null));e.default=w.exports},689:function(t,e,r){"use strict";var o={props:{heading:{type:String,required:!0},headingColour:{type:String,default:"text-black"},stripeColour:{type:String,default:"bg-white"},stripeWidth:{type:String,default:"w-1/3"},margin:{type:String},case:{type:String,default:"uppercase"}},computed:{styles:function(){var style="";return style+=this.case,this.headingColour&&(style+=" ".concat(this.headingColour)),style}}},n=(r(694),r(4)),component=Object(n.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"relative"},[r("div",{staticClass:"heading-wrapper glegoo flex justify-center items-center"},[r("div",{staticClass:"heading-stripe",class:[t.stripeColour,t.stripeWidth,t.margin?"ml-"+t.margin:""]}),t._v(" "),r("div",{staticClass:"pt-2 px-4 text-center heading text-2xl lg:text-4xl",class:t.styles},[t._v("\n      "+t._s(t.heading)+"\n    ")]),t._v(" "),r("div",{staticClass:"heading-stripe",class:[t.stripeColour,t.stripeWidth,t.margin?"mr-"+t.margin:""]})])])}),[],!1,null,"3473b195",null);e.a=component.exports},691:function(t,e,r){var content=r(695);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(19).default)("129a4490",content,!0,{sourceMap:!1})},694:function(t,e,r){"use strict";r(691)},695:function(t,e,r){var o=r(18)(!1);o.push([t.i,".heading[data-v-3473b195]{z-index:1}.heading-stripe[data-v-3473b195]{height:1px;padding:1px}",""]),t.exports=o},724:function(t,e,r){var content=r(773);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(19).default)("73adb3d4",content,!0,{sourceMap:!1})},772:function(t,e,r){"use strict";r(724)},773:function(t,e,r){var o=r(18)(!1);o.push([t.i,'.checkbox input[data-v-2252365a]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkbox span[data-v-2252365a]{position:relative;margin:10px 0 0;height:25px;width:25px;border-radius:4px;background-color:var(--checkbox-background)}.checkbox:hover input~span[data-v-2252365a]{background-color:var(--checkbox-hover-background)}.checkbox input:checked~span[data-v-2252365a]{background-color:var(--checkbox-active-background)}.checkbox span[data-v-2252365a]:after{content:"";position:absolute;display:none}.checkbox input:checked~span[data-v-2252365a]:after{display:block}.checkbox span[data-v-2252365a]:after{left:10px;top:7px;width:5px;height:10px;border:solid var(--checkbox-checked-colour);border-width:0 3px 3px 0;transform:rotate(45deg)}',""]),t.exports=o},780:function(t,e,r){"use strict";r(60);var o={model:{prop:"checked",event:"change"},props:{title:{type:String,required:!0},checked:{type:Boolean,default:!1},name:{type:String,required:!0},label:{type:String,required:!1},activeBackground:{type:String,default:"#b5bac0"},width:{type:String,default:"w-full"}},methods:{slugify:function(t){return t.toLowerCase().replace(/ /g,"-")}}},n=(r(772),r(4)),component=Object(n.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("label",{staticClass:"flex flex-row relative cursor-pointer",class:t.width,attrs:{for:t.slugify(t.title)}},[r("div",{staticClass:"relative flex flex-row checkbox"},[r("input",{staticClass:"mr-2 leading-tight",attrs:{id:t.slugify(t.title),type:"checkbox",name:t.name},domProps:{checked:t.checked,value:t.title},on:{change:function(e){return t.$emit("change",{checked:e.target.checked,title:e.target.value})}}}),t._v(" "),r("span"),t._v(" "),t.label?r("div",{staticClass:"p-2 text-xl"},[t._v("\n      "+t._s(t.label)+"\n    ")]):t._e()])])}),[],!1,null,"2252365a",null);e.a=component.exports},852:function(t,e,r){var content=r(1005);
1content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(19).default)("74ce1d7f",content,!0,{sourceMap:!1})},853:function(t,e,r){var content=r(1007);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(19).default)("4761c8d6",content,!0,{sourceMap:!1})}}]);

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.