1!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"2.2.546"}}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:funnel-rootpage-code":!0})}catch(e){}}();try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a49aa12f-202f-41b3-988c-2cf89c564e47",e._sentryDebugIdIdentifier="sentry-dbid-a49aa12f-202f-41b3-988c-2cf89c564e47")}()}catch(e){}(self.webpackChunkrootpage=self.webpackChunkrootpage||[]).push([[35210],{10385(e,t,n){n.r(t),n.d(t,{default:()=>b});var s=n(20641),i=n(53751),a=n(90033),l={class:"page"},o={class:"wrapper"},r={class:"innerWrapper"},u={class:"step-header__subtitle"},d={id:"property_type",class:"picker twoWide"},f=["id","value","disabled","onClick"],c={key:0,class:"buttonWithError"};var p=n(15493),h=n(80600),y=n(26136);function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}const m={components:{NavigationFooter:p.A,StepHeader:h.A,ValidationErr:y.A},data:function(){return{items:[],selectedItemValues:[],show:!1,submit:!1,errorMsg:"",slideName:"PetType",isSinglePet:!1}},created:function(){this.isSinglePet=window.sessionData&&1===window.sessionData.number_of_pets,this.init(),this.getData(),console.log("Loading: PetType"),window.slideCreated()},mounted:function(){this.show=!0},computed:{petTypePrefill:function(){return this.selectedItemValues.length>0}},methods:{getData:function(){for(var e=[{name:"Cat",value:"cat"},{name:"Dog",value:"dog"},{name:"Other",value:"other"}],t=0;t<e.length;t++){var n,s,i;this.items.push({name:null===(n=e[t])||void 0===n?void 0:n.name,value:null===(s=e[t])||void 0===s?void 0:s.value,class:this.selectedItemValues.includes(null===(i=e[t])||void 0===i?void 0:i.value)?"selected":"",disabled:!1})}},updateProp:function(){if(!this.submit)if(this.selectedItemValues.length>0){this.items.forEach(function(e){e.disabled=!0}),this.show=!1,this.errorMsg="";var e={value:this.selectedItemValues};this.submit=!0,nextSlide(e)}else this.errorMsg="Please select at least one pet type"},toggleSelectedValue:function(e){if(this.isSinglePet){this.selectedItemValues=[e.value],this.items.forEach(function(t){t.class=t.value===e.value?"selected":""}),this.items.forEach(function(e){e.disabled=!0}),this.show=!1;var t={value:this.selectedItemValues};this.submit=!0,nextSlide(t)}else{var n=this.selectedItemValues.indexOf(e.value);-1===n?(this.selectedItemValues.push(e.value),e.class="selected"):(this.selectedItemValues.splice(n,1),e.class="")}},init:function(){var e=["dog","cat","other"];if(this.isSinglePet&&Array.isArray(sessionData.type_of_pet)&&sessionData.type_of_pet.length>1)sessionData.type_of_pet=[],this.selectedItemValues=[];else if(Array.isArray(sessionData.type_of_pet)&&sessionData.type_of_pet.length>0){var t=sessionData.type_of_pet.filter(function(t){return e.includes(t)});sessionData.type_of_pet=g(t),this.selectedItemValues=g(t)}else"string"==typeof sessionData.type_of_pet&&e.includes(sessionData.type_of_pet)?(sessionData.type_of_pet=[sessionData.type_of_pet],this.selectedItemValues=[sessionData.type_of_pet]):(sessionData.type_of_pet=[],this.selectedItemValues=[])},complete:function(e){e&&(sessionData.type_of_pet=e.value)},continueFn:function(){if(this.isSinglePet&&this.selectedItemValues.length>0){var e=this.selectedItemValues[0],t=this.items.find(function(t){return t.value===e});t&&this.toggleSelectedValue(t)}}}};const b=(0,n(66262).A)(m,[["render",function(e,t,n,p,h,y){var g=(0,s.g2)("StepHeader"),v=(0,s.g2)("ValidationErr"),m=(0,s.g2)("NavigationFooter");return(0,s.uX)(),(0,s.CE)("div",l,[(0,s.Lk)("div",o,[(0,s.bF)(i.eB,{name:"slide-fade",persisted:""},{default:(0,s.k6)(function(){return[(0,s.bo)((0,s.Lk)("div",r,[(0,s.bF)(g,{text:e.isSinglePet?"What kind of pet do you have?":"What kind of pets do you have?"},{subtitle:(0,s.k6)(function(){return[(0,s.Lk)("span",u,(0,a.v_)(e.isSinglePet?"Select one":"Select all that apply"),1)]}),_:1},8,["text"]),(0,s.Lk)("ul",d,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.items,function(t){return(0,s.uX)(),(0,s.CE)("li",{id:"property_type_"+t.value.toLowerCase().replace(/\s/g,"_"),key:t.value,value:t.value,class:(0,a.C4)(t.class),disabled:t.disabled||null,onClick:function(n){return e.toggleSelectedValue(t)}},(0,a.v_)(t.name),11,f)}),128))]),t[0]||(t[0]=(0,s.Lk)("br",null,null,-1)),e.isSinglePet?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",c,[(0,s.bF)(v,{"error-msg":e.errorMsg},null,8,["error-msg"]),(0,s.bF)(m,{"continue-fn":e.updateProp,"continue-disabled":!e.petTypePrefill||e.submit},null,8,["continue-fn","continue-disabled"])])),e.isSinglePet?((0,s.uX)(),(0,s.Wv)(m,{key:1,"continue-fn":e.continueFn,"continue-disabled":!e.petTypePrefill||e.submit},null,8,["continue-fn","continue-disabled"])):(0,s.Q3)("v-if",!0)],512),[[i.aG,e.show]])]}),_:1})])])}]])}}]); 2//# sourceMappingURL=PetType.abcbc3b8221f3aa51d54.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.