import{d as _,f as i,i as s,x as l,t as o,F as n,r as c}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as y,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as r}from"./vendor-vue-shared-DrzsEcag.js";const h={class:"ccb-summary-item"},k={class:"ccb-summary-item__title"},x={class:"ccb-summary-title"},v={class:"description",style:{"margin-top":"5px"}},w={key:0,class:"ccb-summary-item__options"},f={key:0,class:"description",style:{"margin-top":"5px"}},g={key:0,class:"ccb-summary-item__options"},V={key:0,class:"description",style:{"margin-top":"5px"}},b={class:"description",style:{"margin-top":"5px"}},D={key:0,class:"ccb-summary-item__values"},O={key:1,class:"ccb-summary-item__value"},F=_({__name:"SummaryItem",props:{summary:{}},setup(p){const d=p,{summary:e}=y(d);return(A,N)=>{var m,u;return s(),i("div",h,[l("div",k,[l("div",x,r(t(e).label),1),["checkbox","toggle","checkbox_with_img"].includes(t(e).fieldName)?(s(),i(n,{key:0},["selectedOption"in t(e)&&Array.isArray(t(e).selectedOption)?(s(!0),i(n,{key:0},c(t(e).selectedOption||[],a=>(s(),i("div",v,[t(e).summaryView==="show_value"?(s(),i("div",w,[l("span",null,r(a==null?void 0:a.optionText),1),l("span",null,r(a==null?void 0:a.optionConverted),1)])):o("",!0)]))),256)):o("",!0)],64)):o("",!0),["dropDown","dropDown_with_img","radio","radio_with_img"].includes(t(e).fieldName)?(s(),i(n,{key:1},["selectedOption"in t(e)&&t(e).selectedOption&&"optionText"in t(e).selectedOption?(s(),i("div",f,[t(e).summaryView==="show_value"?(s(),i("div",g,[l("span",null,r((u=(m=t(e))==null?void 0:m.selectedOption)==null?void 0:u.optionText),1)])):o("",!0)])):o("",!0)],64)):["file_upload","range","multi_range","quantity"].includes(t(e).fieldName)?(s(),i(n,{key:2},["extraDisplayView"in t(e)&&t(e).extraDisplayView?(s(),i("div",V,r(t(e).extraDisplayView),1)):o("",!0)],64)):["datePicker","geolocation"].includes(t(e).fieldName)?(s(),i(n,{key:3},["extraDisplayView"in t(e)&&Array.isArray(t(e).extraDisplayView)?(s(!0),i(n,{key:0},c(t(e).extraDisplayView,a=>(s(),i("div",b,r(a),1))),256)):o("",!0)],64)):o("",!0)]),Array.isArray(t(e).displayValue)?(s(),i("div",D,[l("ul",null,[(s(!0),i(n,null,c(t(e).displayValue,a=>(s(),i("li",{key:a},r(a),1))),128))])])):(s(),i("div",O,r(t(e).displayValue),1))])}}});export{F as default};
//# sourceMappingURL=SummaryItem-NDv5_pDT.js.map
