import{a as d,C as y,m as i,g as s,p as l,q as o,D as r,u as t,F as n,H as c}from"./convert-case-to-camel-case.utils-DDUpNI96.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"}},g={key:0,class:"ccb-summary-item__options"},w={key:0,class:"description",style:{"margin-top":"5px"}},V={key:0,class:"ccb-summary-item__options"},f={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"},B=d({__name:"SummaryItem",props:{summary:{}},setup(p){const _=p,{summary:e}=y(_);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",g,[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",w,[t(e).summaryView==="show_value"?(s(),i("div",V,[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",f,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{B as default};
//# sourceMappingURL=SummaryItem-B2K0aqR4.js.map
