(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{1587:function(t,e,n){"use strict";n(14),n(17),n(20),n(53),n(33),n(16),n(9),n(11),n(204),n(35),n(64),n(34),n(12),n(73),n(13),n(96),n(42),n(108),n(41),n(87);var o=n(117),r=n.n(o),c=n(205),l=n.n(c),h=n(19),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 _(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)?_(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}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 _(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&&!r()(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&&!r()(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&&!r()(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,o=new RegExp(n,"gi");text=text.replace(o,(function(e){return t.subKeywordsObject[n]}))},o=d(this.subKeywordsArray);!(e=o()).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 r,c=function(){var e=r.value,n=new RegExp(e,"gi");text=text.replace(n,(function(n){return t.subKeywordsObject[e]}))},l=d(this.subKeywordsArray);!(r=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,o=new RegExp(n,"gi");text=text.replace(o,(function(e){return t.subKeywordsObject[n]}))},o=d(this.subKeywordsArray);!(e=o()).done;)n();this.title=text}else{for(var r,path=l()(this.$route.path.split("/").pop()),c=(text=this.metadata&&this.metadata.title?this.metadata.title:path+" | <account_name>",function(){var e=r.value,n=new RegExp(e,"gi");text=text.replace(n,(function(n){return t.subKeywordsObject[e]}))}),h=d(this.subKeywordsArray);!(r=h()).done;)c();this.title=text}}}}},2572:function(t,e,n){"use strict";n.r(e);n(9),n(41);var o=n(19),r=n(80),c=n(1587),l=n(1320),h=n(468),m=n(207),d={middleware:"load-data",layout:"customer-portal",components:{LoginPage:l.default,LazyHydrate:r.a},mixins:[h.a,m.a,c.a],data:function(){return{claimAccountUrl:"/customer-portal/claim-account",forgotPasswordTitle:"Forgot your password?",forgotPasswordUrl:"/customer-portal/forgot-password",submitBtnVariant:"default"}},methods:Object.assign({},Object(o.b)({updateBreadcrumbs:"clientWebsite/updateBreadcrumbs",setMetaData:"jsonLd/setMetadata"})),computed:Object.assign({},Object(o.c)({account:"clientWebsite/account"})),created:function(){this.setMetaData({title:"Login | "+this.account.name,description:"Login to the "+this.account.name+" customer portal to pay your bill, manage your account, and more."}),this.clearAllJson()},mounted:function(){this.updateBreadcrumbs([])}},_=n(23),component=Object(_.a)(d,(function(){var t=this;return(0,t._self._c)("LoginPage",{attrs:{claimAccountUrl:t.claimAccountUrl,forgotPasswordTitle:t.forgotPasswordTitle,forgotPasswordUrl:t.forgotPasswordUrl,submitBtnVariant:t.submitBtnVariant}})}),[],!1,null,null,null);e.default=component.exports}}]);