(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[184],{"G3r+":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-w-section",{attrs:{background:""},scopedSlots:e._u([{key:"content",fn:function(){return[i("tb-w-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-w-dynamic-field-set-preview",{key:t.id,attrs:{"field-set":t,"field-values":e.fieldValues}})}))},proxy:!0}}))],null,!0)})]},proxy:!0}],null,!1,2744171320)}):i("div")};n._withStripped=!0;var d=i("YFxB"),l={name:"TbWDetailHighlightFieldGroups",props:{category:{type:Object,required:!0},fieldGroups:{type:Array,required:!0},fieldValues:{type:Object,required:!0}},computed:{highlightFieldGroups(){return this.category.fieldGroupTypesWithParents?Object(d.e)(this.category.fieldGroupTypesWithParents.highlight,this.fieldGroups,this.fieldValues):[]}}},r=i("KHd+"),s=Object(r.a)(l,n,[],!1,null,"7d678c01",null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-detail-highlight-field-groups.vue";t.default=s.exports},"KHd+":function(e,t,i){"use strict";function n(e,t,i,n,d,l,r,s){var o,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=i,f._compiled=!0),n&&(f.functional=!0),l&&(f._scopeId="data-v-"+l),r?(o=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__),d&&d.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},f._ssrRegister=o):d&&(o=s?function(){d.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:d),o)if(f.functional){f._injectStyles=o;var u=f.render;f.render=function(e,t){return o.call(t),u(e,t)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,o):[o]}return{exports:e,options:f}}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 d(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;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){if(t.type===n)continue;if(t.hidden)continue;const e=i[t.id];if(e&&e instanceof Array&&e.length)return e.some(e=>l(e,t))}return!1})}function l(e,t){return["check","radio","select"].includes(t.type)?e.selected.length>0:!!["input","textarea","faq"].includes(t.type)&&""!==e.value.text}function r(e,t,i){let n={};return e.forEach(e=>{e.fieldSets.forEach(d=>{d.fields.forEach(r=>{(t[r.id]||[]).forEach(t=>{r.type===i&&t&&l(t,r)&&(n[e.id]=n[e.id]||{title:e.name,fieldSets:{}},n[e.id].fieldSets[d.id]=n[e.id].fieldSets[d.id]||{title:d.name,fields:{}},n[e.id].fieldSets[d.id].fields[r.id]=n[e.id].fieldSets[d.id].fields[r.id]||{blueprint:r,fieldValues:[]},n[e.id].fieldSets[d.id].fields[r.id].fieldValues.push(t))})})})}),n}function s(e,t,i){let n={};return e.forEach(e=>{n[e.id]=n[e.id]||{title:e.name,fieldSets:{}},e.fieldSets.forEach(d=>{n[e.id].fieldSets[d.id]=n[e.id].fieldSets[d.id]||{title:d.name,fields:{}},d.fields.forEach(r=>{n[e.id].fieldSets[d.id].fields[r.id]=n[e.id].fieldSets[d.id].fields[r.id]||{blueprint:r,fieldValues:[]},(t[r.id]||[]).forEach((t,s)=>{const o=r.tags.some(e=>i.includes(e))&&t&&l(t,r);n[e.id].fieldSets[d.id].fields[r.id].fieldValues[s]=o?t:null})})})}),Object.keys(n).forEach(e=>{Object.keys(n[e].fieldSets).forEach(t=>{Object.keys(n[e].fieldSets[t].fields).forEach(i=>{!1===n[e].fieldSets[t].fields[i].fieldValues.some(e=>e)&&delete n[e].fieldSets[t].fields[i]}),0===Object.keys(n[e].fieldSets[t].fields).length&&delete n[e].fieldSets[t]}),0===Object.keys(n[e].fieldSets).length&&delete n[e]}),n}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0;const d=/(%s)+/;return t.match(d)?""===e?"":("m"===i?e=n(e):i&&(e=`${e} ${i}`),t.replace(d,e)):t}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0;if(""===e)return"";"m"===i?e=n(e):i&&(e=`${e} ${i}`);const d=/(%s)+/;return t.match(d)?t.replace(d,e):e}i.d(t,"e",(function(){return d})),i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return o})),i.d(t,"d",(function(){return f}))}}]);