(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[74],{"KHd+":function(e,t,i){"use strict";function n(e,t,i,n,r,o,s,u){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=u?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var a=l.beforeCreate;l.beforeCreate=a?[].concat(a,d):[d]}return{exports:e,options:l}}i.d(t,"a",(function(){return n}))},YFxB:function(e,t,i){"use strict";function n(e){return(e=parseInt(e,10))<1e3?e+" m":e<1e4?Math.round(e/100)/10+" km":Math.round(e/1e3)+" km"}function r(e,t,i){return 0===(e=e||[]).length?[]:t.filter(t=>{if(!1===e.includes(t.id))return!1;for(const e of t.fieldSets)for(const t of e.fields){const e=i[t.id];if(e&&e[0]){if(["check","radio","select"].includes(t.type)&&e[0].humanReadableValue.selected.length>0)return!0;if(["input","textarea"].includes(t.type)&&""!==e[0].humanReadableValue.text)return!0}}return!1})}function o(e,t,i){let n={};return e.forEach(e=>{e.fieldSets.forEach(r=>{r.fields.forEach(o=>{o.type===i&&t[o.id]&&(n[e.id]=n[e.id]||{title:e.name,fieldSets:{}},n[e.id].fieldSets[r.id]=n[e.id].fieldSets[r.id]||{title:r.name,fields:{}},n[e.id].fieldSets[r.id].fields[o.id]={blueprint:o,fieldValues:t[o.id]})})})}),n}function s(e,t="",i){const r=/(%s)+/;return t.match(r)?""===e?"":("m"===i?e=n(e):i&&(e=`${e} ${i}`),t.replace(r,e)):t}function u(e,t="",i){if(""===e)return"";"m"===i?e=n(e):i&&(e=`${e} ${i}`);const r=/(%s)+/;return t.match(r)?t.replace(r,e):e}i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return u}))},jG4U:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.highlightFieldGroups.length>0?i("tb-section",{attrs:{background:""},scopedSlots:e._u([{key:"content",fn:function(){return[i("tb-feature-highlight-group",{attrs:{"field-groups":e.highlightFieldGroups},scopedSlots:e._u([e._l(e.highlightFieldGroups,(function(t){return{key:t.id,fn:function(){return e._l(t.fieldSets,(function(t){return i("tb-dynamic-field-set-preview",{key:t.id,attrs:{"field-set":t,"field-values":e.fieldValues}})}))},proxy:!0}}))],null,!0)})]},proxy:!0}],null,!1,2336825208)}):e._e()};n._withStripped=!0;var r=i("YFxB"),o={name:"TbDetailHighlightGroups",props:{category:{type:Object,required:!0},fieldGroups:{type:Array,required:!0},fieldValues:{type:Object,required:!0}},computed:{highlightFieldGroups(){return this.category.fieldGroupTypesWithParents?Object(r.d)(this.category.fieldGroupTypesWithParents.highlight,this.fieldGroups,this.fieldValues):[]}}},s=i("KHd+"),u=Object(s.a)(o,n,[],!1,null,"3959f6d2",null);u.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-detail-highlight-field-groups.vue";t.default=u.exports}}]);