/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[103,332],{1199:function(t,e,n){"use strict";n.r(e);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(22),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);function h(){h=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 m(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(t){m=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof L?e:L,a=Object.create(i.prototype),o=new F(r||[]);return c(a,"_invoke",{value:T(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=d;var y="suspendedStart",w="suspendedYield",v="executing",s="completed",_={};function L(){}function x(){}function E(){}var p={};m(p,a,(function(){return this}));var C=Object.getPrototypeOf,j=C&&C(C(I([])));j&&j!==n&&o.call(j,a)&&(p=j);var g=E.prototype=L.prototype=Object.create(p);function A(t){["next","throw","return"].forEach((function(e){m(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(c,l,i,a){var h=f(t[c],t,l);if("throw"!==h.type){var u=h.arg,m=u.value;return m&&"object"==Object(r.a)(m)&&o.call(m,"__await")?e.resolve(m.__await).then((function(t){n("next",t,i,a)}),(function(t){n("throw",t,i,a)})):e.resolve(m).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,a)}))}a(h.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 T(e,n,r){var o=y;return function(i,a){if(o===v)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=R(c,r);if(u){if(u===_)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=s,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var p=f(e,n,r);if("normal"===p.type){if(o=r.done?s:w,p.arg===_)continue;return{value:p.arg,done:r.done}}"throw"===p.type&&(o=s,r.method="throw",r.arg=p.arg)}}}function R(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,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;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,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function I(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 x.prototype=E,c(g,"constructor",{value:E,configurable:!0}),c(E,"constructor",{value:x,configurable:!0}),x.displayName=m(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,m(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},A(O.prototype),m(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(d(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(g),m(g,u,"Generator"),m(g,a,(function(){return this})),m(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=I,F.prototype={constructor:F,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(S),!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,_):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),_},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),S(n),_}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},e}var m,d={name:"ClaimAccountChameleon",components:{ClaimAndCreateLizard:n(1708).a},props:{headingText:{type:String,default:"Claim and create account"},subheadingText:{type:String,default:""},loginLink:{type:String,default:"/customer-portal/login"},loginText:{type:String,default:"Login"},loginQuestion:{type:String,default:"Do you have an account?"},cardForm:{type:Boolean,default:!1}},data:function(){return{isLoading:!1,claimError:null}},computed:Object.assign({},Object(l.c)({clientName:"clientWebsite/getClientName"}),{accountInfoText:function(){return this.clientName?"If you are a current tenant of "+this.clientName+", you can easily make an online account below.":"If you are a current tenant, you can easily make an online account below."}}),beforeDestroy:function(){this.isLoading=!1},methods:Object.assign({},Object(l.b)({claimAccountWithPhoneNumber:"clientWebsite/claimAccountWithPhoneNumber",claimAccountWithAccessCode:"clientWebsite/claimAccountWithAccessCode",login:"clientWebsite/login"}),{toggleLoading:function(){this.isFormLoading=!this.isFormLoading},onCreateAccount:(m=c()(h().mark((function t(e){var form,n,r,o,c,l,m;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(form=e.form,n=e.isPhone,this.isLoading=!0,t.prev=2,r=null,!n){t.next=10;break}return t.next=7,this.claimAccountWithPhoneNumber(form);case 7:r=t.sent,t.next=13;break;case 10:return t.next=12,this.claimAccountWithAccessCode(form);case 12:r=t.sent;case 13:if(this.toastSuccess(r.message+" Please wait as we log you in."),!r){t.next=18;break}return o=r.tenant.info.tenant_id,t.next=18,this.loginClaimedAccount(form,o);case 18:c={category:"Contact",action:"Claim Account"},this.addNewEvent(c,!0,!0,!1,!1),this.claimError=null,t.next=28;break;case 23:t.prev=23,t.t0=t.catch(2),this.isLoading=!1,l={category:"Contact",action:"Claim Account Unsuccessful",label:""},t.t0.response?((m=t.t0.response.data).message?(this.toastError(m.message),this.claimError=m.message,l.label=m.message):(this.toastError("Error claiming account."),this.claimError="Error claiming account",l.label="Error claiming account"),this.addNewEvent(l,!0,!0,!1,!1)):"string"==typeof t.t0?(this.toastError(t.t0),this.claimError=t.t0,l.label=t.t0):t.t0&&t.t0.RT&&t.t0.RT.Ret_Msg?(this.toastError(t.t0.RT.Ret_Msg),this.claimError=t.t0.RT.Ret_Msg,l.label=t.t0.RT.Ret_Msg):(this.toastError("Error claiming account."),this.claimError="Error claiming account",l.label="Error claiming account");case 28:case"end":return t.stop()}}),t,this,[[2,23]])}))),function(t){return m.apply(this,arguments)}),loginClaimedAccount:function(form,t){var e=this;return new Promise(function(){var n=c()(h().mark((function n(r,o){var c;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.login({username:form.email,pw:form.password,login_only:!1,tenant_id:t});case 3:return c=n.sent,e.$router?e.$router.push("/customer-portal"):e.toastSuccess("This is dev. You would be redirected after logging in."),e.isLoading=!1,e.claimError=null,n.abrupt("return",r(c));case 10:return n.prev=10,n.t0=n.catch(0),console.error("Error logging in claimed account",n.t0),e.toastError("Error logging in."),e.isLoading=!1,e.claimError=n.t0,n.abrupt("return",o(n.t0));case 17:case"end":return n.stop()}}),n,null,[[0,10]])})));return function(t,e){return n.apply(this,arguments)}}())}})},f=d,y=n(23),component=Object(y.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"py-5"},[e("div",{staticClass:"container h-100"},[e("div",{staticClass:"row justify-content-center mb-3"},[e("div",{staticClass:"col-12 col-sm-10 col-md-8 col-lg-6 text-center"},[e("h1",[t._v(t._s(t.headingText))]),t.subheadingText?e("h5",{staticClass:"font-weight-light"},[t._v(t._s(t.subheadingText))]):t._e()])]),e("client-only",[e("div",{staticClass:"row justify-content-center mb-5"},[e("div",{staticClass:"col-12 col-sm-10 col-md-8 col-lg-6"},[t.cardForm?e("b-card",{staticClass:"border-0 shadow"},[e("ClaimAndCreateLizard",{attrs:{"account-info-text":t.accountInfoText,"is-loading":t.isLoading,error:t.claimError},on:{saved:t.onCreateAccount}})],1):[e("ClaimAndCreateLizard",{attrs:{"account-info-text":t.accountInfoText,"is-loading":t.isLoading,error:t.claimError},on:{saved:t.onCreateAccount}})]],2)])]),e("div",{staticClass:"row justify-content-center"},[e("b-link",{staticClass:"col-12 col-sm-10 col-md-8 col-lg-6 text-center",attrs:{to:t.loginLink}},[e("p",{staticClass:"text-muted font-weight-bold"},[t._v(t._s(t.loginQuestion))]),e("div",{staticClass:"text-default font-weight-bold",attrs:{to:t.loginLink}},[t._v(t._s(t.loginText))])])],1)],1)])}),[],!1,null,"11046106",null);e.default=component.exports},1500:function(t,e,n){"use strict";n(14),n(16),n(19),n(53),n(33),n(15),n(9),n(11),n(203),n(35),n(64),n(34),n(12),n(73),n(13),n(96),n(42),n(108),n(41),n(87);var r=n(117),o=n.n(r),c=n(205),l=n.n(c),h=n(18),m=n(32);function d(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}e.a={data:function(){return{meta:"",title:"",subSeoKeywordsArray:["{{unit_width_length}}","{{unit_type}}","{{location_name}}","{{location_phone_number}}","{{location_email}}","{{location_address}}","{{location_city}}","{{location_state}}","{{location_zip}}","{{account_tagline}}","{{account_name}}","{{page_name}}"],subKeywordsArray:["<unit_width_length>","<unit_type>","<location_name>","<location_phone_number>","<location_email>","<location_address>","<location_city>","<location_state>","<location_zip>","<account_tagline>","<account_name>","<page_name>"],subKeywordsObject:{}}},computed:Object.assign({},Object(h.c)({account:"clientWebsite/account",website:"clientWebsite/getWebsite",selectedLocation:"clientWebsite/getSelectedLocation",locationFromRoute:"clientWebsite/getLocationFromRoute",selectedUnit:"clientWebsite/getSelectedUnit",metadata:"jsonLd/getMetadata"}),{pageTitle:function(){var t=this.$route.path,path=l()(this.$route.path.split("/").pop()),e=this.metadata?this.metadata.title:"";t.includes("view-unit")&&(path="Storage Unit "+path+" Details");var title=this.account&&this.account.name?this.account.name:"";return e&&(title=e),title},metaImage:function(){return this.locationFromRoute&&!o()(this.locationFromRoute.main_image)?{src:this.locationFromRoute.main_image.src,alt:this.locationFromRoute.main_image.alt,width:this.locationFromRoute.main_image.width,height:this.locationFromRoute.main_image.height,mime_type:"image/"+this.locationFromRoute.main_image.file_type.split(".")[1]}:this.selectedLocation&&!o()(this.selectedLocation.main_image)?{src:this.selectedLocation.main_image.src,alt:this.selectedLocation.main_image.alt,width:this.selectedLocation.main_image.width,height:this.selectedLocation.main_image.height,mime_type:"image/"+this.selectedLocation.main_image.file_type.split(".")[1]}:this.account&&this.account.main_image&&!o()(this.account.main_image)?{src:this.account.main_image.src,alt:this.account.main_image.alt,width:this.account.main_image.width,height:this.account.main_image.height,mime_type:"image/"+this.account.main_image.file_type.split(".")[1]}:{src:this.website.logo&&this.website.logo.src?this.website.logo.src:null,alt:this.website.logo&&this.website.logo.alt?this.website.logo.alt:null,width:this.website.logo&&this.website.logo.width?this.website.logo.width:null,height:this.website.logo&&this.website.logo.height?this.website.logo.height:null,mime_type:this.website.logo&&this.website.logo.file_type?"image/"+this.website.logo.file_type.split(".")[1]:null}}}),head:function(){return this.setReplaceData(),{title:this.title?this.title:this.pageTitle,meta:[{hid:"page-og-title",name:"og:title",content:this.title?this.title:this.pageTitle},{hid:"page-og-type",name:"og:type",content:"website"},{hid:"page-twitter-title",name:"twitter:title",content:this.title?this.title:this.pageTitle},{hid:"page-og-site-name",name:"og:site_name",content:this.website&&this.website.website_name?this.website.website_name:""},{hid:"page-og-url",name:"og:url",content:m.a.websiteUrl+this.$route.path},{hid:"page-description",name:"description",content:this.meta?this.meta:this.metadata&&this.metadata.description?this.metadata.description:this.title},{hid:"page-og-description",name:"og:description",content:this.meta?this.meta:this.metadata&&this.metadata.description?this.metadata.description:this.title},{hid:"page-twitter-description",name:"twitter:description",content:this.meta?this.meta:this.metadata&&this.metadata.description?this.metadata.description:this.title},{hid:"page-og-image",name:"og:image",content:this.metaImage.src},{hid:"page-twitter-image",name:"twitter:image",content:this.metaImage.src},{hid:"page-og-image-secure-url",name:"og:image:secure_url",content:this.metaImage.src},{hid:"page-og-image-mime-type",name:"og:image:type",content:this.metaImage.mime_type},{hid:"page-og-image-width",name:"og:image:width",content:this.metaImage.width},{hid:"page-og-image-height",name:"og:image:height",content:this.metaImage.height},{hid:"page-og-image-alt",name:"og:image:alt",content:this.metaImage.alt},{hid:"page-twitter-image-alt",name:"twitter:image:alt",content:this.metaImage.alt}],link:[{rel:"canonical",href:m.a.websiteUrl+this.$route.path.replace(/\/$/,"")}]}},methods:{setReplaceData:function(){var t=this.selectedLocation;this.locationFromRoute&&(t=this.locationFromRoute),this.subKeywordsObject={"<unit_width_length>":this.selectedUnit&&this.selectedUnit.width_length?this.selectedUnit.width_length:this.$route.params&&this.$route.params.unit_length&&this.$route.params.unit_width?this.$route.params.unit_width+" x "+this.$route.params.unit_length:"","<unit_type>":this.selectedUnit&&this.selectedUnit.type&&this.selectedUnit.type.name?this.selectedUnit.type.name:"","<location_name>":t&&t.name?t.name:"","<location_phone_number>":t&&t.phone_number?t.phone_number:"","<location_email>":t&&t.email?t.email:"","<location_address>":t&&t.address?t.address.street_1+" "+t.address.city+", "+t.address.state_province+" "+t.address.postal:"","<location_city>":t&&t.address&&t.address.city?t.address.city:"","<location_state>":t&&t.address&&t.address.state_province?t.address.state_province:"","<location_zip>":t&&t.address&&t.address.postal?t.address.postal:"","<account_tagline>":this.account&&this.account.tagline?this.account.tagline:"","<account_name>":this.account&&this.account.name?this.account.name:"","<page_name>":this.metadata&&this.metadata.name?this.metadata.name:""},this.setMeta(),this.setTitle()},setMeta:function(){var t=this;if(this.$route&&this.$route.path&&this.$route.path.includes("view-unit")){for(var e,text=this.website.unit_page_meta?this.website.unit_page_meta:"Rent a <unit_width_length> <unit_type> online today at <location_name>! We are located at <location_address>.",n=function(){var n=e.value,r=new RegExp(n,"gi");text=text.replace(r,(function(e){return t.subKeywordsObject[n]}))},r=d(this.subKeywordsArray);!(e=r()).done;)n();this.meta=text}else{text=this.metadata&&this.metadata.description?this.metadata.description:"Rent your storage unit online with our state of the art storage facility! Our storage units near <location_city> offer modern amenities such as privacy and climate control.";for(var o,c=function(){var e=o.value,n=new RegExp(e,"gi");text=text.replace(n,(function(n){return t.subKeywordsObject[e]}))},l=d(this.subKeywordsArray);!(o=l()).done;)c();this.meta=text}},setTitle:function(){var t=this;if(this.$route&&this.$route.path&&this.$route.path.includes("view-unit")){for(var e,text=this.website.unit_page_title?this.website.unit_page_title:"<unit_width_length> <unit_type> at <location_name>",n=function(){var n=e.value,r=new RegExp(n,"gi");text=text.replace(r,(function(e){return t.subKeywordsObject[n]}))},r=d(this.subKeywordsArray);!(e=r()).done;)n();this.title=text}else{for(var o,path=l()(this.$route.path.split("/").pop()),c=(text=this.metadata&&this.metadata.title?this.metadata.title:path+" | <account_name>",function(){var e=o.value,n=new RegExp(e,"gi");text=text.replace(n,(function(n){return t.subKeywordsObject[e]}))}),h=d(this.subKeywordsArray);!(o=h()).done;)c();this.title=text}}}}},1708:function(t,e,n){"use strict";var r=n(1197);n.d(e,"a",(function(){return r.default}))},1771:function(t,e,n){"use strict";var r=n(1199);n.d(e,"a",(function(){return r.default}))},2597:function(t,e,n){"use strict";n.r(e);n(9),n(41);var r=n(18),o=n(80),c=n(1771),l=n(1500),h=n(467),m=n(208),d={middleware:"load-data",layout:"customer-portal",mixins:[h.a,m.a,l.a],components:{ClaimAccountChameleon:c.a,LazyHydrate:o.a},methods:Object.assign({},Object(r.b)({updateBreadcrumbs:"clientWebsite/updateBreadcrumbs",setMetaData:"jsonLd/setMetadata"})),computed:Object.assign({},Object(r.c)({account:"clientWebsite/account"})),created:function(){this.setMetaData({title:"Claim Account | "+this.account.name,description:"Claim your "+this.account.name+" account to start paying online and more!"}),this.clearAllJson()},mounted:function(){this.updateBreadcrumbs([])}},f=n(23),component=Object(f.a)(d,(function(){return(0,this._self._c)("ClaimAccountChameleon")}),[],!1,null,null,null);e.default=component.exports}}]);