1(self.webpackChunksite_plush_oxford=self.webpackChunksite_plush_oxford||[]).push([[501],{7757:function(t,e,r){t.exports=r(5666)},177:function(t,e,r){"use strict";function n(t,e,r,n,o,a,i){try{var c=t[a](i),l=c.value}catch(u){return void r(u)}c.done?e(l):Promise.resolve(l).then(n,o)}r.r(e),r.d(e,{default:function(){return p}});var o=r(7757),a=r.n(o),i=r(7294);function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(){var t=(0,i.useState)(""),e=t[0],r=t[1],o=(0,i.useState)({}),l=o[0],u=o[1],s=(0,i.useState)(!1),f=s[0],h=s[1],p=(0,i.useState)(!1),d=p[0],m=p[1],y=function(){var t,e=(t=a().mark((function t(e){var n,o,i,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,h(!0),r(""),t.next=5,fetch("https://europe-west2-production-external.cloudfunctions.net/contact",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json","x-site-id":"site-plush-oxford"},body:JSON.stringify(e)});case 5:return n=t.sent,t.next=8,n.json();case 8:if(o=t.sent,console.log(o,n.status),!(n.status>300)){t.next=12;break}throw new Error(null==o?void 0:o.error);case 12:m(!0),t.next=19;break;case 15:t.prev=15,t.t0=t.catch(0),console.log(t.t0),r(null!==(i=null!==(c=t.t0.message)&&void 0!==c?c:t.t0.error)&&void 0!==i?i:"Could not send message. Please try again later.");case 19:return t.prev=19,h(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[0,15,19,22]])})),function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,l,"next",t)}function l(t){n(i,o,a,c,l,"throw",t)}c(void 0)}))});return function(t){return e.apply(this,arguments)}}();return i.createElement("form",{className:"contact-form",onSubmit:function(t){t.preventDefault();for(var e,n={subject:"Message from plushoxford.com"},o=c(new FormData(t.currentTarget).entries());!(e=o()).done;){var a=e.value,i=a[0],l=a[1];n[i]=l}(function(t){u({});var e={};return Object.keys(t).forEach((function(r){t[r].trim()||(e[r]="Required")})),r("Some fields are required"),u(e),0===Object.keys(e).length})(n)&&y(n)}},i.createElement("div",null,i.createElement("label",{htmlFor:"name"},"NAME"),i.createElement("input",{"data-error":!!l.name,name:"name",placeholder:" ",id:"name"})),i.createElement("div",null,i.createElement("label",{htmlFor:"email"},"EMAIL"),i.createElement("input",{"data-error":!!l.email,name:"email",placeholder:" ",required:!0,id:"email",type:"email"})),i.createElement("div",null,i.createElement("label",{htmlFor:"message"},"MESSAGE"),i.createElement("textarea",{"data-error":!!l.message,name:"message",placeholder:" ",id:"message"})),i.createElement("div",null,i.createElement("button",{style:{opacity:f?"0.5":"1"},type:"submit",disabled:f||d},"SEND MESSAGE")),e&&i.createElement("div",{className:"form-error"},e),d&&i.createElement("div",{className:"form-submitted"},"Thanks, we'll get back asap."))}var s=r(3270),f=r(6125),h=r(5186);function p(t){var e=t.location,n="Contact Us | Plush Oxford",o="We are here to help; that's what we love to do. Message us and we'll get back to you â pronto!";return i.createElement(i.Fragment,null,i.createElement(h.Z,{htmlAttributes:{lang:"en-GB"},title:n,meta:[{name:"description",content:o},{property:"og:url",content:e.href},{property:"og:title",content:n},{property:"og:description",content:o},{property:"og:image",content:""},{name:"facebook-domain-verification",content:""}]}
vendor: 5,731 bytes, line 1
1),i.createElement(s.V,{background:i.createElement(f.S,{src:"../images/heroContact.jpeg",alt:"",__imageData:r(3334)})},i.createElement("h1",null,"Contact Us")),i.createElement("div",{className:"contact__container"},i.createElement("section",{className:"contact__text_block"},i.createElement("h2",null,"LOST PROPERTY ENQUIRIES"),i.createElement("p",null,"For lost property enquiries, WRITE TO us and one of our team members will get back to you in 24-48 hours."),i.createElement("p",null,i.createElement("a",{className:"animated_link",href:"mailto:[email protected]"},"[email protected]"))),i.createElement("section",{className:"contact__text_block"},i.createElement("h2",null,"CONTACT US"),i.createElement("p",null,"(Do Not Use For Lost Property Enquiries)"),i.createElement(u,null)),i.createElement("section",{className:"contact__text_block"},i.createElement("h2",null,"Location"),i.createElement("p",null,i.createElement("small",null,"Address"),i.createElement("strong",null,"Frewin Court, Oxford OX1 3HZ")),i.createElement("p",null,i.createElement("small",null,"Phone"),i.createElement("strong",null,"01865 247966")),i.createElement("p",null,i.createElement("small",null,"Email"),i.createElement("a",{className:"animated_link",href:"mailto:[email protected]"},"[email protected]")))))}},5666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new O(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=s(t,e,r);if("normal"===l.type){if(n=r.done?d:h,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=d,r.method="throw",r.arg=l.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",m={};function y(){}function v(){}function g(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(N([])));E&&E!==r&&n.call(E,a)&&(b=E);var x=g.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var l=s(t[o],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:C}}function C(){return{value:e,done:!0}}return v.prototype=g,l(x,"constructor",g),l(g,"constructor",v),v.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},_(L.prototype),l(L.prototype,i,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new L(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
vendor: 2,988 bytes, lines 1-2
1h(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3334:function(t){"use strict";t.exports=JSON.parse('{"layout":"constrained","backgroundColor":"#080808","images":{"fallback":{"src":"/static/a9a720a876dd4b7b467db9d0e51fafad/784ed/heroContact.jpg","srcSet":"/static/a9a720a876dd4b7b467db9d0e51fafad/d924c/heroContact.jpg 300w,\\n/static/a9a720a876dd4b7b467db9d0e51fafad/be79d/heroContact.jpg 600w,\\n/static/a9a720a876dd4b7b467db9d0e51fafad/784ed/heroContact.jpg 1200w","sizes":"(min-width: 1200px) 1200px, 100vw"},"sources":[{"srcSet":"/static/a9a720a876dd4b7b467db9d0e51fafad/a8059/heroContact.webp 300w,\\n/static/a9a720a876dd4b7b467db9d0e51fafad/9a858/heroContact.webp 600w,\\n/static/a9a720a876dd4b7b467db9d0e51fafad/c3710/heroContact.webp 1200w","type":"image/webp","sizes":"(min-width: 1200px) 1200px, 100vw"}]},"width":1200,"height":900}')}}]); 2//# sourceMappingURL=component---src-pages-contact-js-40db35c5b4c4f790a905.js.map
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.