@uniformdev/mesh-sdk-react 16.0.1-alpha.221 → 16.0.1-nuxt.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDescriptor;var kr=Object.getOwnPropertyNames;var xr=Object.getPrototypeOf,Lr=Object.prototype.hasOwnProperty;var Nt=(t,n)=>{for(var o in n)Se(t,o,{get:n[o],enumerable:!0})},ye=(t,n,o,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of kr(n))!Lr.call(t,a)&&a!==o&&Se(t,a,{get:()=>n[a],enumerable:!(r=Rr(n,a))||r.enumerable});return t},U=(t,n,o)=>(ye(t,n,"default"),o&&ye(o,n,"default")),W=(t,n,o)=>(o=t!=null?Pr(xr(t)):{},ye(n||!t||!t.__esModule?Se(o,"default",{value:t,enumerable:!0}):o,t)),Mr=t=>ye(Se({},"__esModule",{value:!0}),t);var z={};Nt(z,{Button:()=>p.Button,Callout:()=>p.Callout,DefaultSearchRow:()=>pt,DefaultSelectedItem:()=>nt,EntrySearch:()=>Pt,Heading:()=>p.Heading,Icons:()=>Le,Input:()=>p.Input,InputSelect:()=>p.InputSelect,InputToggle:()=>p.InputToggle,KeywordSearchInput:()=>p.InputKeywordSearch,Label:()=>p.Label,LoadingIndicator:()=>p.LoadingIndicator,LoadingOverlay:()=>p.LoadingOverlay,Menu:()=>p.Menu,MenuItem:()=>p.MenuItem,ProductPreviewList:()=>We,ProductQuery:()=>zr,ProductQueryContext:()=>Ne,ProductSearch:()=>Jr,ProductSearchContext:()=>At,ProductSearchRow:()=>It,ProductSelectedItem:()=>Ut,ResolvableLoadingValue:()=>Ke,ScrollableList:()=>p.ScrollableList,ScrollableListItem:()=>p.ScrollableListItem,SelectionField:()=>Qe,Switch:()=>p.Switch,Textarea:()=>p.Textarea,Theme:()=>p.Theme,UniformMeshLocationContext:()=>Ae,UniformMeshLocationContextProvider:()=>Be,UniformMeshSdkContext:()=>He,UniformMeshSdkContextProvider:()=>Tr,badgeIcon:()=>Ie,draggableContainer:()=>St,draggableIcon:()=>Te,draggableIconOffset:()=>Ct,draggableIconWrapper:()=>wt,entrySearchBtn:()=>mt,entrySearchConfig:()=>ft,entrySearchConfigHidden:()=>vt,entrySearchLoadMoreBtn:()=>gt,entrySearchResultList:()=>ht,entrySearchSelectIcon:()=>bt,entrySearchSelectImg:()=>yt,entrySearchSelectInput:()=>Wr,entrySearchSelectOption:()=>Zr,entrySearchWrapper:()=>ut,productSearchRowActiveIcon:()=>Et,productSearchRowCategory:()=>Mt,productSearchRowContainer:()=>Rt,productSearchRowContent:()=>kt,productSearchRowContentActive:()=>xt,productSearchRowDetails:()=>Vt,productSearchRowTitle:()=>Lt,productSelectedItemContainer:()=>Dt,productSelectedItemContent:()=>zt,productSelectedItemDetails:()=>Gt,productSelectedItemImage:()=>De,searchRowBtn:()=>dt,searchRowContainer:()=>at,searchRowContainerActive:()=>st,searchRowContainerWithPopover:()=>it,searchRowPopover:()=>ct,searchRowText:()=>Ee,searchRowTextSmall:()=>Ve,selectItemLinkBtn:()=>Me,selectItemLinkContainer:()=>ot,selectItemPopover:()=>rt,selectItemPopoverLabel:()=>ge,selectItemSmallText:()=>q,selectedItemCloseIcon:()=>tt,selectedItemContainer:()=>qe,selectedItemCopy:()=>Ye,selectedItemDetails:()=>Xe,selectedItemIcon:()=>et,selectedItemInner:()=>Je,selectedItemTitle:()=>je,useInitializeUniformMeshSdk:()=>Er,useProductQueryContext:()=>_e,useProductSearchContext:()=>fe,useUniformMeshLocation:()=>Vr,useUniformMeshLocationContext:()=>Oe,useUniformMeshSdk:()=>Ir,useUniformMeshSdkContext:()=>Fe});module.exports=Mr(z);var e=require("@emotion/react"),I=W(require("react"));var ae=require("react"),Ae=(0,ae.createContext)(void 0),Be=({children:t})=>{let[n,o]=(0,ae.useState)(),r;if(typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"){let a=n||window.UniformMeshSDK.getCurrentLocation();r={location:{getValue:a.getValue,getMetadata:a.getMetadata,setValue:async(d,m)=>{await a.setValue(d,m),o(window.UniformMeshSDK.getCurrentLocation())},setValidationResult:async d=>{await a.setValidationResult(d)}}}}return(0,e.jsx)(Ae.Provider,{value:r},t)},Oe=()=>{let t=(0,ae.useContext)(Ae);if(!t)throw new Error("useUniformMeshLocationContext must be used within a UniformMeshLocationContextProvider");return t};function Vr(){let{location:t}=Oe();return{value:t==null?void 0:t.getValue(),setValue:t==null?void 0:t.setValue,metadata:t==null?void 0:t.getMetadata(),setValidationResult:t==null?void 0:t.setValidationResult}}var _t=require("@uniformdev/mesh-sdk"),ue=require("react"),Er=({autoResizingDisabled:t}={})=>{let[n,o]=(0,ue.useState)(),[r,a]=(0,ue.useState)();return(0,ue.useEffect)(()=>{typeof window=="undefined"||r||(typeof window.UniformMeshSDK=="undefined"?(0,_t.initializeUniformMeshSDK)({autoResizingDisabled:t}).then(d=>{a(d)}).catch(d=>{o(d)}):a(window.UniformMeshSDK))},[t]),{initializing:!r&&!n,error:n,sdk:r}};var we=require("react");var Wt=require("@uniformdev/design-system"),He=(0,we.createContext)(void 0),Tr=({children:t})=>{let n;return typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"&&(n={sdk:window.UniformMeshSDK}),(0,e.jsx)(He.Provider,{value:n},(0,e.jsx)(Wt.Theme,null),(0,e.jsx)(Be,null,t))},Fe=()=>{let t=(0,we.useContext)(He);if(!t)throw new Error("useUniformMeshSdkContext must be used within a UniformMeshSdkContextProvider");return t};function Ir(){let{sdk:t}=Fe();return t}var Ze=W(require("react"));var H=W(require("react"));var ie=require("@emotion/react"),Zt=require("@uniformdev/design-system");var $e=W(require("react")),Ke=({value:t,text:n,loading:o})=>(0,e.jsx)($e.default.Fragment,null,!!n&&n,!n&&(0,e.jsx)($e.default.Fragment,null,o&&`${t} (Loading...)`,!o&&`${t} (Unresolvable)`));var Qe=({id:t,label:n,loading:o,selectedValues:r,values:a,onAdd:d,onRemove:m})=>{var b;let v=(b=a==null?void 0:a.filter(i=>!(r!=null&&r.includes(i.id.toString()))))!=null?b:[],h=(i,g)=>{i.preventDefault(),m(g)};return(0,e.jsx)("div",null,(0,e.jsx)(Zt.InputSelect,{id:t,name:t,label:n,onChange:i=>d(i.target.value),disabled:o,options:[{value:"",label:"Add..."},...v.map(i=>({value:i.id,label:i.name||i.id}))],css:Array.isArray(r)&&r.length>0?ie.css`
1
+ "use strict";var po=Object.create;var Pe=Object.defineProperty;var mo=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var go=Object.getPrototypeOf,fo=Object.prototype.hasOwnProperty;var hr=(t,n)=>{for(var o in n)Pe(t,o,{get:n[o],enumerable:!0})},Ce=(t,n,o,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of uo(n))!fo.call(t,a)&&a!==o&&Pe(t,a,{get:()=>n[a],enumerable:!(r=mo(n,a))||r.enumerable});return t},B=(t,n,o)=>(Ce(t,n,"default"),o&&Ce(o,n,"default")),j=(t,n,o)=>(o=t!=null?po(go(t)):{},Ce(n||!t||!t.__esModule?Pe(o,"default",{value:t,enumerable:!0}):o,t)),vo=t=>Ce(Pe({},"__esModule",{value:!0}),t);var A={};hr(A,{AddListButton:()=>m.AddListButton,Button:()=>m.Button,Callout:()=>m.Callout,DamSelectedItem:()=>Oo,DefaultSearchRow:()=>Pt,DefaultSelectedItem:()=>vt,EntrySearch:()=>Ut,Heading:()=>m.Heading,Icons:()=>Me,Input:()=>m.Input,InputSelect:()=>m.InputSelect,InputToggle:()=>m.InputToggle,KeywordSearchInput:()=>m.InputKeywordSearch,Label:()=>m.Label,LoadingIndicator:()=>m.LoadingIndicator,LoadingOverlay:()=>m.LoadingOverlay,Menu:()=>m.Menu,MenuItem:()=>m.MenuItem,ProductPreviewList:()=>nt,ProductQuery:()=>Po,ProductQueryContext:()=>rt,ProductSearch:()=>Bo,ProductSearchContext:()=>Jt,ProductSearchRow:()=>Nt,ProductSelectedItem:()=>Yt,ResolvableLoadingValue:()=>et,ScrollableList:()=>m.ScrollableList,ScrollableListItem:()=>m.ScrollableListItem,SelectionField:()=>tt,Switch:()=>m.Switch,Textarea:()=>m.Textarea,Theme:()=>m.Theme,UniformMeshLocationContext:()=>Ze,UniformMeshLocationContextProvider:()=>Xe,UniformMeshSdkContext:()=>Ye,UniformMeshSdkContextProvider:()=>yo,badgeIcon:()=>Be,damSelectItemImage:()=>Qe,damSelectedItemContainer:()=>jt,damSelectedItemCopy:()=>rr,damSelectedItemDetails:()=>tr,damSelectedItemIcon:()=>nr,damSelectedItemInfoBtn:()=>cr,damSelectedItemInner:()=>er,damSelectedItemLinkBtn:()=>Ne,damSelectedItemLinkContainer:()=>ir,damSelectedItemMediaContainer:()=>sr,damSelectedItemPopover:()=>ar,damSelectedItemPopoverLabel:()=>ye,damSelectedItemSmallText:()=>se,damSelectedItemTitle:()=>or,draggableContainer:()=>Vt,draggableIcon:()=>Ae,draggableIconOffset:()=>zt,draggableIconWrapper:()=>Dt,entrySearchBtn:()=>Rt,entrySearchConfig:()=>kt,entrySearchConfigHidden:()=>It,entrySearchLoadMoreBtn:()=>xt,entrySearchResultList:()=>Et,entrySearchSelectIcon:()=>Tt,entrySearchSelectImg:()=>Mt,entrySearchSelectInput:()=>Uo,entrySearchSelectOption:()=>Go,entrySearchWrapper:()=>Lt,productSearchRowActiveIcon:()=>Ft,productSearchRowCategory:()=>Ht,productSearchRowContainer:()=>Gt,productSearchRowContent:()=>At,productSearchRowContentActive:()=>Bt,productSearchRowDetails:()=>$t,productSearchRowTitle:()=>Ot,productSelectedItemContainer:()=>Wt,productSelectedItemContent:()=>Zt,productSelectedItemDetails:()=>_t,productSelectedItemIcon:()=>Xt,productSelectedItemImage:()=>Oe,productSelectedItemLinkContainer:()=>qt,productedSelectedItemLinkBtn:()=>He,productedSelectedItemSmallText:()=>$e,searchRowBtn:()=>wt,searchRowContainer:()=>ht,searchRowContainerActive:()=>yt,searchRowContainerWithPopover:()=>bt,searchRowPopover:()=>St,searchRowText:()=>Ge,searchRowTextSmall:()=>Ue,selectItemLinkBtn:()=>De,selectItemLinkContainer:()=>gt,selectItemPopover:()=>ut,selectItemPopoverLabel:()=>ue,selectItemSmallText:()=>ee,selectedItemContainer:()=>st,selectedItemCopy:()=>lt,selectedItemDetails:()=>dt,selectedItemIcon:()=>mt,selectedItemInner:()=>ct,selectedItemTitle:()=>pt,useInitializeUniformMeshSdk:()=>bo,useProductQueryContext:()=>ot,useProductSearchContext:()=>be,useUniformMeshLocation:()=>ho,useUniformMeshLocationContext:()=>qe,useUniformMeshSdk:()=>So,useUniformMeshSdkContext:()=>Je});module.exports=vo(A);var e=require("@emotion/react"),w=j(require("react"));var pe=require("react"),Ze=(0,pe.createContext)(void 0),Xe=({children:t})=>{let[n,o]=(0,pe.useState)(),r;if(typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"){let a=n||window.UniformMeshSDK.getCurrentLocation();r={location:{getValue:a.getValue,getMetadata:a.getMetadata,setValue:async(i,l)=>{await a.setValue(i,l),o(window.UniformMeshSDK.getCurrentLocation())},setValidationResult:async i=>{await a.setValidationResult(i)}}}}return(0,e.jsx)(Ze.Provider,{value:r},t)},qe=()=>{let t=(0,pe.useContext)(Ze);if(!t)throw new Error("useUniformMeshLocationContext must be used within a UniformMeshLocationContextProvider");return t};function ho(){let{location:t}=qe();return{value:t==null?void 0:t.getValue(),setValue:t==null?void 0:t.setValue,metadata:t==null?void 0:t.getMetadata(),setValidationResult:t==null?void 0:t.setValidationResult}}var br=require("@uniformdev/mesh-sdk"),ve=require("react"),bo=({autoResizingDisabled:t}={})=>{let[n,o]=(0,ve.useState)(),[r,a]=(0,ve.useState)();return(0,ve.useEffect)(()=>{typeof window=="undefined"||r||(typeof window.UniformMeshSDK=="undefined"?(0,br.initializeUniformMeshSDK)({autoResizingDisabled:t}).then(i=>{a(i)}).catch(i=>{o(i)}):a(window.UniformMeshSDK))},[t]),{initializing:!r&&!n,error:n,sdk:r}};var Le=require("react");var yr=require("@uniformdev/design-system"),Ye=(0,Le.createContext)(void 0),yo=({children:t})=>{let n;return typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"&&(n={sdk:window.UniformMeshSDK}),(0,e.jsx)(Ye.Provider,{value:n},(0,e.jsx)(yr.Theme,null),(0,e.jsx)(Xe,null,t))},Je=()=>{let t=(0,Le.useContext)(Ye);if(!t)throw new Error("useUniformMeshSdkContext must be used within a UniformMeshSdkContextProvider");return t};function So(){let{sdk:t}=Je();return t}var $=j(require("react"));var me=require("@emotion/react"),Sr=require("@uniformdev/design-system");var je=j(require("react")),et=({value:t,text:n,loading:o})=>(0,e.jsx)(je.default.Fragment,null,!!n&&n,!n&&(0,e.jsx)(je.default.Fragment,null,o&&`${t} (Loading...)`,!o&&`${t} (Unresolvable)`));var tt=({id:t,label:n,loading:o,selectedValues:r,values:a,onAdd:i,onRemove:l})=>{var v;let f=(v=a==null?void 0:a.filter(s=>!(r!=null&&r.includes(s.id.toString()))))!=null?v:[],g=(s,p)=>{s.preventDefault(),l(p)};return(0,e.jsx)("div",null,(0,e.jsx)(Sr.InputSelect,{id:t,name:t,label:n,onChange:s=>i(s.target.value),disabled:o,options:[{value:"",label:"Add..."},...f.map(s=>({value:s.id,label:s.name||s.id}))],value:"",css:Array.isArray(r)&&r.length>0?me.css`
2
2
  margin-bottom: var(--spacing-base);
3
- `:""}),r==null?void 0:r.map(i=>{var g;return(0,e.jsx)("div",{css:ie.css`
3
+ `:""}),r==null?void 0:r.map(s=>{var p;return(0,e.jsx)("div",{css:me.css`
4
4
  font-size: var(--fs-sm);
5
5
  display: inline-flex;
6
6
  align-items: center;
@@ -9,67 +9,67 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
9
9
  border: 1px solid var(--gray-300);
10
10
  margin-bottom: var(--spacing-sm);
11
11
  margin-right: var(--spacing-sm);
12
- `,key:i},(0,e.jsx)("span",{css:ie.css`
12
+ `,key:s},(0,e.jsx)("span",{css:me.css`
13
13
  padding: var(--spacing-3);
14
14
  color: var(--gray-800);
15
- `},(0,e.jsx)(Ke,{value:i,loading:o,text:(g=a.find(w=>w.id===i))==null?void 0:g.name})),(0,e.jsx)("button",{css:ie.css`
15
+ `},(0,e.jsx)(et,{value:s,loading:o,text:(p=a.find(b=>b.id===s))==null?void 0:p.name})),(0,e.jsx)("button",{css:me.css`
16
16
  padding: var(--spacing-3);
17
17
  border-left: 1px solid var(--gray-300);
18
- `,title:"remove",onClick:w=>h(w,i)},(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",css:ie.css`
18
+ `,title:"remove",onClick:b=>g(b,s)},(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",css:me.css`
19
19
  height: 1.25rem;
20
20
  width: 1.25rem;
21
21
  pointer-events: none;
22
22
  display: block;
23
- `,viewBox:"0 0 20 20",fill:"currentColor"},(0,e.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))))}))};var Dr=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{d:"M44.203 21.203H24.797V1.797a1.797 1.797 0 1 0-3.594 0v19.406H1.797a1.797 1.797 0 1 0 0 3.594h19.406v19.406a1.797 1.797 0 0 0 3.594 0V24.797h19.406a1.797 1.797 0 0 0 0-3.594Z"})),Ce=Dr;var Gr=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"})),Pe=Gr;var Re=require("react-use"),L=require("@uniformdev/design-system"),R=require("@emotion/react"),qt={count:1,categories:[],brand:"",keyword:"",sort:"date_modified",sortOrder:"desc"},zr=({value:t,setValue:n,brands:o,categories:r,loading:a,categoriesLoading:d,brandsLoading:m,logoIcon:v,onGetProducts:h,sortOptions:b,sortOrderOptions:i,categoryLabel:g="Product Category",brandLabel:w="Brand",disableBrands:ee,restrictToSingleCategory:K=!1})=>{var V,_,oe;let C=async s=>{n({...qt,...t||{},...s})},y=(0,H.useMemo)(()=>({...qt,...t||{}}),[t]),[te,j]=(0,Re.useAsyncFn)(async s=>await h(s),[h]);(0,Re.useDebounce)(async()=>{await j({brand:y.brand,categories:y.categories,keyword:y.keyword,sort:y.sort,sortOrder:y.sortOrder,count:y.count})},250,[y]);let A=(0,H.useMemo)(()=>{let s=[];return r==null||r.forEach(E=>{let le=Xt(E,void 0);s.push(...le)}),s},[r]),Q=(0,H.useMemo)(()=>[{value:"",label:"All categories"},...A.map(s=>({label:s.name,value:s.id}))],[A]),he=(0,H.useMemo)(()=>(o==null?void 0:o.map(s=>({id:s.id.toString(),name:s.name})))||[],[o]),re=s=>{let E=(t==null?void 0:t.categories)||[];C({categories:[...E,s]})},N=s=>{var E;C({categories:(E=t==null?void 0:t.categories)==null?void 0:E.filter(le=>le!==s)})},B=s=>{C({brand:s.target.value})},u=s=>{C({count:s||1})};return a?(0,e.jsx)("div",null,"Loading..."):(0,e.jsx)(Ne.Provider,{value:{categories:r,logoIcon:v}},(0,e.jsx)("div",{css:R.css`
23
+ `,viewBox:"0 0 20 20",fill:"currentColor"},(0,e.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))))}))};var wo=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{d:"M44.203 21.203H24.797V1.797a1.797 1.797 0 1 0-3.594 0v19.406H1.797a1.797 1.797 0 1 0 0 3.594h19.406v19.406a1.797 1.797 0 0 0 3.594 0V24.797h19.406a1.797 1.797 0 0 0 0-3.594Z"})),Re=wo;var Co=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"})),xe=Co;var ke=require("react-use"),E=require("@uniformdev/design-system"),R=require("@emotion/react"),wr={count:1,categories:[],brand:"",keyword:"",sort:"date_modified",sortOrder:"desc"},Po=({value:t,setValue:n,brands:o,categories:r,loading:a,categoriesLoading:i,brandsLoading:l,logoIcon:f,onGetProducts:g,sortOptions:v,sortOrderOptions:s,categoryLabel:p="Product Category",brandLabel:b="Brand",disableBrands:D,restrictToSingleCategory:_=!1})=>{var u,M,H;let P=async d=>{n({...wr,...t||{},...d})},y=(0,$.useMemo)(()=>({...wr,...t||{}}),[t]),[de,Z]=(0,ke.useAsyncFn)(async d=>await g(d),[g]);(0,ke.useDebounce)(async()=>{await Z({brand:y.brand,categories:y.categories,keyword:y.keyword,sort:y.sort,sortOrder:y.sortOrder,count:y.count})},250,[y]);let ne=(0,$.useMemo)(()=>{let d=[];return r==null||r.forEach(S=>{let z=Pr(S,void 0);d.push(...z)}),d},[r]),X=(0,$.useMemo)(()=>[{value:"",label:"All categories"},...ne.map(d=>({label:d.name,value:d.id}))],[ne]),q=(0,$.useMemo)(()=>(o==null?void 0:o.map(d=>({id:d.id.toString(),name:d.name})))||[],[o]),Se=d=>{if(!d)return;let S=(t==null?void 0:t.categories)||[];P({categories:[...S,d]})},le=d=>{var S;P({categories:(S=t==null?void 0:t.categories)==null?void 0:S.filter(z=>z!==d)})},Y=d=>{P({brand:d.target.value})},k=d=>{P({count:d||1})};return a?(0,e.jsx)("div",null,"Loading..."):(0,e.jsx)(rt.Provider,{value:{categories:r,logoIcon:f}},(0,e.jsx)("div",{css:R.css`
24
24
  > :not(:last-child) {
25
25
  margin-bottom: var(--spacing-md);
26
26
  }
27
- `},K?(0,e.jsx)(L.InputSelect,{id:"selection-field-product-category",label:g,disabled:a,value:(_=(V=y.categories)==null?void 0:V[0])!=null?_:"",options:Q,onChange:s=>{C({categories:s.target.value===""?[]:[s.target.value]})}}):(0,e.jsx)(Qe,{loading:d||!1,id:"selection-field-product-category",label:g,onAdd:re,onRemove:N,selectedValues:y.categories,values:A}),(0,e.jsx)("div",{css:R.css`
27
+ `},_?(0,e.jsx)(E.InputSelect,{id:"selection-field-product-category",label:p,disabled:a,value:(M=(u=y.categories)==null?void 0:u[0])!=null?M:"",options:X,onChange:d=>{P({categories:d.target.value===""?[]:[d.target.value]})}}):(0,e.jsx)(tt,{loading:i||!1,id:"selection-field-product-category",label:p,onAdd:Se,onRemove:le,selectedValues:y.categories,values:ne}),(0,e.jsx)("div",{css:R.css`
28
28
  display: flex;
29
29
  flex-wrap: wrap;
30
30
  column-gap: var(--spacing-lg);
31
31
  row-gap: var(--spacing-md);
32
- ${(0,L.mq)("md")} {
32
+ ${(0,E.mq)("md")} {
33
33
  flex-wrap: nowrap;
34
34
  }
35
- `},ee?null:(0,e.jsx)("div",{css:R.css`
35
+ `},D?null:(0,e.jsx)("div",{css:R.css`
36
36
  width: 50%;
37
- `},(0,e.jsx)(L.InputSelect,{id:"brand",name:"brand",label:w,disabled:m,value:y.brand,onChange:B,options:[{value:"",label:"Choose..."},...he.map(s=>({value:s.id,label:s.name}))]})),(0,e.jsx)("div",{css:R.css`
37
+ `},(0,e.jsx)(E.InputSelect,{id:"brand",name:"brand",label:b,disabled:l,value:y.brand,onChange:Y,options:[{value:"",label:"Choose..."},...q.map(d=>({value:d.id,label:d.name}))]})),(0,e.jsx)("div",{css:R.css`
38
38
  flex-grow: 1;
39
39
  position: relative;
40
- `},(0,e.jsx)(L.Input,{id:"keyword-search",name:"keyword-search",label:"Keyword",value:y.keyword,placeholder:"Enter keyword",onChange:s=>C({keyword:s.target.value})}))),(0,e.jsx)("div",{css:R.css`
40
+ `},(0,e.jsx)(E.Input,{id:"keyword-search",name:"keyword-search",label:"Keyword",value:y.keyword,placeholder:"Enter keyword",onChange:d=>P({keyword:d.target.value})}))),(0,e.jsx)("div",{css:R.css`
41
41
  display: flex;
42
42
  flex-wrap: wrap;
43
43
  column-gap: var(--spacing-lg);
44
44
  row-gap: var(--spacing-md);
45
- ${(0,L.mq)("md")} {
45
+ ${(0,E.mq)("md")} {
46
46
  flex-wrap: nowrap;
47
47
  }
48
48
  `},(0,e.jsx)("div",{css:R.css`
49
49
  width: 100%;
50
- ${(0,L.mq)("md")} {
50
+ ${(0,E.mq)("md")} {
51
51
  width: 33.333333%;
52
52
  }
53
53
  position: relative;
54
- `},(0,e.jsx)(L.Input,{id:"count",name:"count",type:"number",min:1,step:1,value:y.count,onChange:s=>u(s.target.valueAsNumber),label:"Count"}),(0,e.jsx)("div",{css:R.css`
54
+ `},(0,e.jsx)(E.Input,{id:"count",name:"count",type:"number",min:1,step:1,value:y.count,onChange:d=>k(d.target.valueAsNumber),label:"Count"}),(0,e.jsx)("div",{css:R.css`
55
55
  position: absolute;
56
56
  bottom: var(--spacing-sm);
57
57
  right: var(--spacing-sm);
58
58
  display: flex;
59
59
  gap: var(--spacing-sm);
60
- `},(0,e.jsx)(Jt,{onCountChange:()=>u(y.count-1),countIcon:"decrement",disabled:y.count===1}),(0,e.jsx)(Jt,{onCountChange:()=>u(y.count+1),countIcon:"increment"}))),Array.isArray(b)&&b.length>0?(0,e.jsx)("div",{css:R.css`
60
+ `},(0,e.jsx)(Cr,{onCountChange:()=>k(y.count-1),countIcon:"decrement",disabled:y.count===1}),(0,e.jsx)(Cr,{onCountChange:()=>k(y.count+1),countIcon:"increment"}))),Array.isArray(v)&&v.length>0?(0,e.jsx)("div",{css:R.css`
61
61
  flex-grow: 1;
62
- ${(0,L.mq)("md")} {
62
+ ${(0,E.mq)("md")} {
63
63
  width: 33.333333%;
64
64
  }
65
- `},(0,e.jsx)(L.InputSelect,{id:"sort",name:"sort",label:"Sort",value:y.sort,onChange:s=>C({sort:s.target.value}),options:[{value:"",label:"Select a sort"},...b.map(s=>({value:s.sortKey,label:s.name}))]})):null,Array.isArray(i)&&i.length>0?(0,e.jsx)("div",{css:R.css`
65
+ `},(0,e.jsx)(E.InputSelect,{id:"sort",name:"sort",label:"Sort",value:y.sort,onChange:d=>P({sort:d.target.value}),options:[{value:"",label:"Select a sort"},...v.map(d=>({value:d.sortKey,label:d.name}))]})):null,Array.isArray(s)&&s.length>0?(0,e.jsx)("div",{css:R.css`
66
66
  flex-grow: 1;
67
- `},(0,e.jsx)(L.InputSelect,{id:"sort-order",name:"sort-order",label:"Sort Order",value:y.sortOrder,onChange:s=>C({sortOrder:s.target.value}),options:i.map(s=>({value:s.sortOrderKey,label:s.name}))})):null),(0,e.jsx)("div",null,(0,e.jsx)("h3",{css:R.css`
67
+ `},(0,e.jsx)(E.InputSelect,{id:"sort-order",name:"sort-order",label:"Sort Order",value:y.sortOrder,onChange:d=>P({sortOrder:d.target.value}),options:s.map(d=>({value:d.sortOrderKey,label:d.name}))})):null),(0,e.jsx)("div",null,(0,e.jsx)("h3",{css:R.css`
68
68
  font-size: var(--fs-md);
69
69
  line-height: var(--spacing-md);
70
70
  font-weight: var(--fw-bold);
71
71
  margin-bottom: var(--spacing-xs);
72
- `},"Result Preview"),(0,e.jsx)(We,{products:(oe=te.value)==null?void 0:oe.products}))))};function Xt(t,n){var d;let o=[],r=n?`${n.name} > `:"",a={id:t.id.toString(),name:`${r}${t.name}`};return o.push(a),(d=t.children)==null||d.forEach(m=>{let v=Xt(m,a);o.push(...v)}),o}function Jt({onCountChange:t,countIcon:n,disabled:o}){return(0,e.jsx)("button",{css:R.css`
72
+ `},"Result Preview"),(0,e.jsx)(nt,{products:(H=de.value)==null?void 0:H.products}))))};function Pr(t,n){var i;let o=[],r=n?`${n.name} > `:"",a={id:t.id.toString(),name:`${r}${t.name}`};return o.push(a),(i=t.children)==null||i.forEach(l=>{let f=Pr(l,a);o.push(...f)}),o}function Cr({onCountChange:t,countIcon:n,disabled:o}){return(0,e.jsx)("button",{css:R.css`
73
73
  width: 2.25rem;
74
74
  height: 2.25rem;
75
75
  border: 1px solid var(--gray-300);
@@ -85,78 +85,75 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
85
85
  cursor: not-allowed;
86
86
  opacity: 0.3;
87
87
  `:""}
88
- `,onClick:t,disabled:o},n==="increment"?(0,e.jsx)(Ce,{css:R.css`
88
+ `,onClick:t,disabled:o},n==="increment"?(0,e.jsx)(Re,{css:R.css`
89
89
  width: 1rem;
90
90
  height: 1rem;
91
- `}):(0,e.jsx)(Pe,{css:R.css`
91
+ `}):(0,e.jsx)(xe,{css:R.css`
92
92
  width: 1rem;
93
93
  height: 1rem;
94
- `}))}var Ne=H.default.createContext(void 0),_e=()=>{let t=(0,H.useContext)(Ne);if(!t)throw new Error("useProductQueryContext must be used within a <ProductQueryContext> provider");return t};function Z({src:t,alt:n,className:o}){let r=t&&typeof t!="string"?t:null;return r?(0,e.jsx)(r,{className:o}):(0,e.jsx)("img",{src:t,alt:n,className:o})}var k=require("@emotion/react"),Yt=require("@uniformdev/design-system"),We=({products:t})=>{let{categories:n,logoIcon:o}=_e();return(0,e.jsx)(Ze.default.Fragment,null,(0,e.jsx)("p",{css:k.css`
94
+ `}))}var rt=$.default.createContext(void 0),ot=()=>{let t=(0,$.useContext)(rt);if(!t)throw new Error("useProductQueryContext must be used within a <ProductQueryContext> provider");return t};function O({src:t,alt:n,className:o}){let r=t&&typeof t!="string"?t:null;return r?(0,e.jsx)(r,{className:o}):(0,e.jsx)("img",{src:t,alt:n,className:o})}var it=require("@emotion/react"),Dr=require("@uniformdev/design-system");var U=require("@emotion/react"),Lr=U.css`
95
+ align-items: center;
96
+ background: var(--white);
97
+ border-radius: var(--rounded-base);
98
+ border: 2px solid var(--gray-300);
99
+ color: currentColor;
100
+ display: inline-flex;
101
+ justify-content: space-between;
102
+ padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-base);
103
+ margin-left: auto;
104
+ text-decoration: none;
105
+ &:hover {
106
+ background: var(--gray-50);
107
+ }
108
+ `,Rr=U.css`
109
+ font-size: var(--fs-sm);
110
+ `,xr=U.css`
111
+ width: 2.25rem;
112
+ height: 2.25rem;
113
+ `,at=U.css`
114
+ margin-right: var(--spacing-lg);
115
+ font-size: var(--fs-sm);
116
+ `,kr=U.css`
117
+ border: 1px solid var(--gray-200);
118
+ border-radius: var(--rounded-md);
119
+ background: var(--gray-50);
120
+ margin: var(--spacing-base) 0;
121
+ `,Ir=U.css`
122
+ align-items: center;
123
+ display: flex;
124
+ flex-grow: 1;
125
+ gap: var(--spacing-base);
126
+ padding: var(--spacing-sm);
127
+ margin-right: var(--spacing-sm);
128
+ `,Er=U.css`
129
+ background: var(--gray-200);
130
+ width: 3.5rem;
131
+ height: 3.5rem;
132
+ object-fit: cover;
133
+ `,Tr=U.css`
134
+ background: var(--gray-100);
135
+ height: 3.5rem;
136
+ width: 3.5rem;
137
+ `,Mr=U.css`
138
+ margin-top: 0;
139
+ font-weight: var(--fw-bold);
140
+ font-size: var(--fs-sm);
141
+ width: calc(100% / 3);
142
+ `,Vr=U.css`
143
+ display: block;
144
+ font-weight: var(--fw-regular);
145
+ `;var nt=({products:t})=>{let{categories:n,logoIcon:o}=ot();return(0,e.jsx)(w.Fragment,null,(0,e.jsx)("p",{css:it.css`
95
146
  margin-bottom: var(--spacing-base);
96
- `},"Matching ",(t==null?void 0:t.length)||0," products"),(0,e.jsx)("ul",{css:[k.css`
147
+ `},"Matching ",(t==null?void 0:t.length)||0," products"),(0,e.jsx)("ul",{css:[it.css`
97
148
  max-height: 24rem;
98
149
  overflow-x: auto;
99
- `,Yt.scrollbarStyles]},t==null?void 0:t.map((r,a)=>{var v;let[d]=(r==null?void 0:r.categories)||[],m=typeof d=="undefined"||!n||(v=n.find(h=>h.id===d.id))==null?void 0:v.name;return(0,e.jsx)("li",{key:`product-${r.id}`,css:k.css`
100
- border: 1px solid var(--gray-300);
101
- border-radius: var(--rounded-md);
102
- background-color: var(--gray-100);
103
- margin: var(--spacing-base) 0;
104
- `},(0,e.jsx)("div",{css:k.css`
105
- padding: var(--spacing-sm);
106
- display: flex;
107
- flex-grow: 1;
108
- margin-right: var(--spacing-sm);
109
- gap: var(--spacing-base);
110
- align-items: center;
111
- `},r.thumbnailUrl?(0,e.jsx)("img",{src:r.thumbnailUrl,alt:r.name||`Product ${a}`,css:k.css`
112
- background-color: var(--gray-200);
113
- width: 3.5rem;
114
- height: 3.5rem;
115
- object-fit: cover;
116
- `}):(0,e.jsx)("div",{css:k.css`
117
- height: 3.5rem;
118
- width: 3.5rem;
119
- background-color: var(--gray-100);
120
- `}),(0,e.jsx)("h4",{css:k.css`
121
- font-weight: var(--fw-bold);
122
- width: 33.333333%;
123
- font-size: var(--fs-sm);
124
- `},r.name,m&&(0,e.jsx)("span",{css:k.css`
125
- display: block;
126
- font-weight: var(--fw-regular);
127
- `},m)),r&&(0,e.jsx)(Ze.default.Fragment,null,(0,e.jsx)("p",{css:k.css`
128
- margin-right: var(--spacing-lg);
129
- font-size: var(--fs-sm);
130
- `},"SKU: ",r.sku||r.id,(0,e.jsx)("br",null)),r.price!==void 0?(0,e.jsx)("p",{css:k.css`
131
- margin-right: var(--spacing-lg);
132
- font-size: var(--fs-sm);
133
- `},(0,e.jsx)("span",{css:k.css`
134
- display: block;
135
- `},"Price: ",r.price)):null,(0,e.jsx)("a",{css:k.css`
136
- display: inline-flex;
137
- justify-content: space-between;
138
- align-items: center;
139
- padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-base);
140
- background-color: var(--white);
141
- border-radius: var(--rounded-base);
142
- border: 2px solid var(--gray-400);
143
- margin-left: auto;
144
- &:hover {
145
- background-color: var(--gray-100);
146
- }
147
- `,href:r.url,title:`Goto ${r.name}`,target:"__blank",rel:"noopener"},(0,e.jsx)("span",{css:k.css`
148
- font-size: var(--fs-sm);
149
- margin-right: var(--spacing-sm);
150
- `},"Edit"),o?(0,e.jsx)(Z,{src:o,alt:"Logo",css:k.css`
151
- width: 2.25rem;
152
- height: 2.25rem;
153
- `}):null))))})))};var Y=W(require("react"));var G=W(require("react"));var Le={};Nt(Le,{Caution:()=>jt,Checkmark:()=>ke,ChevronDown:()=>xe,Close:()=>se,Danger:()=>er,ExclamationPoint:()=>tr,Info:()=>ce,Lightbulb:()=>rr,MagnifyingGlass:()=>or,MaximizeAlt:()=>nr,Minus:()=>Pe,MoreVerticalAlt:()=>me,Plus:()=>Ce});var Ur=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})),jt=Ur;var Ar=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 39.2A19.2 19.2 0 1 0 20 .8a19.2 19.2 0 0 0 0 38.4Zm8.897-22.303a2.4 2.4 0 0 0-3.394-3.394L17.6 21.407l-3.103-3.104a2.4 2.4 0 0 0-3.394 3.394l4.8 4.8a2.4 2.4 0 0 0 3.394 0l9.6-9.6Z"})),ke=Ar;var Br=t=>(0,e.jsx)("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em",...t},(0,e.jsx)("path",{d:"M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414Z"})),xe=Br;var Or=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 19 19",fill:"currentColor",...t},(0,e.jsx)("g",{fillRule:"evenodd"},(0,e.jsx)("path",{d:"M16.578 1.636a1.174 1.174 0 0 1 0 1.66L3.296 16.578a1.174 1.174 0 1 1-1.66-1.66L14.918 1.636a1.174 1.174 0 0 1 1.66 0Z"}),(0,e.jsx)("path",{d:"M1.636 1.636a1.174 1.174 0 0 1 1.66 0l13.282 13.282a1.174 1.174 0 1 1-1.66 1.66L1.636 3.296a1.174 1.174 0 0 1 0-1.66Z"}))),se=Or;var Hr=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})),er=Hr;var Fr=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})),tr=Fr;var $r=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M11 10.98a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0v-6zm1-4.929a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}),(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12a8 8 0 1 0 16 0 8 8 0 0 0-16 0z"})),ce=$r;var Kr=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})),rr=Kr;var Qr=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 26 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("g",{clipPath:"url(#magnifying-glass_svg__a)"},(0,e.jsx)("path",{d:"M11.539 0C5.484 0 .559 4.741.559 10.57c0 5.827 4.925 10.568 10.98 10.568 6.055 0 10.98-4.74 10.98-10.569C22.52 4.741 17.595 0 11.54 0Zm0 19.187c-4.937 0-8.954-3.866-8.954-8.618 0-4.752 4.017-8.618 8.954-8.618s8.954 3.866 8.954 8.618c0 4.752-4.017 8.618-8.954 8.618Z"}),(0,e.jsx)("path",{d:"m25.196 22.334-5.811-5.593a1.041 1.041 0 0 0-1.434 0 .95.95 0 0 0 0 1.38l5.812 5.593c.198.19.457.286.716.286.26 0 .519-.096.717-.286a.95.95 0 0 0 0-1.38Z"})),(0,e.jsx)("defs",null,(0,e.jsx)("clipPath",{id:"magnifying-glass_svg__a"},(0,e.jsx)("path",{fill:"#fff",transform:"translate(.558)",d:"M0 0h24.935v24H0z"})))),or=Qr;var Nr=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M3 3h6v2H6.462l4.843 4.843-1.415 1.414L5 6.367V9H3V3zm0 18h6v-2H6.376l4.929-4.928-1.415-1.414L5 17.548V15H3v6zm12 0h6v-6h-2v2.524l-4.867-4.866-1.414 1.414L17.647 19H15v2zm6-18h-6v2h2.562l-4.843 4.843 1.414 1.414L19 6.39V9h2V3z"})),nr=Nr;var _r=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M14 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})),me=_r;var cr=require("react-use"),dr=require("uuid");var F=W(require("react"));function ar(t,n){let o=window.open(t,"_blank"),r=setInterval(()=>{o!=null&&o.closed&&(clearInterval(r),n())},500)}var sr=require("timeago.js");var M=require("@emotion/react"),ir=require("@uniformdev/design-system"),qe=M.css`
150
+ `,Dr.scrollbarStyles]},t==null?void 0:t.map((r,a)=>{var f,g;let[i]=(r==null?void 0:r.categories)||[],l=typeof i=="undefined"||!n||(f=n.find(v=>v.id===i.id))==null?void 0:f.name;return(0,e.jsx)("li",{key:`product-${r.id}`,css:kr},(0,e.jsx)("div",{css:Ir},r.thumbnailUrl?(0,e.jsx)("img",{src:r.thumbnailUrl,alt:typeof r.title=="string"?r.title:r.name||`Product ${a}`,css:Er}):(0,e.jsx)("div",{css:Tr}),(0,e.jsx)("h4",{css:Mr},r.title||r.name,l&&(0,e.jsx)("span",{css:Vr},l)),r&&(0,e.jsx)(w.Fragment,null,(0,e.jsx)("p",{css:at},"SKU: ",r.sku||r.id,(0,e.jsx)("br",null)),r.price!==void 0?(0,e.jsx)("p",{css:at},"Price: ",r.price):null,r.editLink||r.url?(0,e.jsx)("a",{css:Lr,href:(g=r.editLink)!=null?g:r.url,title:`Go to ${r.title||r.name}`,target:"_blank",rel:"noopener noreferrer"},(0,e.jsx)("span",{css:Rr},"Edit"),o?(0,e.jsx)(O,{src:o,alt:"Logo",css:xr}):null):null)))})))};var oe=j(require("react"));var T=j(require("react"));var Me={};hr(Me,{Caution:()=>zr,Checkmark:()=>Ie,ChevronDown:()=>Ee,Close:()=>Ur,Danger:()=>Gr,ExclamationPoint:()=>Ar,Info:()=>Te,Lightbulb:()=>Br,MagnifyingGlass:()=>Or,MaximizeAlt:()=>Hr,Minus:()=>xe,MoreVerticalAlt:()=>he,Plus:()=>Re});var Lo=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})),zr=Lo;var Ro=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 39.2A19.2 19.2 0 1 0 20 .8a19.2 19.2 0 0 0 0 38.4Zm8.897-22.303a2.4 2.4 0 0 0-3.394-3.394L17.6 21.407l-3.103-3.104a2.4 2.4 0 0 0-3.394 3.394l4.8 4.8a2.4 2.4 0 0 0 3.394 0l9.6-9.6Z"})),Ie=Ro;var xo=t=>(0,e.jsx)("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em",...t},(0,e.jsx)("path",{d:"M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414Z"})),Ee=xo;var ko=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 19 19",fill:"currentColor",...t},(0,e.jsx)("g",{fillRule:"evenodd"},(0,e.jsx)("path",{d:"M16.578 1.636a1.174 1.174 0 0 1 0 1.66L3.296 16.578a1.174 1.174 0 1 1-1.66-1.66L14.918 1.636a1.174 1.174 0 0 1 1.66 0Z"}),(0,e.jsx)("path",{d:"M1.636 1.636a1.174 1.174 0 0 1 1.66 0l13.282 13.282a1.174 1.174 0 1 1-1.66 1.66L1.636 3.296a1.174 1.174 0 0 1 0-1.66Z"}))),Ur=ko;var Io=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})),Gr=Io;var Eo=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})),Ar=Eo;var To=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M11 10.98a1 1 0 1 1 2 0v6a1 1 0 1 1-2 0v-6zm1-4.929a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}),(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12a8 8 0 1 0 16 0 8 8 0 0 0-16 0z"})),Te=To;var Mo=t=>(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...t},(0,e.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})),Br=Mo;var Vo=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 26 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.jsx)("g",{clipPath:"url(#magnifying-glass_svg__a)"},(0,e.jsx)("path",{d:"M11.539 0C5.484 0 .559 4.741.559 10.57c0 5.827 4.925 10.568 10.98 10.568 6.055 0 10.98-4.74 10.98-10.569C22.52 4.741 17.595 0 11.54 0Zm0 19.187c-4.937 0-8.954-3.866-8.954-8.618 0-4.752 4.017-8.618 8.954-8.618s8.954 3.866 8.954 8.618c0 4.752-4.017 8.618-8.954 8.618Z"}),(0,e.jsx)("path",{d:"m25.196 22.334-5.811-5.593a1.041 1.041 0 0 0-1.434 0 .95.95 0 0 0 0 1.38l5.812 5.593c.198.19.457.286.716.286.26 0 .519-.096.717-.286a.95.95 0 0 0 0-1.38Z"})),(0,e.jsx)("defs",null,(0,e.jsx)("clipPath",{id:"magnifying-glass_svg__a"},(0,e.jsx)("path",{fill:"#fff",transform:"translate(.558)",d:"M0 0h24.935v24H0z"})))),Or=Vo;var Do=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M3 3h6v2H6.462l4.843 4.843-1.415 1.414L5 6.367V9H3V3zm0 18h6v-2H6.376l4.929-4.928-1.415-1.414L5 17.548V15H3v6zm12 0h6v-6h-2v2.524l-4.867-4.866-1.414 1.414L17.647 19H15v2zm6-18h-6v2h2.562l-4.843 4.843 1.414 1.414L19 6.39V9h2V3z"})),Hr=Do;var zo=t=>(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",...t},(0,e.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M14 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})),he=zo;var Nr=require("react-use"),Qr=require("uuid");var K=j(require("react"));function Ve(t,n){let o=window.open(t,"_blank"),r=setInterval(()=>{o!=null&&o.closed&&(clearInterval(r),n())},500)}var Fr=require("timeago.js");var V=require("@emotion/react"),$r=require("@uniformdev/design-system"),st=V.css`
154
151
  border: 1px solid var(--gray-200);
155
152
  background: var(--gray-50);
156
153
  border-radius: var(--rounded-base);
157
154
  display: flex;
158
155
  width: 100%;
159
- `,Je=M.css`
156
+ `,ct=V.css`
160
157
  align-items: center;
161
158
  display: flex;
162
159
  flex-grow: 1;
@@ -164,24 +161,22 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
164
161
  margin-inline: 0 var(--spacing-sm);
165
162
  padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-lg);
166
163
  position: relative;
167
- `,Xe=M.css`
164
+ `,dt=V.css`
168
165
  flex-grow: 1;
169
- `,Ye=M.css`
166
+ `,lt=V.css`
170
167
  align-items: start;
171
168
  display: inline-flex;
172
169
  position: relative;
173
- `,je=M.css`
170
+ `,pt=V.css`
174
171
  color: var(--brand-secondary-1);
175
172
  font-size: var(--fs-base);
176
173
  font-weight: var(--fw-bold);
177
174
  line-height: 1;
178
- `,et=M.css`
175
+ margin: 0;
176
+ `,mt=V.css`
179
177
  width: 1.5rem;
180
178
  height: 1.5rem;
181
- `,tt=M.css`
182
- width: 1rem;
183
- height: 1rem;
184
- `,rt=M.css`
179
+ `,ut=V.css`
185
180
  background: var(--white);
186
181
  border-radius: var(--rounded-base);
187
182
  border-left: 4px solid var(--brand-secondary-3);
@@ -190,69 +185,69 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
190
185
  padding: var(--spacing-base);
191
186
  z-index: var(--z-10);
192
187
  width: max-content;
193
- `,q=M.css`
188
+ `,ee=V.css`
194
189
  font-size: var(--fs-sm);
195
- `,ge=M.css`
190
+ `,ue=V.css`
196
191
  font-weight: var(--fw-bold);
197
192
  margin-right: var(--spacing-sm);
198
- `,ot=M.css`
193
+ `,gt=V.css`
199
194
  display: flex;
200
195
  flex-direction: column;
201
196
  gap: var(--spacing-sm);
202
197
 
203
- ${(0,ir.mq)("md")} {
198
+ ${(0,$r.mq)("md")} {
204
199
  flex-direction: row;
205
200
  min-width: 200px;
201
+ justify-content: end;
206
202
  }
207
- `,Me=M.css`
203
+ `,De=V.css`
208
204
  align-items: center;
209
205
  background: var(--white);
210
206
  border-radius: var(--rounded-base);
211
207
  border: 2px solid var(--gray-300);
208
+ color: currentColor;
212
209
  display: flex;
213
210
  gap: var(--spacing-sm);
214
211
  padding: var(--spacing-sm) var(--spacing-base);
215
212
  justify-content: space-between;
213
+ text-decoration: none;
216
214
 
217
215
  &:hover {
218
216
  background: var(--gray-50);
219
217
  }
220
- `;var O=require("@emotion/react");var nt=({selectedItem:t,logoIcon:n,onDeselect:o,onEditClosed:r})=>{var b;let a=(0,F.useRef)(null),d=(0,F.useRef)(null),[m,v]=(0,F.useState)(!1);(0,F.useEffect)(()=>{let i=w=>{a.current&&!a.current.contains(w.target)&&d.current&&!d.current.contains(w.target)&&v(!1)},g=()=>{v(!1)};return window.addEventListener("resize",g,!0),document.addEventListener("scroll",i,!0),document.addEventListener("mousedown",i),()=>{window.removeEventListener("resize",g,!0),document.removeEventListener("scroll",i,!0),document.removeEventListener("mousedown",i)}},[d]);let h=()=>{var i;if(v(!m),d.current&&a.current){let g=(i=a==null?void 0:a.current)==null?void 0:i.getBoundingClientRect(),w=d.current.offsetWidth;d.current.style.top=`${g.top+30}px`,d.current.style.left=`${g.left-w+30}px`}};return(0,e.jsx)("div",{css:qe,key:t.id},(0,e.jsx)("div",{css:Je},(0,e.jsx)("div",{css:Xe},(0,e.jsx)("div",{css:Ye},(0,e.jsx)("h4",{css:[je,t.popoverData?O.css`
218
+ `;var F=require("@emotion/react");var ft=require("@uniformdev/design-system"),ze=require("react-icons/cg"),vt=({selectedItem:t,logoIcon:n,onDeselect:o,onEditClosed:r})=>{var v;let a=(0,K.useRef)(null),i=(0,K.useRef)(null),[l,f]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let s=b=>{a.current&&!a.current.contains(b.target)&&i.current&&!i.current.contains(b.target)&&f(!1)},p=()=>{f(!1)};return window.addEventListener("resize",p,!0),document.addEventListener("scroll",s,!0),document.addEventListener("mousedown",s),()=>{window.removeEventListener("resize",p,!0),document.removeEventListener("scroll",s,!0),document.removeEventListener("mousedown",s)}},[i]);let g=()=>{var s;if(f(!l),i.current&&a.current){let p=(s=a==null?void 0:a.current)==null?void 0:s.getBoundingClientRect(),b=i.current.offsetWidth;i.current.style.top=`${p.top+30}px`,i.current.style.left=`${p.left-b+30}px`}};return(0,e.jsx)("div",{css:st,key:t.id},(0,e.jsx)("div",{css:ct},(0,e.jsx)("div",{css:dt},(0,e.jsx)("div",{css:lt},(0,e.jsx)("h4",{css:[pt,t.popoverData?F.css`
221
219
  margin-bottom: var(--spacing-sm);
222
- `:""],title:`ID: ${t.id}`,"data-test-id":"entry-id"},t.title||t.id||""),t.popoverData?(0,e.jsx)(F.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:a,css:O.css`
220
+ `:""],title:`ID: ${t.id}`,"data-test-id":"entry-id"},t.title||t.id||""),t.popoverData?(0,e.jsx)(K.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:a,css:F.css`
223
221
  margin: calc(var(--spacing-xs) * -1) 0 calc(var(--spacing-xs) * -1) var(--spacing-sm);
224
- `,"aria-controls":"path-details","aria-expanded":m,onClick:h},(0,e.jsx)(ce,{width:24,height:24,css:O.css`
225
- color: var(--gray-400);
226
- `})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!m,ref:d,css:[rt,m?O.css`
222
+ `,"aria-controls":"path-details","aria-expanded":l,onClick:g},(0,e.jsx)(ft.Icon,{icon:ze.CgInfo,iconColor:"gray",size:24,css:F.css`
223
+ opacity: var(--opacity-75);
224
+ `})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!l,ref:i,css:[ut,l?F.css`
227
225
  visibility: visible;
228
- `:O.css`
226
+ `:F.css`
229
227
  visibility: hidden;
230
- `]},Object.entries(t.popoverData).map(([i,g],w)=>(0,e.jsx)("div",{css:q,key:w},(0,e.jsx)("span",{css:ge},i,":"),g)))):null),t.createdDate&&(0,e.jsx)("div",{css:q},(0,e.jsx)("span",{css:ge},"Created:"),(0,sr.format)((b=t.createdDate)!=null?b:0)),(0,e.jsx)("div",{css:O.css`
231
- display: flex;
232
- gap: var(--spacing-base);
233
- `},t.metadata?Object.entries(t.metadata).filter(([i])=>["type","status"].includes(i.toLocaleLowerCase())).map(([i,g])=>(0,e.jsx)("span",{css:q,key:i},g)):null),t.metadata?Object.entries(t.metadata).filter(([i])=>!["type","status"].includes(i.toLocaleLowerCase())).map(([i,g])=>(0,e.jsx)("div",{css:[q,O.css`
228
+ `]},Object.entries(t.popoverData).map(([s,p],b)=>(0,e.jsx)("div",{css:ee,key:b},(0,e.jsx)("span",{css:ue},s,":"),p)))):null),t.createdDate&&(0,e.jsx)("div",{css:ee},(0,e.jsx)("span",{css:ue},"Created:"),(0,Fr.format)((v=t.createdDate)!=null?v:0)),t.metadata?Object.entries(t.metadata).filter(([s])=>["type","status"].includes(s.toLocaleLowerCase())).map(([s,p])=>(0,e.jsx)("div",{css:[ee,F.css`
234
229
  order: 1;
235
- `],key:i},(0,e.jsx)("span",{css:[ge,O.css`
230
+ `],key:s},(0,e.jsx)("span",{css:ue},s,":"),p)):null,t.metadata?Object.entries(t.metadata).filter(([s])=>!["type","status"].includes(s.toLocaleLowerCase())).map(([s,p])=>(0,e.jsx)("div",{css:[ee,F.css`
231
+ order: 1;
232
+ `],key:s},(0,e.jsx)("span",{css:[ue,F.css`
236
233
  order: 1;
237
- `]},i,":"),g)):null),(0,e.jsx)("div",{css:ot},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener",target:"__blank",onClick:i=>{r&&(ar(i.currentTarget.href,()=>r(t)),i.preventDefault())},css:Me},(0,e.jsx)("span",{css:q},"Edit"),(0,e.jsx)(Z,{src:n,css:et,alt:"Logo"})):null,(0,e.jsx)("button",{type:"button",onClick:i=>{i.preventDefault(),o(t)},css:Me},(0,e.jsx)("span",{css:q},"Unlink"),(0,e.jsx)(se,{css:[tt,O.css`
238
- color: var(--brand-secondary-5);
239
- `]})))))};var $=W(require("react"));var J=require("@emotion/react"),at=J.css`
234
+ `]},s,":"),p)):null),(0,e.jsx)("div",{css:gt},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",onClick:s=>{r&&(Ve(s.currentTarget.href,()=>r(t)),s.preventDefault())},css:De},(0,e.jsx)("span",{css:ee},"Edit"),(0,e.jsx)(O,{src:n,css:mt,alt:"Logo"})):null,(0,e.jsx)("button",{type:"button",onClick:()=>{o(t)},css:De},(0,e.jsx)("span",{css:ee},"Unlink"),(0,e.jsx)(ft.Icon,{icon:ze.CgClose,iconColor:"red",size:16})))))};var N=j(require("react"));var te=require("@emotion/react"),ht=te.css`
240
235
  cursor: pointer;
241
236
  padding: var(--spacing-sm);
242
237
  position: relative;
243
238
  transition: background-color var(--duration-fast) var(--timing-ease-out),
244
239
  color var(--duration-fast) var(--timing-ease-out);
245
- `,it=J.css`
240
+ `,bt=te.css`
246
241
  padding-right: var(--spacing-lg);
247
- `,st=J.css`
242
+ `,yt=te.css`
248
243
  background: var(--brand-secondary-3);
249
244
  color: var(--white);
250
- `,Ve=J.css`
245
+ `,Ue=te.css`
251
246
  font-size: var(--fs-xs);
252
- `,Ee=J.css`
247
+ `,Ge=te.css`
253
248
  font-weight: var(--fw-bold);
254
249
  margin-right: var(--spacing-sm);
255
- `,ct=J.css`
250
+ `,St=te.css`
256
251
  background: var(--white);
257
252
  border-left: 4px solid var(--brand-secondary-3);
258
253
  border-radius: var(--rounded-base);
@@ -264,20 +259,20 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
264
259
  right: var(--spacing-xl);
265
260
  z-index: var(--z-10);
266
261
  width: max-content;
267
- `,dt=J.css`
262
+ `,wt=te.css`
268
263
  position: absolute;
269
264
  inset: 0 var(--spacing-sm) 0 auto;
270
- `;var lt=require("@emotion/react"),pt=({result:t,isSelected:n,triggerSelection:o})=>{let r=(0,$.useRef)(null),a=(0,$.useRef)(null),[d,m]=(0,$.useState)(!1);(0,$.useEffect)(()=>{function h(b){r.current&&!r.current.contains(b.target)&&a.current&&!a.current.contains(b.target)&&m(!1)}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[a]);let v=h=>{h.stopPropagation(),m(!d)};return(0,e.jsx)("div",{key:t.id,css:[at,n?st:void 0,t.popoverData?it:void 0],"data-value":t.id,role:"option",tabIndex:-1,onClick:()=>o()},t.title,t.popoverData&&n?(0,e.jsx)($.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:r,css:dt,"aria-controls":"path-details",onClick:h=>v(h),"aria-expanded":d},(0,e.jsx)(ce,{width:24,height:24})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!d,ref:a,css:[ct,d?lt.css`
265
+ `;var Ct=require("@emotion/react"),Pt=({result:t,isSelected:n,triggerSelection:o})=>{let r=(0,N.useRef)(null),a=(0,N.useRef)(null),[i,l]=(0,N.useState)(!1);(0,N.useEffect)(()=>{function g(v){r.current&&!r.current.contains(v.target)&&a.current&&!a.current.contains(v.target)&&l(!1)}return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[a]);let f=g=>{g.stopPropagation(),l(!i)};return(0,e.jsx)("div",{key:t.id,css:[ht,n?yt:void 0,t.popoverData?bt:void 0],"data-value":t.id,role:"option",tabIndex:-1,onClick:()=>o()},t.title,t.popoverData&&n?(0,e.jsx)(N.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:r,css:wt,"aria-controls":"path-details",onClick:g=>f(g),"aria-expanded":i},(0,e.jsx)(Te,{width:24,height:24})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!i,ref:a,css:[St,i?Ct.css`
271
266
  visibility: visible;
272
- `:lt.css`
267
+ `:Ct.css`
273
268
  visibility: hidden;
274
- `]},t.metadata&&Object.entries(t.metadata).map(([h,b],i)=>(0,e.jsx)("div",{css:Ve,key:i},(0,e.jsx)("span",{css:Ee},h,":"),b)),Object.entries(t.popoverData).map(([h,b],i)=>(0,e.jsx)("div",{css:Ve,key:i},(0,e.jsx)("span",{css:Ee},h,":"),b)))):null)};var de=require("react-beautiful-dnd");var P=require("@emotion/react"),ut=P.css`
269
+ `]},t.metadata&&Object.entries(t.metadata).map(([g,v],s)=>(0,e.jsx)("div",{css:Ue,key:s},(0,e.jsx)("span",{css:Ge},g,":"),v)),Object.entries(t.popoverData).map(([g,v],s)=>(0,e.jsx)("div",{css:Ue,key:s},(0,e.jsx)("span",{css:Ge},g,":"),v)))):null)};var ge=require("react-beautiful-dnd");var L=require("@emotion/react"),Lt=L.css`
275
270
  background: var(--white);
276
271
  border: 1px solid var(--gray-300);
277
272
  border-radius: var(--rounded-base);
278
273
  padding: calc(var(--spacing-base) - 0.25rem) var(--spacing-sm);
279
274
  margin-bottom: var(--spacing-base);
280
- `,mt=P.css`
275
+ `,Rt=L.css`
281
276
  align-items: center;
282
277
  display: flex;
283
278
  position: relative;
@@ -285,7 +280,7 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
285
280
  width: 100%;
286
281
  background-color: transparent;
287
282
  border: 0;
288
- `,gt=P.css`
283
+ `,xt=L.css`
289
284
  color: var(--brand-secondary-1);
290
285
  display: block;
291
286
  font-weight: var(--fw-bold);
@@ -301,221 +296,306 @@ var Pr=Object.create;var Se=Object.defineProperty;var Rr=Object.getOwnPropertyDe
301
296
  background: var(--gray-100);
302
297
  outline: none;
303
298
  }
304
- `,ft=P.css`
299
+ `,kt=L.css`
305
300
  background: var(--white);
306
301
  border: 1px solid var(--gray-300);
307
302
  border-radius: var(--rounded-base);
308
303
  padding: calc(var(--spacing-base) - 0.25rem) var(--spacing-base);
309
304
  display: block;
310
- `,vt=P.css`
305
+ `,It=L.css`
311
306
  display: none;
312
- `,ht=P.css`
307
+ `,Et=L.css`
313
308
  overflow-y: auto;
314
- max-height: 16rem;
309
+ height: 16rem;
315
310
  margin-bottom: var(--spacing-base);
311
+ position: relative;
316
312
 
317
313
  & > :not(:last-child) {
318
314
  border-bottom: 1px solid var(--gray-200);
319
315
  }
320
- `,Wr=P.css`
316
+ `,Uo=L.css`
321
317
  background-color: var(--gray-50);
322
318
  max-width: 33.33%;
323
- `,bt=P.css`
319
+ `,Tt=L.css`
324
320
  align-items: center;
325
321
  display: flex;
326
322
  position: absolute;
327
323
  inset: 0 0 0 auto;
328
324
  pointer-events: none;
329
325
  padding-right: var(--spacing-sm);
330
- `,yt=P.css`
326
+ `,Mt=L.css`
331
327
  color: var(--brand-secondary-1);
332
328
  width: 1.25rem;
333
329
  height: 1.25rem;
334
330
  transition: transform var(--duration-fast) var(--timing-ease-out);
335
331
  transform: rotate(0);
336
- `,Zr=P.css`
332
+ `,Go=L.css`
337
333
  background: var(--white);
338
334
  color: var(--brand-secondary-1);
339
- `,St=P.css`
335
+ `,Vt=L.css`
340
336
  position: relative;
341
337
  margin-block: var(--spacing-sm) 0;
342
338
 
343
339
  &:hover > span {
344
340
  opacity: 0.3;
345
341
  }
346
- `,wt=P.css`
342
+ `,Dt=L.css`
347
343
  align-items: center;
348
344
  display: flex;
349
345
  position: absolute;
350
346
  inset: 0 auto 0 0;
351
347
  margin-block: auto;
352
348
  opacity: 0;
353
- `,Te=P.css`
349
+ `,Ae=L.css`
354
350
  color: var(--brand-secondary-1);
355
- `,Ct=P.css`
351
+ `,zt=L.css`
356
352
  position: absolute;
357
353
  left: 0.375rem;
358
- `,Ie=P.css`
354
+ `,Be=L.css`
359
355
  width: calc(var(--spacing-lg) + var(--spacing-xs));
360
356
  height: calc(var(--spacing-lg) + var(--spacing-xs));
361
- `;var D=require("@emotion/react"),S=require("@uniformdev/design-system"),qr=({searchText:t,selectedContentType:n})=>{let o="No content found";return n&&(o=`No ${n} content was found`),t&&(o=`${o} for keyword '${t}'.`),(0,e.jsx)(S.Callout,{type:"info"},o)},Pt=({search:t,results:n,contentTypes:o,selectedItems:r,logoIcon:a,select:d,multiSelect:m,multiSelectId:v,rowComponent:h,selectedItemComponent:b,totalResults:i,resultsLoading:g,requireContentType:w,onAddNew:ee,onEditClosed:K,onCancel:C,noResultsComponent:y,helpComponent:te,onSort:j,typeSelectorLabel:A="Content Type Select",typeSelectorAllTypesOptionText:Q="All content types"})=>{var $t,Kt,Qt;let re=()=>w?Array.isArray(o)&&o.length>0?o[0].id:"":"any",[N,B]=G.useState(""),[u,V]=G.useState(re),[_,oe]=G.useState(!1),[s,E]=G.useState([]),[le,Bt]=G.useState(!1),be=(0,cr.useThrottle)(N,750);G.useEffect(()=>{t(be,{count:5,offset:0,contentType:u==="any"?void 0:u})},[be,u]);let ur=c=>{s.some(f=>f.id===c.id)?E(f=>f.filter(ne=>ne.id!==c.id)):E(m?f=>[...f,c]:[c])},mr=()=>{V(re()),B(""),E(r!=null&&r.length?r:[])},gr=()=>{oe(c=>!c),_||mr()},Ot=c=>{d((r==null?void 0:r.filter(f=>f.id!==c.id))||[],"")},fr=c=>{c.preventDefault(),d(s,u),oe(!1)},vr=c=>{c.preventDefault(),oe(!1),C&&C()},hr=c=>{c.preventDefault(),t(be,{count:5,offset:(n==null?void 0:n.length)||0,contentType:u==="any"?void 0:u}),Bt(!0);let f=setTimeout(()=>{Bt(!1)},750);return()=>clearTimeout(f)},Ue=G.useRef((0,dr.v4)()),br=!(r==null?void 0:r.length)||m,yr=h||pt,Ht=b||nt,Sr=y||qr,Ft=a&&typeof a!="string"?a:null,wr=Ft?(0,e.jsx)(Ft,{css:Ie}):(0,e.jsx)("img",{src:a,alt:"Logo",css:Ie}),Cr=c=>{var f,ne;if(c.destination&&c.source.droppableId===((f=c.destination)==null?void 0:f.droppableId)){let T=[...r||[]],[pe]=(ne=T==null?void 0:T.splice(c.source.index,1))!=null?ne:[];return T==null||T.splice(c.destination.index,0,pe),j==null||j(T),T}};return(0,e.jsx)("div",{css:D.css`
357
+ `;var G=require("@emotion/react"),C=require("@uniformdev/design-system");var ae=require("react");function Kr(t,{delay:n=500,minDuration:o=200}={delay:500,minDuration:200}){let[r,a]=(0,ae.useState)("IDLE"),i=(0,ae.useRef)(void 0);return(0,ae.useEffect)(()=>{t&&r==="IDLE"&&(clearTimeout(i.current),i.current=setTimeout(()=>{if(!t)return a("IDLE");i.current=setTimeout(()=>{a("EXPIRE")},o),a("DISPLAY")},n),a("DELAY")),!t&&r!=="DISPLAY"&&(clearTimeout(i.current),a("IDLE"))},[t,r,n,o]),(0,ae.useEffect)(()=>()=>clearTimeout(i.current),[]),r==="DISPLAY"||r==="EXPIRE"}var Ao=({searchText:t,selectedContentType:n})=>{let o="No content found";return n&&n!=="any"&&(o=`No ${n} content was found`),t&&(o=`${o} for keyword '${t}'.`),(0,e.jsx)(C.Callout,{type:"info"},o)},Ut=({search:t,results:n,contentTypes:o,selectedItems:r,logoIcon:a,select:i,multiSelect:l,multiSelectId:f,rowComponent:g,selectedItemComponent:v,totalResults:s,resultsLoading:p,requireContentType:b,onAddNew:D,onEditClosed:_,onCancel:P,noResultsComponent:y,helpComponent:de,onSort:Z,typeSelectorLabel:ne="Content Type Select",typeSelectorAllTypesOptionText:X="All content types",loadingIndicatorDelay:q=1e3})=>{var gr,fr,vr;let le=()=>b?Array.isArray(o)&&o.length>0?o[0].id:"":"any",[Y,k]=T.useState(""),[u,M]=T.useState(le),[H,d]=T.useState(!1),[S,z]=T.useState([]),[qr,lr]=T.useState(!1),_e=T.useRef(`x${(0,Qr.v4)()}`),we=(0,Nr.useThrottle)(Y,750);T.useEffect(()=>{t(we,{count:5,offset:0,contentType:u==="any"?void 0:u})},[we,u]);let Yr=Kr(p,{delay:q}),Jr=c=>{S.some(h=>h.id===c.id)?z(h=>h.filter(J=>J.id!==c.id)):z(l?h=>[...h,c]:[c])},jr=r==null?void 0:r.map(c=>c.id+c.title).join(",");T.useEffect(()=>{Array.isArray(r)&&z(r)},[jr]);let eo=()=>{M(le()),k(""),z(r!=null&&r.length?r:[])},to=()=>{d(c=>!c),H||eo()},pr=c=>{let h=(S==null?void 0:S.filter(J=>J.id!==c.id))||[];z(h),i(h,"")},ro=c=>{c.preventDefault(),i(S,u),d(!1)},oo=c=>{c.preventDefault(),d(!1),P&&P()},no=()=>{t(we,{count:5,offset:(n==null?void 0:n.length)||0,contentType:u==="any"?void 0:u}),lr(!0);let c=setTimeout(()=>{lr(!1)},750);return()=>clearTimeout(c)},ao=!(r==null?void 0:r.length)||l,io=g||Pt,mr=v||vt,so=y||Ao,ur=a&&typeof a!="string"?a:null,co=ur?(0,e.jsx)(ur,{css:Be}):(0,e.jsx)("img",{src:a,alt:"Logo",css:Be}),lo=c=>{var h,J;if(c.destination&&c.source.droppableId===((h=c.destination)==null?void 0:h.droppableId)){let I=[...r||[]],[fe]=(J=I==null?void 0:I.splice(c.source.index,1))!=null?J:[];return I==null||I.splice(c.destination.index,0,fe),Z&&(z(I),Z==null||Z(I)),I}};return(0,e.jsx)("div",{css:G.css`
362
358
  width: 100%;
363
- `},(0,e.jsx)("div",{css:D.css`
359
+ `},(0,e.jsx)("div",{css:G.css`
364
360
  position: relative;
365
361
  margin-block: var(--spacing-base);
366
- `},br&&(0,e.jsx)(G.Fragment,null,(0,e.jsx)("div",{css:ut,"data-test-id":"component-search"},(0,e.jsx)("button",{css:mt,onClick:gr,type:"button","aria-haspopup":!0,"aria-expanded":_,"aria-controls":`entry-search-config-${Ue.current}`},wr,(0,e.jsx)("span",{css:D.css`
362
+ `},ao?(0,e.jsx)(T.Fragment,null,(0,e.jsx)("div",{css:Lt,"data-test-id":"component-search"},(0,e.jsx)("button",{css:Rt,onClick:to,type:"button","aria-haspopup":!0,"aria-expanded":H,"aria-controls":`entry-search-config-${_e.current}`},co,(0,e.jsx)("span",{css:G.css`
367
363
  margin-left: var(--spacing-base);
368
- `},"Select"),(0,e.jsx)("span",{css:bt},(0,e.jsx)(xe,{css:[yt,_?D.css`
364
+ `},"Select"),(0,e.jsx)("span",{css:Tt},(0,e.jsx)(Ee,{css:[Mt,H?G.css`
369
365
  transform: rotate(180deg);
370
- `:void 0]})))),(0,e.jsx)("div",{id:`entry-search-config-${Ue.current}`,"aria-hidden":!_,css:[ft,_?void 0:vt]},te||null,(0,e.jsx)("div",{css:D.css`
366
+ `:void 0]})))),(0,e.jsx)("div",{id:`entry-search-config-${_e.current}`,"aria-hidden":!H,css:[kt,H?void 0:It]},de||null,(0,e.jsx)("div",{css:G.css`
371
367
  display: flex;
372
368
  gap: calc(var(--spacing-base) - 0.25rem);
373
369
  margin-bottom: var(--spacing-base);
374
- `},(0,e.jsx)(S.InputSelect,{onChange:c=>V(c.target.value),value:u,label:A,showLabel:!1,options:[...w?[]:[{value:"any",label:Q}],...o?o.map(c=>({value:c.id,label:c.name})):[]]}),(0,e.jsx)("div",{css:D.css`
370
+ `},(0,e.jsx)(C.InputSelect,{onChange:c=>M(c.target.value),value:u,label:ne,showLabel:!1,options:[...b?[]:[{value:"any",label:X}],...o?o.map(c=>({value:c.id,label:c.name})):[]]}),(0,e.jsx)("div",{css:G.css`
375
371
  flex-grow: 1;
376
- `},(0,e.jsx)(S.InputKeywordSearch,{inputFieldName:"searchText",placeholder:"Enter keyword to narrow your results",onSearchTextChanged:B,disabledFieldSubmission:!0,value:N}))),(0,e.jsx)("div",{css:[ht,S.scrollbarStyles],id:Ue.current,role:"listbox",tabIndex:0,"data-test-id":"entry-list"},!g&&Array.isArray(n)?n.map(c=>(0,e.jsx)(yr,{key:c.id,isSelected:s.some(f=>f.id===c.id),result:c,triggerSelection:()=>ur(c)})):g?null:(0,e.jsx)(Sr,{searchText:be||N,selectedContentType:(Kt=($t=o==null?void 0:o.find(c=>c.id===u))==null?void 0:$t.name)!=null?Kt:u}),!g&&typeof i!="undefined"&&n&&(n==null?void 0:n.length)<i&&(0,e.jsx)("button",{css:gt,onClick:hr},le?(0,e.jsx)(S.LoadingIndicator,null):"Load More"),g&&!(n!=null&&n.length)?(0,e.jsx)("div",{css:D.css`
377
- padding: var(--spacing-base);
378
- text-align: center;
379
- width: 100%;
380
- `},(0,e.jsx)(S.LoadingIndicator,null)):null),(0,e.jsx)("div",{css:D.css`
372
+ `},(0,e.jsx)(C.InputKeywordSearch,{inputFieldName:"searchText",placeholder:"Enter keyword to narrow your results",onSearchTextChanged:k,disabledFieldSubmission:!0,value:Y}))),(0,e.jsx)("div",{css:[Et,C.scrollbarStyles],id:_e.current,role:"listbox",tabIndex:0,"data-test-id":"entry-list"},(0,e.jsx)(C.LoadingOverlay,{isActive:Yr}),Array.isArray(n)&&n.length>0?n.map(c=>(0,e.jsx)(io,{key:c.id,isSelected:S.some(h=>h.id===c.id),result:c,triggerSelection:()=>Jr(c)})):(0,e.jsx)(so,{searchText:we||Y,selectedContentType:(fr=(gr=o==null?void 0:o.find(c=>c.id===u))==null?void 0:gr.name)!=null?fr:u}),!p&&typeof s!="undefined"&&n&&(n==null?void 0:n.length)<s&&(0,e.jsx)("button",{type:"button",css:xt,onClick:no},qr?(0,e.jsx)(C.LoadingIndicator,null):"Load More")),(0,e.jsx)("div",{css:G.css`
381
373
  display: flex;
382
374
  justify-content: space-between;
383
- `},(0,e.jsx)("div",null,ee&&((Qt=o==null?void 0:o.length)!=null?Qt:0)>0?(0,e.jsx)(S.Menu,{menuLabel:"Add new menu",menuTrigger:(0,e.jsx)(S.Button,{buttonType:"secondary"},"Add New")},o==null?void 0:o.map(c=>(0,e.jsx)(S.MenuItem,{key:c.id,css:D.css`
375
+ `},(0,e.jsx)("div",null,D&&((vr=o==null?void 0:o.length)!=null?vr:0)>0?(0,e.jsx)(C.Menu,{menuLabel:"Add new menu",menuTrigger:(0,e.jsx)(C.Button,{buttonType:"secondary"},"Add New")},o==null?void 0:o.map(c=>(0,e.jsx)(C.MenuItem,{key:c.id,css:G.css`
384
376
  background: var(--white);
385
377
  color: var(--brand-secondary-1);
386
- `,onClick:()=>ee(c)},c.name))):null),(0,e.jsx)("div",{css:D.css`
378
+ `,onClick:()=>D(c)},c.name))):null),(0,e.jsx)("div",{css:G.css`
387
379
  display: flex;
388
380
  gap: var(--spacing-base);
389
- `},(0,e.jsx)(S.Button,{buttonType:"unimportant",onClick:vr},"Cancel"),(0,e.jsx)(S.Button,{disabled:!s.length,onClick:fr,"data-test-id":"entry-accept-button"},"Accept"))))),m?(0,e.jsx)(de.DragDropContext,{onDragEnd:c=>Cr(c)},(0,e.jsx)(de.Droppable,{droppableId:v||"canvas-multi-select"},c=>(0,e.jsx)("div",{...c.droppableProps,ref:c.innerRef,css:D.css`
390
- margin-block: var(--spacing-sm) 0;
391
- `},r==null?void 0:r.map((f,ne)=>{if(f!=null&&f.id)return(0,e.jsx)(de.Draggable,{key:f.id,draggableId:f.id,index:ne},T=>(0,e.jsx)("div",{css:St,ref:T.innerRef,...T.draggableProps,...T.dragHandleProps},(0,e.jsx)("span",{css:wt},(0,e.jsx)(me,{css:[Te,Ct],width:24,height:24}),(0,e.jsx)(me,{css:Te,width:24,height:24})),(0,e.jsx)(Ht,{key:`selected-item-${f.id}`,logoIcon:a,selectedItem:f,onDeselect:pe=>Ot(pe),onEditClosed:K?pe=>K(pe):void 0})))}),c.placeholder))):r==null?void 0:r.map(c=>(0,e.jsx)(Ht,{key:`selected-item-${c.id}`,logoIcon:a,selectedItem:c,onDeselect:f=>Ot(f),onEditClosed:K?f=>K(f):void 0}))))};var X=require("@emotion/react"),Rt=X.css`
381
+ `},(0,e.jsx)(C.Button,{buttonType:"unimportant",onClick:oo},"Cancel"),(0,e.jsx)(C.Button,{disabled:!S.length,onClick:ro,"data-test-id":"entry-accept-button"},"Accept"))))):null,H?null:l?(0,e.jsx)(ge.DragDropContext,{onDragEnd:c=>lo(c)},(0,e.jsx)(ge.Droppable,{droppableId:f||"canvas-multi-select"},c=>(0,e.jsx)("div",{...c.droppableProps,ref:c.innerRef,css:G.css`
382
+ margin-block: var(--spacing-sm) 0;
383
+ `},S==null?void 0:S.map((h,J)=>{if(h!=null&&h.id)return(0,e.jsx)(ge.Draggable,{key:h.id,draggableId:h.id,index:J},I=>(0,e.jsx)("div",{css:Vt,ref:I.innerRef,...I.draggableProps,...I.dragHandleProps},(0,e.jsx)("span",{css:Dt},(0,e.jsx)(he,{css:[Ae,zt],width:24,height:24}),(0,e.jsx)(he,{css:Ae,width:24,height:24})),(0,e.jsx)(mr,{key:`selected-item-${h.id}`,logoIcon:a,selectedItem:h,onDeselect:fe=>pr(fe),onEditClosed:_?fe=>_(fe):void 0})))}),c.placeholder))):S==null?void 0:S.map(c=>(0,e.jsx)(mr,{key:`selected-item-${c.id}`,logoIcon:a,selectedItem:c,onDeselect:h=>pr(h),onEditClosed:_?h=>_(h):void 0}))))};var re=require("@emotion/react"),Gt=re.css`
392
384
  cursor: pointer;
393
385
  padding: var(--spacing-sm) 0;
394
386
  margin-right: var(--spacing-sm);
395
387
  position: relative;
396
388
  transition: background-color var(--duration-fast) var(--timing-ease-out),
397
389
  color var(--duration-fast) var(--timing-ease-out);
398
- `,kt=X.css`
390
+ `,At=re.css`
399
391
  border: 2px solid transparent;
400
392
  border-radius: var(--rounded-base);
401
393
  display: flex;
402
394
  align-items: center;
403
395
  gap: var(--spacing-base);
404
396
  padding: var(--spacing-sm) var(--spacing-xs);
405
- `,xt=X.css`
397
+ `,Bt=re.css`
406
398
  background-color: var(--green-50);
407
- `,Lt=X.css`
399
+ `,Ot=re.css`
408
400
  font-size: var(--fs-sm);
409
401
  font-weight: var(--fw-bold);
410
402
  width: 50%;
411
- `,Mt=X.css`
403
+ `,Ht=re.css`
412
404
  font-weight: var(--fw-normal);
413
405
  display: block;
414
- `,Vt=X.css`
406
+ `,$t=re.css`
415
407
  font-size: var(--fs-sm);
416
408
  > * {
417
409
  display: block;
418
410
  }
419
- `,Et=X.css`
411
+ `,Ft=re.css`
420
412
  display: block;
421
413
  height: 1.5rem;
422
414
  width: 1.5rem;
423
415
  color: var(--brand-secondary-3);
424
416
  margin-left: auto;
425
- `;var Tt=require("@emotion/react");function It({result:t,isSelected:n,triggerSelection:o}){var v;let{categories:r,logoIcon:a}=fe(),[d]=t.categories||[{id:"",name:""}],m=typeof d=="undefined"||!r||(v=r.find(h=>h.id===d.id))==null?void 0:v.name;return(0,e.jsx)("div",{key:t.id,"data-value":t.id,role:"option",tabIndex:-1,onClick:()=>o(),css:[Rt]},(0,e.jsx)("div",{css:[kt,n?xt:void 0]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:`Thumbnail for ${t.title}`,css:Tt.css`
417
+ `;var Kt=require("@emotion/react");function Nt({result:t,isSelected:n,triggerSelection:o}){var f;let{categories:r,logoIcon:a}=be(),[i]=t.categories||[{id:"",name:""}],l=typeof i=="undefined"||!r||(f=r.find(g=>g.id===i.id))==null?void 0:f.name;return(0,e.jsx)("div",{key:t.id,"data-value":t.id,role:"option",tabIndex:-1,onClick:()=>o(),css:[Gt]},(0,e.jsx)("div",{css:[At,n?Bt:void 0]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:`Thumbnail for ${t.title}`,css:Kt.css`
426
418
  background-color: var(--gray-200);
427
419
  width: 3rem;
428
420
  height: 3rem;
429
421
  object-fit: cover;
430
- `}):(0,e.jsx)(Z,{src:a,alt:"Logo",css:Tt.css`
422
+ `}):(0,e.jsx)(O,{src:a,alt:"Logo",css:Kt.css`
431
423
  height: 2.25rem;
432
424
  width: 2.25rem;
433
- `}),(0,e.jsx)("h4",{css:[Lt]},t.title,m?(0,e.jsx)("span",{css:[Mt]},m):null),(0,e.jsx)("p",{css:[Vt]},"SKU: ",t.sku||t.id,t.price!==void 0?(0,e.jsx)("span",null,t.price):null),n?(0,e.jsx)(ke,{css:[Et]}):null))}var ve=require("@emotion/react"),lr=require("@uniformdev/design-system"),Dt=ve.css`
425
+ `}),(0,e.jsx)("h4",{css:[Ot]},t.title,l?(0,e.jsx)("span",{css:[Ht]},l):null),(0,e.jsx)("p",{css:[$t]},"SKU: ",t.sku||t.id,t.price!==void 0?(0,e.jsx)("span",null,t.price):null),n?(0,e.jsx)(Ie,{css:[Ft]}):null))}var Q=require("@emotion/react"),Qt=require("@uniformdev/design-system"),Wt=Q.css`
426
+ border: 1px solid var(--gray-200);
427
+ border-radius: var(--rounded-base);
428
+ background: var(--gray-50);
434
429
  display: flex;
435
430
  width: 100%;
436
- border: 1px solid var(--gray-300);
437
- border-radius: var(--rounded-base);
438
- background-color: var(--gray-100);
439
- margin: var(--spacing-base) 0;
440
- `,Gt=ve.css`
441
- padding: var(--spacing-base) 0 var(--spacing-base) var(--spacing-lg);
431
+ margin-block: var(--spacing-base) 0;
432
+ `,_t=Q.css`
433
+ align-items: center;
434
+ display: flex;
435
+ padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-lg);
442
436
  display: flex;
443
437
  flex-grow: 1;
444
- align-items: center;
445
- margin-right: var(--spacing-sm);
446
- gap: var(--spacing-base);
447
- `,zt=ve.css`
438
+ gap: var(--spacing-sm);
439
+ margin-inline: 0 var(--spacing-sm);
440
+ `,Zt=Q.css`
448
441
  display: flex;
449
442
  align-items: center;
450
443
  gap: var(--spacing-sm);
451
- ${(0,lr.mq)("lg")} {
444
+ flex-grow: 1;
445
+
446
+ ${(0,Qt.mq)("lg")} {
452
447
  width: 50%;
453
448
  margin-bottom: 0;
454
449
  }
455
- `,De=ve.css`
450
+ `,Oe=Q.css`
456
451
  background-color: var(--gray-200);
457
452
  width: 3.5rem;
458
453
  height: 3.5rem;
459
454
  object-fit: cover;
460
- `;var x=require("@emotion/react"),pr=require("@uniformdev/design-system");function Ut({selectedItem:t,onDeselect:n}){var m;let{categories:o,logoIcon:r}=fe(),[a]=t.categories||[{id:"",name:""}],d=typeof a=="undefined"||!o||(m=o.find(v=>v.id===a.id))==null?void 0:m.name;return(0,e.jsx)("div",{css:[Dt],key:t.id},(0,e.jsx)("article",{css:[Gt]},(0,e.jsx)("div",{css:[zt]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:d,css:[De],loading:"lazy"}):(0,e.jsx)("div",{css:[De]}),(0,e.jsx)("div",{css:x.css`
455
+ `,He=Q.css`
456
+ align-items: center;
457
+ background: var(--white);
458
+ border-radius: var(--rounded-base);
459
+ border: 2px solid var(--gray-300);
460
+ color: currentColor;
461
+ display: flex;
462
+ gap: var(--spacing-sm);
463
+ padding: var(--spacing-sm) var(--spacing-base);
464
+ justify-content: space-between;
465
+ text-decoration: none;
466
+
467
+ &:hover {
468
+ background: var(--gray-50);
469
+ }
470
+ `,$e=Q.css`
471
+ font-size: var(--fs-sm);
472
+ `,Xt=Q.css`
473
+ display: block;
474
+ width: 1rem;
475
+ height: 1rem;
476
+ `,qt=Q.css`
477
+ display: flex;
478
+ flex-direction: column;
479
+ gap: var(--spacing-sm);
480
+
481
+ ${(0,Qt.mq)("md")} {
482
+ flex-direction: row;
483
+ min-width: 200px;
484
+ justify-content: end;
485
+ }
486
+ `;var ie=require("@emotion/react"),Fe=require("@uniformdev/design-system"),Wr=require("react-icons/cg");function Yt({selectedItem:t,onDeselect:n}){var l;let{categories:o,logoIcon:r}=be(),[a]=t.categories||[{id:"",name:""}],i=typeof a=="undefined"||!o||(l=o.find(f=>f.id===a.id))==null?void 0:l.name;return(0,e.jsx)("div",{css:[Wt],key:t.id},(0,e.jsx)("article",{css:[_t]},(0,e.jsx)("div",{css:[Zt]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:i,css:[Oe],loading:"lazy"}):(0,e.jsx)("div",{css:[Oe]}),(0,e.jsx)("div",{css:ie.css`
461
487
  > :not(:last-child) {
462
488
  margin-bottom: var(--spacing-xs);
463
489
  }
464
- `},(0,e.jsx)("h4",{css:x.css`
490
+ `},(0,e.jsx)("h4",{css:ie.css`
491
+ margin-top: 0px;
465
492
  font-weight: var(--fw-bold);
466
- `},t.title||t.id||"",d&&(0,e.jsx)("span",{css:x.css`
493
+ `},t.title||t.id||"",i&&(0,e.jsx)("span",{css:ie.css`
467
494
  display: block;
468
495
  font-weight: var(--fw-regular);
469
- `},d)),(0,e.jsx)("ul",{css:x.css`
496
+ `},i)),(0,e.jsx)("ul",{css:ie.css`
470
497
  font-size: var(--fs-sm);
471
- display: flex;
472
- gap: var(--spacing-base);
473
- `},(0,e.jsx)("li",null,(0,e.jsx)("span",{css:x.css`
498
+
499
+ ${(0,Fe.mq)("sm")} {
500
+ display: flex;
501
+ gap: var(--spacing-base);
502
+ }
503
+ `},(0,e.jsx)("li",null,(0,e.jsx)("span",{css:ie.css`
474
504
  margin-right: var(--spacing-xs);
475
- `},"SKU:"),t.sku||t.id),t.price!==void 0?(0,e.jsx)("li",null,(0,e.jsx)("span",{css:x.css`
505
+ `},"SKU:"),t.sku||t.id),t.price!==void 0?(0,e.jsx)("li",null,(0,e.jsx)("span",{css:ie.css`
476
506
  margin-right: var(--spacing-xs);
477
- `},"Price:"),(0,e.jsx)("span",null,t.price)):null))),(0,e.jsx)("div",{css:x.css`
478
- display: flex;
479
- flex-wrap: wrap;
480
- gap: var(--spacing-sm);
481
- justify-content: flex-end;
482
- margin-left: auto;
483
- ${(0,pr.mq)("md")} {
484
- align-items: center;
485
- }
486
- `},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener",target:"__blank",css:x.css`
487
- display: inline-flex;
488
- justify-content: space-between;
489
- align-items: center;
490
- padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-base);
491
- background-color: var(--white);
492
- border-radius: var(--rounded-base);
493
- border: 2px solid var(--gray-400);
494
- &:hover {
495
- background-color: var(--gray-100);
496
- }
497
- `},(0,e.jsx)("span",{css:x.css`
498
- margin-right: var(--spacing-sm);
499
- font-size: var(--fs-sm);
500
- `},"Edit"),(0,e.jsx)(Z,{src:r,alt:"Logo",css:x.css`
501
- width: 1.75rem;
502
- height: 1.75rem;
503
- display: block;
504
- `})):null,(0,e.jsx)("button",{type:"button",onClick:v=>{v.preventDefault(),n==null||n(t)},css:x.css`
505
- display: flex;
506
- justify-content: space-between;
507
- align-items: center;
508
- background-color: var(--white);
509
- border-radius: var(--rounded-base);
510
- border: 2px solid var(--gray-400);
511
- height: 2.5rem;
512
- padding: 0 var(--spacing-base);
513
- gap: var(--spacing-sm);
514
- &:hover {
515
- background-color: var(--gray-100);
516
- }
517
- `},(0,e.jsx)("span",{css:x.css`
518
- font-size: var(--fs-sm);
519
- `},"Unlink"),(0,e.jsx)(se,{css:x.css`
520
- color: var(--brand-secondary-5);
521
- `})))))}var Ge=require("@uniformdev/design-system"),ze=require("react-use");function Jr({selectedProducts:t,setSelectedProducts:n,onGetCategories:o,onSearchProducts:r,logoIcon:a,multiSelect:d,multiSelectId:m,selectedItemComponent:v,rowComponent:h,errorComponent:b,helpComponent:i,noResultsComponent:g,onSort:w,typeSelectorAllTypesOptionText:ee="All categories",typeSelectorLabel:K="Select Category"}){var N;let{value:C,loading:y,error:te}=(0,ze.useAsync)(async()=>await o(),[o]),j=(0,Y.useMemo)(()=>C?C.map(u=>({id:u.id,name:u.name})):void 0,[C]),A=(0,Y.useRef)(),[Q,he]=(0,ze.useAsyncFn)(async(B,u)=>{let V=await r({text:B,options:{limit:u==null?void 0:u.count,offset:u==null?void 0:u.offset,categoryId:u==null?void 0:u.contentType}});return(u==null?void 0:u.offset)===0&&(A.current=[]),(A.current=A.current||[]).push(...V.products),V},[r]),re=async B=>{await n(B)};return y?(0,e.jsx)(Ge.LoadingIndicator,null):te||Q.error?(0,e.jsx)(b||(({categoriesError:u,searchError:V})=>(0,e.jsx)(Ge.Callout,{type:"error"},"There was an error: ",(u==null?void 0:u.message)||(V==null?void 0:V.message))),{categoriesError:te,searchError:Q.error}):(0,e.jsx)(At.Provider,{value:{categories:C,logoIcon:a}},(0,e.jsx)(Pt,{search:he,results:A.current,logoIcon:a,selectedItems:t,select:re,multiSelectId:m||"product-search-multi-select",multiSelect:d,contentTypes:j,selectedItemComponent:v||Ut,rowComponent:h||It,totalResults:(N=Q.value)==null?void 0:N.total,resultsLoading:Q.loading,helpComponent:i,noResultsComponent:g,onSort:w,typeSelectorAllTypesOptionText:ee,typeSelectorLabel:K}))}var At=Y.default.createContext(void 0),fe=()=>{let t=(0,Y.useContext)(At);if(!t)throw new Error("useProductSearchContext must be used within a <ProductSearchContext> provider");return t};U(z,require("@uniformdev/mesh-sdk"),module.exports);var p=require("@uniformdev/design-system");0&&(module.exports={Button,Callout,DefaultSearchRow,DefaultSelectedItem,EntrySearch,Heading,Icons,Input,InputSelect,InputToggle,KeywordSearchInput,Label,LoadingIndicator,LoadingOverlay,Menu,MenuItem,ProductPreviewList,ProductQuery,ProductQueryContext,ProductSearch,ProductSearchContext,ProductSearchRow,ProductSelectedItem,ResolvableLoadingValue,ScrollableList,ScrollableListItem,SelectionField,Switch,Textarea,Theme,UniformMeshLocationContext,UniformMeshLocationContextProvider,UniformMeshSdkContext,UniformMeshSdkContextProvider,badgeIcon,draggableContainer,draggableIcon,draggableIconOffset,draggableIconWrapper,entrySearchBtn,entrySearchConfig,entrySearchConfigHidden,entrySearchLoadMoreBtn,entrySearchResultList,entrySearchSelectIcon,entrySearchSelectImg,entrySearchSelectInput,entrySearchSelectOption,entrySearchWrapper,productSearchRowActiveIcon,productSearchRowCategory,productSearchRowContainer,productSearchRowContent,productSearchRowContentActive,productSearchRowDetails,productSearchRowTitle,productSelectedItemContainer,productSelectedItemContent,productSelectedItemDetails,productSelectedItemImage,searchRowBtn,searchRowContainer,searchRowContainerActive,searchRowContainerWithPopover,searchRowPopover,searchRowText,searchRowTextSmall,selectItemLinkBtn,selectItemLinkContainer,selectItemPopover,selectItemPopoverLabel,selectItemSmallText,selectedItemCloseIcon,selectedItemContainer,selectedItemCopy,selectedItemDetails,selectedItemIcon,selectedItemInner,selectedItemTitle,useInitializeUniformMeshSdk,useProductQueryContext,useProductSearchContext,useUniformMeshLocation,useUniformMeshLocationContext,useUniformMeshSdk,useUniformMeshSdkContext});
507
+ `},"Price:"),(0,e.jsx)("span",null,t.price)):null))),(0,e.jsx)("div",{css:qt},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",css:He},(0,e.jsx)("span",{css:$e},"Edit"),(0,e.jsx)(O,{src:r,alt:"Logo",css:Xt})):null,(0,e.jsx)("button",{type:"button",onClick:()=>{n==null||n(t)},css:He},(0,e.jsx)("span",{css:$e},"Unlink"),(0,e.jsx)(Fe.Icon,{icon:Wr.CgClose,iconColor:"red",size:16})))))}var _r=require("@uniformdev/design-system"),Ke=require("react-use");function Bo({selectedProducts:t,setSelectedProducts:n,onGetCategories:o,onSearchProducts:r,logoIcon:a,multiSelect:i,multiSelectId:l,selectedItemComponent:f,rowComponent:g,errorComponent:v,helpComponent:s,noResultsComponent:p,onSort:b,typeSelectorAllTypesOptionText:D="All categories",typeSelectorLabel:_="Select Category"}){var Y;let{value:P,loading:y,error:de}=(0,Ke.useAsync)(async()=>await o(),[o]),Z=P==null?void 0:P.map(k=>k.id).join(","),ne=(0,oe.useMemo)(()=>P?P.map(u=>({id:u.id,name:u.name})):void 0,[Z]),X=(0,oe.useRef)(),[q,Se]=(0,Ke.useAsyncFn)(async(k,u)=>{let M=await r({text:k,options:{limit:u==null?void 0:u.count,offset:u==null?void 0:u.offset,categoryId:u==null?void 0:u.contentType}});return(u==null?void 0:u.offset)===0&&(X.current=[]),(X.current=X.current||[]).push(...M.products),M},[r]),le=async k=>{await n(k)};return de||q.error?(0,e.jsx)(v||(({categoriesError:u,searchError:M})=>(0,e.jsx)(_r.Callout,{type:"error"},"There was an error: ",(u==null?void 0:u.message)||(M==null?void 0:M.message))),{categoriesError:de,searchError:q.error}):(0,e.jsx)(Jt.Provider,{value:{categories:P,logoIcon:a}},(0,e.jsx)(Ut,{search:Se,results:X.current,logoIcon:a,selectedItems:t,select:le,multiSelectId:l||"product-search-multi-select",multiSelect:i,contentTypes:ne,selectedItemComponent:f||Yt,rowComponent:g||Nt,totalResults:(Y=q.value)==null?void 0:Y.total,resultsLoading:q.loading||y,helpComponent:s,noResultsComponent:p,onSort:b,typeSelectorAllTypesOptionText:D,typeSelectorLabel:_}))}var Jt=oe.default.createContext(void 0),be=()=>{let t=(0,oe.useContext)(Jt);if(!t)throw new Error("useProductSearchContext must be used within a <ProductSearchContext> provider");return t};var x=require("@emotion/react"),Zr=require("@uniformdev/design-system"),jt=x.css`
508
+ border: 1px solid var(--gray-200);
509
+ background: var(--gray-50);
510
+ border-radius: var(--rounded-base);
511
+ display: flex;
512
+ width: 100%;
513
+ `,er=x.css`
514
+ align-items: center;
515
+ display: flex;
516
+ flex-grow: 1;
517
+ gap: var(--spacing-sm);
518
+ margin-inline: 0 var(--spacing-sm);
519
+ padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-lg);
520
+ position: relative;
521
+ `,tr=x.css`
522
+ flex-grow: 1;
523
+ `,rr=x.css`
524
+ align-items: center;
525
+ display: flex;
526
+ position: relative;
527
+ `,or=x.css`
528
+ color: var(--brand-secondary-1);
529
+ font-size: var(--fs-base);
530
+ font-weight: var(--fw-bold);
531
+ line-height: 1;
532
+ margin: 0;
533
+ `,nr=x.css`
534
+ width: 1.5rem;
535
+ height: 1.5rem;
536
+ `,ar=x.css`
537
+ background: var(--white);
538
+ border-radius: var(--rounded-base);
539
+ border-left: 4px solid var(--brand-secondary-3);
540
+ box-shadow: var(--shadow-base);
541
+ position: fixed;
542
+ padding: var(--spacing-base);
543
+ z-index: var(--z-10);
544
+ width: max-content;
545
+ `,se=x.css`
546
+ font-size: var(--fs-sm);
547
+ `,ye=x.css`
548
+ font-weight: var(--fw-bold);
549
+ margin-right: var(--spacing-sm);
550
+ `,ir=x.css`
551
+ display: flex;
552
+ flex-direction: column;
553
+ gap: var(--spacing-sm);
554
+
555
+ ${(0,Zr.mq)("md")} {
556
+ flex-direction: row;
557
+ justify-content: end;
558
+ min-width: 200px;
559
+ }
560
+ `,Ne=x.css`
561
+ align-items: center;
562
+ background: var(--white);
563
+ border-radius: var(--rounded-base);
564
+ border: 2px solid var(--gray-300);
565
+ color: currentColor;
566
+ display: flex;
567
+ gap: var(--spacing-sm);
568
+ padding: var(--spacing-sm) var(--spacing-base);
569
+ justify-content: center;
570
+ text-decoration: none;
571
+
572
+ &:hover {
573
+ background: var(--gray-50);
574
+ }
575
+ `,sr=x.css`
576
+ display: flex;
577
+ margin-top: var(--spacing-sm);
578
+ gap: var(--spacing-sm);
579
+ `,cr=x.css`
580
+ background: none;
581
+ outline: none;
582
+ border: none;
583
+ margin: calc(var(--spacing-xs) * -1) 0 calc(var(--spacing-xs) * -1) var(--spacing-sm);
584
+ `,Qe=x.css`
585
+ display: block;
586
+ max-width: 100%;
587
+ min-width: 100px;
588
+ height: auto;
589
+ `;var W=j(require("react"));var We=require("react-icons/cg"),Xr=require("timeago.js");var ce=require("@emotion/react");var dr=require("@uniformdev/design-system");function Oo({selectedItem:t,onDeselect:n,onEditClosed:o,logoIcon:r,itemDetailsRendererComponent:a}){let i=(0,W.useRef)(null),l=(0,W.useRef)(null),[f,g]=(0,W.useState)(!1);(0,W.useEffect)(()=>{let p=D=>{i.current&&!i.current.contains(D.target)&&l.current&&!l.current.contains(D.target)&&g(!1)},b=()=>{g(!1)};return window.addEventListener("resize",b,!0),document.addEventListener("scroll",p,!0),document.addEventListener("mousedown",p),()=>{window.removeEventListener("resize",b,!0),document.removeEventListener("scroll",p,!0),document.removeEventListener("mousedown",p)}},[l]);let v=()=>{var p;if(g(!f),l.current&&i.current){let b=(p=i==null?void 0:i.current)==null?void 0:p.getBoundingClientRect();l.current.style.top=`${b.top+30}px`}},s=a!=null?a:Ho;return(0,e.jsx)("div",{css:[jt,ce.css`
590
+ margin: 0 0 1rem 0;
591
+ `],key:t.id},(0,e.jsx)("div",{css:er},(0,e.jsx)("div",{css:tr},(0,e.jsx)("div",{css:rr},(0,e.jsx)("h4",{css:[or],title:`ID: ${t.id}`,"data-test-id":"dam-selected-item"},t.title||t.id||""),t.popoverData?(0,e.jsx)(W.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:i,css:cr,"aria-controls":"path-details","aria-expanded":f,onClick:v},(0,e.jsx)(dr.Icon,{icon:We.CgInfo,iconColor:"gray",size:24,css:ce.css`
592
+ opacity: var(--opacity-75);
593
+ `})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!f,ref:l,css:[ar,f?ce.css`
594
+ visibility: visible;
595
+ `:ce.css`
596
+ visibility: hidden;
597
+ `]},Object.entries(t.popoverData).map(([p,b],D)=>(0,e.jsx)("div",{css:se,key:D},(0,e.jsx)("span",{css:ye},p,":"),b)))):null),(0,e.jsx)(s,{item:t})),(0,e.jsx)("div",{css:ir},t.editLink?typeof t.editLink=="string"?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",onClick:p=>{o&&(Ve(p.currentTarget.href,()=>o(t)),p.preventDefault())},css:Ne},(0,e.jsx)("span",{css:se},"Edit"),r?(0,e.jsx)(O,{src:r,css:nr,alt:"Logo"}):null):t.editLink:null,(0,e.jsx)("button",{type:"button",onClick:()=>{n(t)},css:Ne},(0,e.jsx)("span",{css:se},"Unlink"),(0,e.jsx)(dr.Icon,{icon:We.CgClose,iconColor:"red",size:16})))))}function Ho({item:t}){let n=null;return t.previewUrl&&typeof t.previewUrl=="string"?t.type==="image"?n=(0,e.jsx)("img",{src:t.previewUrl,alt:t.id,width:"200",css:Qe}):t.type==="video"&&(n=(0,e.jsx)("video",{src:t.previewUrl,title:t.id,width:"200",controls:!0,css:Qe})):t.previewUrl&&typeof t.previewUrl!="string"&&(n=t.previewUrl),n||t.metadata?(0,e.jsx)("div",{css:sr},n?(0,e.jsx)("div",null,n):null,(0,e.jsx)("ul",null,t.metadata?Object.entries(t.metadata).map(([o,r])=>(0,e.jsx)("li",{css:[se,ce.css`
598
+ order: 1;
599
+ `],key:o},(0,e.jsx)("span",{css:[ye,ce.css`
600
+ order: 1;
601
+ `]},o,":"),r)):null,t.createdDate?(0,e.jsx)("li",{css:se},(0,e.jsx)("span",{css:ye},"Date:"),(0,Xr.format)(t.createdDate)):null)):null}B(A,require("@uniformdev/mesh-sdk"),module.exports);var m=require("@uniformdev/design-system");0&&(module.exports={AddListButton,Button,Callout,DamSelectedItem,DefaultSearchRow,DefaultSelectedItem,EntrySearch,Heading,Icons,Input,InputSelect,InputToggle,KeywordSearchInput,Label,LoadingIndicator,LoadingOverlay,Menu,MenuItem,ProductPreviewList,ProductQuery,ProductQueryContext,ProductSearch,ProductSearchContext,ProductSearchRow,ProductSelectedItem,ResolvableLoadingValue,ScrollableList,ScrollableListItem,SelectionField,Switch,Textarea,Theme,UniformMeshLocationContext,UniformMeshLocationContextProvider,UniformMeshSdkContext,UniformMeshSdkContextProvider,badgeIcon,damSelectItemImage,damSelectedItemContainer,damSelectedItemCopy,damSelectedItemDetails,damSelectedItemIcon,damSelectedItemInfoBtn,damSelectedItemInner,damSelectedItemLinkBtn,damSelectedItemLinkContainer,damSelectedItemMediaContainer,damSelectedItemPopover,damSelectedItemPopoverLabel,damSelectedItemSmallText,damSelectedItemTitle,draggableContainer,draggableIcon,draggableIconOffset,draggableIconWrapper,entrySearchBtn,entrySearchConfig,entrySearchConfigHidden,entrySearchLoadMoreBtn,entrySearchResultList,entrySearchSelectIcon,entrySearchSelectImg,entrySearchSelectInput,entrySearchSelectOption,entrySearchWrapper,productSearchRowActiveIcon,productSearchRowCategory,productSearchRowContainer,productSearchRowContent,productSearchRowContentActive,productSearchRowDetails,productSearchRowTitle,productSelectedItemContainer,productSelectedItemContent,productSelectedItemDetails,productSelectedItemIcon,productSelectedItemImage,productSelectedItemLinkContainer,productedSelectedItemLinkBtn,productedSelectedItemSmallText,searchRowBtn,searchRowContainer,searchRowContainerActive,searchRowContainerWithPopover,searchRowPopover,searchRowText,searchRowTextSmall,selectItemLinkBtn,selectItemLinkContainer,selectItemPopover,selectItemPopoverLabel,selectItemSmallText,selectedItemContainer,selectedItemCopy,selectedItemDetails,selectedItemIcon,selectedItemInner,selectedItemTitle,useInitializeUniformMeshSdk,useProductQueryContext,useProductSearchContext,useUniformMeshLocation,useUniformMeshLocationContext,useUniformMeshSdk,useUniformMeshSdkContext});