1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3329],{98762:function(t,n,e){"use strict";var r,o=e(75271);function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(null,arguments)}var i=function(t){return o.createElement("svg",u({width:16,height:8,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=o.createElement("path",{d:"m15 1.433-7 6-7-6",stroke:"currentcolor",strokeLinecap:"round",strokeLinejoin:"round"})))};n.Z=i},68550:function(t,n,e){"use strict";var r=e(52676),o=e(46072),u=e(98630),i=e.n(u),s=function(){return(0,r.jsx)(o.gN,{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:i().honeypot})};n.Z=s},2638:function(t,n,e){"use strict";e.d(n,{Y5:function(){return g},eq:function(){return y},jN:function(){return h},tx:function(){return m}});var r=e(57135),o=e(72006),u=e(4405),i=e(15767),s=e(75271),c=e(1965),l=Object.freeze({"email/send":"general_contact","real-estate/contact-email":"real_estate_contact","favourites/send-email":"favourites_email","events/inquiry":"event_inquiry"}),a="https://www.sxmsir.com",f=["sxmsir.com","stmartinsir.com"],v=function(t){try{var n=new URL(t),e=n.hostname.toLowerCase(),r=f.some(function(t){return e===t||e.endsWith(".".concat(t))});if("https:"!==n.protocol||n.username||n.password||n.port||!r)return null;return n.origin}catch(o){return null}},d=function(t,n){return"string"==typeof(null==t?void 0:t.token)&&t.token.length>0&&t.form_key===n},p=function(t,n){var e,r,o=null==t?void 0:null===(e=t.response)||void 0===e?void 0:null===(r=e.data)||void 0===r?void 0:r.replacement_token;return d(o,n)?o.token:null},h=function(t){return l[t]||null},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",n=v(window.location.origin)||v("https://sxmsir.com")||a,e="string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")&&!t.includes("\\")?t:"/";try{var r=new URL(e,"".concat(n,"/"));return r.origin===n?r.toString():"".concat(n,"/")}catch(o){return new URL("/",a).toString()}},y=function(t){var n="string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")&&!t.includes("\\")?t:"/",e=v("https://sxmsir.com")||a;try{var r=new URL(n,"".concat(e,"/"));return r.origin===e?r.toString():"".concat(e,"/")}catch(o){return"".concat(a,"/")}},w=function(t){var n,e,s=t.formKey,l=t.route,a=t.apiClient,f=void 0===a?c.Z:a,v=null,h=null,m=!1,y=!0,w=(n=(0,r.Z)(function(){var t,n,e,r=arguments;return(0,i.__generator)(this,function(t){return(e=void 0!==(n=(r.length>0&&void 0!==r[0]?r[0]:{}).force)&&n,v&&!e)?[2,v]:h&&!e?[2,h]:e||y?(v=null,y=!1,[2,h=f.post("form-protection/token",{form_key:s}).then(function(t){var n=null==t?void 0:t.data;return v=d(n,s)?n.token:null}).catch(function(){return null}).finally(function(){h=null})]):[2,null]})}),function(){return n.apply(this,arguments)}),g=function(t,n){return f.post(l,(0,o.Z)((0,u.Z)((0,o.Z)({},t),{website:t.website||""}),n?{form_token:n}:{}))},_=function(){return w()},b=(e=(0,r.Z)(function(t){var n,e,r,o,u,c,l,a,f,d,h;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if(m)return[2,{submitted:!1,response:null}];m=!0,i.label=1;case 1:return i.trys.push([1,,12,13]),[4,w()];case 2:n=i.sent(),i.label=3;case 3:return i.trys.push([3,5,,11]),[4,g(t,n)];case 4:return e=i.sent(),v=null,y=!0,[2,{submitted:!0,response:e}];case 5:if(y=!(v=p(r=i.sent(),s)||((null==r?void 0:null===(o=r.response)||void 0===o?void 0:o.status)===429?n:null)),(null==r?void 0:null===(u=r.response)||void 0===u?void 0:u.status)!==422||(null==r?void 0:null===(c=r.response)||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:l.code)!=="form_token_invalid")throw r;return[4,w({force:!0})];case 6:if(!(f=i.sent()))throw r;i.label=7;case 7:return i.trys.push([7,9,,10]),[4,g(t,f)];case 8:return d=i.sent(),v=null,y=!0,[2,{submitted:!0,response:d}];case 9:throw y=!(v=p(h=i.sent(),s)),h;case 10:return[3,11];case 11:return[3,13];case 12:return m=!1,[7];case 13:return[2]}})}),function(t){return e.apply(this,arguments)});return{prefetch:_,submit:b}},g=function(t){var n,e=h(t),r=(0,s.useRef)(null);return e&&(null===(n=r.current)||void 0===n?void 0:n.formKey)!==e&&(r.current={formKey:e,client:w({formKey:e,route:t})}),(0,s.useEffect)(function(){var t;(null===(t=r.current)||void 0===t?void 0:t.formKey)===e&&r.current.client.prefetch()},[e]),e?r.current.client:null}},98630:function(t){t.exports={honeypot:"styles_honeypot__AaXUY"}}}]);
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.