1import u from"./BYp-l5mR.js";import{l as x,r as _,H as t,Z as n,U as a,V as s,ab as f,X as m,u as r,P as p,W as h,_ as c}from"./BIaCPJ4S.js";const v={key:0,class:"pt-3 flex flex-col"},g={key:0,class:"flex items-center gap-x-2 border rounded-md p-[3px] max-w-full overflow-hidden my-2"},b=["src"],y={class:"flex flex-col flex-1"},k={class:"text-sm capitalize font-[500]"},w=["href"],C={key:1,class:"flex gap-x-2"},F={class:"text-sm capitalize"},O={class:"text-sm font-[500]"},z=x({__name:"CartCustomFields",props:{customFieldData:{}},setup(D){const o=_({isOpen:!1});return(i,l)=>{const d=u;return i.customFieldData&&i.customFieldData.length>0?(a(),t("div",v,[s("button",{onClick:l[0]||(l[0]=e=>r(o).isOpen=!r(o).isOpen),class:"flex gap-x-1 items-center cursor-pointer"},[l[1]||(l[1]=s("span",{class:"text-sm font-[500] mt-[1px]"}," Additional Information",-1)),f(d,{name:"bx:chevron-down",class:m(["text-gray-500 hover:text-gray-800 text-[20px] transition-all",{"rotate-180":r(o).isOpen}])},null,8,["class"])]),r(o).isOpen?(a(!0),t(p,{key:0},h(JSON.parse(i.customFieldData),e=>(a(),t(p,null,[e.label&&e.value&&e.type=="image"?(a(),t("div",g,[s("img",{src:e.value,class:"w-[40px] h-[40px] object-fit rounded-md bg-neutral-100",alt:""},null,8,b),s("div",y,[s("span",k,c(e.label),1),s("a",{href:e.value,class:"text-sm font-[500] !text-neutral-400",style:{flex:"1","min-width":"0","word-break":"break-all","max-height":"18px",overflow:"hidden"}},c(e.value),9,w)])])):n("",!0),e.label&&e.value&&e.type&&e.type!="image"?(a(),t("div",C,[s("span",F,c(e.label)+":",1),s("span",O,c(e.value),1)])):n("",!0)],64))),256)):n("",!0)])):n("",!0)}}});export{z as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.