(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[307],{"/CSp":function(e,t,i){"use strict";i.r(t);var l=i("JPst"),s=i.n(l)()(!1);s.push([e.i,".tb-w-dynamic-field-set[data-v-4a802a90]:not(:last-of-type){\n  border-bottom:1px solid #DEE1E8;\n  margin-bottom:1rem;\n  padding-bottom:1rem\n}",""]),t.default=s},"Y/sv":function(e,t,i){"use strict";i("f7T6")},bfBJ:function(e,t,i){"use strict";i.r(t);var l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.fieldSetHasContent?i("div",{staticClass:"dynamic-field-set-preview"},e._l(e.fieldValuesGroupedByReplication,(function(t,l){return i("div",{key:l,staticClass:"my-4"},e._l(e.blueprintsWithUserFacingValues(t),(function(l,s){return i("div",{key:s,class:e.isGeneral?"tb-w-dynamic-field-set-general-group":"tb-w-dynamic-field-set"},[i("tb-w-dynamic-field-preview",{attrs:{blueprint:l,value:t[l.id],"is-general":e.isGeneral}})],1)})),0)})),0):i("div")};l._withStripped=!0;var s=i("WIWJ"),n=i("YFxB"),d=i("q24H"),o={components:{TbWDynamicFieldPreview:s.default},props:{fieldSet:{type:Object,required:!0},fieldValues:{type:Object,required:!0},isGeneral:{type:Boolean,default:!1},showHiddenFields:{type:Boolean,default:!1}},data:()=>({excludedFieldIds:[d.b.SMART_MOBILITY_MAP]}),computed:{fieldSetHasContent(){for(const e of this.fieldSet.fields)if("help_text"!==e.type&&this.fieldValues[e.id]instanceof Array&&this.fieldValues[e.id].length&&this.fieldValues[e.id].some(t=>{var i,l;return(null===(i=t.value)||void 0===i?void 0:i.text)||Object(n.e)(e,t)||(null===(l=t.selected)||void 0===l?void 0:l.length)}))return!0;return!1},fieldValuesGroupedByReplication(){if(!this.fieldSet.replicatable){const e={};for(const t of Object.keys(this.fieldValues))e[t]=this.fieldValues[t][0];return[e]}let e=0;for(const t of this.fieldSet.fields)e=Math.max(e,(this.fieldValues[t.id]||[]).length);const t=[];for(let i=0;i<e;i++){t[i]={};for(const e of this.fieldSet.fields){const l=this.fieldValues[e.id]||[];t[i][e.id]=l[i]||null}}return t}},methods:{blueprintsWithUserFacingValues(e){const t=[];for(const s of this.fieldSet.fields){var i,l;if("help_text"===s.type||!e[s.id])continue;if(!this.showHiddenFields&&s.hidden)continue;if(this.excludedFieldIds.includes(s.id))continue;const d=e[s.id];(null!==(i=d.value)&&void 0!==i&&i.text||Object(n.e)(s,d)||null!==(l=d.selected)&&void 0!==l&&l.length)&&t.push(s)}return t}}},a=(i("Y/sv"),i("KHd+")),r=Object(a.a)(o,l,[],!1,null,"4a802a90",null);t.default=r.exports},f7T6:function(e,t,i){var l=i("LboF"),s=i("/CSp");"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[e.i,s,""]]);var n={insert:"head",singleton:!1};l(s,n);e.exports=s.locals||{}}}]);