@uniformdev/mesh-sdk-react 17.5.0 → 17.5.1-alpha.105
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.d.ts +4 -0
- package/dist/index.esm.js +165 -141
- package/dist/index.js +172 -148
- package/dist/index.mjs +165 -141
- package/package.json +6 -17
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Lo=Object.defineProperty;var _o=(e,r)=>{for(var o in r)Lo(e,o,{get:r[o],enumerable:!0})};import{jsx as l}from"@emotion/react";import*as h from"react";import{createContext as Mo,useContext as Uo,useEffect as Ao,useState as Bo}from"react";import{createContext as Io,useContext as Vo}from"react";import{Theme as Do}from"@uniformdev/design-system";import{jsx as Lt,jsxs as Eo}from"@emotion/react/jsx-runtime";var Ve=Io(void 0),Ji=({children:e})=>{let r;return typeof window!="undefined"&&typeof window.UniformMeshSDK!="undefined"&&(r={sdk:window.UniformMeshSDK}),Eo(Ve.Provider,{value:r,children:[Lt(Do,{}),Lt(De,{children:e})]})},_t=()=>{let e=Vo(Ve);if(!e)throw new Error("useUniformMeshSdkContext must be used within <MeshApp /> or <UniformMeshSdkContext />");return e};function It(){let{sdk:e}=_t();return e}import{jsx as zo}from"@emotion/react/jsx-runtime";var Vt=Mo(void 0),De=({children:e})=>{let r=It(),[o,a]=Bo(r.getCurrentLocation()),t=n=>{a(i=>({...i,value:n.newValue}))};return Ao(()=>(r.events.on("onValueChanged",t),()=>{r.events.off("onValueChanged",t)}),[r]),zo(Vt.Provider,{value:{location:o},children:e})},Ee=()=>{let e=Uo(Vt);if(!e)throw new Error("useUniformMeshLocationContext must be used within a UniformMeshLocationContextProvider");return e};function us(){let{location:e}=Ee();return e}import{initializeUniformMeshSDK as Ho}from"@uniformdev/mesh-sdk";import{useEffect as Go,useRef as Oo,useState as Dt}from"react";var Et=({autoResizingDisabled:e}={})=>{let[r,o]=Dt(),[a,t]=Dt(),n=Oo(!1);return Go(()=>{typeof window=="undefined"||a||(typeof window.UniformMeshSDK=="undefined"&&!n.current?(n.current=!0,Ho({autoResizingDisabled:e}).then(i=>{t(i)}).catch(i=>{o(i)}).finally(()=>{n.current=!1})):t(window.UniformMeshSDK))},[e]),{initializing:!a&&!r,error:r,sdk:a}};function ws(e){let{location:r}=Ee();if(e&&r.type!==e)throw new Error(`Expected location type ${e} but got ${r.type}`);return r}import Qo,{useMemo as Ae,useContext as Yo}from"react";import{css as qo}from"@emotion/react";import{Icon as No,InputSelect as $o}from"@uniformdev/design-system";import{CgClose as Fo}from"react-icons/cg";import{Fragment as Mt,jsxs as Ut}from"@emotion/react/jsx-runtime";var At=({value:e,text:r,loading:o})=>Ut(Mt,{children:[!!r&&r,!r&&Ut(Mt,{children:[o&&`${e} (Loading...)`,!o&&`${e} (Unresolvable)`]})]});import{css as Ze}from"@emotion/react";var Bt=Ze`
|
|
2
2
|
align-items: center;
|
|
3
3
|
background: var(--gray-100);
|
|
4
4
|
border: 1px solid var(--gray-300);
|
|
@@ -7,21 +7,21 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
margin-bottom: var(--spacing-sm);
|
|
9
9
|
margin-right: var(--spacing-sm);
|
|
10
|
-
`,
|
|
10
|
+
`,zt=Ze`
|
|
11
11
|
color: var(--gray-800);
|
|
12
12
|
padding: var(--spacing-3);
|
|
13
|
-
`,Ht=
|
|
13
|
+
`,Ht=Ze`
|
|
14
14
|
border: none;
|
|
15
15
|
border-left: 1px solid var(--gray-300);
|
|
16
16
|
background: var(--gray-100);
|
|
17
17
|
padding: var(--spacing-3);
|
|
18
|
-
`;import{jsx as Re,jsxs as Gt}from"@emotion/react/jsx-runtime";var Ot=({id:e,label:r,loading:
|
|
18
|
+
`;import{jsx as Re,jsxs as Gt}from"@emotion/react/jsx-runtime";var Ot=({id:e,label:r,loading:o,selectedValues:a,values:t,onAdd:n,onRemove:i})=>{var f;let c=(f=t==null?void 0:t.filter(s=>!(a!=null&&a.includes(s.id.toString()))))!=null?f:[],d=(s,u)=>{s.preventDefault(),i(u)};return Gt("div",{children:[Re($o,{id:e,name:e,label:r,onChange:s=>n(s.target.value),disabled:o,options:[{value:"",label:"Add..."},...c.map(s=>({value:s.id,label:s.name||s.id}))],value:"",css:Array.isArray(a)&&a.length>0?qo`
|
|
19
19
|
margin-bottom: var(--spacing-base);
|
|
20
|
-
`:""}),
|
|
20
|
+
`:""}),a==null?void 0:a.map(s=>{var u;return Gt("div",{css:Bt,children:[Re("span",{css:zt,children:Re(At,{value:s,loading:o,text:(u=t.find(p=>p.id===s))==null?void 0:u.name})}),Re("button",{css:Ht,title:"remove",onClick:p=>d(p,s),children:Re(No,{icon:Fo,iconColor:"currentColor",size:20})})]},s)})]})};import{jsx as qt}from"@emotion/react/jsx-runtime";var Wo=e=>qt("svg",{width:"1em",height:"1em",viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:qt("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"})}),Me=Wo;import{jsx as Nt}from"@emotion/react/jsx-runtime";var Ko=e=>Nt("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Nt("path",{d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"})}),Ue=Ko;import{useAsyncFn as Zo,useDebounce as Xo}from"react-use";import{Input as $t,InputSelect as Be,mq as ze}from"@uniformdev/design-system";import{css as L}from"@emotion/react";import{jsx as C,jsxs as ge}from"@emotion/react/jsx-runtime";var Ft={count:1,categories:[],brand:"",keyword:"",sort:"date_modified",sortOrder:"desc"},el=({value:e,setValue:r,brands:o,categories:a,loading:t,categoriesLoading:n,brandsLoading:i,logoIcon:c,onGetProducts:d,sortOptions:f,sortOrderOptions:s,categoryLabel:u="Product Category",brandLabel:p="Brand",disableBrands:b,restrictToSingleCategory:R=!1})=>{var M,v,B;let w=async g=>{r({...Ft,...e||{},...g})},S=Ae(()=>({...Ft,...e||{}}),[e]),[ue,Se]=Zo(async g=>await d(g),[d]);Xo(async()=>{await Se({brand:S.brand,categories:S.categories,keyword:S.keyword,sort:S.sort,sortOrder:S.sortOrder,count:S.count})},250,[S]);let q=Ae(()=>{let g=[];return a==null||a.forEach(z=>{let P=Kt(z,void 0);g.push(...P)}),g},[a]),ee=Ae(()=>[{value:"",label:"All categories"},...q.map(g=>({label:g.name,value:g.id}))],[q]),Z=Ae(()=>(o==null?void 0:o.map(g=>({id:g.id.toString(),name:g.name})))||[],[o]),Ce=g=>{if(!g)return;let z=(e==null?void 0:e.categories)||[];w({categories:[...z,g]})},Ie=g=>{var z;w({categories:(z=e==null?void 0:e.categories)==null?void 0:z.filter(P=>P!==g)})},ie=g=>{w({brand:g.target.value})},E=g=>{w({count:g||1})};return t?C("div",{children:"Loading..."}):C(Qt.Provider,{value:{categories:a,logoIcon:c},children:ge("div",{css:L`
|
|
21
21
|
> :not(:last-child) {
|
|
22
22
|
margin-bottom: var(--spacing-md);
|
|
23
23
|
}
|
|
24
|
-
`,children:[
|
|
24
|
+
`,children:[R?C(Be,{id:"selection-field-product-category",label:u,disabled:t,value:(v=(M=S.categories)==null?void 0:M[0])!=null?v:"",options:ee,onChange:g=>{w({categories:g.target.value===""?[]:[g.target.value]})}}):C(Ot,{loading:n||!1,id:"selection-field-product-category",label:u,onAdd:Ce,onRemove:Ie,selectedValues:S.categories,values:q}),ge("div",{css:L`
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-wrap: wrap;
|
|
27
27
|
column-gap: var(--spacing-lg);
|
|
@@ -29,12 +29,12 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
29
29
|
${ze("md")} {
|
|
30
30
|
flex-wrap: nowrap;
|
|
31
31
|
}
|
|
32
|
-
`,children:[
|
|
32
|
+
`,children:[b?null:C("div",{css:L`
|
|
33
33
|
width: 50%;
|
|
34
|
-
`,children:C(Be,{id:"brand",name:"brand",label:
|
|
34
|
+
`,children:C(Be,{id:"brand",name:"brand",label:p,disabled:i,value:S.brand,onChange:ie,options:[{value:"",label:"Choose..."},...Z.map(g=>({value:g.id,label:g.name}))]})}),C("div",{css:L`
|
|
35
35
|
flex-grow: 1;
|
|
36
36
|
position: relative;
|
|
37
|
-
`,children:C(
|
|
37
|
+
`,children:C($t,{id:"keyword-search",name:"keyword-search",label:"Keyword",value:S.keyword,placeholder:"Enter keyword",onChange:g=>w({keyword:g.target.value})})})]}),ge("div",{css:L`
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-wrap: wrap;
|
|
40
40
|
column-gap: var(--spacing-lg);
|
|
@@ -42,31 +42,31 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
42
42
|
${ze("md")} {
|
|
43
43
|
flex-wrap: nowrap;
|
|
44
44
|
}
|
|
45
|
-
`,children:[ge("div",{css:
|
|
45
|
+
`,children:[ge("div",{css:L`
|
|
46
46
|
width: 100%;
|
|
47
47
|
${ze("md")} {
|
|
48
48
|
width: 33.333333%;
|
|
49
49
|
}
|
|
50
50
|
position: relative;
|
|
51
|
-
`,children:[C(
|
|
51
|
+
`,children:[C($t,{id:"count",name:"count",type:"number",min:1,step:1,value:S.count,onChange:g=>E(g.target.valueAsNumber),label:"Count"}),ge("div",{css:L`
|
|
52
52
|
position: absolute;
|
|
53
53
|
bottom: var(--spacing-sm);
|
|
54
54
|
right: var(--spacing-sm);
|
|
55
55
|
display: flex;
|
|
56
56
|
gap: var(--spacing-sm);
|
|
57
|
-
`,children:[C(Wt,{onCountChange:()=>E(S.count-1),countIcon:"decrement",disabled:S.count===1}),C(Wt,{onCountChange:()=>E(S.count+1),countIcon:"increment"})]})]}),Array.isArray(f)&&f.length>0?C("div",{css:
|
|
57
|
+
`,children:[C(Wt,{onCountChange:()=>E(S.count-1),countIcon:"decrement",disabled:S.count===1}),C(Wt,{onCountChange:()=>E(S.count+1),countIcon:"increment"})]})]}),Array.isArray(f)&&f.length>0?C("div",{css:L`
|
|
58
58
|
flex-grow: 1;
|
|
59
59
|
${ze("md")} {
|
|
60
60
|
width: 33.333333%;
|
|
61
61
|
}
|
|
62
|
-
`,children:C(Be,{id:"sort",name:"sort",label:"Sort",value:S.sort,onChange:
|
|
62
|
+
`,children:C(Be,{id:"sort",name:"sort",label:"Sort",value:S.sort,onChange:g=>w({sort:g.target.value}),options:[{value:"",label:"Select a sort"},...f.map(g=>({value:g.sortKey,label:g.name}))]})}):null,Array.isArray(s)&&s.length>0?C("div",{css:L`
|
|
63
63
|
flex-grow: 1;
|
|
64
|
-
`,children:C(Be,{id:"sort-order",name:"sort-order",label:"Sort Order",value:S.sortOrder,onChange:
|
|
64
|
+
`,children:C(Be,{id:"sort-order",name:"sort-order",label:"Sort Order",value:S.sortOrder,onChange:g=>w({sortOrder:g.target.value}),options:s.map(g=>({value:g.sortOrderKey,label:g.name}))})}):null]}),ge("div",{children:[C("h3",{css:L`
|
|
65
65
|
font-size: var(--fs-md);
|
|
66
66
|
line-height: var(--spacing-md);
|
|
67
67
|
font-weight: var(--fw-bold);
|
|
68
68
|
margin-bottom: var(--spacing-xs);
|
|
69
|
-
`,children:"Result Preview"}),C(Zt,{products:(
|
|
69
|
+
`,children:"Result Preview"}),C(Zt,{products:(B=ue.value)==null?void 0:B.products})]})]})})};function Kt(e,r){var n;let o=[],a=r?`${r.name} > `:"",t={id:e.id.toString(),name:`${a}${e.name}`};return o.push(t),(n=e.children)==null||n.forEach(i=>{let c=Kt(i,t);o.push(...c)}),o}function Wt({onCountChange:e,countIcon:r,disabled:o}){return C("button",{css:L`
|
|
70
70
|
width: 2.25rem;
|
|
71
71
|
height: 2.25rem;
|
|
72
72
|
border: 1px solid var(--gray-300);
|
|
@@ -78,17 +78,17 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
78
78
|
&:hover {
|
|
79
79
|
background-color: var(--gray-200);
|
|
80
80
|
}
|
|
81
|
-
${
|
|
81
|
+
${o?L`
|
|
82
82
|
cursor: not-allowed;
|
|
83
83
|
opacity: 0.3;
|
|
84
84
|
`:""}
|
|
85
|
-
`,onClick:e,disabled:
|
|
85
|
+
`,onClick:e,disabled:o,children:r==="increment"?C(Me,{css:L`
|
|
86
86
|
width: 1rem;
|
|
87
87
|
height: 1rem;
|
|
88
|
-
`}):C(
|
|
88
|
+
`}):C(Ue,{css:L`
|
|
89
89
|
width: 1rem;
|
|
90
90
|
height: 1rem;
|
|
91
|
-
`})})}var Qt
|
|
91
|
+
`})})}var Qt=Qo.createContext(void 0),Yt=()=>{let e=Yo(Qt);if(!e)throw new Error("useProductQueryContext must be used within a <ProductQueryContext> provider");return e};import{jsx as Xt}from"@emotion/react/jsx-runtime";function N({src:e,alt:r,className:o}){let a=e&&typeof e!="string"?e:null;return a?Xt(a,{className:o}):Xt("img",{src:e,alt:r,className:o})}import{css as sr}from"@emotion/react";import{scrollbarStyles as Jo}from"@uniformdev/design-system";import{css as $}from"@emotion/react";var Jt=$`
|
|
92
92
|
align-items: center;
|
|
93
93
|
background: var(--white);
|
|
94
94
|
border-radius: var(--rounded-base);
|
|
@@ -103,55 +103,55 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
103
103
|
&:hover {
|
|
104
104
|
background: var(--gray-50);
|
|
105
105
|
}
|
|
106
|
-
`,jt
|
|
106
|
+
`,jt=$`
|
|
107
107
|
font-size: var(--fs-sm);
|
|
108
|
-
`,er
|
|
108
|
+
`,er=$`
|
|
109
109
|
width: 1rem;
|
|
110
110
|
height: 1rem;
|
|
111
|
-
`,
|
|
111
|
+
`,Xe=$`
|
|
112
112
|
margin-right: var(--spacing-lg);
|
|
113
113
|
font-size: var(--fs-sm);
|
|
114
|
-
`,tr
|
|
114
|
+
`,tr=$`
|
|
115
115
|
border: 1px solid var(--gray-200);
|
|
116
116
|
border-radius: var(--rounded-md);
|
|
117
117
|
background: var(--gray-50);
|
|
118
118
|
margin: var(--spacing-base) 0;
|
|
119
|
-
`,rr
|
|
119
|
+
`,rr=$`
|
|
120
120
|
align-items: center;
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-grow: 1;
|
|
123
123
|
gap: var(--spacing-base);
|
|
124
124
|
padding: var(--spacing-sm);
|
|
125
125
|
margin-right: var(--spacing-sm);
|
|
126
|
-
`,
|
|
126
|
+
`,ar=$`
|
|
127
127
|
background: var(--gray-200);
|
|
128
128
|
width: 3.5rem;
|
|
129
129
|
height: 3.5rem;
|
|
130
130
|
object-fit: cover;
|
|
131
|
-
`,
|
|
131
|
+
`,or=$`
|
|
132
132
|
background: var(--gray-100);
|
|
133
133
|
height: 3.5rem;
|
|
134
134
|
width: 3.5rem;
|
|
135
|
-
`,nr
|
|
135
|
+
`,nr=$`
|
|
136
136
|
margin-top: 0;
|
|
137
137
|
font-weight: var(--fw-bold);
|
|
138
138
|
font-size: var(--fs-sm);
|
|
139
139
|
width: calc(100% / 3);
|
|
140
|
-
`,ir
|
|
140
|
+
`,ir=$`
|
|
141
141
|
display: block;
|
|
142
142
|
font-weight: var(--fw-regular);
|
|
143
|
-
`;import{Fragment as lr,jsx as
|
|
143
|
+
`;import{Fragment as lr,jsx as ae,jsxs as re}from"@emotion/react/jsx-runtime";var Zt=({products:e})=>{let{categories:r,logoIcon:o}=Yt();return re(lr,{children:[re("p",{css:sr`
|
|
144
144
|
margin-bottom: var(--spacing-base);
|
|
145
|
-
`,children:["Matching ",(e==null?void 0:e.length)||0," products"]}),
|
|
145
|
+
`,children:["Matching ",(e==null?void 0:e.length)||0," products"]}),ae("ul",{css:[sr`
|
|
146
146
|
max-height: 24rem;
|
|
147
147
|
overflow-x: auto;
|
|
148
|
-
`,
|
|
148
|
+
`,Jo],children:e==null?void 0:e.map((a,t)=>{var c,d;let[n]=(a==null?void 0:a.categories)||[],i=typeof n=="undefined"||!r||(c=r.find(f=>f.id===n.id))==null?void 0:c.name;return ae("li",{css:tr,children:re("div",{css:rr,"data-test-id":`product-item-${a.sku||a.id}`,children:[a.thumbnailUrl?ae("img",{src:a.thumbnailUrl,alt:typeof a.title=="string"?a.title:a.name||`Product ${t}`,css:ar,"data-test-id":"product-image"}):ae("div",{css:or}),re("h4",{css:nr,"data-test-id":"product-name",children:[a.title||a.name,i&&ae("span",{css:ir,children:i})]}),a&&re(lr,{children:[re("p",{css:Xe,"data-test-id":"product-sku",children:["SKU: ",a.sku||a.id,ae("br",{})]}),a.price!==void 0?re("p",{css:Xe,"data-test-id":"product-price",children:["Price: ",a.price]}):null,a.editLink||a.url?re("a",{css:Jt,href:(d=a.editLink)!=null?d:a.url,title:`Go to ${a.title||a.name}`,target:"_blank",rel:"noopener noreferrer","data-test-id":"edit-product-button",children:[ae("span",{css:jt,children:"Edit"}),o?ae(N,{src:o,alt:"Logo",css:er}):null]}):null]})]})},`product-${a.id}`)})})]})};import Nn,{useContext as $n,useMemo as Fn,useRef as Wn}from"react";import*as K from"react";var je={};_o(je,{Caution:()=>cr,Checkmark:()=>He,ChevronDown:()=>Ge,Close:()=>gr,Danger:()=>fr,ExclamationPoint:()=>hr,Info:()=>Oe,Lightbulb:()=>xr,MagnifyingGlass:()=>Sr,MaximizeAlt:()=>Rr,Minus:()=>Ue,MoreVerticalAlt:()=>Te,Plus:()=>Me});import{jsx as dr}from"@emotion/react/jsx-runtime";var jo=e=>dr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",...e,children:dr("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"})}),cr=jo;import{jsx as pr}from"@emotion/react/jsx-runtime";var en=e=>pr("svg",{width:"1em",height:"1em",viewBox:"0 0 40 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:pr("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"})}),He=en;import{jsx as ur}from"@emotion/react/jsx-runtime";var tn=e=>ur("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em",...e,children:ur("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"})}),Ge=tn;import{jsx as Je,jsxs as an}from"@emotion/react/jsx-runtime";var rn=e=>Je("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 19 19",fill:"currentColor",...e,children:an("g",{fillRule:"evenodd",children:[Je("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"}),Je("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"})]})}),gr=rn;import{jsx as mr}from"@emotion/react/jsx-runtime";var on=e=>mr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...e,children:mr("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"})}),fr=on;import{jsx as vr}from"@emotion/react/jsx-runtime";var nn=e=>vr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 16",fill:"currentColor",...e,children:vr("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"})}),hr=nn;import{jsx as yr,jsxs as ln}from"@emotion/react/jsx-runtime";var sn=e=>ln("svg",{width:"1em",height:"1em",fill:"currentColor",...e,children:[yr("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"}),yr("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"})]}),Oe=sn;import{jsx as br}from"@emotion/react/jsx-runtime";var dn=e=>br("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",...e,children:br("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"})}),xr=dn;import{jsx as Pe,jsxs as wr}from"@emotion/react/jsx-runtime";var cn=e=>wr("svg",{width:"1em",height:"1em",viewBox:"0 0 26 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[wr("g",{clipPath:"url(#magnifying-glass_svg__a)",children:[Pe("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"}),Pe("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"})]}),Pe("defs",{children:Pe("clipPath",{id:"magnifying-glass_svg__a",children:Pe("path",{fill:"#fff",transform:"translate(.558)",d:"M0 0h24.935v24H0z"})})})]}),Sr=cn;import{jsx as Cr}from"@emotion/react/jsx-runtime";var pn=e=>Cr("svg",{width:"1em",height:"1em",fill:"currentColor",...e,children:Cr("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"})}),Rr=pn;import{jsx as Pr}from"@emotion/react/jsx-runtime";var un=e=>Pr("svg",{width:"1em",height:"1em",fill:"currentColor",...e,children:Pr("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"})}),Te=un;import{useDebounce as Pn}from"react-use";import{v4 as Tn}from"uuid";import{useState as mn,useRef as Mr,useEffect as fn}from"react";function qe(e,r){let o=window.open(e,"_blank"),a=setInterval(()=>{o!=null&&o.closed&&(clearInterval(a),r())},500)}import{format as vn}from"timeago.js";import{css as H}from"@emotion/react";import{mq as gn}from"@uniformdev/design-system";var Tr=H`
|
|
149
149
|
border: 1px solid var(--gray-200);
|
|
150
150
|
background: var(--gray-50);
|
|
151
151
|
border-radius: var(--rounded-base);
|
|
152
152
|
display: flex;
|
|
153
153
|
width: 100%;
|
|
154
|
-
`,
|
|
154
|
+
`,kr=H`
|
|
155
155
|
align-items: center;
|
|
156
156
|
display: flex;
|
|
157
157
|
flex-grow: 1;
|
|
@@ -174,7 +174,7 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
174
174
|
`,Vr=H`
|
|
175
175
|
width: 1.5rem;
|
|
176
176
|
height: 1.5rem;
|
|
177
|
-
`,
|
|
177
|
+
`,Dr=H`
|
|
178
178
|
background: var(--white);
|
|
179
179
|
border-radius: var(--rounded-base);
|
|
180
180
|
border-left: 4px solid var(--brand-secondary-3);
|
|
@@ -185,20 +185,20 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
185
185
|
width: max-content;
|
|
186
186
|
`,le=H`
|
|
187
187
|
font-size: var(--fs-sm);
|
|
188
|
-
`,
|
|
188
|
+
`,ke=H`
|
|
189
189
|
font-weight: var(--fw-bold);
|
|
190
190
|
margin-right: var(--spacing-sm);
|
|
191
|
-
`,
|
|
191
|
+
`,Er=H`
|
|
192
192
|
display: flex;
|
|
193
193
|
flex-direction: column;
|
|
194
194
|
gap: var(--spacing-sm);
|
|
195
195
|
|
|
196
|
-
${
|
|
196
|
+
${gn("md")} {
|
|
197
197
|
flex-direction: row;
|
|
198
198
|
min-width: 200px;
|
|
199
199
|
justify-content: end;
|
|
200
200
|
}
|
|
201
|
-
`,
|
|
201
|
+
`,et=H`
|
|
202
202
|
align-items: center;
|
|
203
203
|
background: var(--white);
|
|
204
204
|
border-radius: var(--rounded-base);
|
|
@@ -213,36 +213,36 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
213
213
|
&:hover {
|
|
214
214
|
background: var(--gray-50);
|
|
215
215
|
}
|
|
216
|
-
`;import{css as
|
|
216
|
+
`;import{css as oe}from"@emotion/react";import{Icon as Ur}from"@uniformdev/design-system";import{CgClose as hn,CgInfo as yn}from"react-icons/cg";import{Fragment as bn,jsx as F,jsxs as _}from"@emotion/react/jsx-runtime";var Ar=({selectedItem:e,logoIcon:r,onDeselect:o,onEditClosed:a})=>{var f;let t=Mr(null),n=Mr(null),[i,c]=mn(!1);fn(()=>{let s=p=>{t.current&&!t.current.contains(p.target)&&n.current&&!n.current.contains(p.target)&&c(!1)},u=()=>{c(!1)};return window.addEventListener("resize",u,!0),document.addEventListener("scroll",s,!0),document.addEventListener("mousedown",s),()=>{window.removeEventListener("resize",u,!0),document.removeEventListener("scroll",s,!0),document.removeEventListener("mousedown",s)}},[n]);let d=()=>{var s;if(c(!i),n.current&&t.current){let u=(s=t==null?void 0:t.current)==null?void 0:s.getBoundingClientRect(),p=n.current.offsetWidth;n.current.style.top=`${u.top+30}px`,n.current.style.left=`${u.left-p+30}px`}};return F("div",{css:Tr,children:_("div",{css:kr,children:[_("div",{css:Lr,children:[_("div",{css:_r,children:[F("h4",{css:[Ir,e.popoverData?oe`
|
|
217
217
|
margin-bottom: var(--spacing-sm);
|
|
218
|
-
`:""],title:`ID: ${e.id}`,"data-test-id":"entry-id",children:e.title||e.id||""}),e.popoverData?
|
|
218
|
+
`:""],title:`ID: ${e.id}`,"data-test-id":"entry-id",children:e.title||e.id||""}),e.popoverData?_(bn,{children:[F("button",{type:"button",ref:t,css:oe`
|
|
219
219
|
margin: calc(var(--spacing-xs) * -1) 0 calc(var(--spacing-xs) * -1) var(--spacing-sm);
|
|
220
|
-
`,"aria-controls":"path-details","aria-expanded":i,onClick:d,children:
|
|
220
|
+
`,"aria-controls":"path-details","aria-expanded":i,onClick:d,children:F(Ur,{icon:yn,iconColor:"gray",size:24,css:oe`
|
|
221
221
|
opacity: var(--opacity-75);
|
|
222
|
-
`})}),
|
|
222
|
+
`})}),F("div",{id:"path-details","aria-hidden":!i,ref:n,css:[Dr,i?oe`
|
|
223
223
|
visibility: visible;
|
|
224
|
-
`:
|
|
224
|
+
`:oe`
|
|
225
225
|
visibility: hidden;
|
|
226
|
-
`],children:Object.entries(e.popoverData).map(([s,
|
|
226
|
+
`],children:Object.entries(e.popoverData).map(([s,u],p)=>_("div",{css:le,children:[_("span",{css:ke,children:[s,":"]}),u]},p))})]}):null]}),e.createdDate&&_("div",{css:le,children:[F("span",{css:ke,children:"Created:"}),vn((f=e.createdDate)!=null?f:0)]}),e.metadata?Object.entries(e.metadata).filter(([s])=>["type","status"].includes(s.toLocaleLowerCase())).map(([s,u])=>_("div",{css:[le,oe`
|
|
227
227
|
order: 1;
|
|
228
|
-
`],children:[
|
|
228
|
+
`],children:[_("span",{css:ke,children:[s,":"]}),u]},s)):null,e.metadata?Object.entries(e.metadata).filter(([s])=>!["type","status"].includes(s.toLocaleLowerCase())).map(([s,u])=>_("div",{css:[le,oe`
|
|
229
229
|
order: 1;
|
|
230
|
-
`],children:[
|
|
230
|
+
`],children:[_("span",{css:[ke,oe`
|
|
231
231
|
order: 1;
|
|
232
|
-
`],children:[s,":"]}),
|
|
232
|
+
`],children:[s,":"]}),u]},s)):null]}),_("div",{css:Er,children:[e.editLink?_("a",{href:e.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",onClick:s=>{a&&(qe(s.currentTarget.href,()=>a(e)),s.preventDefault())},css:et,children:[F("span",{css:le,children:"Edit"}),F(N,{src:r,css:Vr,alt:"Logo"})]}):null,_("button",{type:"button",onClick:()=>{o(e)},css:et,children:[F("span",{css:le,children:"Unlink"}),F(Ur,{icon:hn,iconColor:"red",size:16})]})]})]})},e.id)};import{useState as xn,useRef as qr,useEffect as wn}from"react";import{css as de}from"@emotion/react";var Br=de`
|
|
233
233
|
cursor: pointer;
|
|
234
234
|
padding: var(--spacing-sm);
|
|
235
235
|
position: relative;
|
|
236
236
|
transition: background-color var(--duration-fast) var(--timing-ease-out),
|
|
237
237
|
color var(--duration-fast) var(--timing-ease-out);
|
|
238
|
-
`,
|
|
238
|
+
`,zr=de`
|
|
239
239
|
padding-right: var(--spacing-lg);
|
|
240
240
|
`,Hr=de`
|
|
241
241
|
background: var(--brand-secondary-3);
|
|
242
242
|
color: var(--white);
|
|
243
|
-
`,et=de`
|
|
244
|
-
font-size: var(--fs-xs);
|
|
245
243
|
`,tt=de`
|
|
244
|
+
font-size: var(--fs-xs);
|
|
245
|
+
`,rt=de`
|
|
246
246
|
font-weight: var(--fw-bold);
|
|
247
247
|
margin-right: var(--spacing-sm);
|
|
248
248
|
`,Gr=de`
|
|
@@ -260,17 +260,17 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
260
260
|
`,Or=de`
|
|
261
261
|
position: absolute;
|
|
262
262
|
inset: 0 var(--spacing-sm) 0 auto;
|
|
263
|
-
`;import{css as
|
|
263
|
+
`;import{css as Nr}from"@emotion/react";import{Fragment as Sn,jsx as $r,jsxs as ce}from"@emotion/react/jsx-runtime";var Fr=({result:e,isSelected:r,triggerSelection:o})=>{let a=qr(null),t=qr(null),[n,i]=xn(!1);wn(()=>{function d(f){a.current&&!a.current.contains(f.target)&&t.current&&!t.current.contains(f.target)&&i(!1)}return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[t]);let c=d=>{d.stopPropagation(),i(!n)};return ce("div",{css:[Br,r?Hr:void 0,e.popoverData?zr:void 0],"data-value":e.id,role:"option",tabIndex:-1,onClick:()=>o(),children:[e.title,e.popoverData&&r?ce(Sn,{children:[$r("button",{type:"button",ref:a,css:Or,"aria-controls":"path-details",onClick:d=>c(d),"aria-expanded":n,children:$r(Oe,{width:24,height:24})}),ce("div",{id:"path-details","aria-hidden":!n,ref:t,css:[Gr,n?Nr`
|
|
264
264
|
visibility: visible;
|
|
265
|
-
|
|
265
|
+
`:Nr`
|
|
266
266
|
visibility: hidden;
|
|
267
|
-
`],children:[e.metadata&&Object.entries(e.metadata).map(([d,f],s)=>ce("div",{css:
|
|
267
|
+
`],children:[e.metadata&&Object.entries(e.metadata).map(([d,f],s)=>ce("div",{css:tt,children:[ce("span",{css:rt,children:[d,":"]}),f]},s)),Object.entries(e.popoverData).map(([d,f],s)=>ce("div",{css:tt,children:[ce("span",{css:rt,children:[d,":"]}),f]},s))]})]}):null]},e.id)};import{Droppable as kn,DragDropContext as Ln,Draggable as _n}from"react-beautiful-dnd";import{css as T}from"@emotion/react";var Wr=T`
|
|
268
268
|
background: var(--white);
|
|
269
269
|
border: 1px solid var(--gray-300);
|
|
270
270
|
border-radius: var(--rounded-base);
|
|
271
271
|
padding: calc(var(--spacing-base) - 0.25rem) var(--spacing-sm);
|
|
272
272
|
margin-bottom: var(--spacing-base);
|
|
273
|
-
`,Kr=
|
|
273
|
+
`,Kr=T`
|
|
274
274
|
align-items: center;
|
|
275
275
|
display: flex;
|
|
276
276
|
position: relative;
|
|
@@ -278,7 +278,7 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
278
278
|
width: 100%;
|
|
279
279
|
background-color: transparent;
|
|
280
280
|
border: 0;
|
|
281
|
-
`,Qr=
|
|
281
|
+
`,Qr=T`
|
|
282
282
|
color: var(--brand-secondary-1);
|
|
283
283
|
display: block;
|
|
284
284
|
font-weight: var(--fw-bold);
|
|
@@ -294,15 +294,15 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
294
294
|
background: var(--gray-100);
|
|
295
295
|
outline: none;
|
|
296
296
|
}
|
|
297
|
-
`,Yr=
|
|
297
|
+
`,Yr=T`
|
|
298
298
|
background: var(--white);
|
|
299
299
|
border: 1px solid var(--gray-300);
|
|
300
300
|
border-radius: var(--rounded-base);
|
|
301
301
|
padding: calc(var(--spacing-base) - 0.25rem) var(--spacing-base);
|
|
302
302
|
display: block;
|
|
303
|
-
`,Zr=
|
|
303
|
+
`,Zr=T`
|
|
304
304
|
display: none;
|
|
305
|
-
`,Xr=
|
|
305
|
+
`,Xr=T`
|
|
306
306
|
overflow-y: auto;
|
|
307
307
|
height: 16rem;
|
|
308
308
|
margin-bottom: var(--spacing-base);
|
|
@@ -311,26 +311,26 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
311
311
|
& > :not(:last-child) {
|
|
312
312
|
border-bottom: 1px solid var(--gray-200);
|
|
313
313
|
}
|
|
314
|
-
`,
|
|
314
|
+
`,Od=T`
|
|
315
315
|
background-color: var(--gray-50);
|
|
316
316
|
max-width: 33.33%;
|
|
317
|
-
`,Jr=
|
|
317
|
+
`,Jr=T`
|
|
318
318
|
align-items: center;
|
|
319
319
|
display: flex;
|
|
320
320
|
position: absolute;
|
|
321
321
|
inset: 0 0 0 auto;
|
|
322
322
|
pointer-events: none;
|
|
323
323
|
padding-right: var(--spacing-sm);
|
|
324
|
-
`,jr=
|
|
324
|
+
`,jr=T`
|
|
325
325
|
color: var(--brand-secondary-1);
|
|
326
326
|
width: 1.25rem;
|
|
327
327
|
height: 1.25rem;
|
|
328
328
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
329
329
|
transform: rotate(0);
|
|
330
|
-
`,
|
|
330
|
+
`,qd=T`
|
|
331
331
|
background: var(--white);
|
|
332
332
|
color: var(--brand-secondary-1);
|
|
333
|
-
`,
|
|
333
|
+
`,ea=T`
|
|
334
334
|
position: relative;
|
|
335
335
|
margin-block: var(--spacing-sm) 0;
|
|
336
336
|
|
|
@@ -342,96 +342,96 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
342
342
|
left: auto !important;
|
|
343
343
|
top: auto !important;
|
|
344
344
|
}
|
|
345
|
-
`,
|
|
345
|
+
`,ta=T`
|
|
346
346
|
align-items: center;
|
|
347
347
|
display: flex;
|
|
348
348
|
position: absolute;
|
|
349
349
|
inset: 0 auto 0 0;
|
|
350
350
|
margin-block: auto;
|
|
351
351
|
opacity: 0;
|
|
352
|
-
`,
|
|
352
|
+
`,at=T`
|
|
353
353
|
color: var(--brand-secondary-1);
|
|
354
|
-
`,
|
|
354
|
+
`,ra=T`
|
|
355
355
|
position: absolute;
|
|
356
356
|
left: 0.375rem;
|
|
357
|
-
`,ot=
|
|
357
|
+
`,ot=T`
|
|
358
358
|
width: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
359
359
|
height: calc(var(--spacing-lg) + var(--spacing-xs));
|
|
360
|
-
`;import{css as W}from"@emotion/react";import{InputSelect as
|
|
360
|
+
`;import{css as W}from"@emotion/react";import{InputSelect as In,scrollbarStyles as Vn,Button as nt,Callout as Dn,InputKeywordSearch as En,LoadingIndicator as Mn,Menu as Un,MenuItem as An,LoadingOverlay as Bn}from"@uniformdev/design-system";import{useState as Cn,useEffect as aa,useRef as Rn}from"react";function oa(e,{delay:r=500,minDuration:o=200}={delay:500,minDuration:200}){let[a,t]=Cn("IDLE"),n=Rn(void 0);return aa(()=>{e&&a==="IDLE"&&(clearTimeout(n.current),n.current=setTimeout(()=>{if(!e)return t("IDLE");n.current=setTimeout(()=>{t("EXPIRE")},o),t("DISPLAY")},r),t("DELAY")),!e&&a!=="DISPLAY"&&(clearTimeout(n.current),t("IDLE"))},[e,a,r,o]),aa(()=>()=>clearTimeout(n.current),[]),a==="DISPLAY"||a==="EXPIRE"}import{Fragment as Hn,jsx as y,jsxs as G}from"@emotion/react/jsx-runtime";var zn=({searchText:e,selectedContentType:r})=>{let o="No content found";return r&&r!=="any"&&(o=`No ${r} content was found`),e&&(o=`${o} for keyword '${e}'.`),y(Dn,{type:"info",children:o})},na=({search:e,results:r,contentTypes:o,selectedItems:a,logoIcon:t,select:n,multiSelect:i,multiSelectId:c,rowComponent:d,selectedItemComponent:f,totalResults:s,cursor:u,resultsLoading:p,requireContentType:b,onAddNew:R,onEditClosed:w,onCancel:S,noResultsComponent:ue,helpComponent:Se,onSort:q,typeSelectorLabel:ee="Content Type Select",typeSelectorAllTypesOptionText:Z="All content types",loadingIndicatorDelay:Ce=1e3})=>{var Pt,Tt,kt;let ie=()=>b?Array.isArray(o)&&o.length>0?o[0].id:"":"any",[E,M]=K.useState(""),[v,B]=K.useState(ie),[g,z]=K.useState(!1),[P,se]=K.useState([]),[mo,wt]=K.useState(!1),Ke=K.useRef(`x${Tn()}`);Pn(()=>{e(E,{count:5,offset:0,contentType:v==="any"?void 0:v})},300,[E,v]);let fo=oa(p,{delay:Ce}),vo=m=>{P.some(x=>x.id===m.id)?se(x=>x.filter(te=>te.id!==m.id)):se(i?x=>[...x,m]:[m])},ho=a==null?void 0:a.map(m=>m.id+m.title).join(",");K.useEffect(()=>{Array.isArray(a)&&se(a)},[ho]);let yo=()=>{B(ie()),M(""),se(a!=null&&a.length?a:[])},bo=()=>{z(m=>!m),g||yo()},St=m=>{let x=(P==null?void 0:P.filter(te=>te.id!==m.id))||[];se(x),n(x,"")},xo=m=>{m.preventDefault(),n(P,v),z(!1)},wo=m=>{m.preventDefault(),z(!1),S&&S()},So=()=>{e(E,{count:5,offset:(r==null?void 0:r.length)||0,contentType:v==="any"?void 0:v,cursor:u}),wt(!0);let m=setTimeout(()=>{wt(!1)},750);return()=>clearTimeout(m)},Co=!(a==null?void 0:a.length)||i,Ro=d||Fr,Ct=f||Ar,Po=ue||zn,Rt=t&&typeof t!="string"?t:null,To=Rt?y(Rt,{css:ot}):y("img",{src:t,alt:"Logo",css:ot}),ko=m=>{var x,te;if(m.destination&&m.source.droppableId===((x=m.destination)==null?void 0:x.droppableId)){let U=[...a||[]],[Qe]=(te=U==null?void 0:U.splice(m.source.index,1))!=null?te:[];return U==null||U.splice(m.destination.index,0,Qe),q&&(se(U),q==null||q(U)),U}};return y("div",{css:W`
|
|
361
361
|
width: 100%;
|
|
362
362
|
`,children:G("div",{css:W`
|
|
363
363
|
position: relative;
|
|
364
364
|
margin-block: var(--spacing-base);
|
|
365
|
-
`,children:[
|
|
365
|
+
`,children:[Co?G(Hn,{children:[y("div",{css:Wr,"data-test-id":"component-search",children:G("button",{css:Kr,onClick:bo,type:"button","aria-haspopup":!0,"aria-expanded":g,"aria-controls":`entry-search-config-${Ke.current}`,children:[To,y("span",{css:W`
|
|
366
366
|
margin-left: var(--spacing-base);
|
|
367
|
-
`,children:"Select"}),
|
|
367
|
+
`,children:"Select"}),y("span",{css:Jr,children:y(Ge,{css:[jr,g?W`
|
|
368
368
|
transform: rotate(180deg);
|
|
369
|
-
`:void 0]})})]})}),G("div",{id:`entry-search-config-${
|
|
369
|
+
`:void 0]})})]})}),G("div",{id:`entry-search-config-${Ke.current}`,"aria-hidden":!g,css:[Yr,g?void 0:Zr],children:[Se||null,G("div",{css:W`
|
|
370
370
|
display: flex;
|
|
371
371
|
gap: calc(var(--spacing-base) - 0.25rem);
|
|
372
372
|
margin-bottom: var(--spacing-base);
|
|
373
|
-
`,children:[
|
|
373
|
+
`,children:[y(In,{onChange:m=>B(m.target.value),value:v,label:ee,showLabel:!1,options:[...b?[]:[{value:"any",label:Z}],...o?o.map(m=>({value:m.id,label:m.name})):[]]}),y("div",{css:W`
|
|
374
374
|
flex-grow: 1;
|
|
375
|
-
`,children:
|
|
375
|
+
`,children:y(En,{inputFieldName:"searchText",placeholder:"Enter keyword to narrow your results",onSearchTextChanged:M,disabledFieldSubmission:!0,value:E})})]}),G("div",{css:[Xr,Vn],id:Ke.current,role:"listbox",tabIndex:0,"data-test-id":"entry-list",children:[y(Bn,{isActive:fo}),Array.isArray(r)&&r.length>0?r.map(m=>y(Ro,{isSelected:P.some(x=>x.id===m.id),result:m,triggerSelection:()=>vo(m)},m.id)):p?null:y(Po,{searchText:E||E,selectedContentType:(Tt=(Pt=o==null?void 0:o.find(m=>m.id===v))==null?void 0:Pt.name)!=null?Tt:v}),!p&&typeof s!="undefined"&&r&&(r==null?void 0:r.length)<s&&y("button",{type:"button",css:Qr,onClick:So,children:mo?y(Mn,{}):"Load More"})]}),G("div",{css:W`
|
|
376
376
|
display: flex;
|
|
377
377
|
justify-content: space-between;
|
|
378
|
-
`,children:[
|
|
378
|
+
`,children:[y("div",{children:R&&((kt=o==null?void 0:o.length)!=null?kt:0)>0?y(Un,{menuLabel:"Add new menu",menuTrigger:y(nt,{buttonType:"secondary",children:"Add New"}),children:o==null?void 0:o.map(m=>y(An,{css:W`
|
|
379
379
|
background: var(--white);
|
|
380
380
|
color: var(--brand-secondary-1);
|
|
381
|
-
`,onClick:()=>
|
|
381
|
+
`,onClick:()=>R(m),children:m.name},m.id))}):null}),G("div",{css:W`
|
|
382
382
|
display: flex;
|
|
383
383
|
gap: var(--spacing-base);
|
|
384
|
-
`,children:[
|
|
384
|
+
`,children:[y(nt,{buttonType:"unimportant",onClick:wo,children:"Cancel"}),y(nt,{disabled:!P.length,onClick:xo,"data-test-id":"entry-accept-button",children:"Accept"})]})]})]})]}):null,g?null:i&&P.length>1?y(Ln,{onDragEnd:m=>ko(m),children:y(kn,{droppableId:c||"canvas-multi-select",children:m=>G("div",{...m.droppableProps,ref:m.innerRef,css:W`
|
|
385
385
|
margin-block: var(--spacing-sm) 0;
|
|
386
|
-
`,children:[
|
|
386
|
+
`,children:[P==null?void 0:P.map((x,te)=>{if(x!=null&&x.id)return y(_n,{draggableId:x.id,index:te,children:(U,Qe)=>G("div",{css:ea,ref:U.innerRef,"data-dragging":Qe.isDragging,...U.draggableProps,...U.dragHandleProps,children:[G("span",{css:ta,children:[y(Te,{css:[at,ra],width:24,height:24}),y(Te,{css:at,width:24,height:24})]}),y(Ct,{logoIcon:t,selectedItem:x,onDeselect:Ye=>St(Ye),onEditClosed:w?Ye=>w(Ye):void 0},`selected-item-${x.id}`)]})},x.id)}),m.placeholder]})})}):P==null?void 0:P.map(m=>y(Ct,{logoIcon:t,selectedItem:m,onDeselect:x=>St(x),onEditClosed:w?x=>w(x):void 0},`selected-item-${m.id}`))]})})};import{css as pe}from"@emotion/react";var ia=pe`
|
|
387
387
|
cursor: pointer;
|
|
388
388
|
padding: var(--spacing-sm) 0;
|
|
389
389
|
margin-right: var(--spacing-sm);
|
|
390
390
|
position: relative;
|
|
391
391
|
transition: background-color var(--duration-fast) var(--timing-ease-out),
|
|
392
392
|
color var(--duration-fast) var(--timing-ease-out);
|
|
393
|
-
`,
|
|
393
|
+
`,sa=pe`
|
|
394
394
|
border: 2px solid transparent;
|
|
395
395
|
border-radius: var(--rounded-base);
|
|
396
396
|
display: flex;
|
|
397
397
|
align-items: center;
|
|
398
398
|
gap: var(--spacing-base);
|
|
399
399
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
400
|
-
`,
|
|
400
|
+
`,la=pe`
|
|
401
401
|
background-color: var(--green-50);
|
|
402
|
-
`,
|
|
402
|
+
`,da=pe`
|
|
403
403
|
font-size: var(--fs-sm);
|
|
404
404
|
font-weight: var(--fw-bold);
|
|
405
405
|
width: 50%;
|
|
406
|
-
`,
|
|
406
|
+
`,ca=pe`
|
|
407
407
|
font-weight: var(--fw-normal);
|
|
408
408
|
display: block;
|
|
409
|
-
`,
|
|
409
|
+
`,pa=pe`
|
|
410
410
|
font-size: var(--fs-sm);
|
|
411
411
|
> * {
|
|
412
412
|
display: block;
|
|
413
413
|
}
|
|
414
|
-
`,
|
|
414
|
+
`,ua=pe`
|
|
415
415
|
display: block;
|
|
416
416
|
height: 1.5rem;
|
|
417
417
|
width: 1.5rem;
|
|
418
418
|
color: var(--brand-secondary-3);
|
|
419
419
|
margin-left: auto;
|
|
420
|
-
`;import{css as
|
|
420
|
+
`;import{css as ga}from"@emotion/react";import{jsx as me,jsxs as it}from"@emotion/react/jsx-runtime";function ma({result:e,isSelected:r,triggerSelection:o}){var c;let{categories:a,logoIcon:t}=Ne(),[n]=e.categories||[{id:"",name:""}],i=typeof n=="undefined"||!a||(c=a.find(d=>d.id===n.id))==null?void 0:c.name;return me("div",{"data-value":e.id,role:"option",tabIndex:-1,onClick:()=>o(),css:[ia],children:it("div",{css:[sa,r?la:void 0],children:[e.thumbnailUrl?me("img",{src:e.thumbnailUrl,alt:`Thumbnail for ${e.title}`,css:ga`
|
|
421
421
|
background-color: var(--gray-200);
|
|
422
422
|
width: 3rem;
|
|
423
423
|
height: 3rem;
|
|
424
424
|
object-fit: cover;
|
|
425
|
-
`}):me(
|
|
425
|
+
`}):me(N,{src:t,alt:"Logo",css:ga`
|
|
426
426
|
height: 2.25rem;
|
|
427
427
|
width: 2.25rem;
|
|
428
|
-
`}),
|
|
428
|
+
`}),it("h4",{css:[da],children:[e.title,i?me("span",{css:[ca],children:i}):null]}),it("p",{css:[pa],children:["SKU: ",e.sku||e.id,e.price!==void 0?me("span",{children:e.price}):null]}),r?me(He,{css:[ua]}):null]})},e.id)}import{css as ne}from"@emotion/react";import{mq as fa}from"@uniformdev/design-system";var va=ne`
|
|
429
429
|
border: 1px solid var(--gray-200);
|
|
430
430
|
border-radius: var(--rounded-base);
|
|
431
431
|
background: var(--gray-50);
|
|
432
432
|
display: flex;
|
|
433
433
|
width: 100%;
|
|
434
|
-
`,
|
|
434
|
+
`,ha=ne`
|
|
435
435
|
align-items: center;
|
|
436
436
|
display: flex;
|
|
437
437
|
padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-lg);
|
|
@@ -439,22 +439,22 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
439
439
|
flex-grow: 1;
|
|
440
440
|
gap: var(--spacing-sm);
|
|
441
441
|
margin-inline: 0 var(--spacing-sm);
|
|
442
|
-
`,
|
|
442
|
+
`,ya=ne`
|
|
443
443
|
display: flex;
|
|
444
444
|
align-items: center;
|
|
445
445
|
gap: var(--spacing-sm);
|
|
446
446
|
flex-grow: 1;
|
|
447
447
|
|
|
448
|
-
${
|
|
448
|
+
${fa("lg")} {
|
|
449
449
|
width: 50%;
|
|
450
450
|
margin-bottom: 0;
|
|
451
451
|
}
|
|
452
|
-
`,
|
|
452
|
+
`,st=ne`
|
|
453
453
|
background-color: var(--gray-200);
|
|
454
454
|
width: 3.5rem;
|
|
455
455
|
height: 3.5rem;
|
|
456
456
|
object-fit: cover;
|
|
457
|
-
`,
|
|
457
|
+
`,lt=ne`
|
|
458
458
|
align-items: center;
|
|
459
459
|
background: var(--white);
|
|
460
460
|
border-radius: var(--rounded-base);
|
|
@@ -469,23 +469,23 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
469
469
|
&:hover {
|
|
470
470
|
background: var(--gray-50);
|
|
471
471
|
}
|
|
472
|
-
`,
|
|
472
|
+
`,dt=ne`
|
|
473
473
|
font-size: var(--fs-sm);
|
|
474
|
-
`,
|
|
474
|
+
`,ba=ne`
|
|
475
475
|
display: block;
|
|
476
476
|
width: 1rem;
|
|
477
477
|
height: 1rem;
|
|
478
|
-
`,
|
|
478
|
+
`,xa=ne`
|
|
479
479
|
display: flex;
|
|
480
480
|
flex-direction: column;
|
|
481
481
|
gap: var(--spacing-sm);
|
|
482
482
|
|
|
483
|
-
${
|
|
483
|
+
${fa("md")} {
|
|
484
484
|
flex-direction: row;
|
|
485
485
|
min-width: 200px;
|
|
486
486
|
justify-content: end;
|
|
487
487
|
}
|
|
488
|
-
`;import{css as fe}from"@emotion/react";import{Icon as
|
|
488
|
+
`;import{css as fe}from"@emotion/react";import{Icon as Gn,mq as On}from"@uniformdev/design-system";import{CgClose as qn}from"react-icons/cg";import{jsx as O,jsxs as Q}from"@emotion/react/jsx-runtime";function wa({selectedItem:e,onDeselect:r}){var i;let{categories:o,logoIcon:a}=Ne(),[t]=e.categories||[{id:"",name:""}],n=typeof t=="undefined"||!o||(i=o.find(c=>c.id===t.id))==null?void 0:i.name;return O("div",{css:[va],children:Q("article",{css:[ha],children:[Q("div",{css:[ya],children:[e.thumbnailUrl?O("img",{src:e.thumbnailUrl,alt:n,css:[st],loading:"lazy"}):O("div",{css:[st]}),Q("div",{css:fe`
|
|
489
489
|
> :not(:last-child) {
|
|
490
490
|
margin-bottom: var(--spacing-xs);
|
|
491
491
|
}
|
|
@@ -498,7 +498,7 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
498
498
|
`,children:n})]}),Q("ul",{css:fe`
|
|
499
499
|
font-size: var(--fs-sm);
|
|
500
500
|
|
|
501
|
-
${
|
|
501
|
+
${On("sm")} {
|
|
502
502
|
display: flex;
|
|
503
503
|
gap: var(--spacing-base);
|
|
504
504
|
}
|
|
@@ -506,13 +506,13 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
506
506
|
margin-right: var(--spacing-xs);
|
|
507
507
|
`,children:"SKU:"}),e.sku||e.id]}),e.price!==void 0?Q("li",{children:[O("span",{css:fe`
|
|
508
508
|
margin-right: var(--spacing-xs);
|
|
509
|
-
`,children:"Price:"}),O("span",{children:e.price})]}):null]})]})]}),Q("div",{css:
|
|
509
|
+
`,children:"Price:"}),O("span",{children:e.price})]}):null]})]})]}),Q("div",{css:xa,children:[e.editLink?Q("a",{href:e.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",css:lt,children:[O("span",{css:dt,children:"Edit"}),O(N,{src:a,alt:"Logo",css:ba})]}):null,Q("button",{type:"button",onClick:()=>{r==null||r(e)},css:lt,children:[O("span",{css:dt,children:"Unlink"}),O(Gn,{icon:qn,iconColor:"red",size:16})]})]})]})},e.id)}import{Callout as Kn}from"@uniformdev/design-system";import{useAsync as Qn,useAsyncFn as Yn}from"react-use";import{jsx as ct,jsxs as Zn}from"@emotion/react/jsx-runtime";function Nc({selectedProducts:e,setSelectedProducts:r,onGetCategories:o,onSearchProducts:a,logoIcon:t,multiSelect:n,multiSelectId:i,selectedItemComponent:c,rowComponent:d,errorComponent:f,helpComponent:s,noResultsComponent:u,onSort:p,typeSelectorAllTypesOptionText:b="All categories",typeSelectorLabel:R="Select Category"}){var ie,E;let{value:w,loading:S,error:ue}=Qn(async()=>await o(),[o]),Se=w==null?void 0:w.map(M=>M.id).join(","),q=Fn(()=>w?w.map(v=>({id:v.id,name:v.name})):void 0,[Se]),ee=Wn(),[Z,Ce]=Yn(async(M,v)=>{let B=await a({text:M,options:{limit:v==null?void 0:v.count,offset:v==null?void 0:v.offset,categoryId:v==null?void 0:v.contentType,cursor:v==null?void 0:v.cursor}});return(v==null?void 0:v.offset)===0&&(ee.current=[]),(ee.current=ee.current||[]).push(...B.products),B},[a]),Ie=async M=>{await r(M)};return ue||Z.error?ct(f||(({categoriesError:v,searchError:B})=>Zn(Kn,{type:"error",children:["There was an error: ",(v==null?void 0:v.message)||(B==null?void 0:B.message)]})),{categoriesError:ue,searchError:Z.error}):ct(Sa.Provider,{value:{categories:w,logoIcon:t},children:ct(na,{search:Ce,results:ee.current,logoIcon:t,selectedItems:e,select:Ie,multiSelectId:i||"product-search-multi-select",multiSelect:n,contentTypes:q,selectedItemComponent:c||wa,rowComponent:d||ma,totalResults:(ie=Z.value)==null?void 0:ie.total,cursor:(E=Z.value)==null?void 0:E.cursor,resultsLoading:Z.loading||S,helpComponent:s,noResultsComponent:u,onSort:p,typeSelectorAllTypesOptionText:b,typeSelectorLabel:R})})}var Sa=Nn.createContext(void 0),Ne=()=>{let e=$n(Sa);if(!e)throw new Error("useProductSearchContext must be used within a <ProductSearchContext> provider");return e};import{css as I}from"@emotion/react";import{mq as Xn}from"@uniformdev/design-system";var Ca=I`
|
|
510
510
|
border: 1px solid var(--gray-200);
|
|
511
511
|
background: var(--gray-50);
|
|
512
512
|
border-radius: var(--rounded-base);
|
|
513
513
|
display: flex;
|
|
514
514
|
width: 100%;
|
|
515
|
-
`,
|
|
515
|
+
`,Ra=I`
|
|
516
516
|
align-items: center;
|
|
517
517
|
display: flex;
|
|
518
518
|
flex-grow: 1;
|
|
@@ -520,23 +520,23 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
520
520
|
margin-inline: 0 var(--spacing-sm);
|
|
521
521
|
padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-lg);
|
|
522
522
|
position: relative;
|
|
523
|
-
`,
|
|
523
|
+
`,Pa=I`
|
|
524
524
|
flex-grow: 1;
|
|
525
|
-
`,
|
|
525
|
+
`,Ta=I`
|
|
526
526
|
align-items: center;
|
|
527
527
|
display: flex;
|
|
528
528
|
position: relative;
|
|
529
|
-
`,
|
|
529
|
+
`,ka=I`
|
|
530
530
|
color: var(--brand-secondary-1);
|
|
531
531
|
font-size: var(--fs-base);
|
|
532
532
|
font-weight: var(--fw-bold);
|
|
533
533
|
line-height: 1;
|
|
534
534
|
margin: 0;
|
|
535
535
|
word-break: break-word;
|
|
536
|
-
`,
|
|
536
|
+
`,La=I`
|
|
537
537
|
width: 1.5rem;
|
|
538
538
|
height: 1.5rem;
|
|
539
|
-
`,
|
|
539
|
+
`,_a=I`
|
|
540
540
|
background: var(--white);
|
|
541
541
|
border-radius: var(--rounded-base);
|
|
542
542
|
border-left: 4px solid var(--brand-secondary-3);
|
|
@@ -545,22 +545,22 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
545
545
|
padding: var(--spacing-base);
|
|
546
546
|
z-index: var(--z-10);
|
|
547
547
|
width: max-content;
|
|
548
|
-
`,ve=
|
|
548
|
+
`,ve=I`
|
|
549
549
|
font-size: var(--fs-sm);
|
|
550
|
-
`,$e=
|
|
550
|
+
`,$e=I`
|
|
551
551
|
font-weight: var(--fw-bold);
|
|
552
552
|
margin-right: var(--spacing-sm);
|
|
553
|
-
`,
|
|
553
|
+
`,Ia=I`
|
|
554
554
|
display: flex;
|
|
555
555
|
flex-direction: column;
|
|
556
556
|
gap: var(--spacing-sm);
|
|
557
557
|
|
|
558
|
-
${
|
|
558
|
+
${Xn("md")} {
|
|
559
559
|
flex-direction: row;
|
|
560
560
|
justify-content: end;
|
|
561
561
|
min-width: 200px;
|
|
562
562
|
}
|
|
563
|
-
`,
|
|
563
|
+
`,pt=I`
|
|
564
564
|
align-items: center;
|
|
565
565
|
background: var(--white);
|
|
566
566
|
border-radius: var(--rounded-base);
|
|
@@ -575,40 +575,40 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
575
575
|
&:hover {
|
|
576
576
|
background: var(--gray-50);
|
|
577
577
|
}
|
|
578
|
-
`,
|
|
578
|
+
`,Va=I`
|
|
579
579
|
display: flex;
|
|
580
580
|
margin-top: var(--spacing-sm);
|
|
581
581
|
gap: var(--spacing-sm);
|
|
582
|
-
`,
|
|
582
|
+
`,Da=I`
|
|
583
583
|
background: none;
|
|
584
584
|
outline: none;
|
|
585
585
|
border: none;
|
|
586
586
|
margin: calc(var(--spacing-xs) * -1) 0 calc(var(--spacing-xs) * -1) var(--spacing-sm);
|
|
587
|
-
`,
|
|
587
|
+
`,ut=I`
|
|
588
588
|
display: block;
|
|
589
589
|
max-width: 100%;
|
|
590
590
|
min-width: 100px;
|
|
591
591
|
height: auto;
|
|
592
|
-
`;import{useState as
|
|
592
|
+
`;import{useState as Jn,useRef as Ea,useEffect as jn}from"react";import{CgInfo as ei,CgClose as ti}from"react-icons/cg";import{format as ri}from"timeago.js";import{css as he}from"@emotion/react";import{Icon as Ma}from"@uniformdev/design-system";import{Fragment as oi,jsx as V,jsxs as D}from"@emotion/react/jsx-runtime";function ip({selectedItem:e,onDeselect:r,onEditClosed:o,logoIcon:a,itemDetailsRendererComponent:t}){let n=Ea(null),i=Ea(null),[c,d]=Jn(!1);jn(()=>{let u=b=>{n.current&&!n.current.contains(b.target)&&i.current&&!i.current.contains(b.target)&&d(!1)},p=()=>{d(!1)};return window.addEventListener("resize",p,!0),document.addEventListener("scroll",u,!0),document.addEventListener("mousedown",u),()=>{window.removeEventListener("resize",p,!0),document.removeEventListener("scroll",u,!0),document.removeEventListener("mousedown",u)}},[i]);let f=()=>{var u;if(d(!c),i.current&&n.current){let p=(u=n==null?void 0:n.current)==null?void 0:u.getBoundingClientRect();i.current.style.top=`${p.top+30}px`}},s=t!=null?t:ai;return V("div",{css:[Ca,he`
|
|
593
593
|
margin: 0 0 1rem 0;
|
|
594
|
-
`],children:
|
|
594
|
+
`],children:D("div",{css:Ra,children:[D("div",{css:Pa,children:[D("div",{css:Ta,children:[V("h4",{css:[ka],title:`ID: ${e.id}`,"data-test-id":"dam-selected-item",children:e.title||e.id||""}),e.popoverData?D(oi,{children:[V("button",{type:"button",ref:n,css:Da,"aria-controls":"path-details","aria-expanded":c,onClick:f,children:V(Ma,{icon:ei,iconColor:"gray",size:24,css:he`
|
|
595
595
|
opacity: var(--opacity-75);
|
|
596
|
-
`})}),
|
|
596
|
+
`})}),V("div",{id:"path-details","aria-hidden":!c,ref:i,css:[_a,c?he`
|
|
597
597
|
visibility: visible;
|
|
598
598
|
`:he`
|
|
599
599
|
visibility: hidden;
|
|
600
|
-
`],children:Object.entries(e.popoverData).map(([
|
|
600
|
+
`],children:Object.entries(e.popoverData).map(([u,p],b)=>D("div",{css:ve,children:[D("span",{css:$e,children:[u,":"]}),p]},b))})]}):null]}),V(s,{item:e})]}),D("div",{css:Ia,children:[e.editLink?typeof e.editLink=="string"?D("a",{href:e.editLink,title:"edit",rel:"noopener noreferrer",target:"_blank",onClick:u=>{o&&(qe(u.currentTarget.href,()=>o(e)),u.preventDefault())},css:pt,children:[V("span",{css:ve,children:"Edit"}),a?V(N,{src:a,css:La,alt:"Logo"}):null]}):e.editLink:null,D("button",{type:"button",onClick:()=>{r(e)},css:pt,children:[V("span",{css:ve,children:"Unlink"}),V(Ma,{icon:ti,iconColor:"red",size:16})]})]})]})},e.id)}function ai({item:e}){let r=null;return e.previewUrl&&typeof e.previewUrl=="string"?e.type==="image"?r=V("img",{src:e.previewUrl,alt:e.id,width:"200",css:ut}):e.type==="video"&&(r=V("video",{src:e.previewUrl,title:e.id,width:"200",controls:!0,css:ut})):e.previewUrl&&typeof e.previewUrl!="string"&&(r=e.previewUrl),r||e.metadata?D("div",{css:Va,children:[r?V("div",{children:r}):null,D("ul",{children:[e.metadata?Object.entries(e.metadata).map(([o,a])=>D("li",{css:[ve,he`
|
|
601
601
|
order: 1;
|
|
602
|
-
`],children:[
|
|
602
|
+
`],children:[D("span",{css:[$e,he`
|
|
603
603
|
order: 1;
|
|
604
|
-
`],children:[
|
|
604
|
+
`],children:[o,":"]}),a]},o)):null,e.createdDate?D("li",{css:ve,children:[V("span",{css:$e,children:"Date:"}),ri(e.createdDate)]}):null]})]}):null}import{LoadingIndicator as ni,Theme as ii}from"@uniformdev/design-system";import{jsx as Le,jsxs as si}from"@emotion/react/jsx-runtime";var mp=({children:e,loadingComponent:r,errorComponent:o})=>{let{initializing:a,error:t,sdk:n}=Et();if(a||!n){let i=r;return i?Le(i,{}):Le(ni,{})}if(t){let i=o;if(i)return Le(i,{error:t});throw t}return si(Ve.Provider,{value:{sdk:n},children:[Le(ii,{}),Le(De,{children:e})]})};function Ua(e){return Object.entries(e||{}).sort(([r,o],[a,t])=>{var n,i;return o.order&&t.order?o.order-t.order:o.order?1:t.order?-1:((n=o.displayName)!=null?n:r).localeCompare((i=t.displayName)!=null?i:a)}).map(([r,o])=>({name:r,...o}))}import*as xe from"react";import{Button as Ga,Input as mt}from"@uniformdev/design-system";import{Form as li,Formik as di}from"formik";import{css as gt}from"@emotion/react";var Aa=gt`
|
|
605
605
|
> * {
|
|
606
606
|
margin: var(--spacing-base) 0 0;
|
|
607
607
|
}
|
|
608
|
-
`,
|
|
608
|
+
`,Ba=gt`
|
|
609
609
|
display: flex;
|
|
610
610
|
gap: var(--spacing-sm);
|
|
611
|
-
`,
|
|
611
|
+
`,za=gt`
|
|
612
612
|
:root {
|
|
613
613
|
--tagify-dd-color-primary: rgb(53, 149, 246);
|
|
614
614
|
--tagify-dd-bg-color: var(--white);
|
|
@@ -1105,33 +1105,57 @@ var Ca=Object.defineProperty;var Ra=(e,r)=>{for(var a in r)Ca(e,a,{get:r[a],enum
|
|
|
1105
1105
|
opacity: 0;
|
|
1106
1106
|
transition: inherit;
|
|
1107
1107
|
}
|
|
1108
|
-
`;import{jsx as ye,jsxs as
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1108
|
+
`;import{jsx as ye,jsxs as Oa}from"@emotion/react/jsx-runtime";function qa({variable:e,onSubmit:r,onCancel:o}){var t,n,i,c,d,f,s,u,p;let{variables:a}=be();return ye(di,{initialValues:{name:e,default:(n=(t=a[e])==null?void 0:t.default)!=null?n:"",displayName:(c=(i=a[e])==null?void 0:i.displayName)!=null?c:"",helpText:(f=(d=a[e])==null?void 0:d.helpText)!=null?f:"",order:(s=a[e])==null?void 0:s.order,type:(p=(u=a[e])==null?void 0:u.type)!=null?p:""},onSubmit:b=>{let R={...b,helpText:b.helpText||void 0,type:b.type||void 0,displayName:b.displayName||void 0};return r(R)},children:({getFieldProps:b,initialValues:R})=>Oa(li,{css:Aa,children:[ye(mt,{...b("name"),label:"Name",disabled:R.name!=="",caption:"This cannot change once created."}),ye(mt,{...b("helpText"),label:"Help Text",caption:"Appears in the composition data resource when entering a value for this variable.",autoComplete:"off"}),ye(mt,{...b("default"),label:"Default Value",autoComplete:"off"}),Oa("div",{css:Ba,children:[ye(Ga,{type:"submit",children:"Save"}),ye(Ga,{type:"button",buttonType:"ghost",onClick:o,children:"cancel"})]})]})})}import{jsx as ci,jsxs as pi}from"@emotion/react/jsx-runtime";var Na=xe.createContext(null);function Ip({value:e,onChange:r,editVariableComponent:o,children:a}){let[t,n]=xe.useState(),i=o!=null?o:qa,c={dispatch:d=>{if(d.type==="set"){let{name:f,...s}=d.variable;r({...c.variables,[d.variable.name]:s}),d.openEditor&&n(d.variable.name)}else if(d.type==="edit")n(d.variable);else if(d.type==="remove"){let f={...e};delete f[d.variable],r(f)}else if(d.type==="reorder")r(d.result);else throw new Error(`Unknown event ${JSON.stringify(d)}`)},variables:e};return pi(Na.Provider,{value:c,children:[a,typeof t!="undefined"?ci(i,{onSubmit:d=>{n(void 0);let{name:f,...s}=d;r({...e,[f]:s})},onCancel:()=>n(void 0),variable:t}):null]})}function be(){let e=xe.useContext(Na);if(!e)throw new Error("No VariablesProvider present");return e}import{AddListButton as gi,button as mi,Icon as fi,Table as vi,TableBody as hi,TableCellData as ft,TableCellHead as vt,TableHead as yi,TableRow as Qa}from"@uniformdev/design-system";import{css as bi}from"@emotion/react";import{DragDropContext as xi,Draggable as wi,Droppable as Si}from"react-beautiful-dnd";import{css as Fe}from"@emotion/react";var $a=e=>Fe`
|
|
1109
|
+
position: relative;
|
|
1110
|
+
${e?`
|
|
1111
|
+
display: table;
|
|
1112
|
+
left: auto !important;
|
|
1113
|
+
top: auto !important;
|
|
1114
|
+
`:void 0}
|
|
1115
|
+
`,Fa=Fe`
|
|
1116
|
+
&::after {
|
|
1117
|
+
content: '';
|
|
1118
|
+
display: block;
|
|
1119
|
+
position: absolute;
|
|
1120
|
+
left: 2px;
|
|
1121
|
+
top: var(--spacing-base);
|
|
1122
|
+
bottom: var(--spacing-base);
|
|
1123
|
+
width: 5px;
|
|
1124
|
+
border-left: 2px dotted var(--gray-300);
|
|
1125
|
+
border-right: 2px dotted var(--gray-300);
|
|
1126
|
+
opacity: 0;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
&:hover::after {
|
|
1130
|
+
opacity: 1;
|
|
1131
|
+
}
|
|
1132
|
+
`,Wa=Fe`
|
|
1133
|
+
border: none;
|
|
1134
|
+
color: var(--brand-secondary-5);
|
|
1135
|
+
font-weight: var(--fw-medium);
|
|
1136
|
+
padding: 0;
|
|
1137
|
+
background: none;
|
|
1138
|
+
overflow: hidden;
|
|
1139
|
+
text-overflow: ellipsis;
|
|
1140
|
+
white-space: nowrap;
|
|
1141
|
+
max-width: 20ch;
|
|
1142
|
+
`,Ka=Fe`
|
|
1143
|
+
overflow: hidden;
|
|
1144
|
+
text-overflow: ellipsis;
|
|
1145
|
+
white-space: nowrap;
|
|
1146
|
+
max-width: 20ch;
|
|
1147
|
+
`;import{Fragment as Ci,jsx as k,jsxs as _e}from"@emotion/react/jsx-runtime";function qp(){let{variables:e,dispatch:r}=be(),o=Ua(e),a=t=>{var n,i;if(t.destination&&t.source.droppableId===((n=t.destination)==null?void 0:n.droppableId)){let c=[...o||[]],[d]=(i=c==null?void 0:c.splice(t.source.index,1))!=null?i:[];c==null||c.splice(t.destination.index,0,d);let f=c.reduce((s,u,p)=>({...s,[u.name]:{type:u.type,default:u.default,order:p}}),{});return r({type:"reorder",result:f}),c}};return _e(Ci,{children:[k(xi,{onDragEnd:t=>a(t),children:k(Si,{droppableId:"variables-table",children:t=>_e(vi,{...t.droppableProps,ref:t.innerRef,children:[k(yi,{children:_e(Qa,{children:[k(vt,{children:"Name"}),k(vt,{children:"Default Value"}),k(vt,{})]})}),_e(hi,{children:[o.map(({name:n,displayName:i,default:c},d)=>{let f=i!=null?i:n;return k(wi,{draggableId:n,index:d,isDragDisabled:o.length===1,children:(s,u)=>_e(Qa,{ref:s.innerRef,...s.dragHandleProps,...s.draggableProps,id:f,css:$a(u.isDragging),"data-dragging":u.isDragging,children:[k(ft,{css:o.length>1?Fa:void 0,children:k("button",{css:Wa,type:"button",onClick:p=>{p.preventDefault(),r({type:"edit",variable:n})},title:f,children:f})}),k(ft,{children:k("span",{css:Ka,title:c,children:c})}),k(ft,{align:"right",children:k("button",{type:"button",title:`delete ${f}`,css:[mi,bi`
|
|
1148
|
+
background: transparent;
|
|
1149
|
+
`],"aria-controls":f,onClick:()=>r({type:"remove",variable:n}),children:k(fi,{icon:"trash",iconColor:"red"})})})]})},n)}),t.placeholder]})]})})}),k(gi,{onButtonClick:()=>r({type:"edit",variable:""}),"aria-label":"Add variable",buttonText:"add variable",icon:"math-plus",css:{marginLeft:"var(--spacing-md)"}})]})}import*as A from"react";import Ri from"@yaireo/tagify/dist/react.tagify";import{Global as Pi}from"@emotion/react";import{Fragment as Ti,jsx as Za,jsxs as ki}from"@emotion/react/jsx-runtime";function Ya(e){return e.replace(/\${{.*?"value":"([^"]+)".*?}}/g,"${$1}").replace(/[\r\n]+/g,"")}function Xa({label:e,value:r,disableVariables:o,onChange:a}){let{variables:t,dispatch:n}=be(),i=A.useRef(t),c=A.useRef(n),d=A.useRef(a),f=A.useRef();A.useEffect(()=>{i.current=t},[t]),A.useEffect(()=>{c.current=n},[n]),A.useEffect(()=>{d.current=a},[a]),A.useEffect(()=>{var b,R,w;let p=Ya((R=(b=f.current)==null?void 0:b.getInputValue())!=null?R:"");r!==p&&((w=f.current)==null||w.loadOriginalValues(r))},[r]);let s=A.useCallback(p=>{d.current(Ya(p))},[]),u=A.useCallback(p=>{i.current[p]||c.current({type:"set",variable:{name:p,default:""},openEditor:!0})},[]);return ki(Ti,{children:[Za(Pi,{styles:za}),Za(Ri,{tagifyRef:f,"aria-label":e,defaultValue:r,autoFocus:!1,whitelist:Object.entries(t).map(([p,b])=>{var R;return{name:(R=b.displayName)!=null?R:p,value:p}}),settings:{pattern:o?null:/\$/,enforceWhitelist:o,mixTagsInterpolator:["${","}"],duplicates:!0,tagTextProp:"name",dropdown:{position:"text",enabled:0,mapValueTo:p=>p.name,includeSelectedTags:!0,searchKeys:["name","value"],highlightFirst:!0}},InputMode:"textarea",onAdd:p=>{var R;let b=(R=p.detail.data)==null?void 0:R.value;b&&u(b)},onRemove:p=>{s(p.detail.tagify.getInputValue())},onChange:p=>{s(p.detail.value)},onInput:p=>{s(p.detail.tagify.getInputValue())}})]})}import Ii from"@monaco-editor/react";import{InputSelect as Vi}from"@uniformdev/design-system";import{useState as Di}from"react";import*as we from"react";import{jsx as Li}from"@emotion/react/jsx-runtime";var ja=we.createContext(null);function Jp({value:e,onChange:r,children:o}){let a=we.useMemo(()=>({dispatch:t=>{if(t.type==="setRelativeUrl")r({...e,relativeUrl:t.relativeUrl,parameters:X(t.relativeUrl)});else if(t.type==="updateParameter"){let n=Ja(e.relativeUrl,i=>{let c=`${t.parameter.key}=${t.parameter.value}`;typeof t.index!="undefined"?i[t.index]=c:i.push(c)});r({...e,relativeUrl:n,parameters:X(n)})}else if(t.type==="removeParameter"){let n=Ja(e.relativeUrl,i=>{i.splice(t.index,1)});r({...e,relativeUrl:n,parameters:X(n)})}else if(t.type==="updateHeader"){let n=[...e.headers];typeof t.index!="undefined"?n[t.index]=t.header:n.push(t.header),r({...e,headers:n,parameters:X(e.relativeUrl)})}else if(t.type==="removeHeader"){let n=[...e.headers];n.splice(t.index,1),r({...e,headers:n,parameters:X(e.relativeUrl)})}else if(t.type==="setMethod")r({...e,method:t.method,parameters:X(e.relativeUrl)});else if(t.type==="setBody"){let n=[...e.headers],i=n.findIndex(({key:c})=>c.trim().toLocaleLowerCase()==="content-type");i>-1?n[i].value=t.contentType:n.push({key:"Content-Type",value:t.contentType}),r({...e,body:t.body,headers:n,parameters:X(e.relativeUrl)})}else throw new Error(`Unknown event ${JSON.stringify(t)}`)},request:{...e,parameters:X(e.relativeUrl)}}),[r,e]);return Li(ja.Provider,{value:a,children:o})}function Y(){let e=we.useContext(ja);if(!e)throw new Error("No RequestProvider present");return e}function Ja(e,r){let[o,a]=e.split("?"),t=o,n=(a!=null?a:"").split("&");return r(n),t+=`?${n.join("&")}`,t}function X(e){var r,o;return((o=(r=e.split("?")[1])==null?void 0:r.split("&").map(a=>{let[t,n]=a.split("=");return{key:t,value:n!=null?n:""}}))!=null?o:[]).filter(a=>a.key)}function jp(e){let[r]=e.split("?");return[r,X(e)]}import{css as eo}from"@emotion/react";var We=eo`
|
|
1126
1150
|
background: var(--white);
|
|
1127
|
-
`,
|
|
1151
|
+
`,to=e=>eo`
|
|
1128
1152
|
align-items: start;
|
|
1129
1153
|
background: ${e};
|
|
1130
1154
|
display: grid;
|
|
1131
1155
|
grid-template-columns: 12ch 1fr;
|
|
1132
1156
|
gap: var(--spacing-sm);
|
|
1133
|
-
`;import{jsx as
|
|
1157
|
+
`;import{jsx as _i}from"@emotion/react/jsx-runtime";var ro=({bgColor:e="transparent",children:r,...o})=>_i("div",{css:to(e),...o,children:r});import{css as ao}from"@emotion/react";import{jsx as yt,jsxs as Mi}from"@emotion/react/jsx-runtime";var Ei=[{label:"Text",value:"plaintext"},{label:"JSON",value:"json"},{label:"YAML",value:"yaml"},{label:"JavaScript",value:"javascript"},{label:"XML",value:"xml"},{label:"HTML",value:"html"}],oo={plaintext:"text/plain",json:"application/json",yaml:"application/x-yaml",javascript:"application/javascript",xml:"application/xml",html:"text/html"};function mu(){let{request:e,dispatch:r}=Y(),[o,a]=Di("json");return Mi("div",{css:ao`
|
|
1134
1158
|
background: var(--white);
|
|
1135
|
-
`,children:[yt(
|
|
1159
|
+
`,children:[yt(ro,{bgColor:"var(--gray-100)",css:ao`
|
|
1136
1160
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
1137
|
-
`,children:yt(
|
|
1161
|
+
`,children:yt(Vi,{label:"Language",showLabel:!1,options:Ei,value:o,onChange:t=>{let n=t.currentTarget.value;a(n),e.body&&r({type:"setBody",body:e.body,contentType:oo[n]})}})}),yt(Ii,{height:200,value:e.body,language:o,options:{language:o,minimap:{enabled:!1},folding:!1},onChange:t=>{t&&r({type:"setBody",body:t,contentType:oo[o]})}})]})}import{Table as Ui,TableHead as Ai,TableRow as no,TableCellHead as io,TableBody as Bi,TableCellData as so,Input as lo}from"@uniformdev/design-system";import{jsx as J,jsxs as bt}from"@emotion/react/jsx-runtime";function xu({disableVariables:e}){let{dispatch:r,request:o}=Y(),a=[...o.headers,{key:"",value:""}];return J("div",{css:We,children:bt(Ui,{children:[J(Ai,{children:bt(no,{children:[J(io,{children:"Name"}),J(io,{children:"Value"})]})}),J(Bi,{children:a.map((t,n)=>bt(no,{children:[J(so,{width:"50%",children:J(lo,{label:t.key,value:t.key,showLabel:!1,onChange:i=>{i.currentTarget.value?r({type:"updateHeader",header:{key:i.currentTarget.value,value:t.value},index:n}):r({type:"removeHeader",index:n})}})}),J(so,{width:"50%",children:t.key?J(lo,{showLabel:!1,label:t.value,value:t.value,onChange:i=>r({type:"updateHeader",header:{key:t.key,value:i.currentTarget.value},index:n})}):null})]},n))})]})})}import{InputSelect as zi}from"@uniformdev/design-system";import{jsx as Hi}from"@emotion/react/jsx-runtime";function ku(e){var a;let{request:r,dispatch:o}=Y();return Hi(zi,{...e,options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"HEAD",value:"HEAD"}],value:(a=r.method)!=null?a:"GET",onChange:t=>o({type:"setMethod",method:t.currentTarget.value})})}import{Table as Gi,TableHead as Oi,TableRow as co,TableCellHead as po,TableBody as qi,TableCellData as uo,Input as go}from"@uniformdev/design-system";import{jsx as j,jsxs as xt}from"@emotion/react/jsx-runtime";function Eu({disableVariables:e}){let{dispatch:r,request:o}=Y(),a=[...o.parameters,{key:"",value:""}];return j("div",{css:We,children:xt(Gi,{children:[j(Oi,{children:xt(co,{children:[j(po,{children:"Name"}),j(po,{children:"Value"})]})}),j(qi,{children:a.map((t,n)=>xt(co,{children:[j(uo,{width:"50%",children:j(go,{label:t.key,value:t.key,showLabel:!1,onChange:i=>{i.currentTarget.value?r({type:"updateParameter",parameter:{key:i.currentTarget.value,value:t.value},index:n}):r({type:"removeParameter",index:n})}})}),j(uo,{width:"50%",children:t.key?j(go,{showLabel:!1,label:t.value,value:t.value,onChange:i=>r({type:"updateParameter",parameter:{key:t.key,value:i.currentTarget.value},index:n})}):null})]},n))})]})})}import{jsx as Ni}from"@emotion/react/jsx-runtime";function Gu(e){let{request:r,dispatch:o}=Y();return Ni(Xa,{...e,value:r.relativeUrl,onChange:a=>{let t=a;r.baseUrl&&t.startsWith(r.baseUrl)&&(t=t.substring(r.baseUrl.length)),o({type:"setRelativeUrl",relativeUrl:t})}})}export*from"@uniformdev/mesh-sdk";import{Button as ju,Callout as eg,LoadingIndicator as tg,LoadingOverlay as rg,Menu as ag,MenuItem as og,Input as ng,InputSelect as ig,InputToggle as sg,Theme as lg,InputKeywordSearch as dg,Heading as cg,ScrollableList as pg,ScrollableListItem as ug,Textarea as gg,Switch as mg,Label as fg,AddListButton as vg,InputComboBox as hg}from"@uniformdev/design-system";export{vg as AddListButton,ju as Button,eg as Callout,ip as DamSelectedItem,Fr as DefaultSearchRow,Ar as DefaultSelectedItem,na as EntrySearch,cg as Heading,je as Icons,ng as Input,hg as InputComboBox,ig as InputSelect,sg as InputToggle,Xa as InputVariables,dg as KeywordSearchInput,fg as Label,tg as LoadingIndicator,rg as LoadingOverlay,ag as Menu,og as MenuItem,mp as MeshApp,Zt as ProductPreviewList,el as ProductQuery,Qt as ProductQueryContext,Nc as ProductSearch,Sa as ProductSearchContext,ma as ProductSearchRow,wa as ProductSelectedItem,mu as RequestBody,xu as RequestHeaders,ku as RequestMethodSelect,Eu as RequestParameters,Jp as RequestProvider,ro as RequestTypeContainer,Gu as RequestUrlInput,At as ResolvableLoadingValue,pg as ScrollableList,ug as ScrollableListItem,Ot as SelectionField,mg as Switch,gg as Textarea,lg as Theme,Vt as UniformMeshLocationContext,De as UniformMeshLocationContextProvider,Ve as UniformMeshSdkContext,Ji as UniformMeshSdkContextProvider,qa as VariableEditor,qp as VariablesList,Ip as VariablesProvider,ot as badgeIcon,ut as damSelectItemImage,Ca as damSelectedItemContainer,Ta as damSelectedItemCopy,Pa as damSelectedItemDetails,La as damSelectedItemIcon,Da as damSelectedItemInfoBtn,Ra as damSelectedItemInner,pt as damSelectedItemLinkBtn,Ia as damSelectedItemLinkContainer,Va as damSelectedItemMediaContainer,_a as damSelectedItemPopover,$e as damSelectedItemPopoverLabel,ve as damSelectedItemSmallText,ka as damSelectedItemTitle,jp as decomposeRelativeUrl,ea as draggableContainer,at as draggableIcon,ra as draggableIconOffset,ta as draggableIconWrapper,Kr as entrySearchBtn,Yr as entrySearchConfig,Zr as entrySearchConfigHidden,Qr as entrySearchLoadMoreBtn,Xr as entrySearchResultList,Jr as entrySearchSelectIcon,jr as entrySearchSelectImg,Od as entrySearchSelectInput,qd as entrySearchSelectOption,Wr as entrySearchWrapper,ua as productSearchRowActiveIcon,ca as productSearchRowCategory,ia as productSearchRowContainer,sa as productSearchRowContent,la as productSearchRowContentActive,pa as productSearchRowDetails,da as productSearchRowTitle,va as productSelectedItemContainer,ya as productSelectedItemContent,ha as productSelectedItemDetails,ba as productSelectedItemIcon,st as productSelectedItemImage,xa as productSelectedItemLinkContainer,lt as productedSelectedItemLinkBtn,dt as productedSelectedItemSmallText,Or as searchRowBtn,Br as searchRowContainer,Hr as searchRowContainerActive,zr as searchRowContainerWithPopover,Gr as searchRowPopover,rt as searchRowText,tt as searchRowTextSmall,et as selectItemLinkBtn,Er as selectItemLinkContainer,Dr as selectItemPopover,ke as selectItemPopoverLabel,le as selectItemSmallText,Tr as selectedItemContainer,_r as selectedItemCopy,Lr as selectedItemDetails,Vr as selectedItemIcon,kr as selectedItemInner,Ir as selectedItemTitle,Et as useInitializeUniformMeshSdk,ws as useMeshLocation,Yt as useProductQueryContext,Ne as useProductSearchContext,Y as useRequest,us as useUniformMeshLocation,Ee as useUniformMeshLocationContext,It as useUniformMeshSdk,_t as useUniformMeshSdkContext,be as useVariables,Ua as variablesToList};
|