/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{1049:function(t,e,n){"use strict";n(569)},1050:function(t,e,n){var r=n(56)((function(i){return i[1]}));r.push([t.i,".dash-tools-dropdown[data-v-232c0bb7]{position:relative!important}.dash-tools-dropdown ul[data-v-232c0bb7]{background:#ece9e9;font-size:14px!important;font-weight:500!important;list-style:none!important;margin:0!important;padding:5px 0!important}.dash-tools-dropdown li[data-v-232c0bb7]{background:none!important;line-height:18px!important;list-style:none!important;margin:0!important;padding:0!important;text-align:left!important;width:100%}.dash-tools-dropdown a[data-v-232c0bb7],.dash-tools-dropdown li[data-v-232c0bb7]{font-size:inherit!important;font-weight:inherit!important}.dash-tools-dropdown a[data-v-232c0bb7]{display:block!important;line-height:inherit!important;padding:8px 10px!important;-webkit-text-decoration:none!important;text-decoration:none!important}.dash-tools-dropdown a[data-v-232c0bb7]:hover{background:#f9f8f8!important;-webkit-text-decoration:none!important;text-decoration:none!important}.title[data-v-232c0bb7]{font-size:13px!important;font-weight:700!important;margin-left:5px;margin-right:15px!important}img.tools-logo[data-v-232c0bb7]{height:auto;margin-left:5px;margin-right:5px;margin-top:7px;max-width:30px}.dash-tools-menu[data-v-232c0bb7],.title-wrap[data-v-232c0bb7]{min-height:40px!important}.dash-tools-menu[data-v-232c0bb7]{background:#d0b6e2!important;background:hsla(0,8%,97%,.95)!important;border:1px solid #c6a7dc!important;border-radius:3px!important;bottom:20px!important;-webkit-box-shadow:0 4px 6px 0 rgba(50,50,93,.11),0 1px 3px 0 rgba(0,0,0,.08)!important;box-shadow:0 4px 6px 0 rgba(50,50,93,.11),0 1px 3px 0 rgba(0,0,0,.08)!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer!important;left:20px!important;line-height:18px!important;margin:0!important;min-width:170px!important;padding:0!important;position:fixed!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;z-index:9998!important}a[data-v-232c0bb7]{color:#8647b3}a[data-v-232c0bb7]:hover{color:#8647b3}.dash-tools-menu.collapsed[data-v-232c0bb7]{border:1px solid #c6a7dc!important;-webkit-box-shadow:0 4px 6px 0 rgba(50,50,93,.11),0 1px 3px 0 rgba(0,0,0,.08)!important;box-shadow:0 4px 6px 0 rgba(50,50,93,.11),0 1px 3px 0 rgba(0,0,0,.08)!important;min-width:40px!important}",""]),r.locals={},t.exports=r},1101:function(t,e,n){"use strict";n(589)},1102:function(t,e,n){var r=n(56)((function(i){return i[1]}));r.push([t.i,"#UnitContactModal .modal-contact-header .contact-title{font-size:32px;font-weight:600;line-height:44px}#UnitContactModal .modal-contact-header .contact-description{font-size:18px;font-weight:400;line-height:25px}#UnitContactModal .btn{font-weight:600}",""]),r.locals={},t.exports=r},1103:function(t,e,n){"use strict";n(590)},1104:function(t,e,n){var r=n(56)((function(i){return i[1]}));r.push([t.i,".payment-card-reciept .pug-hr{border:0 solid rgba(0,0,0,0);border-top:1px solid rgba(0,0,0,.1);margin:0 -20px}.payment-card-reciept .discount-wrapper{border:2px solid #d3dce4;border-radius:8px;cursor:pointer;padding:10px 12px}.payment-card-reciept .discount-wrapper.selected{border:2px solid var(--default);border-radius:8px}.payment-card-reciept .discount-wrapper.selected .discount-text{color:var(--default)}.payment-card-reciept .discount-text{color:#3b3939;font-size:12px}.payment-card-reciept .payment-card-reciept{z-index:1}.payment-card-reciept .flex-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.payment-card-reciept .green{color:#008749!important}.payment-card-reciept .price-strike-through{color:#7e7f80;opacity:.7;-webkit-text-decoration:line-through;text-decoration:line-through}.payment-card-reciept .total{font-size:1.35rem}.payment-card-reciept .list-group.is-rental .list-group-item{background-color:transparent}.payment-card-reciept .receipt-card-shadow{-webkit-box-shadow:0 5px 8px rgba(0,0,0,.1);box-shadow:0 5px 8px rgba(0,0,0,.1)}.payment-card-reciept .unit-alarm-blurb-wrapper{line-height:20px}.payment-card-reciept .unit-alarm-blurb-wrapper p{margin-bottom:0!important}",""]),r.locals={},t.exports=r},1107:function(t,e,n){"use strict";n(592)},1108:function(t,e,n){var r=n(56)((function(i){return i[1]}));r.push([t.i,".mobile-footer-wrap--hide[data-v-20a290a1]{opacity:0;-webkit-transition:visibility 0s linear .5s,opacity .5s;transition:visibility 0s linear .5s,opacity .5s;visibility:hidden}.mobile-footer-wrap--show[data-v-20a290a1]{opacity:1;-webkit-transition:visibility 0s linear 0s,opacity .5s;transition:visibility 0s linear 0s,opacity .5s;visibility:visible}.mobile-footer-wrap[data-v-20a290a1]{background-color:#fff;bottom:0;-webkit-box-shadow:0 2px 32px 0 rgba(0,0,0,.17);box-shadow:0 2px 32px 0 rgba(0,0,0,.17);height:70px;left:0;position:fixed!important;width:100%;z-index:9997}@media screen and (max-width:375px){.mobile-footer-wrap .btn[data-v-20a290a1]{font-size:14px;padding:.75rem 1.15rem!important}}",""]),r.locals={},t.exports=r},1140:function(t,e,n){"use strict";n(604)},1141:function(t,e,n){var r=n(56)((function(i){return i[1]}));r.push([t.i,"#notification__list{left:50%;margin-left:-200px;position:fixed;top:15px;z-index:2147483647}.pug-alert{border:1px solid transparent;border-radius:6px;-webkit-box-shadow:0 4px 14px 0 rgba(0,0,0,.2);box-shadow:0 4px 14px 0 rgba(0,0,0,.2);margin:0 auto 15px;max-width:400px;min-width:350px;padding:10px 26px 10px 15px;position:relative;width:100%;z-index:9999999}.pug-alert-success{background-color:#4fd69c;border-color:#4fd69c;color:#fff}.pug-alert-primary{background-color:#8647b3;border-color:#8647b3;color:#fff}.pug-alert-danger{background-color:#f75676;border-color:#f75676;color:#fff}.pug-alert-info{background-color:#37d5f2;border-color:#37d5f2;color:#fff}",""]),r.locals={},t.exports=r},209:function(t,e,n){"use strict";n(35),n(87),n(106),n(41);var r=n(18),o=n(32),c={name:"DashtoolsButton",props:["accountId","user","pageId"],data:function(){return{isCollapsed:!0,showTitle:!1,dashUrl:"https://app.storagepug.com",showDropdown:!1,ul:null,links:[]}},computed:Object.assign({},Object(r.c)({})),watch:{pageId:function(){this.showDropdown=!1,this.showTitle=!1,this.isCollapsed=!0,this.createLinks()}},mounted:function(){!this.user||!0!==this.user.is_super_admin&&!0!==this.user.is_website_builder||("production"===o.a.stage||"production_dev"===o.a.stage?this.dashUrl="https://app.storagepug.com":"staging"===o.a.stage?this.dashUrl="https://dashboard.storpug.com":"dev"!==o.a.stage&&"development"!==o.a.stage||(this.dashUrl="http://localhost:4001"),this.createLinks())},methods:{createLinks:function(){this.links=[],this.createLink("Edit this page",this.dashUrl+"/website-manager/"+this.accountId+"/editor/"+this.pageId),this.createLink("Edit page SEO",this.dashUrl+"/website-manager/"+this.accountId+"/seo?page="+this.pageId),this.createLink("Website settings",this.dashUrl+"/storage-manager/"+this.accountId+"/global-settings"),this.createLink("View stats",this.dashUrl+"/dashboard/"+this.accountId+"/view-dashboard")},createLink:function(title,t){this.links.push({href:t,title:title})},onClick:function(){!0===this.isCollapsed?(this.showDropdown=!0,this.showTitle=!0,this.isCollapsed=!1):(this.showDropdown=!1,this.showTitle=!1,this.isCollapsed=!0)},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");if(2===e.length)return e.pop().split(";").shift()},setCookie:function(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=t+"="+e+";"+o+";path=/"}}},l=(n(1049),n(22)),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dash-tools-menu",class:{collapsed:t.isCollapsed},attrs:{id:"dash-tools-menu"},on:{click:t.onClick}},[t.showDropdown?e("div",{staticClass:"dash-tools-dropdown",attrs:{id:"dropdown"}},[e("ul",{attrs:{id:"linklist"}},t._l(t.links,(function(link,n){return e("li",{key:n},[e("a",{attrs:{href:link.href,target:"_blank"},on:{click:t.onClick}},[t._v(t._s(link.title))])])})),0)]):t._e(),e("div",{staticClass:"d-flex align-items-center title-wrap"},[e("b-img",{staticClass:"tools-logo mb-auto",class:{"ml-auto":t.isCollapsed},attrs:{alt:"StoragePug Tools",src:"https://cdn.storagepug.com/hubfs/logo/StoragePug%20Logo%20100px.png"}}),t.showTitle?e("div",{staticClass:"title",attrs:{id:"title"}},[t._v("StoragePug Tools")]):t._e()],1)])}),[],!1,null,"232c0bb7",null);e.a=component.exports},210:function(t,e,n){"use strict";n(61);var r={name:"FeatherIcon",props:{icon:{type:String,default:"mouse-pointer"},width:{type:[String,Number],default:50},height:{type:[String,Number],default:50},classCustom:{type:String,default:""}}},o=n(22),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"FeatherIcon d-flex align-items-start",class:t.classCustom},[t.icon?e("svg",{class:t.classCustom,attrs:{width:t.width,height:t.height,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[e("use",{class:t.classCustom,attrs:{"xlink:href":"/feather-sprite.svg#"+t.icon}})]):t._e()])}),[],!1,null,null,null);e.a=component.exports},262:function(t,e,n){"use strict";n(61);var r=n(326),o=n.n(r),c=n(788),l=n(210),d={name:"base-alert",components:{FadeTransition:c.a,FeatherIcon:l.a},props:{type:{type:String,default:"default",description:"Alert type"},dismissible:{type:Boolean,default:!0,description:"Whether alert is dismissible (closeable)"},autoHideDelay:{type:Number},icon:{type:String,default:"check-circle",description:"Alert icon to display"},title:{type:String},text:{type:String}},data:function(){return{visible:!0}},mounted:function(){var t=this;this.autoHideDelay&&o()((function(){t.dismissAlert()}),this.autoHideDelay)},methods:{dismissAlert:function(){this.visible=!1}}},h=(n(1140),n(22)),component=Object(h.a)(d,(function(){var t=this,e=t._self._c;return e("fade-transition",[t.visible?e("div",{staticClass:"d-flex align-items-center pug-alert",class:["pug-alert-"+t.type,{"alert-dismissible":t.dismissible}],attrs:{role:"alert"}},[t.icon||t.$slots.icon?[t._t("icon",(function(){return[e("FeatherIcon",{attrs:{icon:t.icon,width:"15",height:"15"}})]}))]:t._e(),t._v(" "),e("span",{staticClass:"alert-text ml-2"},[t.title?e("span",{staticClass:"font-weight-bold mr-1"},[t._v(t._s(t.title))]):t._e(),t._v("\n      "+t._s(t.text)+"\n    ")]),t._v(" "),t._t("dismiss-icon",(function(){return[e("button",{staticClass:"close p-2 ml-auto mr-1",attrs:{type:"button ","data-dismiss":"alert","aria-label":"Close"},on:{click:t.dismissAlert}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]}))],2):t._e()])}),[],!1,null,null,null);e.a=component.exports},32:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return c}));var r,o=!0;(r={api_url:"https://api.storagepug.com",api_version:"v1"}).ssrBuild="no",r.websiteUrl="https://www.deltastorage.com",r.websiteBase="deltastorage.com",r.accountID="c1ca4640-59be-11ec-94da-d9cf33fe267c",r.websiteID="789c8eda-ace3-40f3-91d1-efe5b6779a34",r.isPreview=!1,r.aws_websocket_url="",r.aws_cognito_identity_pool_id="",r.filestack_key="AooohiVDTrSShaoRg5Pvvz",r.firebase={apiKey:"AIzaSyATIRMRRVFqfdtNZVZV4G25EwWuy_Wb5AQ",authDomain:"pug-insights.firebaseapp.com",databaseURL:"https://pug-insights.firebaseio.com",projectId:"pug-insights",storageBucket:"pug-insights.appspot.com",messagingSenderId:"1025455337696",appId:"1:1025455337696:web:c3b12f01b79105935a2085"},r.stage="production",r.buildDirectory="/base-nuxt-app-ssr",r.ipapi_access_key="cc4420a7a20e35fc8813157fc1cb8c1c";var c=r},495:function(t,e,n){"use strict";n(14),n(16),n(9);var r=n(10),o=(n(24),n(19),n(25),n(171),n(128),n(53),n(33),n(15),n(26),n(27),n(61),n(28),n(29),n(11),n(35),n(64),n(583),n(34),n(12),n(1076),n(1078),n(1079),n(1080),n(1081),n(1082),n(1083),n(1084),n(1085),n(1086),n(1087),n(1088),n(1089),n(1090),n(1091),n(1092),n(21),n(13),n(62),n(48),n(96),n(42),n(106),n(108),n(41),n(51),n(50),n(43),n(87),n(46),n(8)),c=n.n(o),l=n(145),d=n.n(l),h=n(40),f=n.n(h),m=n(65),v=n.n(m),_=n(131),y=n.n(_),x=n(18),w=n(86),k=n(269),C=n(322),S=n(272),L=n(76),O=n(1452),U=n(428),D=n(1453),I=n(31),E=n(156),R=n.n(E),j=n(275),P=n(270);function T(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return F(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?F(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}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 F(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e<a;e++)n[e]=t[e];return n}function A(){A=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,a=Object.create(i.prototype),o=new R(r||[]);return c(a,"_invoke",{value:U(t,n,o)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var m="suspendedStart",v="suspendedYield",_="executing",s="completed",y={};function x(){}function w(){}function k(){}var p={};d(p,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(j([])));S&&S!==n&&o.call(S,a)&&(p=S);var g=k.prototype=x.prototype=Object.create(p);function L(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(c,l,i,a){var d=f(t[c],t,l);if("throw"!==d.type){var u=d.arg,h=u.value;return h&&"object"==Object(r.a)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(d.arg)}var l;c(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return l=l?l.then(o,o):o()}})}function U(e,n,r){var o=m;return function(i,a){if(o===_)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=D(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=_;var p=f(e,n,r);if("normal"===p.type){if(o=r.done?s:v,p.arg===y)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function D(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function I(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function n(){for(;++c<e.length;)if(o.call(e,c))return n.value=e[c],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Object(r.a)(e)+" is not iterable")}return w.prototype=k,c(g,"constructor",{value:k,configurable:!0}),c(k,"constructor",{value:w,configurable:!0}),w.displayName=d(k,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,d(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},L(O.prototype),d(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(h(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(g),d(g,u,"Generator"),d(g,a,(function(){return this})),d(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}var M,N,$,B,V={name:"ViewUnitReceiptCard",components:{UnitContactModal:n(811).default,BasePriceText:P.a,ButtonTileTilapia:j.a,DatePickerParrot:S.a,Multiselect:R.a,ValidationProvider:L.b,ValidationObserver:L.a,BFormGroup:O.a,BTooltip:U.a},mixins:[k.a,C.a],directives:{"b-tooltip":D.a},data:function(){return{hideDiscounts:!1,selectedInsurance:null,selectedDiscountObject:{text:"No Discount",value:"-999",variant:"default"},selectedDiscount:"-999",insuranceOptions:[],discountOptions:null,selectedUnitDiscountOption:null,selectedDiscountTimeout:null,modalUnit:null,hasContactModalBeenOpened:!1,unitAlarmCheckboxValue:!0}},computed:Object.assign({},Object(x.c)({loadStatus:"clientWebsite/loadStatus",isRentalActive:"rentalFlow/getIsRentalActive",rentalStep:"rentalFlow/getRentalStep",isSignupComplete:"rentalFlow/getIsSignupComplete",isReservationActive:"rentalFlow/getIsReservationActive",isVerifyingUnit:"clientWebsite/getIsVerifyingUnit",openContactModal:"clientWebsite/getOpenContactModal",invalidDiscountIds:"clientWebsite/getInvalidDiscountIds"}),{isDoneLoading:function(){return!!this.loadStatus&&(!0===this.loadStatus.unit_verified&&!0===this.loadStatus.discounts)},isDoneLoadingPrice:function(){return!!this.loadStatus&&!0===this.loadStatus.unit_price},isRental:function(){return this.isRentalActive||this.isReservationActive||!1},rate:function(){return this.selectedUnit.rate},availableDiscounts:function(){return this.selectedUnit&&this.selectedUnit.type&&this.selectedUnit.type.discounts&&this.selectedUnit.type.discounts.length>=1?this.selectedUnit.type.discounts:[]},computedTax:function(){try{return this.charges&&this.charges.posCharges?Number(this.charges.tax)+Number(this.charges.posCharges.tax):Number(this.charges.tax)}catch(t){return Number(this.charges.tax)}},computedTotal:function(){try{return this.charges&&this.charges.posCharges?Number(this.charges.total)+Number(this.charges.posCharges.total):Number(this.charges.total)}catch(t){return Number(this.charges.total)}}}),watch:{selectedDiscountObject:{handler:function(){var t=this;this.selectedDiscount=this.selectedDiscountObject.value,I.a.$emit("update_price","selectedDiscount"),"-999"!==this.selectedDiscountObject.value&&(clearTimeout(this.selectedDiscountTimeout),this.selectedDiscountTimeout=setTimeout((function(){var e={category:"Rent a Unit",action:"Discount Selected",label:t.selectedDiscountObject.text,value:t.selectedDiscountObject.value};t.addNewEvent(e,!0,!1,!0,!1,null)}),400))},deep:!0},selectedInsurance:{handler:function(){this.isSoldOut||(this.updateUnitInsurance(this.selectedInsurance),I.a.$emit("update_price","selectedInsurance"),this.$emit("priceUpdated"))},deep:!0},selectedDiscount:{handler:function(t){this.selectedUnit&&!this.isSoldOut&&(this.updateUnitDiscount(v()(this.selectedUnit.type.discounts,(function(e){return e.sitelink_id===t}))),I.a.$emit("update_price","selectedDiscount")),this.$emit("priceUpdated")}},invalidDiscountIds:{deep:!0,handler:(B=c()(A().mark((function t(e){var n;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.selectedUnit||this.isSoldOut){t.next=4;break}return e.includes(this.selectedDiscount)&&(n="The discount you selected has expired. We apologize for any inconvenience.",this.availableDiscounts&&this.availableDiscounts.length>2&&(n="The discount you selected has expired. Please select another discount."),this.$bvModal.msgBoxOk(n,{centered:!0,lazy:!0,hideHeader:!0,footerClass:"pt-0 border-0"}).catch()),t.next=4,this.setDiscounts();case 4:this.$emit("priceUpdated");case 5:case"end":return t.stop()}}),t,this)}))),function(t){return B.apply(this,arguments)})},openContactModal:function(t){!this.hasContactModalBeenOpened&&t&&(this.hasContactModalBeenOpened=t,this.onCallForAvailability())},unitAlarmCheckboxValue:function(t){this.setIsUnitAlarmChecked(t),this.$vlf.setItem("rentalFlow/getIsUnitAlarmChecked",t).catch((function(t){return console.log("🚀 ~ file: ViewUnitReceiptCard.vue:724 ~ unitAlarmCheckboxValue ~ e",t)}))}},beforeDestroy:function(){I.a.$off("selected_unit"),I.a.$off("unit_verified"),I.a.$off("discounts"),I.a.$off("unit_price"),I.a.$off("reset_loading"),I.a.$off("update_price"),I.a.$off("load_discounts")},created:function(){var t=this;this.trackUnitPageview=d()((function(){try{var e={category:"View Unit",action:"Page View",label:t.selectedUnit.unit_type_name+" - "+t.selectedUnit.width+" x "+t.selectedUnit.length,value:t.selectedUnit.rate};t.addNewEvent(e,!0,!1,!1,!1,null)}catch(e){t.$rollbar.error("ViewUnitReceiptCard: Error sending Snowplow event ",e)}}),3e3,{leading:!0,trailing:!1})},mounted:function(){var t=this;this.$nextTick(c()(A().mark((function e(){var n,r,o,c;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I.a.$on("selected_unit",(function(e){t.isSoldOut||(t.sortInsurance(),t.setDiscounts(),t.setDefaultInsurance(),t.isRental||t.debouncedUpdatePrice()),t.trackUnitPageview(),t.$emit("priceUpdated")})),I.a.$on("unit_verified",(function(e){var n=f()(t.loadStatus);n.unit_verified=e,t.$store.commit("clientWebsite/SET_LOAD_STATUS",n)})),I.a.$on("discounts",(function(e){var n=f()(t.loadStatus);n.discounts=e,t.$store.commit("clientWebsite/SET_LOAD_STATUS",n)})),I.a.$on("unit_price",(function(e){var n=f()(t.loadStatus);n.unit_price=e,t.$store.commit("clientWebsite/SET_LOAD_STATUS",n)})),I.a.$on("reset_loading",(function(e){t.$store.commit("clientWebsite/SET_LOAD_STATUS",{unit_verified:!1,discounts:!1,unit_price:!1})})),I.a.$on("load_discounts",(function(e){t.sortInsurance(),t.setDiscounts()})),I.a.$on("update_price",(function(e){!0===t.loadStatus.unit_price&&t.debouncedUpdatePrice()})),t.isRental&&t.setAllFeaturesForUnit(t.selectedUnit),t.isRental||t.isSoldOut?(t.$store.commit("clientWebsite/SET_LOAD_STATUS",{unit_verified:!0,discounts:!0,unit_price:!0}),t.setDiscounts(),t.sortInsurance()):t.locationFromRoute&&(t.setDiscounts(),t.sortInsurance()),t.setDefaultInsurance(),e.prev=10,e.next=13,t.$vlf.getItem("rentalFlow/selectedMoveInDate");case 13:n=e.sent,e.next=18;break;case 16:e.prev=16,e.t0=e.catch(10);case 18:try{n&&t.isRentalActive?t.selectedUnitMoveInDate=n:(r=t.getDefaultDateInput(),o=Object(w.a)(r,"MM/dd/yyyy"),t.selectedUnitMoveInDate=o)}catch(t){console.error("Error setting cached date: ",t)}if(!t.isRentalActive||!t.getSetting("has_unit_alarm_checkbox")){e.next=34;break}if(!t.$route.query||!t.$route.query.signed){e.next=24;break}t.unitAlarmCheckboxValue=1==t.$route.query.cb,e.next=34;break;case 24:return e.prev=24,e.next=27,t.$vlf.getItem("rentalFlow/getIsUnitAlarmChecked");case 27:null!=(c=e.sent)&&(t.unitAlarmCheckboxValue=c),e.next=34;break;case 31:e.prev=31,e.t1=e.catch(24),console.log("🚀 ~ file: ViewUnitReceiptCard.vue:869 ~ this.$nextTick ~ e",e.t1);case 34:case"end":return e.stop()}}),e,null,[[10,16],[24,31]])}))))},methods:{checkDoneLoading:function(){},sortInsurance:($=c()(A().mark((function t(){var e,n,r;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,this.locationFromRoute&&this.locationFromRoute.insurance?this.insuranceOptions=y()(this.locationFromRoute.insurance,[function(t){return t.coverage}]):this.location&&this.location.insurance&&(this.insuranceOptions=y()(this.location.insurance,[function(t){return t.coverage}])),!this.insuranceOptions||!this.insuranceOptions.length){t.next=9;break}return t.next=5,this.$vlf.getItem("rentalFlow/selectedInsurance");case 5:(e=t.sent)&&(n=e,(r=this.insuranceOptions.findIndex((function(t){return t.id===n.id})))>-1&&(this.selectedInsurance=this.insuranceOptions[r])),t.next=10;break;case 9:this.selectedInsurance=null;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),console.error("Error sorting insurance: ",t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(){return $.apply(this,arguments)}),setDefaultInsurance:function(){if(this.getSetting("rental_show_insurance")&&this.location&&this.location.insurance&&this.selectedUnit&&this.selectedUnit.type&&this.selectedUnit.type.recommended_insurance_id){var t=this.selectedUnit.type.recommended_insurance_id,e=this.location.insurance.find((function(ins){return ins.sitelink_id===t}));e&&(this.selectedInsurance=e)}},setDiscounts:(N=c()(A().mark((function t(){var e,n,r,o,c,l,d,h,m,v,_,y,x,w,k,C,S=this;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,I.a.$emit("discounts",!1),this.selectedDiscount="-999",this.discountOptions=null,e=[{text:"No Discount",value:"-999",variant:"default"}],this.availableDiscounts&&this.availableDiscounts.length>0)for(n=new Set,r=T(this.availableDiscounts);!(o=r()).done;)(c=o.value)&&c.name&&(l=!0,c.maximum_occupancy_percentage>0&&c.maximum_occupancy_percentage<this.selectedUnit.occupancy_percentage&&(l=!1),l&&c.exclude_if_unit_total_less_than>0&&0==c.occupancy_pct_unit_count_method&&c.exclude_if_unit_total_less_than>=this.selectedUnit.unit_count&&(l=!1),l&&c.exclude_if_unit_total_less_than>0&&1==c.occupancy_pct_unit_count_method&&c.exclude_if_unit_total_less_than>=this.selectedUnit.vacant_count&&(l=!1),l&&c.plan_start&&(void 0!==c.plan_start._seconds&&void 0!==c.plan_start._nanoseconds?(d=new Date(1e3*c.plan_start._seconds+c.plan_start._nanoseconds/1e6))&&(new Date).getTime()<d.getTime()&&(l=!1):(new Date).getTime()<new Date(c.plan_start).getTime()&&(l=!1)),l&&c.plan_end&&(void 0!==c.plan_end._seconds&&void 0!==c.plan_end._nanoseconds?(h=new Date(1e3*c.plan_end._seconds+c.plan_end._nanoseconds/1e6),(new Date).getTime()>h.getTime()&&(l=!1)):(new Date).getTime()>new Date(c.plan_end).getTime()&&(l=!1)),l&&c.is_disabled&&(l=!1),l&&this.invalidDiscountIds&&this.invalidDiscountIds.length&&this.invalidDiscountIds.includes(c.sitelink_id)&&(l=!1),l&&(this.$root.useFirebaseUnits?(m=[],c.dimensions&&"string"==typeof c.dimensions?m=c.dimensions.split(","):c.dimensions&&(m=c.dimensions)):m=c.dimensions?c.dimensions.split(", "):[],v=m.find((function(t){return t==S.selectedUnit.width_length})),c.dimensions&&!v&&(l=!1)),_=c.name+": "+c.sitelink_id,!0!==l||n.has(_)||(n.add(_),e.push({text:c.name,value:c.sitelink_id})));else this.hideDiscounts=!0;if(this.discountOptions=f()(e),e.length<=1?this.hideDiscounts=!0:this.hideDiscounts=!1,y=!1,!this.discountOptions){t.next=14;break}return t.next=12,this.$vlf.getItem("rentalFlow/selectedDiscount");case 12:(x=t.sent)&&(w=x,k=this.discountOptions.findIndex((function(t){return t.text===w.name})),k>-1&&!(this.invalidDiscountIds&&this.invalidDiscountIds.length&&this.invalidDiscountIds.includes(w.sitelink_id))&&(this.selectedUnitDiscountOption=this.discountOptions[k],this.selectedDiscountObject=this.discountOptions[k],y=!0));case 14:return t.next=16,this.$vlf.getItem("rentalFlow/hasUserChangedDiscount");case 16:C=t.sent,this.discountOptions&&2==this.discountOptions.length&&!C?this.selectedDiscountObject=this.discountOptions[1]:y||(this.selectedDiscountObject=f()({text:"No Discount",value:"-999",variant:"default"})),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(0),console.error("Error setting discounts: ",t.t0);case 23:I.a.$emit("discounts",!0),this.$emit("priceUpdated");case 25:case"end":return t.stop()}}),t,this,[[0,20]])}))),function(){return N.apply(this,arguments)}),onDiscountSelected:function(text,t){this.selectedDiscount=t,this.trackStructEvent("Rent a Unit","Discount Selected",text,t)},onUserDiscountSelect:(M=c()(A().mark((function t(){return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$vlf.setItem("rentalFlow/hasUserChangedDiscount",!0);case 2:case"end":return t.stop()}}),t,this)}))),function(){return M.apply(this,arguments)}),onInsuranceSelected:function(t){t&&t.coverage&&this.updateShowInvalidInsurance(!1),this.trackStructEvent("Rent a Unit","Insurance Selected","Covers up to $"+t.coverage,t.coverage)},onCallForAvailability:function(){try{var t={category:"Button Click",action:"Call For Availability",label:this.selectedUnit.unit_type_name+" - "+this.selectedUnit.width+" x "+this.selectedUnit.length,value:this.selectedUnit.rate},e={category:"Call For Availability",action:"Call For Availability Button Clicked",label:this.selectedUnit.unit_type_name+" - "+this.selectedUnit.width+" x "+this.selectedUnit.length,value:this.selectedUnit.rate};this.addNewEvent(t,!0,!1,!0,!1,null),this.addNewEvent(e,!0,!1,!0,!1,null)}catch(t){this.$rollbar.error("Error adding call for avail click",t,{product:this.selectedProduct,variant:this.selectedVariant})}var n=this.selectedUnit;this.locationFromRoute&&(n.location=this.locationFromRoute),this.onOpenContactModal(n)},onDiscountFocus:function(){this.$refs.receiptDiscount&&this.$refs.receiptDiscount.$el.focus()},onInsuranceFocus:function(){this.$refs.receiptInsurance&&this.$refs.receiptInsurance.$el.focus()},onOpenContactModal:function(t){var e=this;this.modalUnit=t,setTimeout((function(){e.$bvModal.show("UnitContactModal")}),250)},onHiddenContactModal:function(t){this.modalUnit=null,this.hasContactModalBeenOpened=!1,this.$store.commit("clientWebsite/UPDATE_OPEN_CONTACT_MODAL",!1)}}},z=V,G=(n(1103),n(22)),component=Object(G.a)(z,(function(){var t=this,e=t._self._c;return e("b-card",{ref:"unitReceipt",staticClass:"payment-card-reciept border-0 mb-5 mb-lg-0",class:{"receipt-card-shadow":!t.isRental,"bg-transparent":t.isRental},attrs:{"data-test":"ViewUnitReceiptCard"}},[e("b-list-group",{class:{"is-rental":t.isRental},attrs:{flush:""}},[e("b-list-group-item",{staticClass:"px-0 pt-0 text-center text-lg-left border-0"},[t.isRentalActive?e("h4",{staticClass:"mb-0 font-weight-light"},[t._v("Rental Receipt")]):t.isReservationActive?e("h4",{staticClass:"mb-0 font-weight-light"},[t._v("Reservation Receipt")]):t.isSoldOut?e("h4",{staticClass:"mb-0 font-weight-light"},[t._v("Unit options")]):e("h4",{staticClass:"mb-0 font-weight-light"},[t._v("Select Your Unit Options")])]),e("hr",{staticClass:"pug-hr"}),t.isRental?e("b-list-group-item",{staticClass:"px-0",staticStyle:{border:"0"}},[t.selectedUnit&&t.selectedUnit.type?e("h6",{staticClass:"font-weight-bold"},[t.locationFromRoute&&t.locationFromRoute.name?e("span",[t._v(t._s(t.locationFromRoute.name)+" - ")]):t._e(),e("span",[t._v(t._s(t.selectedUnit.unit_type_name)+" "+t._s(t.selectedUnit.width)+" x "+t._s(t.selectedUnit.length)+" Unit")])]):t._e(),e("div",{staticClass:"row row-cols-2"},[e("div",{staticClass:"col d-flex text-sm mt-2"},[e("client-only",[e("font-awesome-icon",{attrs:{icon:"check"}})],1),e("span",{staticClass:"ml-2"},[t._v("Online Payments")])],1),t._l(t.featuresArray,(function(n,r){return[n.has_feature?e("div",{key:r,staticClass:"col d-flex text-sm mt-2"},[e("client-only",[e("font-awesome-icon",{attrs:{icon:"check"}})],1),e("span",{staticClass:"ml-2"},[t._v(t._s(n.label))])],1):t._e()]}))],2)]):t._e()],1),e("hr",{staticClass:"pug-hr"}),e("ValidationObserver",{ref:"ccForm",attrs:{slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form",{on:{submit:function(t){t.preventDefault(),n.validate().then()}}},[t.isSoldOut||!t.getSetting("enable_rentals")&&!t.getSetting("enable_reservations")?t._e():e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col"},[t.selectedUnitMoveInDate?e("date-picker-parrot",{staticStyle:{"font-size":"14px !important","line-height":"16px !important"},attrs:{maxDaysInAdvance:t.getSetting("rental_num_days_in_advance"),disabled:"payment"===t.rentalStep||"success"===t.rentalStep||"e-sign"===t.rentalStep,"data-test":"Receipt Date Picker"},model:{value:t.selectedUnitMoveInDate,callback:function(e){t.selectedUnitMoveInDate=e},expression:"selectedUnitMoveInDate"}}):[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 pug-receipt-label"},[e("label",{staticStyle:{"font-size":"14px !important","line-height":"16px !important"}},[t._v("Select Move-in Date")])])]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-12"},[e("v-skeleton-loader",{staticClass:"mb-3",attrs:{type:"heading",width:"100%"}},[e("div",{staticClass:"v-skeleton-loader v-skeleton-loader--is-loading theme--light",attrs:{"aria-busy":"true","aria-live":"polite",role:"alert"}}),e("div",{staticClass:"v-skeleton-loader__heading v-skeleton-loader__bone",staticStyle:{width:"100%"}})])],1)])],!t.isDoneLoading&&t.getSetting("rental_show_insurance")?e("div",[e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-12 pug-receipt-label"},[e("label",{staticStyle:{"font-size":"14px !important","line-height":"16px !important"}},[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Select Protection Plan":"Select insurance"))])])]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-12"},[e("v-skeleton-loader",{staticClass:"mb-3",attrs:{type:"heading",width:"100%"}},[e("div",{staticClass:"v-skeleton-loader v-skeleton-loader--is-loading theme--light",attrs:{"aria-busy":"true","aria-live":"polite",role:"alert"}}),e("div",{staticClass:"v-skeleton-loader__heading v-skeleton-loader__bone",staticStyle:{width:"100%"}})])],1)])]):t._e(),t.selectedUnit&&t.selectedUnit.type?[t.insuranceOptions&&t.insuranceOptions.length&&t.getSetting("rental_show_insurance")&&0==t.selectedUnit.type.is_exclude_from_insurance&&t.isDoneLoading?e("b-form-group",{staticClass:"pug-receipt-label mt-3"},[e("template",{slot:"label"},[e("label",{staticClass:"mb-0",staticStyle:{"font-size":"14px !important","line-height":"16px !important"},on:{click:t.onInsuranceFocus}},[t.getSetting("rental_use_protection_plans")?e("span",[t._v(t._s(t.isRental?"Selected Protection Plan":"Select Protection Plan"))]):e("span",[t._v(t._s(t.isRental?"Selected Insurance":"Select Insurance"))]),t.getSetting("rental_insurance_tooltip")?[e("client-only",[e("font-awesome-icon",{staticClass:"ml-2",attrs:{id:"select-insurance-label",icon:"question-circle"}})],1),e("b-tooltip",{attrs:{target:"select-insurance-label",boundary:"viewport","boundary-padding":"0",triggers:"focus hover",placement:"bottom"}},[t.getSetting("rental_insurance_tooltip_link")?e("b-link",{staticClass:"text-reset",attrs:{href:t.getSetting("rental_insurance_tooltip_link"),target:"_blank"}},[e("span",{staticClass:"mr-1"},[t._v(t._s(t.getSetting("rental_insurance_tooltip")))]),e("client-only",[e("font-awesome-icon",{attrs:{size:"sm",icon:"external-link-alt"}})],1)],1):e("div",[t._v(t._s(t.getSetting("rental_insurance_tooltip")))])],1)]:t._e()],2)]),t.isRental?e("multiselect",{staticClass:"website-multiselect",class:{disabled:"payment"===t.rentalStep||"success"===t.rentalStep||"e-sign"===t.rentalStep},attrs:{options:t.insuranceOptions,"open-direction":"bottom","close-on-select":!0,searchable:!1,"allow-empty":!t.getSetting("rental_require_insurance"),placeholder:t.getSetting("rental_use_protection_plans")?"No Protection Plan selected":"No insurance selected","track-by":"id",disabled:"payment"===t.rentalStep||"success"===t.rentalStep||"e-sign"===t.rentalStep,"data-test":"Receipt Insurance Multiselect"},on:{select:t.onInsuranceSelected},scopedSlots:t._u([{key:"singleLabel",fn:function(n){var option=n.option;return[e("p",{staticClass:"mb-0"},[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Protects up to":"Covers up to")+" "+t._s(t._f("currency")(option.coverage,2)))])]}},{key:"option",fn:function(n){var option=n.option;return[option.coverage?e("span",[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Protects up to":"Covers up to")+" "+t._s(t._f("currency")(option.coverage,2))),e("br"),e("br")]):t._e(),option.premium?e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t._f("currency")(option.premium,2)))]):t._e(),e("span",[t._v(" / Month")])]}}],null,!0),model:{value:t.selectedUnitInsurance,callback:function(e){t.selectedUnitInsurance=e},expression:"selectedUnitInsurance"}}):e("multiselect",{ref:"receiptInsurance",staticClass:"website-multiselect",class:{"is-invalid":t.showInvalidInsurance},attrs:{options:t.insuranceOptions,"open-direction":"bottom","close-on-select":!0,searchable:!1,"allow-empty":!t.getSetting("rental_require_insurance"),placeholder:t.getSetting("rental_use_protection_plans")?"Select Protection Plan":"Select Insurance",selectedLabel:"✔️",selectLabel:"",deselectLabel:"✖️","track-by":"id","data-test":"Receipt Insurance Multiselect"},on:{select:t.onInsuranceSelected},scopedSlots:t._u([{key:"singleLabel",fn:function(n){var option=n.option;return[e("p",{staticClass:"mb-0"},[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Protects up to":"Covers up to")+" "+t._s(t._f("currency")(option.coverage,2)))])]}},{key:"option",fn:function(n){var option=n.option;return[option.coverage?e("span",[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Protects up to":"Covers up to")+" "+t._s(t._f("currency")(option.coverage,2))),e("br"),e("br")]):t._e(),option.premium?e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t._f("currency")(option.premium,2)))]):t._e(),e("span",[t._v(" / Month")])]}}],null,!0),model:{value:t.selectedInsurance,callback:function(e){t.selectedInsurance=e},expression:"selectedInsurance"}}),e("div",{staticClass:"invalid-feedback",class:{"d-block":t.showInvalidInsurance}},[t._v(t._s(t.getSetting("rental_use_protection_plans")?"Protection plan is required":"Insurance is required"))])],2):t._e(),e("span",{attrs:{id:"mobile-unit-scroll-to"}}),!t.hideDiscounts&&t.isDoneLoading&&!t.isRental&&t.discountOptions&&t.discountOptions.length>1?e("b-form-group",{staticClass:"pug-receipt-label mt-3",attrs:{label:""}},[e("p",{staticClass:"mb-0 pug-receipt-label",staticStyle:{"font-size":"14px !important","line-height":"16px !important"}},[e("label",{on:{click:t.onDiscountFocus}},[t._v("Select Discount"),t.discountOptions&&1!==t.discountOptions.length?e("span",{staticClass:"text-success"},[t._v(" - "+t._s(t.discountOptions.length-1)+" Available!")]):t._e()])]),e("div",{staticClass:"row justify-content-start no-gutters"},[e("div",{staticClass:"col-12"},[t.discountOptions?e("multiselect",{ref:"receiptDiscount",staticClass:"website-multiselect",attrs:{"track-by":"value",label:"text","open-direction":"bottom",options:t.discountOptions,searchable:!1,placeholder:"Select discount",selectedLabel:"✔️",selectLabel:"",deselectLabel:"✖️","allow-empty":!1,"data-test":"Receipt Discounts Multiselect"},on:{select:function(e){return t.onUserDiscountSelect()}},model:{value:t.selectedDiscountObject,callback:function(e){t.selectedDiscountObject=e},expression:"selectedDiscountObject"}}):t._e()],1)])]):t._e(),!t.hideDiscounts&&t.isDoneLoading&&t.isRental&&t.discountOptions&&t.discountOptions.length>1?e("b-form-group",{staticClass:"pug-receipt-label mt-3"},[e("p",{staticClass:"mb-0 pug-receipt-label",staticStyle:{"font-size":"14px !important","line-height":"16px !important"}},[e("label",{on:{click:t.onDiscountFocus}},[t._v("Select Discount")])]),t.discountOptions&&t.isRental?e("multiselect",{staticClass:"website-multiselect website-multiselect",class:{disabled:"success"===t.rentalStep||"e-sign"===t.rentalStep},attrs:{"track-by":"value",label:"text",options:t.discountOptions,"open-direction":"bottom",disabled:"payment"===t.rentalStep||"success"===t.rentalStep||"e-sign"===t.rentalStep,searchable:!1,placeholder:"Select discount",selectedLabel:"✔️",selectLabel:"",deselectLabel:"✖️","allow-empty":!1,"data-test":"Receipt Discounts Multiselect"},on:{select:function(e){return t.onUserDiscountSelect()}},model:{value:t.selectedDiscountObject,callback:function(e){t.selectedDiscountObject=e},expression:"selectedDiscountObject"}}):t._e()],1):t._e(),t.isDoneLoading?e("hr",{staticClass:"pug-hr mt-4 mb-2"}):t._e(),!t.hideDiscounts&&!t.isDoneLoading||!t.isDoneLoading&&!t.isRental?e("div",[e("div",{staticClass:"row mt-2"},[e("div",{staticClass:"col-12 pug-receipt-label",staticStyle:{"font-size":"14px !important","line-height":"16px !important"}},[e("label",[t._v("Select Discount")])])]),e("div",{staticClass:"row mt-3 mb-2"},[e("div",{staticClass:"col-12"},[e("v-skeleton-loader",{staticClass:"mb-3",attrs:{type:"heading",width:"100%"}},[e("div",{staticClass:"v-skeleton-loader v-skeleton-loader--is-loading theme--light",attrs:{"aria-busy":"true","aria-live":"polite",role:"alert"}}),e("div",{staticClass:"v-skeleton-loader__heading v-skeleton-loader__bone",staticStyle:{width:"100%"}})]),e("hr",{staticClass:"pug-hr py-2 mt-2"}),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)])],1)])]):t._e()]:t._e()],2)]),t.getSetting("enable_unit_alarms")&&(!t.isRentalActive&&!t.isReservationActive||t.isRentalActive)?e("div",{staticClass:"row mt-2"},[e("div",{staticClass:"col"},[t.getSetting("has_unit_alarm_checkbox")?e("b-form-checkbox",{key:"has_unit_alarm_checkbox",attrs:{id:"has_unit_alarm_checkbox",disabled:!t.isDoneLoading||"success"===t.rentalStep||"e-sign"===t.rentalStep},model:{value:t.unitAlarmCheckboxValue,callback:function(e){t.unitAlarmCheckboxValue=e},expression:"unitAlarmCheckboxValue"}},[e("div",{staticClass:"unit-alarm-blurb-wrapper mb-0",domProps:{innerHTML:t._s(t.getSetting("unit_alarm_blurb"))}})]):e("div",{staticClass:"unit-alarm-blurb-wrapper",domProps:{innerHTML:t._s(t.getSetting("unit_alarm_blurb"))}}),t.getSetting("unit_alarm_link_href")?e("div",{staticClass:"my-2",style:{"padding-left":t.getSetting("has_unit_alarm_checkbox")?"24px":"0"}},[e("b-link",{attrs:{href:t.getSetting("unit_alarm_link_href"),target:"_blank"}},[t._v("Learn more"),e("client-only",[e("font-awesome-icon",{staticClass:"ml-2",attrs:{size:"xs",icon:"external-link-alt"}})],1)],1)],1):t._e(),e("hr",{staticClass:"pug-hr mt-3 mb-2"})],1)]):t._e(),e("b-list-group",{class:{"is-rental":t.isRental},attrs:{flush:""}},[t.isDoneLoading||t.isRental?e("b-list-group-item",{staticClass:"px-0",staticStyle:{border:"0px"}},[t.locationFromRoute&&t.locationFromRoute.name?e("b-card-text",{staticClass:"flex-item mb-2"},[e("span",[t._v("Location")]),e("span",{staticClass:"font-weight-bold text-right"},[t._v(t._s(t.locationFromRoute.name))])]):t._e(),e("b-card-text",{staticClass:"flex-item mb-2"},[e("span",[t._v("Unit Type")]),e("span",{staticClass:"font-weight-bold text-right",domProps:{innerHTML:t._s(t.selectedUnit.unit_type_name)}})]),e("b-card-text",{staticClass:"flex-item mb-2"},[e("span",[t._v("Monthly Rate")]),e("client-only",[e("base-price-text",{staticClass:"font-weight-bold text-right",attrs:{unit:t.selectedUnit,discount:t.selectedUnitDiscount,"data-test":"Receipt Monthly Rate"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"flex-item"},[null===t.selectedUnitDiscount||void 0===t.selectedUnitDiscount||0==t.selectedUnitDiscount.never_expires?e("span",{staticClass:"flex-item",class:{"font-weight-bold":t.isReservationActive}},[t.getSetting("fake_discount_percentage")?e("div",{staticClass:"price-strike-through text-center mr-2"},[t._v(t._s(t._f("currency")(n.fakeDiscountMarkupPrice)))]):t.getSetting("use_web_rates")&&1==n.isModifiedRate?e("div",{staticClass:"price-strike-through text-center mr-2"},[t._v(t._s(t._f("currency")(n.originalRate)))]):t._e(),e("span",[t._v(t._s(t._f("currency")(n.rate,2)))])]):t.selectedUnitDiscount&&1==t.selectedUnitDiscount.never_expires?e("div",{staticClass:"flex-item"},[e("div",{staticClass:"price-strike-through mr-2"},[t._v(t._s(t._f("currency")(n.rate,2)))]),e("span",[t._v(t._s(t._f("currency")(n.rateWithDiscount,2)))])]):t._e()])]}}],null,!0)})],1)],1),e("b-card-text",{staticClass:"flex-item mb-2"},[e("span",[t._v("Unit Size")]),e("span",{staticClass:"font-weight-bold text-right",attrs:{"data-test":"Receipt Unit Dimensions"}},[t._v(t._s(t.selectedUnit.width)+" x "+t._s(t.selectedUnit.length))])])],1):t._e(),t.isDoneLoading?e("hr",{staticClass:"pug-hr py-2"}):t._e(),t.isDoneLoading?t._e():e("hr",{staticClass:"pug-hr py-2 mt-2"}),t.isDoneLoadingPrice&&!t.isSoldOut&&!t.isReservationActive||t.isRental&&t.isDoneLoadingPrice?e("div",[t.isDoneLoading?e("b-list-group-item",{staticClass:"px-0",staticStyle:{border:"0px"}},[t._l(t.charges.charges,(function(n,r){return e("b-card-text",{key:r,staticClass:"flex-item mb-2"},[e("span",[t._v(t._s(t._f("protection")(n.description,t.getSetting("rental_use_protection_plans"))))]),0==n.discountAmount?e("span",{staticClass:"font-weight-bold text-right",attrs:{"data-test":"Receipt "+n.description+" Description Amount"}},[t._v(t._s(t._f("currency")(n.amount,2)))]):t._e(),0!=n.discountAmount?e("span",{staticClass:"flex-item"},[e("div",{staticClass:"price-strike-through mr-2",attrs:{"data-test":"Receipt "+n.description+" Description Amount"}},[t._v(t._s(t._f("currency")(n.amount,2)))]),e("span",{staticClass:"font-weight-bold text-right",attrs:{"data-test":"Receipt "+n.description+" Description Discounted Amount"}},[t._v(t._s(t._f("currency")(n.amount-n.discountAmount,2)))])]):t._e()])})),t.charges.posCharges?t._l(t.charges.posCharges.charges,(function(n,r){return e("b-card-text",{key:"pos-"+r,staticClass:"flex-item mb-2"},[e("span",[t._v(t._s(n.description))]),e("span",{staticClass:"font-weight-bold text-right",attrs:{"data-test":"Receipt "+n.description+" Description Amount"}},[t._v(t._s(t._f("currency")(n.amount,2)))])])})):t._e(),e("b-card-text",{staticClass:"flex-item"},[e("span",[t._v("Tax")]),e("span",{staticClass:"font-weight-bold text-right",attrs:{"data-test":"Receipt Tax"}},[t._v(t._s(t._f("currency")(t.computedTax,2)))])])],2):t._e(),t.isDoneLoadingPrice?e("hr",{staticClass:"pug-hr py-2"}):t._e(),t.isDoneLoadingPrice?e("b-list-group-item",{staticClass:"px-0 pt-1",staticStyle:{border:"0px"}},[e("b-card-text",{staticClass:"flex-item total"},[e("div",{staticClass:"d-flex justify-content-between w-100 font-weight-bold"},[t.isReservationActive?e("span",[t._v("Total Due at Move In")]):e("span",[t._v("Total")]),e("span",{attrs:{"data-test":"Receipt Total"}},[t._v(t._s(t._f("currency")(t.computedTotal,2)))])])])],1):t._e()],1):t._e(),t.isDoneLoadingPrice?t._e():e("div",[e("b-list-group-item",{staticClass:"px-0"},[e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)]),e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)])]),e("b-list-group-item",{staticClass:"px-0"},[e("div",{staticClass:"row my-3"},[e("div",{staticClass:"col-6"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1),e("div",{staticClass:"col-3"}),e("div",{staticClass:"col-3"},[e("v-skeleton-loader",{attrs:{type:"text"}})],1)])])],1),t.isRental?t._e():[t.isSoldOut?t._e():[t.getSetting("enable_rentals")||t.getSetting("enable_reservations")?t._e():e("button-tile-tilapia",{staticClass:"my-4",attrs:{header:"",subheader:t.getSetting("rental_disabled_message")||"Rentals coming soon!"}}),e("hr",{staticClass:"pug-hr py-2"}),t.locationFromRoute&&t.locationFromRoute.address?[t.getSetting("enable_rentals")?e("p",{staticClass:"small text-center mb-0"},[t._v("You're renting at:")]):t.getSetting("enable_reservations")?e("p",{staticClass:"small text-center mb-0"},[t._v("You're reserving at:")]):t._e(),e("p",{staticClass:"small text-center text-primary rent-location"},[t._v(t._s(t.locationFromRoute.address.street_1)+t._s(t.locationFromRoute.address.street_2?" "+t.locationFromRoute.address.street_2:"")+", "+t._s(t.locationFromRoute.address.city)+", "+t._s(t.locationFromRoute.address.state_province))])]:t._e(),t.getSetting("enable_rentals")?e("b-button",{ref:"rentButton",class:{disabled:!t.isDoneLoading||!t.isDoneLoading},attrs:{block:"",size:"lg",variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton,disabled:!t.isDoneLoading||!t.isDoneLoading,"data-test":"Receipt Rent Button"},on:{click:t.rentUnit}},[t.$wait.is("verify unit")?e("font-awesome-icon",{staticClass:"mr-3",attrs:{icon:"spinner",spin:""}}):t._e(),t._v("Rent this unit")],1):t._e(),!t.getSetting("enable_rentals")&&t.getSetting("enable_reservations")?e("div",{staticClass:"mt-3"}):t._e(),t.getSetting("enable_reservations")&&t.getSetting("enable_rentals")?e("b-link",{staticClass:"reserve-link text-center text-reset mt-3",class:{"font-weight-bold":!t.getSetting("enable_rentals")&&t.getSetting("enable_reservations"),disabled:!t.isDoneLoading||!t.isDoneLoading},attrs:{disabled:!t.isDoneLoading||!t.isDoneLoading,"data-test":"Receipt Reserve Button"},on:{click:t.reserveUnit}},[t._v("I want to reserve this unit")]):t._e(),t.getSetting("enable_reservations")&&!t.getSetting("enable_rentals")?e("b-button",{ref:"rentButton",class:{disabled:!t.isDoneLoading||!t.isDoneLoading},attrs:{block:"",size:"lg",variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton,disabled:!t.isDoneLoading||!t.isDoneLoading,"data-test":"Receipt Reserve Button"},on:{click:t.reserveUnit}},[t._v("I want to reserve this unit")]):t._e()]],t.charges.futureCharges&&t.charges.futureCharges.length>=1&&!t.isSoldOut?e("b-list-group-item",{staticClass:"px-0 mt-3"},[e("b-card-text",{staticClass:"flex-item pt-2"},[e("span",{staticClass:"font-weight-bold"},[t._v("Next Payments")])]),t._l(t.charges.futureCharges,(function(n,r){return e("b-card-text",{key:r,staticClass:"flex-item"},[e("span",[t._v(t._s(n.description))]),0==n.discountAmount?e("span",[t._v(t._s(t._f("currency")(n.amount,2)))]):t._e(),0!=n.discountAmount?e("span",{staticClass:"flex-item"},[e("div",{staticClass:"price-strike-through mr-2"},[t._v(t._s(t._f("currency")(n.amount,2)))]),e("span",[t._v(t._s(t._f("currency")(n.amount-n.discountAmount,2)))])]):t._e()])}))],2):t._e(),!t.isRental&&t.isSoldOut?[e("div",{staticClass:"mt-5"},[t.getSetting("enable_rentals")||t.getSetting("enable_reservations")?[e("button-tile-tilapia",{staticClass:"my-5",attrs:{header:"Limited quantity",subheader:"Contact the office at "+(t.location&&t.location.phone_number?t.location.phone_number:"")+" for availability."}}),e("b-button",{ref:"rentButton",staticClass:"mt-5",attrs:{block:"",size:"lg",variant:"warning",squared:t.isSquaredButton,pill:t.isPillButton,"data-test":"Unit Contact Button"},on:{click:t.onCallForAvailability}},[t._v("Contact us")])]:e("button-tile-tilapia",{staticClass:"my-4",attrs:{header:"",subheader:t.getSetting("rental_disabled_message")||"Rentals coming soon!"}})],2)]:t._e()],2)],1)]}}])}),t.modalUnit?e("UnitContactModal",{attrs:{selectedUnit:t.modalUnit},on:{closed:t.onHiddenContactModal}}):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},569:function(t,e,n){var content=n(1050);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(57).default)("46016d24",content,!0,{sourceMap:!1})},589:function(t,e,n){var content=n(1102);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(57).default)("4a3ebb6e",content,!0,{sourceMap:!1})},590:function(t,e,n){var content=n(1104);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(57).default)("695beed9",content,!0,{sourceMap:!1})},592:function(t,e,n){var content=n(1108);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(57).default)("5eb4a406",content,!0,{sourceMap:!1})},604:function(t,e,n){var content=n(1141);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(57).default)("27cb3b1e",content,!0,{sourceMap:!1})},777:function(t,e,n){"use strict";e.a={bind:function(t,e,n){t.clickOutsideEvent=function(r){t===r.target||t.contains(r.target)||n.context[e.expression](r)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}}},778:function(t,e,n){"use strict";var r=n(10),o=(n(14),n(16),n(24),n(19),n(25),n(15),n(9),n(26),n(27),n(28),n(29),n(11),n(12),n(21),n(13),n(48),n(42),n(51),n(50),n(43),n(46),n(8)),c=n.n(o);function l(){l=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",d=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new j(r||[]);return c(a,"_invoke",{value:D(t,n,o)}),a}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",_="suspendedYield",y="executing",s="completed",x={};function w(){}function k(){}function C(){}var p={};h(p,a,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(P([])));L&&L!==n&&o.call(L,a)&&(p=L);var g=C.prototype=w.prototype=Object.create(p);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function U(t,e){function n(c,l,i,a){var d=m(t[c],t,l);if("throw"!==d.type){var u=d.arg,h=u.value;return h&&"object"==Object(r.a)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(d.arg)}var l;c(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return l=l?l.then(o,o):o()}})}function D(e,n,r){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=I(c,r);if(u){if(u===x)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var p=m(e,n,r);if("normal"===p.type){if(o=r.done?s:_,p.arg===x)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),x;var i=m(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,x;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,x):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,x)}function E(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function n(){for(;++c<e.length;)if(o.call(e,c))return n.value=e[c],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Object(r.a)(e)+" is not iterable")}return k.prototype=C,c(g,"constructor",{value:C,configurable:!0}),c(C,"constructor",{value:k,configurable:!0}),k.displayName=h(C,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,h(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},O(U.prototype),h(U.prototype,d,(function(){return this})),e.AsyncIterator=U,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new U(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(g),h(g,u,"Generator"),h(g,a,(function(){return this})),h(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,x):this.complete(a)},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),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),x}},e}var d,h=n(52);e.a={bind:(d=c()(l().mark((function t(e,n){var r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.value,t.prev=1,o=r.src,t.next=5,h.get(o);case 5:e.src=r.src,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),e.src=r.fallBack;case 11:case"end":return t.stop()}}),t,null,[[1,8]])}))),function(t,e){return d.apply(this,arguments)})}},811:function(t,e,n){"use strict";n.r(e);n(9);var r=n(10),o=(n(14),n(16),n(24),n(19),n(25),n(15),n(26),n(27),n(28),n(83),n(29),n(11),n(12),n(21),n(13),n(48),n(42),n(41),n(51),n(50),n(43),n(46),n(8)),c=n.n(o),l=n(18),d=n(323),h=n(418),f=n(266),m=n(76),v=n(229),_=n(1452),y=n(1454);function x(){x=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new j(r||[]);return c(a,"_invoke",{value:D(t,n,o)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var m="suspendedStart",v="suspendedYield",_="executing",s="completed",y={};function w(){}function k(){}function C(){}var p={};d(p,a,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(P([])));L&&L!==n&&o.call(L,a)&&(p=L);var g=C.prototype=w.prototype=Object.create(p);function O(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function U(t,e){function n(c,l,i,a){var d=f(t[c],t,l);if("throw"!==d.type){var u=d.arg,h=u.value;return h&&"object"==Object(r.a)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(d.arg)}var l;c(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return l=l?l.then(o,o):o()}})}function D(e,n,r){var o=m;return function(i,a){if(o===_)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=I(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=_;var p=f(e,n,r);if("normal"===p.type){if(o=r.done?s:v,p.arg===y)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function E(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function n(){for(;++c<e.length;)if(o.call(e,c))return n.value=e[c],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Object(r.a)(e)+" is not iterable")}return k.prototype=C,c(g,"constructor",{value:C,configurable:!0}),c(C,"constructor",{value:k,configurable:!0}),k.displayName=d(C,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,d(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},O(U.prototype),d(U.prototype,l,(function(){return this})),e.AsyncIterator=U,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new U(h(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(g),d(g,u,"Generator"),d(g,a,(function(){return this})),d(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}var w,k,C={name:"UnitContactModal",components:{SectionRonny:h.default,PaymentPortalSuccessPageDove:f.default,FormSimple:d.a,ValidationObserver:m.a,ValidationProvider:m.b,BModal:v.a,BFormGroup:_.a,BAlert:y.a},props:{uid:String,selectedUnit:Object,unitManager:Boolean},data:function(){return{loading:!1,success:!1,successMessage:"",error:null,form:{first_name:"",last_name:"",phone_number:"",email:"",message:"",location:null},filteredLocations:[],dateInput:null,hasMounted:!1,isLoading:!1}},computed:Object.assign({},Object(l.c)({account:"clientWebsite/account",useInsightsUnitManager:"clientWebsite/useInsightsUnitManager",isLoggedIn:"clientWebsite/getLoggedInState"})),mounted:function(){this.hasMounted=!0},destroyed:function(){this.resetData()},methods:Object.assign({},Object(l.b)({sendLocationEmail:"clientWebsite/sendLocationEmail"}),{onSubmit:(k=c()(x().mark((function t(){var e,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$refs.contactForm.validate();case 2:e=t.sent,this.form.location=this.selectedUnit.location,n=JSON.parse(JSON.stringify(this.form)),e&&this.submitFormAction(n);case 6:case"end":return t.stop()}}),t,this)}))),function(){return k.apply(this,arguments)}),submitFormAction:(w=c()(x().mark((function t(form){var e,n,r,o,c,l;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loading=!0,this.isLoading=!0;try{e="",this.selectedUnit.location&&Object.keys(this.selectedUnit.location).length>1&&(e=": "+this.selectedUnit.location.name),gtag("event","Contact Form Submission",{event_label:"Contact Form Submission - "+this.account.name+e,event_category:"Contact Form Submission - "+this.account.name})}catch(t){}return t.prev=3,form.location_id=form.location.id,form.reason="Unit Availability",form.unit_size=this.selectedUnit.width+"x"+this.selectedUnit.length,form.unit_type=this.selectedUnit.unit_type_name,t.next=10,this.sendLocationEmail(form);case 10:n=t.sent,r=n.data,this.successMessage="Thank you for getting in touch. We'll contact you soon!",this.getCookie("pugg_uid");try{window.pug&&form&&form.email&&(window.pug("setUserId",form.email),this.setCookie("pugg_uid",form.email,365))}catch(t){this.$rollbar.error("Error setting snowplow cookie: ",t)}o=[{schema:"iglu:com.pug/rhs_contact_form/jsonschema/1-0-0",data:{tenant_id:r.data&&r.data.tenant_id?r.data.tenant_id:"",name:form.first_name+" "+(form.last_name||""),first_name:form.first_name,last_name:form.last_name||null,email:form.email.toLowerCase(),phone:form.phone_number,message:form.message,location_key:form.location.url_slug||null,location_name:form.location.name}}],r.data.contact&&(o.push({schema:"iglu:com.pug/contact/jsonschema/1-0-0",data:{id:r.data.contact.id,email:r.data.contact.email,first_name:form.first_name,last_name:form.last_name||"",phone_number:form.email.toLowerCase(),tenant_id:String(r.data.tenant_id),addr_1:null,addr_2:null,city:null,region:null,postal_code:null,country:null,phone:null,cell_phone:null,company_name:null,has_active_ledger:null,is_sms_opt_in:null,dob:null,is_military:null,is_company:null,is_commercial:null}}),window.pug&&window.pug("setUserId",r.data.contact.email)),c={category:"Request a Quote",action:"Form Submitted",label:form.first_name+" "+(form.last_name||""),property:form.unit_type+" "+form.unit_size},l={category:"Unit",action:"New Lead",label:form.first_name+" "+(form.last_name||""),property:form.unit_type+" "+form.unit_size};try{gtag("event","Request a Quote",{event_label:"Request a Quote Form Submission - "+this.account.name+this.selectedUnit.location.name,event_category:"Request a Quote Form Submission - "+this.account.name})}catch(t){}this.useInsightsUnitManager?(this.addNewEvent(c,!0,!1,!1,!1,null,o),this.addNewEvent(l,!0,!1,!1,!1,null,o)):(this.addNewEvent(c,!0,!1,!1,!1,r.data.unit||null,o),this.addNewEvent(l,!0,!1,!1,!1,r.data.unit||null,o)),this.success=!0,this.error=null,t.next=30;break;case 25:t.prev=25,t.t0=t.catch(3),this.$rollbar.error("UnitContactModal: Error submitting contact form",t.t0),this.error="We could not submit your request at this time. Please try again or give us a call.",this.success=!1;case 30:this.loading=!1,this.isLoading=!1;case 32:case"end":return t.stop()}}),t,this,[[3,25]])}))),function(t){return w.apply(this,arguments)}),checkIfValid:function(t){var e=t.errors;return t.validated?!e.length:null},onHidden:function(t){this.$emit("closed",t)},onButtonClicked:function(){this.$bvModal.hide("UnitContactModal")},resetData:function(){this.loading=!1,this.success=!1,this.successMessage="",this.error=null}})},S=C,L=(n(1101),n(22)),component=Object(L.a)(S,(function(){var t=this,e=t._self._c;return e("b-modal",{attrs:{id:"UnitContactModal",title:"",centered:"",size:"lg",lazy:"","hide-footer":"","header-class":"border-0","body-class":"p-0","data-test":"Unit Contact Modal"},on:{hidden:t.onHidden}},[e("div",{staticClass:"container-fluid pb-5"},[t.success?t._e():e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-10 mx-auto modal-contact-header text-center"},[e("h3",{staticClass:"contact-title text-primary"},[t._v("Contact Us About Our Availability")]),t.selectedUnit?e("p",{staticClass:"contact-description"},[e("span",[t._v("Unit ")]),e("strong",[t._v(t._s(t.selectedUnit.width_length)+" ")]),t._v(t._s(t.selectedUnit.unit_type_name)),t.selectedUnit&&t.selectedUnit.location?e("span",[t._v(" at "+t._s(t.selectedUnit.location.name))]):t._e()]):t._e()])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-10 mx-auto"},[t.success?e("PaymentPortalSuccessPageDove",{attrs:{title:"Request Submitted",subtitle:t.successMessage,link:"#","button-text":"Continue viewing units","button-color":"primary"},on:{buttonClicked:t.onButtonClicked}}):[e("ValidationObserver",{ref:"contactForm",attrs:{tag:"b-form","data-test":"Contact Form"},on:{submit:function(e){return e.preventDefault(),e.stopPropagation(),t.onSubmit.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(n){return[t.hasMounted?e("ValidationProvider",{attrs:{name:"first name",rules:"required",slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form-group",{attrs:{id:"simple-contact-first-name-group","label-for":"contact-first-name",label:"First name","invalid-feedback":n.errors[0]?n.errors[0]:null,state:t.checkIfValid(n),"data-test":"First Name Input Group"}},[e("b-input",{class:{disabled:t.isLoading},attrs:{id:"simple-contact-first-name","aria-describedby":"contact-first-name-group",disabled:t.isLoading,placeholder:"Enter your first name",state:t.checkIfValid(n),trim:"","data-test":"First Name Input"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}})],1)]}}],null,!0)}):t._e(),t.hasMounted?t._e():e("b-form-group",{attrs:{label:"First name"}},[e("div",{staticClass:"form-control bg-light"})]),t.hasMounted?e("ValidationProvider",{attrs:{name:"last name",rules:"required",slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form-group",{attrs:{id:"simple-contact-last-name-group","label-for":"contact-last-name",label:"Last name","invalid-feedback":n.errors[0]?n.errors[0]:null,state:t.checkIfValid(n),"data-test":"Last Name Input Group"}},[t.hasMounted?e("b-input",{class:{disabled:t.isLoading},attrs:{id:"simple-contact-last-name","aria-describedby":"contact-last-name-group",disabled:t.isLoading,placeholder:"Enter your last name",state:t.checkIfValid(n),trim:"","data-test":"Last Name Input"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}):t._e()],1)]}}],null,!0)}):t._e(),t.hasMounted?t._e():e("b-form-group",{attrs:{label:"Last name"}},[e("div",{staticClass:"form-control bg-light"})]),t.hasMounted?e("ValidationProvider",{attrs:{name:"phone number",rules:"required|phone_number",slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form-group",{attrs:{id:"simple-contact-phone-group","label-for":"contact-phone",label:"Phone number","invalid-feedback":n.errors[0]?n.errors[0]:null,state:t.checkIfValid(n),"data-test":"Phone Input Group"}},[e("b-input",{directives:[{name:"mask",rawName:"v-mask",value:"(###) ###-####",expression:"'(###) ###-####'"}],class:{disabled:t.isLoading},attrs:{id:"simple-contact-phone","aria-describedby":"contact-phone-group",disabled:t.isLoading,placeholder:"Enter phone number",state:t.checkIfValid(n),trim:"","data-test":"Phone Input"},model:{value:t.form.phone_number,callback:function(e){t.$set(t.form,"phone_number",e)},expression:"form.phone_number"}})],1)]}}],null,!0)}):t._e(),t.hasMounted?t._e():e("b-form-group",{attrs:{label:"Phone number"}},[e("div",{staticClass:"form-control bg-light"})]),t.hasMounted?e("ValidationProvider",{attrs:{name:"email",rules:"required|email",slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form-group",{attrs:{id:"simple-contact-email-group","label-for":"contact-email",label:"Email","invalid-feedback":n.errors[0]?n.errors[0]:null,state:t.checkIfValid(n),"data-test":"Email Input Group"}},[e("b-input",{class:{disabled:t.isLoading},attrs:{id:"simple-contact-email",type:"email","aria-describedby":"contact-email-group",disabled:t.isLoading,placeholder:"Enter email address",state:t.checkIfValid(n),trim:"","data-test":"Email Input"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)]}}],null,!0)}):t._e(),t.hasMounted?t._e():e("b-form-group",{attrs:{label:"Email"}},[e("div",{staticClass:"form-control bg-light"})]),t.hasMounted?e("ValidationProvider",{attrs:{name:"message",rules:"required",slim:""},scopedSlots:t._u([{key:"default",fn:function(n){return[e("b-form-group",{attrs:{id:"simple-contact-message-group","label-for":"contact-message",label:"Message","invalid-feedback":n.errors[0]?n.errors[0]:null,state:t.checkIfValid(n),"data-test":"Message Input Group"}},[e("b-form-textarea",{class:{disabled:t.isLoading},attrs:{id:"simple-contact-message","aria-describedby":"contact-message-group",disabled:t.isLoading,placeholder:t.isLoggedIn?"How can we help you? If relevant, please include your unit number.":"How can we help you?",state:t.checkIfValid(n),trim:"","data-test":"Message Input"},model:{value:t.form.message,callback:function(e){t.$set(t.form,"message",e)},expression:"form.message"}})],1)]}}],null,!0)}):t._e(),t.hasMounted?t._e():e("b-form-group",{attrs:{label:"Message"}},[e("div",{staticClass:"form-control bg-light"})]),t.error?e("div",{staticClass:"mt-3"},[e("b-alert",{attrs:{variant:"danger",show:""}},[e("h6",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.error))])])],1):t._e(),e("div",{staticClass:"mt-4"},[e("b-button",{staticClass:"btn-block",attrs:{variant:"primary",type:"submit",disabled:t.isLoading,squared:t.isSquaredButton,pill:t.isPillButton,"data-test":"Contact Form Submit"}},[t.isLoading?[e("client-only",[e("font-awesome-icon",{staticClass:"mr-2",attrs:{icon:"spinner",spin:""}})],1),e("span",[t._v("Contact us")])]:[e("span",[t._v("Contact us")])]],2)],1)]}}])})]],2)]),!t.success&&t.selectedUnit.location&&t.selectedUnit.location.phone_number?e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-10 mx-auto text-center my-4"},[e("div",{staticClass:"text-primary font-italic font-weight-600"},[t._v("or")])]),e("div",{staticClass:"col-12 col-md-10 mx-auto"},[e("b-button",{staticClass:"text-primary btn-shadow font-weight-600",attrs:{variant:"white",href:"tel:"+t.selectedUnit.location.phone_number,squared:t.isSquaredButton,pill:t.isPillButton,disabled:t.loading,block:""}},[t._v("Call Us "+t._s(t.selectedUnit.location.phone_number))])],1)]):t._e()])])}),[],!1,null,null,null);e.default=component.exports},812:function(t,e,n){"use strict";n(11),n(12),n(13),n(41),n(43);var r=n(81),o=n.n(r),c=n(18),l=n(269),d={name:"RentUnitStickyFooter",components:{BaseStarRatingLocation:function(){return Promise.resolve().then(n.bind(null,273))},BasePriceText:n(270).a},mixins:[l.a],computed:Object.assign({},Object(c.c)({headerIsFixed:"clientWebsite/getHeaderIsFixed",headerHeight:"clientWebsite/getHeaderHeight",showRentalReceiptFooter:"clientWebsite/getShowRentalReceiptFooter"}),{footerBottom:function(){return this.headerIsFixed?this.headerHeight+"px":-1*this.headerHeight+"px"},isSoldOut:function(){return!!this.selectedUnit&&(!o()(this.selectedUnit.is_available_for_website)&&!this.selectedUnit.is_available_for_website||this.selectedUnit.is_rented||this.selectedUnit.is_on_waiting_list)},unitName:function(){return this.selectedUnit.value_pricing&&this.selectedUnit.value_pricing.label?this.selectedUnit.value_pricing.label+" "+this.selectedUnit.width+" x "+this.selectedUnit.length:this.selectedUnit.unit_type_name?this.selectedUnit.unit_type_name+" "+this.selectedUnit.width+" x "+this.selectedUnit.length:null}}),methods:{rentButtonClicked:function(t){void 0===t&&(t="rent"),document.getElementById("mobile-unit-scroll-to").scrollIntoView(),"rent"===t?this.rentUnit():"reserve"===t&&this.reserveUnit()},onOpenContactModal:function(){this.$store.commit("clientWebsite/UPDATE_OPEN_CONTACT_MODAL",!0)}}},h=(n(1107),n(22)),component=Object(h.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mobile-footer-wrap d-flex align-items-center",class:{"mobile-footer-wrap--hide":!t.showRentalReceiptFooter,"mobile-footer-wrap--show":t.showRentalReceiptFooter},attrs:{"data-test":"RentUnitStickyFooter"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-6"},[e("div",{staticClass:"d-lg-none"},[e("div",{staticClass:"price-mobile d-inline-flex"},[t.unitName?e("base-price-text",{attrs:{unit:t.selectedUnit},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"price-value-mobile font-weight-bold"},[t._v(t._s(t._f("currency")(n.rate)))])]}}],null,!1,430461407)}):t._e(),e("div",{staticClass:"price-mobile"},[t._v(" / Month")])],1),e("div",{staticClass:"location-star-rating mt-1 d-flex justify-content-start"},[e("base-star-rating-location",{attrs:{starSize:15,ratingSize:"13px"}})],1)]),e("div",{staticClass:"d-none d-lg-flex align-items-center"},[t.unitName?e("div",{staticClass:"footer-unit-type section-component-subtitle-lg mr-2",domProps:{innerHTML:t._s(t.unitName)}}):t._e(),e("div",{staticClass:"location-star-rating mt-1 d-flex justify-content-start"},[e("base-star-rating-location",{attrs:{starSize:16,showRating:!1}})],1)])]),t.isSoldOut||!t.getSetting("enable_rentals")&&!t.getSetting("enable_reservations")?e("div",{staticClass:"col-6"},[e("div",{staticClass:"d-lg-none"},[e("b-button",{attrs:{variant:"warning",squared:t.isSquaredButton,pill:t.isPillButton,block:""},on:{click:t.onOpenContactModal}},[t._v("Contact us")])],1),e("div",{staticClass:"d-none d-lg-flex justify-content-end"},[e("b-button",{staticStyle:{"min-width":"225px"},attrs:{variant:"warning",squared:t.isSquaredButton,pill:t.isPillButton},on:{click:t.onOpenContactModal}},[t._v("Contact us")])],1)]):e("div",{staticClass:"col-6"},[e("div",{staticClass:"d-lg-none"},[t.getSetting("enable_rentals")?e("b-button",{attrs:{variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton,block:""},on:{click:function(e){return t.rentButtonClicked("rent")}}},[t._v("Rent unit")]):t._e(),!t.getSetting("enable_rentals")&&t.getSetting("enable_reservations")?e("b-button",{attrs:{variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton,block:""},on:{click:function(e){return t.rentButtonClicked("reserve")}}},[t._v("Reserve unit")]):t._e()],1),e("div",{staticClass:"d-none d-lg-flex justify-content-end"},[!t.getSetting("enable_rentals")&&t.getSetting("enable_reservations")?e("b-button",{attrs:{variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton},on:{click:function(e){return t.rentButtonClicked("reserve")}}},[t._v("Reserve this unit")]):t.getSetting("enable_rentals")&&t.getSetting("enable_reservations")?e("b-button",{staticClass:"font-weight-600",attrs:{variant:"link",squared:t.isSquaredButton,pill:t.isPillButton},on:{click:function(e){return t.rentButtonClicked("reserve")}}},[t._v("Reserve this unit")]):t._e(),t.getSetting("enable_rentals")?e("b-button",{attrs:{variant:"primary",squared:t.isSquaredButton,pill:t.isPillButton},on:{click:function(e){return t.rentButtonClicked("rent")}}},[t.unitName?e("base-price-text",{attrs:{unit:t.selectedUnit},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("Rent now for "+t._s(t._f("currency")(e.rate))+" / mo")]}}],null,!1,1693823816)}):t._e()],1):t._e()],1)])])])])}),[],!1,null,"20a290a1",null);e.a=component.exports},816:function(t,e,n){"use strict";n(53),n(74),n(35),n(12),n(73),n(137),n(41),n(87);function r(t,e,data,n){return void 0===e&&(e="default"),void 0===n&&(n=!1),t.$scopedSlots[e]?t.$scopedSlots[e](data):!t.$slots[e]||data&&!n?void 0:t.$slots[e]}var o={name:"VSkeletonLoader",props:{boilerplate:Boolean,loading:Boolean,tile:Boolean,transition:String,type:String,types:{type:Object,default:function(){return{}}}},computed:{attrs:function(){return this.isLoading?this.boilerplate?{}:Object.assign({"aria-busy":!0,"aria-live":"polite",role:"alert"},this.$attrs):this.$attrs},classes:function(){return Object.assign({"v-skeleton-loader--boilerplate":this.boilerplate,"v-skeleton-loader--is-loading":this.isLoading,"v-skeleton-loader--tile":this.tile},this.themeClasses,this.elevationClasses)},isLoading:function(){return Boolean(!r(this)||this.loading)},rootTypes:function(){return Object.assign({actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, card-heading","card-avatar":"image, list-item-avatar","card-heading":"heading",chip:"chip","date-picker":"list-item, card-heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",paragraph:"text@3",sentences:"text@2",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"heading, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"table-cell@6","table-cell":"text","table-tfoot":"text@2, avatar@2",text:"text"},this.types)}},methods:{genBone:function(text,t){return this.$createElement("div",{staticClass:"v-skeleton-loader__"+text+" v-skeleton-loader__bone"},t)},genBones:function(t){var e=this,n=t.split("@"),r=n[0],o=n[1];return Array.from({length:o}).map((function(){return e.genStructure(r)}))},genStructure:function(t){var e=[];t=t||this.type||"";var n=this.rootTypes[t]||"";if(t===n);else{if(t.indexOf(",")>-1)return this.mapBones(t);if(t.indexOf("@")>-1)return this.genBones(t);n.indexOf(",")>-1?e=this.mapBones(n):n.indexOf("@")>-1?e=this.genBones(n):n&&e.push(this.genStructure(n))}return[this.genBone(t,e)]},genSkeleton:function(){var t=this,e=[],slot=r(this);return this.isLoading?e.push(this.genStructure()):e.push(slot),this.transition?this.$createElement("transition",{props:{name:this.transition},on:{enter:function(e){t.isLoading&&(e.style.transition="none")},beforeLeave:function(t){t.style.display="none"}}},e):e},mapBones:function(t){return t.replace(/\s/g,"").split(",").map(this.genStructure)}},render:function(t){return t("div",{staticClass:"v-skeleton-loader",attrs:this.attrs,on:this.$listeners,class:this.classes,style:this.isLoading?this.measurableStyles:void 0},[this.genSkeleton()])}},c=n(22),component=Object(c.a)(o,undefined,undefined,!1,null,"07583eaf",null);e.a=component.exports},94:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m}));var r=n(10),o=(n(14),n(16),n(24),n(19),n(25),n(88),n(74),n(15),n(9),n(26),n(27),n(28),n(29),n(11),n(12),n(21),n(13),n(48),n(42),n(51),n(50),n(43),n(46),n(8)),c=n.n(o),l=(n(52),n(0));n(32);function d(){d=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new j(r||[]);return c(a,"_invoke",{value:D(t,n,o)}),a}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",_="suspendedYield",y="executing",s="completed",x={};function w(){}function k(){}function C(){}var p={};h(p,a,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(P([])));L&&L!==n&&o.call(L,a)&&(p=L);var g=C.prototype=w.prototype=Object.create(p);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function U(t,e){function n(c,l,i,a){var d=m(t[c],t,l);if("throw"!==d.type){var u=d.arg,h=u.value;return h&&"object"==Object(r.a)(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(d.arg)}var l;c(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return l=l?l.then(o,o):o()}})}function D(e,n,r){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=I(c,r);if(u){if(u===x)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var p=m(e,n,r);if("normal"===p.type){if(o=r.done?s:_,p.arg===x)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),x;var i=m(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,x;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,x):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,x)}function E(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function n(){for(;++c<e.length;)if(o.call(e,c))return n.value=e[c],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Object(r.a)(e)+" is not iterable")}return k.prototype=C,c(g,"constructor",{value:C,configurable:!0}),c(C,"constructor",{value:k,configurable:!0}),k.displayName=h(C,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,h(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},O(U.prototype),h(U.prototype,l,(function(){return this})),e.AsyncIterator=U,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new U(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(g),h(g,u,"Generator"),h(g,a,(function(){return this})),h(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,x):this.complete(a)},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),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),x}},e}var h="SET_UNIT_FILTER_LOCATIONS";function f(t,e){return new Promise(function(){var n=c()(d().mark((function n(r,o){var c,f;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,c={},""!==t&&(c.location_ids=[],c.location_ids.push(t)),(f=e.state.clientWebsite.locations)&&f.length&&e.commit("unitFilter/"+h,f.map((function(t){return{id:t.id,text:t.name,name:t.name,value:t.id,city:t.address.city,state_province:t.address.state_province,street_1:t.address.street_1,street_2:t.address.street_2,postal:t.address.postal,distance:t.distance,main_image:t.main_image}}))),n.abrupt("return",r());case 8:return n.prev=8,n.t0=n.catch(0),console.log(n.t0),l.default.rollbar.error("Loaders: Error loading units",n.t0),n.abrupt("return",o(n.t0));case 13:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(t,e){return n.apply(this,arguments)}}())}function m(t,e){return new Promise(function(){var e=c()(d().mark((function e(n,r){var o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(o=t.state.clientWebsite.locations)||1!==o.length){e.next=14;break}return t.commit("clientWebsite/SET_SELECTED_LOCATION",o[0]),t.commit("clientWebsite/SET_LOCATION_FROM_ROUTE",o[0]),e.prev=6,e.next=9,l.default.$vlf.setItem("clientWebsite/selectedLocation",o[0].id);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.error("Failed to set location:",e.t0.message);case 14:return e.abrupt("return",n());case 17:return e.prev=17,e.t1=e.catch(0),console.log(e.t1),l.default.rollbar.error("Loaders: Error loading website",e.t1),e.abrupt("return",r(e.t1));case 22:case"end":return e.stop()}}),e,null,[[0,17],[6,11]])})));return function(t,n){return e.apply(this,arguments)}}())}}}]);