@uniformdev/mesh-sdk-react 16.1.1-alpha.139 → 16.1.1-alpha.238

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 kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,Vr=Object.prototype.hasOwnProperty;var Qt=(t,n)=>{for(var o in n)Se(t,o,{get:n[o],enumerable:!0})},be=(t,n,o,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of Er(n))!Vr.call(t,a)&&a!==o&&Se(t,a,{get:()=>n[a],enumerable:!(r=xr(n,a))||r.enumerable});return t},A=(t,n,o)=>(be(t,n,"default"),o&&be(o,n,"default")),N=(t,n,o)=>(o=t!=null?kr(Mr(t)):{},be(n||!t||!t.__esModule?Se(o,"default",{value:t,enumerable:!0}):o,t)),Tr=t=>be(Se({},"__esModule",{value:!0}),t);var z={};Qt(z,{Button:()=>l.Button,Callout:()=>l.Callout,DefaultSearchRow:()=>lt,DefaultSelectedItem:()=>ot,EntrySearch:()=>Ct,Heading:()=>l.Heading,Icons:()=>xe,Input:()=>l.Input,InputSelect:()=>l.InputSelect,InputToggle:()=>l.InputToggle,KeywordSearchInput:()=>l.InputKeywordSearch,Label:()=>l.Label,LoadingIndicator:()=>l.LoadingIndicator,LoadingOverlay:()=>l.LoadingOverlay,Menu:()=>l.Menu,MenuItem:()=>l.MenuItem,ProductPreviewList:()=>_e,ProductQuery:()=>Or,ProductQueryContext:()=>Qe,ProductSearch:()=>jr,ProductSearchContext:()=>At,ProductSearchRow:()=>Tt,ProductSelectedItem:()=>zt,ResolvableLoadingValue:()=>Fe,ScrollableList:()=>l.ScrollableList,ScrollableListItem:()=>l.ScrollableListItem,SelectionField:()=>Ke,Switch:()=>l.Switch,Textarea:()=>l.Textarea,Theme:()=>l.Theme,UniformMeshLocationContext:()=>Ae,UniformMeshLocationContextProvider:()=>Ue,UniformMeshSdkContext:()=>Be,UniformMeshSdkContextProvider:()=>Gr,badgeIcon:()=>Ie,draggableContainer:()=>bt,draggableIcon:()=>Te,draggableIconOffset:()=>wt,draggableIconWrapper:()=>St,entrySearchBtn:()=>ut,entrySearchConfig:()=>gt,entrySearchConfigHidden:()=>ft,entrySearchLoadMoreBtn:()=>mt,entrySearchResultList:()=>vt,entrySearchSelectIcon:()=>ht,entrySearchSelectImg:()=>yt,entrySearchSelectInput:()=>Yr,entrySearchSelectOption:()=>qr,entrySearchWrapper:()=>pt,productSearchRowActiveIcon:()=>Mt,productSearchRowCategory:()=>xt,productSearchRowContainer:()=>Pt,productSearchRowContent:()=>Rt,productSearchRowContentActive:()=>Lt,productSearchRowDetails:()=>Et,productSearchRowTitle:()=>kt,productSelectedItemContainer:()=>It,productSelectedItemContent:()=>Gt,productSelectedItemDetails:()=>Dt,productSelectedItemImage:()=>De,searchRowBtn:()=>ct,searchRowContainer:()=>nt,searchRowContainerActive:()=>it,searchRowContainerWithPopover:()=>at,searchRowPopover:()=>st,searchRowText:()=>Ve,searchRowTextSmall:()=>Me,selectItemLinkBtn:()=>Ee,selectItemLinkContainer:()=>rt,selectItemPopover:()=>tt,selectItemPopoverLabel:()=>fe,selectItemSmallText:()=>W,selectedItemCloseIcon:()=>et,selectedItemContainer:()=>Ze,selectedItemCopy:()=>qe,selectedItemDetails:()=>Ye,selectedItemIcon:()=>je,selectedItemInner:()=>Xe,selectedItemTitle:()=>Je,useInitializeUniformMeshSdk:()=>Dr,useProductQueryContext:()=>Ne,useProductSearchContext:()=>ve,useUniformMeshLocation:()=>Ir,useUniformMeshLocationContext:()=>Oe,useUniformMeshSdk:()=>zr,useUniformMeshSdkContext:()=>He});module.exports=Tr(z);var e=require("@emotion/react"),V=N(require("react"));var ie=require("react"),Ae=(0,ie.createContext)(void 0),Ue=({children:t})=>{let[n,o]=(0,ie.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(s,p)=>{await a.setValue(s,p),o(window.UniformMeshSDK.getCurrentLocation())},setValidationResult:async s=>{await a.setValidationResult(s)}}}}return(0,e.jsx)(Ae.Provider,{value:r},t)},Oe=()=>{let t=(0,ie.useContext)(Ae);if(!t)throw new Error("useUniformMeshLocationContext must be used within a UniformMeshLocationContextProvider");return t};function Ir(){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 Nt=require("@uniformdev/mesh-sdk"),me=require("react"),Dr=({autoResizingDisabled:t}={})=>{let[n,o]=(0,me.useState)(),[r,a]=(0,me.useState)();return(0,me.useEffect)(()=>{typeof window=="undefined"||r||(typeof window.UniformMeshSDK=="undefined"?(0,Nt.initializeUniformMeshSDK)({autoResizingDisabled:t}).then(s=>{a(s)}).catch(s=>{o(s)}):a(window.UniformMeshSDK))},[t]),{initializing:!r&&!n,error:n,sdk:r}};var we=require("react");var _t=require("@uniformdev/design-system"),Be=(0,we.createContext)(void 0),Gr=({children:t})=>{let n;return typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"&&(n={sdk:window.UniformMeshSDK}),(0,e.jsx)(Be.Provider,{value:n},(0,e.jsx)(_t.Theme,null),(0,e.jsx)(Ue,null,t))},He=()=>{let t=(0,we.useContext)(Be);if(!t)throw new Error("useUniformMeshSdkContext must be used within a UniformMeshSdkContextProvider");return t};function zr(){let{sdk:t}=He();return t}var We=N(require("react"));var O=N(require("react"));var se=require("@emotion/react"),Wt=require("@uniformdev/design-system");var $e=N(require("react")),Fe=({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 Ke=({id:t,label:n,loading:o,selectedValues:r,values:a,onAdd:s,onRemove:p})=>{var h;let v=(h=a==null?void 0:a.filter(c=>!(r!=null&&r.includes(c.id.toString()))))!=null?h:[],u=(c,f)=>{c.preventDefault(),p(f)};return(0,e.jsx)("div",null,(0,e.jsx)(Wt.InputSelect,{id:t,name:t,label:n,onChange:c=>s(c.target.value),disabled:o,options:[{value:"",label:"Add..."},...v.map(c=>({value:c.id,label:c.name||c.id}))],value:"",css:Array.isArray(r)&&r.length>0?se.css`
1
+ 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(c=>{var f;return(0,e.jsx)("div",{css:se.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 kr=Object.create;var Se=Object.defineProperty;var xr=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:c},(0,e.jsx)("span",{css:se.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)(Fe,{value:c,loading:o,text:(f=a.find(C=>C.id===c))==null?void 0:f.name})),(0,e.jsx)("button",{css:se.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:C=>u(C,c)},(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",css:se.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 Ar=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=Ar;var Ur=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=Ur;var Re=require("react-use"),T=require("@uniformdev/design-system"),k=require("@emotion/react"),Zt={count:1,categories:[],brand:"",keyword:"",sort:"date_modified",sortOrder:"desc"},Or=({value:t,setValue:n,brands:o,categories:r,loading:a,categoriesLoading:s,brandsLoading:p,logoIcon:v,onGetProducts:u,sortOptions:h,sortOrderOptions:c,categoryLabel:f="Product Category",brandLabel:C="Brand",disableBrands:re,restrictToSingleCategory:$=!1})=>{var m,P,ae;let w=async i=>{n({...Zt,...t||{},...i})},y=(0,O.useMemo)(()=>({...Zt,...t||{}}),[t]),[oe,F]=(0,Re.useAsyncFn)(async i=>await u(i),[u]);(0,Re.useDebounce)(async()=>{await F({brand:y.brand,categories:y.categories,keyword:y.keyword,sort:y.sort,sortOrder:y.sortOrder,count:y.count})},250,[y]);let q=(0,O.useMemo)(()=>{let i=[];return r==null||r.forEach(L=>{let pe=Yt(L,void 0);i.push(...pe)}),i},[r]),K=(0,O.useMemo)(()=>[{value:"",label:"All categories"},...q.map(i=>({label:i.name,value:i.id}))],[q]),J=(0,O.useMemo)(()=>(o==null?void 0:o.map(i=>({id:i.id.toString(),name:i.name})))||[],[o]),ne=i=>{if(!i)return;let L=(t==null?void 0:t.categories)||[];w({categories:[...L,i]})},j=i=>{var L;w({categories:(L=t==null?void 0:t.categories)==null?void 0:L.filter(pe=>pe!==i)})},ee=i=>{w({brand:i.target.value})},b=i=>{w({count:i||1})};return a?(0,e.jsx)("div",null,"Loading..."):(0,e.jsx)(Qe.Provider,{value:{categories:r,logoIcon:v}},(0,e.jsx)("div",{css:k.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
- `},$?(0,e.jsx)(T.InputSelect,{id:"selection-field-product-category",label:f,disabled:a,value:(P=(m=y.categories)==null?void 0:m[0])!=null?P:"",options:K,onChange:i=>{w({categories:i.target.value===""?[]:[i.target.value]})}}):(0,e.jsx)(Ke,{loading:s||!1,id:"selection-field-product-category",label:f,onAdd:ne,onRemove:j,selectedValues:y.categories,values:q}),(0,e.jsx)("div",{css:k.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,T.mq)("md")} {
32
+ ${(0,E.mq)("md")} {
33
33
  flex-wrap: nowrap;
34
34
  }
35
- `},re?null:(0,e.jsx)("div",{css:k.css`
35
+ `},D?null:(0,e.jsx)("div",{css:R.css`
36
36
  width: 50%;
37
- `},(0,e.jsx)(T.InputSelect,{id:"brand",name:"brand",label:C,disabled:p,value:y.brand,onChange:ee,options:[{value:"",label:"Choose..."},...J.map(i=>({value:i.id,label:i.name}))]})),(0,e.jsx)("div",{css:k.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)(T.Input,{id:"keyword-search",name:"keyword-search",label:"Keyword",value:y.keyword,placeholder:"Enter keyword",onChange:i=>w({keyword:i.target.value})}))),(0,e.jsx)("div",{css:k.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,T.mq)("md")} {
45
+ ${(0,E.mq)("md")} {
46
46
  flex-wrap: nowrap;
47
47
  }
48
- `},(0,e.jsx)("div",{css:k.css`
48
+ `},(0,e.jsx)("div",{css:R.css`
49
49
  width: 100%;
50
- ${(0,T.mq)("md")} {
50
+ ${(0,E.mq)("md")} {
51
51
  width: 33.333333%;
52
52
  }
53
53
  position: relative;
54
- `},(0,e.jsx)(T.Input,{id:"count",name:"count",type:"number",min:1,step:1,value:y.count,onChange:i=>b(i.target.valueAsNumber),label:"Count"}),(0,e.jsx)("div",{css:k.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)(Xt,{onCountChange:()=>b(y.count-1),countIcon:"decrement",disabled:y.count===1}),(0,e.jsx)(Xt,{onCountChange:()=>b(y.count+1),countIcon:"increment"}))),Array.isArray(h)&&h.length>0?(0,e.jsx)("div",{css:k.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,T.mq)("md")} {
62
+ ${(0,E.mq)("md")} {
63
63
  width: 33.333333%;
64
64
  }
65
- `},(0,e.jsx)(T.InputSelect,{id:"sort",name:"sort",label:"Sort",value:y.sort,onChange:i=>w({sort:i.target.value}),options:[{value:"",label:"Select a sort"},...h.map(i=>({value:i.sortKey,label:i.name}))]})):null,Array.isArray(c)&&c.length>0?(0,e.jsx)("div",{css:k.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)(T.InputSelect,{id:"sort-order",name:"sort-order",label:"Sort Order",value:y.sortOrder,onChange:i=>w({sortOrder:i.target.value}),options:c.map(i=>({value:i.sortOrderKey,label:i.name}))})):null),(0,e.jsx)("div",null,(0,e.jsx)("h3",{css:k.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)(_e,{products:(ae=oe.value)==null?void 0:ae.products}))))};function Yt(t,n){var s;let o=[],r=n?`${n.name} > `:"",a={id:t.id.toString(),name:`${r}${t.name}`};return o.push(a),(s=t.children)==null||s.forEach(p=>{let v=Yt(p,a);o.push(...v)}),o}function Xt({onCountChange:t,countIcon:n,disabled:o}){return(0,e.jsx)("button",{css:k.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);
@@ -81,82 +81,79 @@ var kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
81
81
  &:hover {
82
82
  background-color: var(--gray-200);
83
83
  }
84
- ${o?k.css`
84
+ ${o?R.css`
85
85
  cursor: not-allowed;
86
86
  opacity: 0.3;
87
87
  `:""}
88
- `,onClick:t,disabled:o},n==="increment"?(0,e.jsx)(Ce,{css:k.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:k.css`
91
+ `}):(0,e.jsx)(xe,{css:R.css`
92
92
  width: 1rem;
93
93
  height: 1rem;
94
- `}))}var Qe=O.default.createContext(void 0),Ne=()=>{let t=(0,O.useContext)(Qe);if(!t)throw new Error("useProductQueryContext must be used within a <ProductQueryContext> provider");return t};function _({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 x=require("@emotion/react"),qt=require("@uniformdev/design-system"),_e=({products:t})=>{let{categories:n,logoIcon:o}=Ne();return(0,e.jsx)(We.default.Fragment,null,(0,e.jsx)("p",{css:x.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:[x.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
- `,qt.scrollbarStyles]},t==null?void 0:t.map((r,a)=>{var v,u;let[s]=(r==null?void 0:r.categories)||[],p=typeof s=="undefined"||!n||(v=n.find(h=>h.id===s.id))==null?void 0:v.name;return(0,e.jsx)("li",{key:`product-${r.id}`,css:x.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:x.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:x.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:x.css`
117
- height: 3.5rem;
118
- width: 3.5rem;
119
- background-color: var(--gray-100);
120
- `}),(0,e.jsx)("h4",{css:x.css`
121
- font-weight: var(--fw-bold);
122
- width: 33.333333%;
123
- font-size: var(--fs-sm);
124
- `},r.name,p&&(0,e.jsx)("span",{css:x.css`
125
- display: block;
126
- font-weight: var(--fw-regular);
127
- `},p)),r&&(0,e.jsx)(We.default.Fragment,null,(0,e.jsx)("p",{css:x.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:x.css`
131
- margin-right: var(--spacing-lg);
132
- font-size: var(--fs-sm);
133
- `},(0,e.jsx)("span",{css:x.css`
134
- display: block;
135
- `},"Price: ",r.price)):null,r.editLink||r.url?(0,e.jsx)("a",{css:x.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:(u=r.editLink)!=null?u:r.url,title:`Goto ${r.name}`,target:"__blank",rel:"noopener"},(0,e.jsx)("span",{css:x.css`
148
- font-size: var(--fs-sm);
149
- margin-right: var(--spacing-sm);
150
- `},"Edit"),o?(0,e.jsx)(_,{src:o,alt:"Logo",css:x.css`
151
- width: 2.25rem;
152
- height: 2.25rem;
153
- `}):null):null)))})))};var Y=N(require("react"));var D=N(require("react"));var xe={};Qt(xe,{Caution:()=>Jt,Checkmark:()=>Le,ChevronDown:()=>ke,Close:()=>ce,Danger:()=>jt,ExclamationPoint:()=>er,Info:()=>de,Lightbulb:()=>tr,MagnifyingGlass:()=>rr,MaximizeAlt:()=>or,Minus:()=>Pe,MoreVerticalAlt:()=>ge,Plus:()=>Ce});var Br=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=Br;var Hr=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"})),Le=Hr;var $r=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"})),ke=$r;var Fr=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"}))),ce=Fr;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:"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"})),jt=Kr;var Qr=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"})),er=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:"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"})),de=Nr;var _r=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"})),tr=_r;var Wr=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"})))),rr=Wr;var Zr=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"})),or=Zr;var Xr=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"})),ge=Xr;var cr=require("react-use"),dr=require("uuid");var B=N(require("react"));function nr(t,n){let o=window.open(t,"_blank"),r=setInterval(()=>{o!=null&&o.closed&&(clearInterval(r),n())},500)}var ir=require("timeago.js");var I=require("@emotion/react"),ar=require("@uniformdev/design-system"),Ze=I.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
- `,Xe=I.css`
156
+ `,ct=V.css`
160
157
  align-items: center;
161
158
  display: flex;
162
159
  flex-grow: 1;
@@ -164,24 +161,22 @@ var kr=Object.create;var Se=Object.defineProperty;var xr=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
- `,Ye=I.css`
164
+ `,dt=V.css`
168
165
  flex-grow: 1;
169
- `,qe=I.css`
166
+ `,lt=V.css`
170
167
  align-items: start;
171
168
  display: inline-flex;
172
169
  position: relative;
173
- `,Je=I.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
- `,je=I.css`
175
+ margin: 0;
176
+ `,mt=V.css`
179
177
  width: 1.5rem;
180
178
  height: 1.5rem;
181
- `,et=I.css`
182
- width: 1rem;
183
- height: 1rem;
184
- `,tt=I.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 kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
190
185
  padding: var(--spacing-base);
191
186
  z-index: var(--z-10);
192
187
  width: max-content;
193
- `,W=I.css`
188
+ `,ee=V.css`
194
189
  font-size: var(--fs-sm);
195
- `,fe=I.css`
190
+ `,ue=V.css`
196
191
  font-weight: var(--fw-bold);
197
192
  margin-right: var(--spacing-sm);
198
- `,rt=I.css`
193
+ `,gt=V.css`
199
194
  display: flex;
200
195
  flex-direction: column;
201
196
  gap: var(--spacing-sm);
202
197
 
203
- ${(0,ar.mq)("md")} {
198
+ ${(0,$r.mq)("md")} {
204
199
  flex-direction: row;
205
200
  min-width: 200px;
201
+ justify-content: end;
206
202
  }
207
- `,Ee=I.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 U=require("@emotion/react");var ot=({selectedItem:t,logoIcon:n,onDeselect:o,onEditClosed:r})=>{var h;let a=(0,B.useRef)(null),s=(0,B.useRef)(null),[p,v]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let c=C=>{a.current&&!a.current.contains(C.target)&&s.current&&!s.current.contains(C.target)&&v(!1)},f=()=>{v(!1)};return window.addEventListener("resize",f,!0),document.addEventListener("scroll",c,!0),document.addEventListener("mousedown",c),()=>{window.removeEventListener("resize",f,!0),document.removeEventListener("scroll",c,!0),document.removeEventListener("mousedown",c)}},[s]);let u=()=>{var c;if(v(!p),s.current&&a.current){let f=(c=a==null?void 0:a.current)==null?void 0:c.getBoundingClientRect(),C=s.current.offsetWidth;s.current.style.top=`${f.top+30}px`,s.current.style.left=`${f.left-C+30}px`}};return(0,e.jsx)("div",{css:Ze,key:t.id},(0,e.jsx)("div",{css:Xe},(0,e.jsx)("div",{css:Ye},(0,e.jsx)("div",{css:qe},(0,e.jsx)("h4",{css:[Je,t.popoverData?U.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)(B.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:a,css:U.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":p,onClick:u},(0,e.jsx)(de,{width:24,height:24,css:U.css`
225
- color: var(--gray-400);
226
- `})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!p,ref:s,css:[tt,p?U.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
- `:U.css`
226
+ `:F.css`
229
227
  visibility: hidden;
230
- `]},Object.entries(t.popoverData).map(([c,f],C)=>(0,e.jsx)("div",{css:W,key:C},(0,e.jsx)("span",{css:fe},c,":"),f)))):null),t.createdDate&&(0,e.jsx)("div",{css:W},(0,e.jsx)("span",{css:fe},"Created:"),(0,ir.format)((h=t.createdDate)!=null?h:0)),(0,e.jsx)("div",{css:U.css`
231
- display: flex;
232
- gap: var(--spacing-base);
233
- `},t.metadata?Object.entries(t.metadata).filter(([c])=>["type","status"].includes(c.toLocaleLowerCase())).map(([c,f])=>(0,e.jsx)("span",{css:W,key:c},f)):null),t.metadata?Object.entries(t.metadata).filter(([c])=>!["type","status"].includes(c.toLocaleLowerCase())).map(([c,f])=>(0,e.jsx)("div",{css:[W,U.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:c},(0,e.jsx)("span",{css:[fe,U.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
- `]},c,":"),f)):null),(0,e.jsx)("div",{css:rt},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener",target:"__blank",onClick:c=>{r&&(nr(c.currentTarget.href,()=>r(t)),c.preventDefault())},css:Ee},(0,e.jsx)("span",{css:W},"Edit"),(0,e.jsx)(_,{src:n,css:je,alt:"Logo"})):null,(0,e.jsx)("button",{type:"button",onClick:()=>{o(t)},css:Ee},(0,e.jsx)("span",{css:W},"Unlink"),(0,e.jsx)(ce,{css:[et,U.css`
238
- color: var(--brand-secondary-5);
239
- `]})))))};var H=N(require("react"));var Z=require("@emotion/react"),nt=Z.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
- `,at=Z.css`
240
+ `,bt=te.css`
246
241
  padding-right: var(--spacing-lg);
247
- `,it=Z.css`
242
+ `,yt=te.css`
248
243
  background: var(--brand-secondary-3);
249
244
  color: var(--white);
250
- `,Me=Z.css`
245
+ `,Ue=te.css`
251
246
  font-size: var(--fs-xs);
252
- `,Ve=Z.css`
247
+ `,Ge=te.css`
253
248
  font-weight: var(--fw-bold);
254
249
  margin-right: var(--spacing-sm);
255
- `,st=Z.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 kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
264
259
  right: var(--spacing-xl);
265
260
  z-index: var(--z-10);
266
261
  width: max-content;
267
- `,ct=Z.css`
262
+ `,wt=te.css`
268
263
  position: absolute;
269
264
  inset: 0 var(--spacing-sm) 0 auto;
270
- `;var dt=require("@emotion/react"),lt=({result:t,isSelected:n,triggerSelection:o})=>{let r=(0,H.useRef)(null),a=(0,H.useRef)(null),[s,p]=(0,H.useState)(!1);(0,H.useEffect)(()=>{function u(h){r.current&&!r.current.contains(h.target)&&a.current&&!a.current.contains(h.target)&&p(!1)}return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[a]);let v=u=>{u.stopPropagation(),p(!s)};return(0,e.jsx)("div",{key:t.id,css:[nt,n?it:void 0,t.popoverData?at:void 0],"data-value":t.id,role:"option",tabIndex:-1,onClick:()=>o()},t.title,t.popoverData&&n?(0,e.jsx)(H.default.Fragment,null,(0,e.jsx)("button",{type:"button",ref:r,css:ct,"aria-controls":"path-details",onClick:u=>v(u),"aria-expanded":s},(0,e.jsx)(de,{width:24,height:24})),(0,e.jsx)("div",{id:"path-details","aria-hidden":!s,ref:a,css:[st,s?dt.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
- `:dt.css`
267
+ `:Ct.css`
273
268
  visibility: hidden;
274
- `]},t.metadata&&Object.entries(t.metadata).map(([u,h],c)=>(0,e.jsx)("div",{css:Me,key:c},(0,e.jsx)("span",{css:Ve},u,":"),h)),Object.entries(t.popoverData).map(([u,h],c)=>(0,e.jsx)("div",{css:Me,key:c},(0,e.jsx)("span",{css:Ve},u,":"),h)))):null)};var le=require("react-beautiful-dnd");var R=require("@emotion/react"),pt=R.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
- `,ut=R.css`
275
+ `,Rt=L.css`
281
276
  align-items: center;
282
277
  display: flex;
283
278
  position: relative;
@@ -285,7 +280,7 @@ var kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
285
280
  width: 100%;
286
281
  background-color: transparent;
287
282
  border: 0;
288
- `,mt=R.css`
283
+ `,xt=L.css`
289
284
  color: var(--brand-secondary-1);
290
285
  display: block;
291
286
  font-weight: var(--fw-bold);
@@ -301,15 +296,15 @@ var kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
301
296
  background: var(--gray-100);
302
297
  outline: none;
303
298
  }
304
- `,gt=R.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
- `,ft=R.css`
305
+ `,It=L.css`
311
306
  display: none;
312
- `,vt=R.css`
307
+ `,Et=L.css`
313
308
  overflow-y: auto;
314
309
  height: 16rem;
315
310
  margin-bottom: var(--spacing-base);
@@ -318,201 +313,289 @@ var kr=Object.create;var Se=Object.defineProperty;var xr=Object.getOwnPropertyDe
318
313
  & > :not(:last-child) {
319
314
  border-bottom: 1px solid var(--gray-200);
320
315
  }
321
- `,Yr=R.css`
316
+ `,Uo=L.css`
322
317
  background-color: var(--gray-50);
323
318
  max-width: 33.33%;
324
- `,ht=R.css`
319
+ `,Tt=L.css`
325
320
  align-items: center;
326
321
  display: flex;
327
322
  position: absolute;
328
323
  inset: 0 0 0 auto;
329
324
  pointer-events: none;
330
325
  padding-right: var(--spacing-sm);
331
- `,yt=R.css`
326
+ `,Mt=L.css`
332
327
  color: var(--brand-secondary-1);
333
328
  width: 1.25rem;
334
329
  height: 1.25rem;
335
330
  transition: transform var(--duration-fast) var(--timing-ease-out);
336
331
  transform: rotate(0);
337
- `,qr=R.css`
332
+ `,Go=L.css`
338
333
  background: var(--white);
339
334
  color: var(--brand-secondary-1);
340
- `,bt=R.css`
335
+ `,Vt=L.css`
341
336
  position: relative;
342
337
  margin-block: var(--spacing-sm) 0;
343
338
 
344
339
  &:hover > span {
345
340
  opacity: 0.3;
346
341
  }
347
- `,St=R.css`
342
+ `,Dt=L.css`
348
343
  align-items: center;
349
344
  display: flex;
350
345
  position: absolute;
351
346
  inset: 0 auto 0 0;
352
347
  margin-block: auto;
353
348
  opacity: 0;
354
- `,Te=R.css`
349
+ `,Ae=L.css`
355
350
  color: var(--brand-secondary-1);
356
- `,wt=R.css`
351
+ `,zt=L.css`
357
352
  position: absolute;
358
353
  left: 0.375rem;
359
- `,Ie=R.css`
354
+ `,Be=L.css`
360
355
  width: calc(var(--spacing-lg) + var(--spacing-xs));
361
356
  height: calc(var(--spacing-lg) + var(--spacing-xs));
362
- `;var G=require("@emotion/react"),S=require("@uniformdev/design-system");var te=require("react");function sr(t,{delay:n=500,minDuration:o=200}={delay:500,minDuration:200}){let[r,a]=(0,te.useState)("IDLE"),s=(0,te.useRef)(void 0);return(0,te.useEffect)(()=>{t&&r==="IDLE"&&(clearTimeout(s.current),s.current=setTimeout(()=>{if(!t)return a("IDLE");s.current=setTimeout(()=>{a("EXPIRE")},o),a("DISPLAY")},n),a("DELAY")),!t&&r!=="DISPLAY"&&(clearTimeout(s.current),a("IDLE"))},[t,r,n,o]),(0,te.useEffect)(()=>()=>clearTimeout(s.current),[]),r==="DISPLAY"||r==="EXPIRE"}var Jr=({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)(S.Callout,{type:"info"},o)},Ct=({search:t,results:n,contentTypes:o,selectedItems:r,logoIcon:a,select:s,multiSelect:p,multiSelectId:v,rowComponent:u,selectedItemComponent:h,totalResults:c,resultsLoading:f,requireContentType:C,onAddNew:re,onEditClosed:$,onCancel:w,noResultsComponent:y,helpComponent:oe,onSort:F,typeSelectorLabel:q="Content Type Select",typeSelectorAllTypesOptionText:K="All content types"})=>{var $t,Ft,Kt;let ne=()=>C?Array.isArray(o)&&o.length>0?o[0].id:"":"any",[j,ee]=D.useState(""),[b,m]=D.useState(ne),[P,ae]=D.useState(!1),[i,L]=D.useState([]),[pe,Ut]=D.useState(!1),ze=D.useRef(`x${(0,dr.v4)()}`),ye=(0,cr.useThrottle)(j,750);D.useEffect(()=>{t(ye,{count:5,offset:0,contentType:b==="any"?void 0:b})},[ye,b]);let mr=sr(f,{delay:1e3}),gr=d=>{i.some(g=>g.id===d.id)?L(g=>g.filter(Q=>Q.id!==d.id)):L(p?g=>[...g,d]:[d])},fr=r==null?void 0:r.map(d=>d.id).join(",");D.useEffect(()=>{Array.isArray(r)&&L(r)},[fr]);let vr=()=>{m(ne()),ee(""),L(r!=null&&r.length?r:[])},hr=()=>{ae(d=>!d),P||vr()},Ot=d=>{let g=(i==null?void 0:i.filter(Q=>Q.id!==d.id))||[];L(g),s(g,"")},yr=d=>{d.preventDefault(),s(i,b),ae(!1)},br=d=>{d.preventDefault(),ae(!1),w&&w()},Sr=()=>{t(ye,{count:5,offset:(n==null?void 0:n.length)||0,contentType:b==="any"?void 0:b}),Ut(!0);let d=setTimeout(()=>{Ut(!1)},750);return()=>clearTimeout(d)},wr=!(r==null?void 0:r.length)||p,Cr=u||lt,Bt=h||ot,Pr=y||Jr,Ht=a&&typeof a!="string"?a:null,Rr=Ht?(0,e.jsx)(Ht,{css:Ie}):(0,e.jsx)("img",{src:a,alt:"Logo",css:Ie}),Lr=d=>{var g,Q;if(d.destination&&d.source.droppableId===((g=d.destination)==null?void 0:g.droppableId)){let M=[...r||[]],[ue]=(Q=M==null?void 0:M.splice(d.source.index,1))!=null?Q:[];return M==null||M.splice(d.destination.index,0,ue),F&&(L(M),F==null||F(M)),M}};return(0,e.jsx)("div",{css:G.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`
363
358
  width: 100%;
364
359
  `},(0,e.jsx)("div",{css:G.css`
365
360
  position: relative;
366
361
  margin-block: var(--spacing-base);
367
- `},wr?(0,e.jsx)(D.Fragment,null,(0,e.jsx)("div",{css:pt,"data-test-id":"component-search"},(0,e.jsx)("button",{css:ut,onClick:hr,type:"button","aria-haspopup":!0,"aria-expanded":P,"aria-controls":`entry-search-config-${ze.current}`},Rr,(0,e.jsx)("span",{css:G.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`
368
363
  margin-left: var(--spacing-base);
369
- `},"Select"),(0,e.jsx)("span",{css:ht},(0,e.jsx)(ke,{css:[yt,P?G.css`
364
+ `},"Select"),(0,e.jsx)("span",{css:Tt},(0,e.jsx)(Ee,{css:[Mt,H?G.css`
370
365
  transform: rotate(180deg);
371
- `:void 0]})))),(0,e.jsx)("div",{id:`entry-search-config-${ze.current}`,"aria-hidden":!P,css:[gt,P?void 0:ft]},oe||null,(0,e.jsx)("div",{css:G.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`
372
367
  display: flex;
373
368
  gap: calc(var(--spacing-base) - 0.25rem);
374
369
  margin-bottom: var(--spacing-base);
375
- `},(0,e.jsx)(S.InputSelect,{onChange:d=>m(d.target.value),value:b,label:q,showLabel:!1,options:[...C?[]:[{value:"any",label:K}],...o?o.map(d=>({value:d.id,label:d.name})):[]]}),(0,e.jsx)("div",{css:G.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`
376
371
  flex-grow: 1;
377
- `},(0,e.jsx)(S.InputKeywordSearch,{inputFieldName:"searchText",placeholder:"Enter keyword to narrow your results",onSearchTextChanged:ee,disabledFieldSubmission:!0,value:j}))),(0,e.jsx)("div",{css:[vt,S.scrollbarStyles],id:ze.current,role:"listbox",tabIndex:0,"data-test-id":"entry-list"},(0,e.jsx)(S.LoadingOverlay,{isActive:mr}),Array.isArray(n)&&n.length>0?n.map(d=>(0,e.jsx)(Cr,{key:d.id,isSelected:i.some(g=>g.id===d.id),result:d,triggerSelection:()=>gr(d)})):(0,e.jsx)(Pr,{searchText:ye||j,selectedContentType:(Ft=($t=o==null?void 0:o.find(d=>d.id===b))==null?void 0:$t.name)!=null?Ft:b}),!f&&typeof c!="undefined"&&n&&(n==null?void 0:n.length)<c&&(0,e.jsx)("button",{type:"button",css:mt,onClick:Sr},pe?(0,e.jsx)(S.LoadingIndicator,null):"Load More")),(0,e.jsx)("div",{css:G.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`
378
373
  display: flex;
379
374
  justify-content: space-between;
380
- `},(0,e.jsx)("div",null,re&&((Kt=o==null?void 0:o.length)!=null?Kt: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(d=>(0,e.jsx)(S.MenuItem,{key:d.id,css:G.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`
381
376
  background: var(--white);
382
377
  color: var(--brand-secondary-1);
383
- `,onClick:()=>re(d)},d.name))):null),(0,e.jsx)("div",{css:G.css`
378
+ `,onClick:()=>D(c)},c.name))):null),(0,e.jsx)("div",{css:G.css`
384
379
  display: flex;
385
380
  gap: var(--spacing-base);
386
- `},(0,e.jsx)(S.Button,{buttonType:"unimportant",onClick:br},"Cancel"),(0,e.jsx)(S.Button,{disabled:!i.length,onClick:yr,"data-test-id":"entry-accept-button"},"Accept"))))):null,P?null:p?(0,e.jsx)(le.DragDropContext,{onDragEnd:d=>Lr(d)},(0,e.jsx)(le.Droppable,{droppableId:v||"canvas-multi-select"},d=>(0,e.jsx)("div",{...d.droppableProps,ref:d.innerRef,css:G.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`
387
382
  margin-block: var(--spacing-sm) 0;
388
- `},i==null?void 0:i.map((g,Q)=>{if(g!=null&&g.id)return(0,e.jsx)(le.Draggable,{key:g.id,draggableId:g.id,index:Q},M=>(0,e.jsx)("div",{css:bt,ref:M.innerRef,...M.draggableProps,...M.dragHandleProps},(0,e.jsx)("span",{css:St},(0,e.jsx)(ge,{css:[Te,wt],width:24,height:24}),(0,e.jsx)(ge,{css:Te,width:24,height:24})),(0,e.jsx)(Bt,{key:`selected-item-${g.id}`,logoIcon:a,selectedItem:g,onDeselect:ue=>Ot(ue),onEditClosed:$?ue=>$(ue):void 0})))}),d.placeholder))):i==null?void 0:i.map(d=>(0,e.jsx)(Bt,{key:`selected-item-${d.id}`,logoIcon:a,selectedItem:d,onDeselect:g=>Ot(g),onEditClosed:$?g=>$(g):void 0}))))};var X=require("@emotion/react"),Pt=X.css`
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`
389
384
  cursor: pointer;
390
385
  padding: var(--spacing-sm) 0;
391
386
  margin-right: var(--spacing-sm);
392
387
  position: relative;
393
388
  transition: background-color var(--duration-fast) var(--timing-ease-out),
394
389
  color var(--duration-fast) var(--timing-ease-out);
395
- `,Rt=X.css`
390
+ `,At=re.css`
396
391
  border: 2px solid transparent;
397
392
  border-radius: var(--rounded-base);
398
393
  display: flex;
399
394
  align-items: center;
400
395
  gap: var(--spacing-base);
401
396
  padding: var(--spacing-sm) var(--spacing-xs);
402
- `,Lt=X.css`
397
+ `,Bt=re.css`
403
398
  background-color: var(--green-50);
404
- `,kt=X.css`
399
+ `,Ot=re.css`
405
400
  font-size: var(--fs-sm);
406
401
  font-weight: var(--fw-bold);
407
402
  width: 50%;
408
- `,xt=X.css`
403
+ `,Ht=re.css`
409
404
  font-weight: var(--fw-normal);
410
405
  display: block;
411
- `,Et=X.css`
406
+ `,$t=re.css`
412
407
  font-size: var(--fs-sm);
413
408
  > * {
414
409
  display: block;
415
410
  }
416
- `,Mt=X.css`
411
+ `,Ft=re.css`
417
412
  display: block;
418
413
  height: 1.5rem;
419
414
  width: 1.5rem;
420
415
  color: var(--brand-secondary-3);
421
416
  margin-left: auto;
422
- `;var Vt=require("@emotion/react");function Tt({result:t,isSelected:n,triggerSelection:o}){var v;let{categories:r,logoIcon:a}=ve(),[s]=t.categories||[{id:"",name:""}],p=typeof s=="undefined"||!r||(v=r.find(u=>u.id===s.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:[Pt]},(0,e.jsx)("div",{css:[Rt,n?Lt:void 0]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:`Thumbnail for ${t.title}`,css:Vt.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`
423
418
  background-color: var(--gray-200);
424
419
  width: 3rem;
425
420
  height: 3rem;
426
421
  object-fit: cover;
427
- `}):(0,e.jsx)(_,{src:a,alt:"Logo",css:Vt.css`
422
+ `}):(0,e.jsx)(O,{src:a,alt:"Logo",css:Kt.css`
428
423
  height: 2.25rem;
429
424
  width: 2.25rem;
430
- `}),(0,e.jsx)("h4",{css:[kt]},t.title,p?(0,e.jsx)("span",{css:[xt]},p):null),(0,e.jsx)("p",{css:[Et]},"SKU: ",t.sku||t.id,t.price!==void 0?(0,e.jsx)("span",null,t.price):null),n?(0,e.jsx)(Le,{css:[Mt]}):null))}var he=require("@emotion/react"),lr=require("@uniformdev/design-system"),It=he.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);
431
429
  display: flex;
432
430
  width: 100%;
433
- border: 1px solid var(--gray-300);
434
- border-radius: var(--rounded-base);
435
- background-color: var(--gray-100);
436
- margin: var(--spacing-base) 0;
437
- `,Dt=he.css`
438
- 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);
439
436
  display: flex;
440
437
  flex-grow: 1;
441
- align-items: center;
442
- margin-right: var(--spacing-sm);
443
- gap: var(--spacing-base);
444
- `,Gt=he.css`
438
+ gap: var(--spacing-sm);
439
+ margin-inline: 0 var(--spacing-sm);
440
+ `,Zt=Q.css`
445
441
  display: flex;
446
442
  align-items: center;
447
443
  gap: var(--spacing-sm);
448
- ${(0,lr.mq)("lg")} {
444
+ flex-grow: 1;
445
+
446
+ ${(0,Qt.mq)("lg")} {
449
447
  width: 50%;
450
448
  margin-bottom: 0;
451
449
  }
452
- `,De=he.css`
450
+ `,Oe=Q.css`
453
451
  background-color: var(--gray-200);
454
452
  width: 3.5rem;
455
453
  height: 3.5rem;
456
454
  object-fit: cover;
457
- `;var E=require("@emotion/react"),pr=require("@uniformdev/design-system");function zt({selectedItem:t,onDeselect:n}){var p;let{categories:o,logoIcon:r}=ve(),[a]=t.categories||[{id:"",name:""}],s=typeof a=="undefined"||!o||(p=o.find(v=>v.id===a.id))==null?void 0:p.name;return(0,e.jsx)("div",{css:[It],key:t.id},(0,e.jsx)("article",{css:[Dt]},(0,e.jsx)("div",{css:[Gt]},t.thumbnailUrl?(0,e.jsx)("img",{src:t.thumbnailUrl,alt:s,css:[De],loading:"lazy"}):(0,e.jsx)("div",{css:[De]}),(0,e.jsx)("div",{css:E.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`
458
487
  > :not(:last-child) {
459
488
  margin-bottom: var(--spacing-xs);
460
489
  }
461
- `},(0,e.jsx)("h4",{css:E.css`
490
+ `},(0,e.jsx)("h4",{css:ie.css`
491
+ margin-top: 0px;
462
492
  font-weight: var(--fw-bold);
463
- `},t.title||t.id||"",s&&(0,e.jsx)("span",{css:E.css`
493
+ `},t.title||t.id||"",i&&(0,e.jsx)("span",{css:ie.css`
464
494
  display: block;
465
495
  font-weight: var(--fw-regular);
466
- `},s)),(0,e.jsx)("ul",{css:E.css`
496
+ `},i)),(0,e.jsx)("ul",{css:ie.css`
467
497
  font-size: var(--fs-sm);
468
- display: flex;
469
- gap: var(--spacing-base);
470
- `},(0,e.jsx)("li",null,(0,e.jsx)("span",{css:E.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`
471
504
  margin-right: var(--spacing-xs);
472
- `},"SKU:"),t.sku||t.id),t.price!==void 0?(0,e.jsx)("li",null,(0,e.jsx)("span",{css:E.css`
505
+ `},"SKU:"),t.sku||t.id),t.price!==void 0?(0,e.jsx)("li",null,(0,e.jsx)("span",{css:ie.css`
473
506
  margin-right: var(--spacing-xs);
474
- `},"Price:"),(0,e.jsx)("span",null,t.price)):null))),(0,e.jsx)("div",{css:E.css`
475
- display: flex;
476
- flex-wrap: wrap;
477
- gap: var(--spacing-sm);
478
- justify-content: flex-end;
479
- margin-left: auto;
480
- ${(0,pr.mq)("md")} {
481
- align-items: center;
482
- }
483
- `},t.editLink?(0,e.jsx)("a",{href:t.editLink,title:"edit",rel:"noopener",target:"__blank",css:E.css`
484
- display: inline-flex;
485
- justify-content: space-between;
486
- align-items: center;
487
- padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-base);
488
- background-color: var(--white);
489
- border-radius: var(--rounded-base);
490
- border: 2px solid var(--gray-400);
491
- &:hover {
492
- background-color: var(--gray-100);
493
- }
494
- `},(0,e.jsx)("span",{css:E.css`
495
- margin-right: var(--spacing-sm);
496
- font-size: var(--fs-sm);
497
- `},"Edit"),(0,e.jsx)(_,{src:r,alt:"Logo",css:E.css`
498
- width: 1.75rem;
499
- height: 1.75rem;
500
- display: block;
501
- `})):null,(0,e.jsx)("button",{type:"button",onClick:()=>{n==null||n(t)},css:E.css`
502
- display: flex;
503
- justify-content: space-between;
504
- align-items: center;
505
- background-color: var(--white);
506
- border-radius: var(--rounded-base);
507
- border: 2px solid var(--gray-400);
508
- height: 2.5rem;
509
- padding: 0 var(--spacing-base);
510
- gap: var(--spacing-sm);
511
- &:hover {
512
- background-color: var(--gray-100);
513
- }
514
- `},(0,e.jsx)("span",{css:E.css`
515
- font-size: var(--fs-sm);
516
- `},"Unlink"),(0,e.jsx)(ce,{css:E.css`
517
- color: var(--brand-secondary-5);
518
- `})))))}var ur=require("@uniformdev/design-system"),Ge=require("react-use");function jr({selectedProducts:t,setSelectedProducts:n,onGetCategories:o,onSearchProducts:r,logoIcon:a,multiSelect:s,multiSelectId:p,selectedItemComponent:v,rowComponent:u,errorComponent:h,helpComponent:c,noResultsComponent:f,onSort:C,typeSelectorAllTypesOptionText:re="All categories",typeSelectorLabel:$="Select Category"}){var ee;let{value:w,loading:y,error:oe}=(0,Ge.useAsync)(async()=>await o(),[o]),F=w==null?void 0:w.map(b=>b.id).join(","),q=(0,Y.useMemo)(()=>w?w.map(m=>({id:m.id,name:m.name})):void 0,[F]),K=(0,Y.useRef)(),[J,ne]=(0,Ge.useAsyncFn)(async(b,m)=>{let P=await r({text:b,options:{limit:m==null?void 0:m.count,offset:m==null?void 0:m.offset,categoryId:m==null?void 0:m.contentType}});return(m==null?void 0:m.offset)===0&&(K.current=[]),(K.current=K.current||[]).push(...P.products),P},[r]),j=async b=>{await n(b)};return oe||J.error?(0,e.jsx)(h||(({categoriesError:m,searchError:P})=>(0,e.jsx)(ur.Callout,{type:"error"},"There was an error: ",(m==null?void 0:m.message)||(P==null?void 0:P.message))),{categoriesError:oe,searchError:J.error}):(0,e.jsx)(At.Provider,{value:{categories:w,logoIcon:a}},(0,e.jsx)(Ct,{search:ne,results:K.current,logoIcon:a,selectedItems:t,select:j,multiSelectId:p||"product-search-multi-select",multiSelect:s,contentTypes:q,selectedItemComponent:v||zt,rowComponent:u||Tt,totalResults:(ee=J.value)==null?void 0:ee.total,resultsLoading:J.loading||y,helpComponent:c,noResultsComponent:f,onSort:C,typeSelectorAllTypesOptionText:re,typeSelectorLabel:$}))}var At=Y.default.createContext(void 0),ve=()=>{let t=(0,Y.useContext)(At);if(!t)throw new Error("useProductSearchContext must be used within a <ProductSearchContext> provider");return t};A(z,require("@uniformdev/mesh-sdk"),module.exports);var l=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});