Bump the npm_and_yarn group across 1 directory with 4 updates#3066
Closed
dependabot[bot] wants to merge 2 commits into
Closed
Bump the npm_and_yarn group across 1 directory with 4 updates#3066dependabot[bot] wants to merge 2 commits into
dependabot[bot] wants to merge 2 commits into
Conversation
Bumps the npm_and_yarn group with 4 updates in the / directory: [fast-uri](https://github.com/fastify/fast-uri), [qs](https://github.com/ljharb/qs), [serialize-javascript](https://github.com/yahoo/serialize-javascript) and [svgo](https://github.com/svg/svgo). Updates `fast-uri` from 3.1.0 to 3.1.2 - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.0...v3.1.2) Updates `qs` from 6.14.0 to 6.15.2 - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.14.0...v6.15.2) Removes `serialize-javascript` Updates `svgo` from 3.3.2 to 3.3.3 - [Release notes](https://github.com/svg/svgo/releases) - [Commits](svg/svgo@v3.3.2...v3.3.3) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: qs dependency-version: 6.15.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: serialize-javascript dependency-version: dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: svgo dependency-version: 3.3.3 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
|
| @@ -0,0 +1,334 @@ | |||
| /*! For license information please see __federation_expose_default_export.2226468a.js.LICENSE.txt */ | |||
| "use strict";(self["chunk_coreshopindex "]=self["chunk_coreshopindex "]||[]).push([["525"],{7591:function(e,t,o){o.r(t),o.d(t,{default:()=>eG});var r=o(2977),n=o(4781),i=o(5782),l=o(4321),a=o(2855),s=o(5168),c=o.n(s);let d=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#8BC34A",d:"M37 6H11a5 5 0 0 0-5 5v26a5 5 0 0 0 5 5h26a5 5 0 0 0 5-5V11a5 5 0 0 0-5-5"}),(0,a.jsx)("path",{fill:"#F1F8E9",d:"M11 11h26v26H11z"}),(0,a.jsxs)("g",{fill:"#558B2F",children:[(0,a.jsx)("path",{d:"m13.354 23.438 2.829-2.828 8.484 8.486-2.83 2.828z"}),(0,a.jsx)("path",{d:"m18.932 29.014 12.727-12.728 2.986 2.985L21.917 32z"})]})]}),h=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("g",{fill:"#3F51B5",children:(0,a.jsx)("path",{d:"m17.8 18.1-7.4 7.3-4.2-4.1L4 23.5l6.4 6.4 9.6-9.6zM17.8 5.1l-7.4 7.3-4.2-4.1L4 10.5l6.4 6.4L20 7.3zM17.8 31.1l-7.4 7.3-4.2-4.1L4 36.5l6.4 6.4 9.6-9.6z"})}),(0,a.jsx)("g",{fill:"#90CAF9",children:(0,a.jsx)("path",{d:"M24 22h20v4H24zM24 9h20v4H24zM24 35h20v4H24z"})})]}),p=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#B0BEC5",d:"M9 40H7V8h2zM41 8h-2v32h2zm0-1H8v2h33zm0 32H8v2h33z"}),(0,a.jsx)("path",{fill:"#2196F3",d:"M11 11H5V5h6zm0 32H5v-6h6zm32-32h-6V5h6zm0 32h-6v-6h6z"}),(0,a.jsx)("path",{fill:"#9C27B0",d:"M20 20h13v13H20z"}),(0,a.jsx)("path",{fill:"#CE93D8",d:"M14 14h13v13H14z"})]}),u=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:(0,a.jsx)("g",{fill:"#FFCC80",children:(0,a.jsx)("path",{d:"M29 23H19L7 9h34zM29 38l-10 6V23h10zM41.5 9h-35C5.7 9 5 8.3 5 7.5S5.7 6 6.5 6h35c.8 0 1.5.7 1.5 1.5S42.3 9 41.5 9"})})}),m=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("g",{fill:"#3F51B5",children:(0,a.jsx)("path",{d:"m17.8 18.1-7.4 7.3-4.2-4.1L4 23.5l6.4 6.4 9.6-9.6zM17.8 5.1l-7.4 7.3-4.2-4.1L4 10.5l6.4 6.4L20 7.3zM17.8 31.1l-7.4 7.3-4.2-4.1L4 36.5l6.4 6.4 9.6-9.6z"})}),(0,a.jsx)("g",{fill:"#90CAF9",children:(0,a.jsx)("path",{d:"M24 22h20v4H24zM24 9h20v4H24zM24 35h20v4H24z"})})]}),g=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#CFD8DC",d:"M42 26H6v-4h36zm0-18H6v4h36zm0 28H6v4h36z"}),(0,a.jsx)("path",{fill:"#FF6D00",d:"M18 12H6V8h12zm-4 24H6v4h8zm17-14H6v4h25z"}),(0,a.jsx)("path",{fill:"#BF360C",d:"M20 14h-3c-.5 0-1-.4-1-1V7c0-.6.5-1 1-1h3c.5 0 1 .4 1 1v6c0 .6-.5 1-1 1m-3 27v-6c0-.5-.5-1-1-1h-3c-.6 0-1 .5-1 1v6c0 .5.4 1 1 1h3c.5 0 1-.5 1-1m17-14v-6c0-.5-.5-1-1-1h-3c-.5 0-1 .5-1 1v6c0 .5.5 1 1 1h3c.5 0 1-.5 1-1"})]}),x=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#90CAF9",d:"M4 15v18h40V15z"}),(0,a.jsx)("path",{fill:"#3F51B5",d:"M23 42v-4c2.971 0 3.932-.626 5.107-1.811.818-.822.893-1.244.893-1.251V13.539c-.025-.28.771-3.539-6-3.539V6c10.939 0 9.998 7.42 10 7.495v21.429c.002.239-.041 2.057-2.055 4.084C28.975 40.993 27.118 42 23 42"}),(0,a.jsx)("path",{fill:"#3F51B5",d:"M39 42v-4c-2.971 0-3.932-.626-5.107-1.811-.818-.822-.893-1.244-.893-1.251V13.539c.025-.28-.771-3.539 6-3.539V6c-10.939 0-9.998 7.42-10 7.495v21.429c-.002.239.041 2.057 2.055 4.084C33.025 40.993 34.882 42 39 42"})]}),f=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:(0,a.jsx)("path",{fill:"#2196F3",d:"M43 17.1 39.9 14 24 29.9 8.1 14 5 17.1 24 36z"})}),y=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#F57C00",d:"M29 23H19L7 9h34z"}),(0,a.jsx)("g",{fill:"#FF9800",children:(0,a.jsx)("path",{d:"m29 38-10 6V23h10zM41.5 9h-35C5.7 9 5 8.3 5 7.5S5.7 6 6.5 6h35c.8 0 1.5.7 1.5 1.5S42.3 9 41.5 9"})})]}),v=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("path",{fill:"#7E57C2",d:"M25.016 4 10.751 7.206C10.456 7.282 8 7.873 8 9.29v26.702c.373.008.719.008 1.016.008l16-5s1-.375 1-2V4.998a1 1 0 0 0-1-.998"}),(0,a.jsx)("path",{fill:"#4527A0",d:"M25.016 4 10.751 7.206C10.456 7.282 8 7.873 8 9.29v26.702c.373.008.719.008 1.016.008l16-5s1-.375 1-2V4.998a1 1 0 0 0-1-.998"}),(0,a.jsx)("path",{fill:"#7E57C2",d:"m31 7.29-16 4c-2.25.583-7.016 1-7-2h-.016V36H8c-.016 3 4.793 3 7 3l16-5s1-.375 1-2V8.288a1 1 0 0 0-1-.998"}),(0,a.jsx)("path",{fill:"#7E57C2",d:"m33.016 8.625-14.265 3.581c-.295.076-2.751.667-2.751 2.084v26.702c.373.008.719.008 1.016.008l16-5s1-.375 1-2V9.623a1 1 0 0 0-1-.998"}),(0,a.jsx)("path",{fill:"#BF360C",d:"m33.016 8.625-14.265 3.581c-.295.076-2.751.667-2.751 2.084v26.702c.373.008.719.008 1.016.008l16-5s1-.375 1-2V9.623a1 1 0 0 0-1-.998"}),(0,a.jsx)("path",{fill:"#7E57C2",d:"M16 40.992c-.016 3 4.793 3.008 7 3.008l16-5.333s1-.375 1-2V13a1 1 0 0 0-1-.998L23 16.29c-2.25.583-7.016 1-7-2"}),(0,a.jsx)("path",{fill:"#FF3D00",d:"M16 40.992c-.016 3 4.793 3.008 7 3.008l16-5.333s1-.375 1-2V13a1 1 0 0 0-1-.998L23 16.29c-2.25.583-7.016 1-7-2"}),(0,a.jsx)("g",{fill:"#FFE0B2",children:(0,a.jsx)("path",{d:"M11 10.542c.755.437 1.962.749 3.021.958.357-.063.689-.134.979-.209l14.516-3.629L25 6 12.083 9.125S9.417 9.626 11 10.542M19 15.542c.755.437 1.962.749 3.021.958.357-.063.689-.134.979-.209l14.894-3.992L33 10.625l-12.917 3.5s-2.666.501-1.083 1.417"})}),(0,a.jsx)("path",{fill:"#FFECB3",d:"M38 25v-5l-14 4v5z"})]}),b=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsxs)("g",{fill:"#616161",children:[(0,a.jsx)("path",{d:"m29.18 31.99 2.83-2.829 12.02 12.021L41.2 44.01z"}),(0,a.jsx)("circle",{cx:20,cy:20,r:16})]}),(0,a.jsx)("path",{fill:"#37474F",d:"m32.456 35.34 2.828-2.828 8.697 8.697-2.828 2.829z"}),(0,a.jsx)("circle",{cx:20,cy:20,r:13,fill:"#64B5F6"}),(0,a.jsx)("path",{fill:"#BBDEFB",d:"M26.9 14.2c-1.7-2-4.2-3.2-6.9-3.2s-5.2 1.2-6.9 3.2c-.4.4-.3 1.1.1 1.4.4.4 1.1.3 1.4-.1C16 13.9 17.9 13 20 13s4 .9 5.4 2.5c.2.2.5.4.8.4.2 0 .5-.1.6-.2.4-.4.4-1.1.1-1.5"})]}),j=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:(0,a.jsxs)("g",{fill:"#3F51B5",children:[(0,a.jsx)("path",{d:"M16 45v-4c2.971 0 3.932-.626 5.107-1.811.818-.822.893-1.243.893-1.251V10.539c-.025-.28.771-3.539-6-3.539V3c10.939 0 9.998 7.42 10 7.495v27.429c.002.239-.041 2.057-2.054 4.084C21.975 43.993 20.118 45 16 45"}),(0,a.jsx)("path",{d:"M32 45v-4c-2.971 0-3.932-.626-5.107-1.811-.818-.822-.893-1.243-.893-1.251V10.539c.025-.28-.771-3.539 6-3.539V3c-10.939 0-9.998 7.42-10 7.495v27.429c-.002.239.041 2.057 2.054 4.084C26.025 43.993 27.882 45 32 45"}),(0,a.jsx)("path",{d:"M16 22h16v4H16z"})]})}),w=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 48 48",width:"1em",height:"1em",...e,children:[(0,a.jsx)("g",{fill:"#1976D2",children:(0,a.jsx)("path",{d:"M38 14h-3c-5.514 0-10 4.486-10 10s4.486 10 10 10h3c5.514 0 10-4.486 10-10s-4.486-10-10-10m0 16h-3c-3.309 0-6-2.691-6-6s2.691-6 6-6h3c3.309 0 6 2.691 6 6s-2.691 6-6 6M13 14h-3C4.486 14 0 18.486 0 24s4.486 10 10 10h3c5.514 0 10-4.486 10-10s-4.486-10-10-10m0 16h-3c-3.309 0-6-2.691-6-6s2.691-6 6-6h3c3.309 0 6 2.691 6 6s-2.691 6-6 6"})}),(0,a.jsx)("path",{fill:"#42A5F5",d:"M33 22H15a2 2 0 0 0 0 4h18a2 2 0 0 0 0-4"})]}),S={onInit(){let e=r.container.get(n.serviceIds.iconLibrary);e.register({name:"coreshop_index",component:v}),e.register({name:"coreshop_nav_icon_indexes",component:v}),e.register({name:"coreshop_indexes",component:v}),e.register({name:"coreshop_filter",component:y}),e.register({name:"coreshop_nav_icon_filters",component:y}),e.register({name:"coreshop_filters",component:y}),e.register({name:"coreshop_filter_boolean",component:d}),e.register({name:"coreshop_filter_category_select",component:h}),e.register({name:"coreshop_filter_combined",component:p}),e.register({name:"coreshop_filter_empty",component:u}),e.register({name:"coreshop_filter_multiselect",component:m}),e.register({name:"coreshop_filter_range",component:g}),e.register({name:"coreshop_filter_search",component:x}),e.register({name:"coreshop_filter_select",component:f}),e.register({name:"coreshop_search",component:b}),e.register({name:"coreshop_similarity",component:w}),e.register({name:"coreshop_similarities_field",component:j})}};var _=o(4573),C=o(3842),A=o(5599);class k extends A.G{async getConfig(){let e=`${this.basePath}${this.resourcePath}/get-config`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!t.ok)throw Error("Failed to fetch filter config");let o=await t.json();return o.schemas&&(0,i.preSeedSchemaCache)(o.schemas),o}async getFieldsForIndex(e){let t=`${this.basePath}${this.resourcePath}/get-fields-for-index?index=${e}`,o=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!o.ok)throw Error("Failed to fetch fields for index");return await o.json()}async getValuesForFilterField(e,t){let o=`${this.basePath}${this.resourcePath}/get-values-for-filter-field?index=${e}&field=${encodeURIComponent(t)}`,r=await fetch(o,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!r.ok)throw Error("Failed to fetch values for filter field");return await r.json()}constructor(e){super(e),this.basePath=e.basePath,this.resourcePath=e.resourcePath}}let F=new k({basePath:"/pimcore-studio/api",resourcePath:"/coreshop/filters"}),T=null,M=null,P=async()=>T||M||(M=(async()=>{try{let e=await F.list();return T=(Array.isArray(e)?e:[]).map(e=>({value:e.id,label:e.name??String(e.id)})).filter(e=>null!=e.value&&e.label)}catch(e){return console.error("Failed to load filters:",e),[]}finally{M=null}})()),z=e=>{let{value:t,onChange:o,disabled:r,style:n}=e,[i,l]=c().useState([]),[s,d]=c().useState(!0);return c().useEffect(()=>{(async()=>{try{let e=await P();l(e)}finally{d(!1)}})()},[]),(0,a.jsx)(_.A,{value:t,onChange:o,options:i,loading:s,disabled:r,style:n,showSearch:!0,optionFilterProp:"label",allowClear:!0})};class E extends C.DynamicTypeObjectDataAbstractSelect{getObjectDataComponent(e){let{name:t,noteditable:o,defaultFieldWidth:r,...n}=e;return(0,a.jsx)(z,{value:n.value,onChange:n.onChange,disabled:!0===o,style:{width:(null==r?void 0:r.width)??"100%"}})}constructor(...e){super(...e),this.id="coreShopFilter",this.dynamicTypeFieldFilterType=new C.DynamicTypeFieldFilterMultiselect}}var $=o(8203),I=o(6239);class B{register(e,t){this.conditions.set(e,t)}get(e){return this.conditions.get(e)}has(e){return this.conditions.has(e)}getAll(){return Array.from(this.conditions.entries())}constructor(){this.conditions=new Map}}B=(0,$.Cg)([(0,I._G)()],B);var V=o(5257),D=o(4216),L=o(1605),N=o(4335),R=o(6284),O=o(9672),H=o(2568),q=o(5210),K=o(855),U=o(9764),G=o(6366);let Q=e=>{let{condition:t,index:o,total:n,onChange:i,onMove:l,onDelete:c,registryId:d,indexId:h}=e,p=(0,s.useMemo)(()=>r.container.get(d),[d]).get(t.type),u=(0,a.jsx)(L.A,{children:(0,a.jsxs)("span",{style:{fontWeight:600},children:["Filter: ",t.type]})}),m=(0,a.jsxs)(L.A,{children:[(0,a.jsx)(R.Ay,{type:"text",size:"small",icon:(0,a.jsx)(K.A,{}),disabled:0===o,onClick:()=>l(o,o-1)}),(0,a.jsx)(R.Ay,{type:"text",size:"small",icon:(0,a.jsx)(U.A,{}),disabled:o===n-1,onClick:()=>l(o,o+1)}),(0,a.jsx)(R.Ay,{type:"text",size:"small",icon:(0,a.jsx)(G.A,{}),danger:!0,onClick:c})]});return(0,a.jsx)(D.A,{size:"small",title:u,extra:m,style:{marginBottom:8},children:p?(0,a.jsx)(p,{data:t,onChange:e=>{i({...t,...e})},indexId:h,registryId:d}):(0,a.jsxs)("div",{style:{color:"#999",fontStyle:"italic"},children:["Unknown condition type: ",t.type]})})},W=e=>{var t;let{data:o,onChange:n,indexId:i,registryId:c}=e,{t:d}=(0,q.useTranslation)(),h=(null==(t=o.configuration)?void 0:t.conditions)||[],p=(0,s.useMemo)(()=>{if(!c)return null;try{return r.container.get(c)}catch{return null}},[c]),u=(0,s.useMemo)(()=>p?Array.from(p.getAll()).map(e=>{let[t]=e;return t}):[],[p]),m=e=>{n({configuration:{...o.configuration,conditions:e}})},g=(e,t)=>{if(t<0||t>=h.length)return;let o=[...h],[r]=o.splice(e,1);o.splice(t,0,r),o.forEach((e,t)=>{e.sort=t}),m(o)},x=u.map(e=>({key:e,label:`Filter: ${e}`,onClick:()=>{let t;return t={type:e,configuration:{},sort:h.length},void m([...h,t])}}));return(0,a.jsxs)(V.A,{layout:"vertical",children:[(0,a.jsx)(V.A.Item,{label:d("coreshop_label",{defaultValue:"Label"}),children:(0,a.jsx)(l.A,{value:o.label,onChange:e=>n({label:e.target.value})})}),(0,a.jsx)(V.A.Item,{label:d("coreshop_filters_conditions",{defaultValue:"Nested Conditions"}),children:(0,a.jsx)(D.A,{size:"small",style:{backgroundColor:"#fafafa"},children:(0,a.jsxs)(L.A,{direction:"vertical",size:"middle",style:{width:"100%"},children:[(0,a.jsx)("div",{children:(0,a.jsx)(N.A,{menu:{items:x},placement:"bottomLeft",children:(0,a.jsx)(R.Ay,{type:"dashed",icon:(0,a.jsx)(H.A,{}),size:"small",children:d("coreshop_filters_add_condition",{defaultValue:"Add Condition"})})})}),0===h.length?(0,a.jsx)(O.A,{description:d("coreshop_filters_no_conditions",{defaultValue:"No nested conditions"}),image:O.A.PRESENTED_IMAGE_SIMPLE}):(0,a.jsx)("div",{children:h.map((e,t)=>(0,a.jsx)(Q,{condition:e,index:t,total:h.length,onChange:e=>{let o;(o=[...h])[t]=e,m(o)},onMove:g,onDelete:()=>{let e;(e=h.filter((e,o)=>o!==t)).forEach((e,t)=>{e.sort=t}),m(e)},registryId:c,indexId:i},t))})]})})})]})};var Z=o(3664);let J=c().createContext({}),X=e=>{let{value:t,onChange:o}=e,{indexId:r}=c().useContext(J),[n,i]=c().useState([]),[l,s]=c().useState(!1);return c().useEffect(()=>{r?(s(!0),F.getFieldsForIndex(r).then(e=>{i(e.map(e=>({label:e.name,value:e.name})))}).catch(e=>{console.error("Failed to load index fields:",e)}).finally(()=>s(!1))):i([])},[r]),(0,a.jsx)(_.A,{value:t,onChange:o,options:n,loading:l,showSearch:!0,filterOption:(e,t)=>((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase())})},Y=e=>{let{value:t,onChange:o}=e,{indexId:r}=c().useContext(J),[n,i]=c().useState([]),[l,s]=c().useState(!1);return c().useEffect(()=>{r?(s(!0),F.getFieldsForIndex(r).then(e=>{i(e.map(e=>({label:e.name,value:e.name})))}).catch(e=>{console.error("Failed to load index fields:",e)}).finally(()=>s(!1))):i([])},[r]),(0,a.jsx)(_.A,{mode:"multiple",value:t??[],onChange:o,options:n,loading:l,showSearch:!0,filterOption:(e,t)=>((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase())})},ee=e=>{let{value:t,onChange:o}=e,{indexId:r}=c().useContext(J),n=V.A.useWatch("field"),[i,l]=c().useState([]),[s,d]=c().useState(!1);return c().useEffect(()=>{r&&n?(d(!0),F.getValuesForFilterField(r,n).then(l).catch(e=>{console.error("Failed to load field values:",e)}).finally(()=>d(!1))):l([])},[r,n]),(0,a.jsx)(_.A,{value:t,onChange:o,options:i.map(e=>({label:e.value,value:e.key})),loading:s,allowClear:!0,showSearch:!0,filterOption:(e,t)=>String((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase())})},et=e=>{let{value:t,onChange:o}=e,{indexId:r}=c().useContext(J),n=V.A.useWatch("field"),[i,l]=c().useState([]),[s,d]=c().useState(!1);return c().useEffect(()=>{r&&n?(d(!0),F.getValuesForFilterField(r,n).then(l).catch(e=>{console.error("Failed to load field values:",e)}).finally(()=>d(!1))):l([])},[r,n]),(0,a.jsx)(_.A,{mode:"multiple",value:t??[],onChange:o,options:i.map(e=>({label:e.value,value:e.key})),loading:s,allowClear:!0,showSearch:!0,filterOption:(e,t)=>String((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase())})};var eo=o(3933),er=o(2696),en=o(2288),ei=o(7579);let el=e=>{let{filter:t,onChange:o}=e;return(0,a.jsx)("div",{style:{padding:24},children:(0,a.jsx)(ei.q,{blockPrefix:"coreshop_filter",data:t,onChange:e=>o({...t,...e})})})},ea=e=>{let{conditions:t,availableTypes:o,onChange:r,registryId:n,indexId:i,disabled:l=!1}=e,{t:s}=(0,q.useTranslation)(),c=(e,o)=>{if(o<0||o>=t.length)return;let n=[...t],[i]=n.splice(e,1);n.splice(o,0,i),n.forEach((e,t)=>{e.sort=t}),r(n)},d=o.map(e=>({key:e,label:`Filter: ${e}`,onClick:()=>{let o;return o={type:e,configuration:{},sort:t.length},void r([...t,o])}}));return(0,a.jsx)("div",{style:{padding:24},children:(0,a.jsxs)(L.A,{direction:"vertical",size:"large",style:{width:"100%"},children:[(0,a.jsx)("div",{children:(0,a.jsx)(N.A,{menu:{items:d},placement:"bottomLeft",disabled:l,children:(0,a.jsx)(R.Ay,{type:"primary",icon:(0,a.jsx)(H.A,{}),disabled:l,children:s("coreshop_filters_add_condition",{defaultValue:"Add Condition"})})})}),0===t.length?(0,a.jsx)(O.A,{description:l?s("coreshop_filters_select_index_first",{defaultValue:"Please select an index first"}):s("coreshop_filters_no_conditions",{defaultValue:"No conditions defined"}),image:O.A.PRESENTED_IMAGE_SIMPLE}):(0,a.jsx)("div",{children:t.map((e,o)=>(0,a.jsx)(Q,{condition:e,index:o,total:t.length,onChange:e=>{let n;(n=[...t])[o]=e,r(n)},onMove:c,onDelete:()=>{let e;(e=t.filter((e,t)=>t!==o)).forEach((e,t)=>{e.sort=t}),r(e)},registryId:n,indexId:i},o))})]})})},es=e=>{let{filter:t,config:o,onChange:r}=e,{t:n}=(0,q.useTranslation)(),i=null!==t.index&&void 0!==t.index,l=[{key:"settings",label:n("coreshop_settings",{defaultValue:"Settings"}),children:(0,a.jsx)(el,{filter:t,onChange:r})},{key:"pre-conditions",label:n("coreshop_filters_pre_conditions",{defaultValue:"Pre-Conditions"}),children:(0,a.jsx)(ea,{conditions:t.preConditions??[],availableTypes:o.pre_conditions,onChange:e=>r({...t,preConditions:e}),registryId:Z.K.preConditionRegistry,indexId:t.index??void 0,disabled:!i})},{key:"conditions",label:n("coreshop_filters_user_conditions",{defaultValue:"User Conditions"}),children:(0,a.jsx)(ea,{conditions:t.conditions??[],availableTypes:o.user_conditions,onChange:e=>r({...t,conditions:e}),registryId:Z.K.userConditionRegistry,indexId:t.index??void 0,disabled:!i})}];return(0,a.jsx)("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:(0,a.jsx)(en.A,{defaultActiveKey:"settings",items:l,style:{flex:1,overflow:"auto"},tabBarStyle:{paddingLeft:24,paddingRight:24,marginBottom:0},destroyInactiveTabPane:!1})})};var ec=o(4296);let ed=null,eh=null,ep=async()=>ed||eh||(eh=(async()=>{try{let e=await fetch("/pimcore-studio/api/unit/quantity-value/unit-list",{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load quantity units: ${e.statusText}`);let t=await e.json();return ed=[{value:"0",label:"Empty"},...t.items.filter(e=>null!==e.id).map(e=>({value:e.id,label:e.id}))]}catch(e){return console.error("Failed to load quantity units:",e),ed=[{value:"0",label:"Empty"}]}finally{eh=null}})()),eu=e=>{let[t,o]=c().useState(ed||[{value:"0",label:"Empty"}]),[r,n]=c().useState(!ed);return c().useEffect(()=>{(async()=>{ed||n(!0);try{let e=await ep();o(e)}finally{n(!1)}})()},[]),(0,a.jsx)(_.A,{...e,loading:r,options:t,placeholder:e.placeholder??"Select quantity unit",showSearch:!0,filterOption:(e,t)=>String((null==t?void 0:t.label)??"").toLowerCase().includes(e.toLowerCase())})},em=new Set(["label","quantityUnit"]),eg=e=>{let t=t=>{let{data:o,onChange:r,indexId:n}=t,i=(0,s.useMemo)(()=>[{name:"entity-fields",decorator:e=>({...e,fields:[{name:"label",label:"coreshop_label",component:l.A},{name:"quantityUnit",label:"coreshop_filters_quantityUnit",component:eu},...e.fields]})}],[]),c=(0,s.useMemo)(()=>({label:o.label??"",quantityUnit:o.quantityUnit??"0",...o.configuration}),[o]),d=(0,s.useCallback)(e=>{let t={},n={};for(let[o,r]of Object.entries(e))em.has(o)?t[o]="quantityUnit"===o?Number(r):r:n[o]=r;r({...t,...Object.keys(n).length>0?{configuration:{...o.configuration,...n}}:{}})},[o.configuration,r]),h=(0,s.useMemo)(()=>({indexId:n}),[n]);return(0,a.jsx)(J.Provider,{value:h,children:(0,a.jsx)(ec.q,{blockPrefix:e,data:c,onChange:d,decorators:i})})};return t.displayName=`FilterSchemaCondition(${e})`,t},ex=e=>{let t=null==e?void 0:e.displayName;return"string"==typeof t&&t.startsWith("FilterSchemaCondition(")},ef=(e,t,o)=>{if(t)for(let[o,r]of Object.entries(t)){let t=e.get(o);(!t||ex(t))&&e.register(o,eg(r))}},ey=()=>{let{t:e}=(0,q.useTranslation)(),t=(0,er.useFormModal)(),[o,n]=c().useState(null);return c().useEffect(()=>{F.getConfig().then(e=>{let t=r.container.get(Z.K.preConditionRegistry),o=r.container.get(Z.K.userConditionRegistry);ef(t,e.preConditionSchemaByType,e.schemas),ef(o,e.userConditionSchemaByType,e.schemas),n(e)}).catch(e=>{console.error("Failed to load filter config:",e)})},[]),(0,a.jsx)(eo.EntityTabbedManager,{api:F,dragType:"coreshop:filter",leftRootTitle:e("coreshop_filters",{defaultValue:"Filters"}),getTitle:(e,t)=>(null==t?void 0:t.name)??(null==e?void 0:e.name)??`#${(null==e?void 0:e.id)??""}`,buildSavePayload:e=>({id:e.id,name:e.name,resultsPerPage:e.resultsPerPage,orderDirection:e.orderDirection,orderKey:e.orderKey,index:e.index,preConditions:e.preConditions,conditions:e.conditions}),onAdd:async()=>await new Promise(o=>{t.input({title:e("coreshop_filters_add",{defaultValue:"Add Filter"}),label:e("coreshop_name",{defaultValue:"Name"}),rule:{required:!0,message:e("coreshop_name_required",{defaultValue:"Name is required"})},onOk:async e=>{o((await F.add({name:e})).data.id)}})}),renderDetail:(t,r)=>t?o?(0,a.jsx)(es,{filter:t,config:o,onChange:r}):(0,a.jsx)("div",{style:{padding:12,color:"var(--ant-color-text-tertiary)"},children:e("coreshop_loading_configuration",{defaultValue:"Loading configuration..."})}):(0,a.jsx)("div",{style:{padding:12,color:"var(--ant-color-text-tertiary)"},children:e("coreshop_filters_select",{defaultValue:"Select a filter to view details."})})})};class ev extends A.G{async getConfig(){let e=`${this.basePath}${this.resourcePath}/get-config`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!t.ok)throw Error("Failed to fetch index config");let o=await t.json();return o.schemas&&(0,i.preSeedSchemaCache)(o.schemas),o}async getClassDefinition(e){let t=`${this.basePath}${this.resourcePath}/get-class-definition-for-field-selection?class=${encodeURIComponent(e)}`,o=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!o.ok)throw Error("Failed to fetch class definition");return await o.json()}async getOpenSearchClients(){let e=`${this.basePath}${this.resourcePath}/get-open-search-clients`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(!t.ok)throw Error("Failed to fetch OpenSearch clients");return(await t.json()).clients||[]}constructor(e){super(e),this.basePath=e.basePath,this.resourcePath=e.resourcePath}}let eb=new ev({basePath:"/pimcore-studio/api",resourcePath:"/coreshop/indices"});var ej=o(3146);let ew=e=>{var t,o;let{index:r,config:n,onChange:i}=e,{t:l}=(0,q.useTranslation)(),s=r.worker?null==(o=n.workers)||null==(t=o.find(e=>e.type===r.worker))?void 0:t.blockPrefix:void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ei.q,{blockPrefix:"coreshop_index",data:r,onChange:e=>i({...r,...e})}),r.worker&&s&&(0,a.jsx)(D.A,{title:l("coreshop_indexes_worker_configuration",{defaultValue:`${r.worker.toUpperCase()} Configuration`}),style:{marginTop:16},size:"small",children:(0,a.jsx)(ei.q,{blockPrefix:s,data:r.configuration||{},onChange:e=>{i({...r,configuration:(0,ej.M)(r.configuration||{},e)})}})}),r.worker&&!s&&(0,a.jsx)("div",{style:{padding:12,background:"var(--ant-color-warning-bg)",border:"1px solid var(--ant-color-warning-border)",borderRadius:4,color:"var(--ant-color-warning-text)"},children:l("coreshop_indexes_no_configurator",{defaultValue:`No configurator available for worker type "${r.worker}"`})})]})};var eS=o(5357),e_=o(5017),eC=o(2162),eA=o(323);let{Title:ek}=eS.A,eF=e=>{let{classDefinition:t,loading:o,onAddField:r}=e,{styles:n}=eT(),i=(e,t)=>{let o=e.nodeLabel||e.name||t,r=e.fieldtype||e.nodeType||"folder",n="layout"===r||"panel"===r||!e.name,l=e.childs&&Array.isArray(e.childs)?e.childs.map((e,o)=>i(e,`${t}-${o}`)).filter(Boolean):void 0,s={input:"text-field",textarea:"long-text",wysiwyg:"wysiwyg-field",checkbox:"checkbox",numeric:"number-field",number:"number-field",select:"chevron-down",multiselect:"multi-select",date:"calendar",datetime:"calendar",time:"date-time-field",image:"image",hotspotimage:"image",advancedImage:"image",video:"video",asset:"asset",manyToOneRelation:"data-object",advancedManyToOneRelation:"data-object",manyToManyRelation:"many-to-many",advancedManyToManyRelation:"many-to-many",manyToManyObjectRelation:"data-object",reverseObjectRelation:"data-object",object:"data-object",objects:"data-object",href:"many-to-many",multihref:"many-to-many",urlSlug:"many-to-many",folder:"folder",panel:"layout",layout:"layout",fieldcollections:"collection",localizedfields:"country-select",block:"collection",table:"columns",structuredTable:"columns",country:"country-select",countries:"country-select",language:"country-select",languages:"country-select",currency:"coreshop_icon_currency",quantityValue:"number-field",inputQuantityValue:"number-field",calculatedValue:"calculator",data:"widget",coreShopRelation:"many-to-many",coreShopRelations:"many-to-many",coreShopMoney:"coreshop_icon_currency",coreShopMoneyCurrency:"coreshop_icon_currency",coreShopCurrency:"coreshop_icon_currency",coreShopCurrencyMultiselect:"coreshop_icon_currency",coreShopProductSpecificPriceRules:"coreshop_icon_currency",coreShopProductUnitDefinitions:"number-field",coreShopProductQuantityPriceRules:"coreshop_icon_currency",coreShopStoreValues:"coreshop_store",coreShopStore:"coreshop_store",coreShopQuantityValue:"number-field",coreShopQuantityPrice:"coreshop_icon_currency",coreShopSeo:"seo",coreShopPaymentProvider:"coreshop_icon_payment_provider",coreShopPaymentProviderMultiselect:"coreshop_icon_payment_provider",coreShopCarrier:"coreshop_carriers",coreShopCarrierMultiselect:"coreshop_carriers",coreShopShippingRule:"coreshop_shipping",coreShopTaxRate:"coreshop_icon_currency",coreShopTaxRuleGroup:"coreshop_icon_currency",coreShopCountry:"country-select",coreShopCountryMultiselect:"country-select",coreShopState:"country-select",coreShopAddressIdentifier:"widget",coreShopSuperBoxSelect:"chevron-down",coreShopItemSelector:"multi-select",coreShopDynamicDropdown:"chevron-down",coreShopDynamicDropdownMultiple:"multi-select",coreShopSerializedData:"widget"}[r]||"widget",c=n?null:{name:e.name||o,objectKey:e.name||"",objectType:e.nodeType||"object",dataType:e.fieldtype||"input",getter:e.getter,interpreter:e.interpreter,configuration:e.configuration},d=n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(er.Icon,{value:s})," ",(0,a.jsx)("span",{children:o})]}):(0,a.jsx)(er.Draggable,{info:{type:"coreshop-index-field",title:o,icon:{value:s},data:c},children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(er.Icon,{value:s})," ",(0,a.jsx)("span",{children:o})," ",(0,a.jsx)("span",{style:{fontSize:11,color:"var(--ant-color-text-tertiary)",fontFamily:"monospace"},children:r})]})});return{key:`${t}-${e.name||o}`,title:d,isLeaf:!l||0===l.length,children:l,selectable:!n,data:c}},l=(()=>{if(!t)return[];let e=[];return Object.keys(t).forEach(o=>{let r=t[o];if(!r)return;let n=i(r,o);n&&e.push(n)}),e})();return(0,a.jsxs)("div",{className:n.root,children:[(0,a.jsx)("div",{className:n.header,children:(0,a.jsx)(ek,{level:5,className:n.title,children:"Class Definitions"})}),(0,a.jsx)("div",{className:n.content,children:o?(0,a.jsx)("div",{className:n.stateContainer,children:(0,a.jsx)(e_.A,{active:!0,title:!1,paragraph:{rows:8}})}):0===l.length?(0,a.jsx)("div",{className:n.stateContainer,children:(0,a.jsx)(O.A,{description:"No class definition available"})}):(0,a.jsx)("div",{className:n.scrollArea,children:(0,a.jsx)(eC.A,{style:{minHeight:"100%"},showIcon:!0,showLine:!1,defaultExpandAll:!0,treeData:l,onSelect:(e,t)=>{},onDoubleClick:(e,t)=>{t.data&&r(t.data)},virtual:!1})})})]})},eT=(0,eA.rU)(e=>{let{css:t,token:o}=e;return{root:t` | |||
dpfaffenbauer
added a commit
that referenced
this pull request
Jun 10, 2026
Applies the dependency bumps from the Dependabot security PRs #3066, #3070 and #3071 (which target the default branch) to 5.1 via npm audit fix --package-lock-only: - fast-uri 3.1.0 -> 3.1.2 - qs 6.14.0 -> 6.15.2 - react-router/react-router-dom 6.30.2 -> 6.30.4 - serialize-javascript removed (terser-webpack-plugin 5.3.14 -> 5.6.1) - svgo 3.3.2 -> 3.3.3 - ws 8.18.0 -> 8.21.0 (@module-federation/* 2.4.0 -> 2.5.1) plus further in-range advisory fixes (webpack, lodash, dompurify, ...). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests. To ignore these dependencies, configure ignore rules in dependabot.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Bumps the npm_and_yarn group with 4 updates in the / directory: fast-uri, qs, serialize-javascript and svgo.
Updates
fast-urifrom 3.1.0 to 3.1.2Release notes
Sourced from fast-uri's releases.
Commits
919dd8eBumped v3.1.2c65ba57fixup: linting6c86c17Merge commit from forka95158aHandle malformed fragment decoding without throwing (#171)cea547cBumped v3.1.1876ce79Merge commit from forkdcdf690ci: add lock-threads workflow (#169)c860e65build(deps-dev): bump neostandard from 0.12.2 to 0.13.0 (#167)9b4c6dcbuild(deps): bump fastify/workflows/.github/workflows/plugins-ci.yml (#166)85d09a9build(deps): bump fastify/workflows/.github/workflows/plugins-ci-package-mana...Updates
qsfrom 6.14.0 to 6.15.2Changelog
Sourced from qs's changelog.
Commits
9aca407v6.15.25e33d33[Dev Deps] update@ljharb/eslint-config21f80b3[Fix]stringify: skip null/undefined entries inarrayFormat: 'comma'+ `e...a0a81ea[Fix]stringify: use configureddelimiteraftercharsetSentinele3062f7[Fix]stringify: applyformatterto encoded key understrictNullHandling0c180a4[Fix]stringify: skip null/undefined filter-array entries instead of crashi...3a8b94a[Tests] add regression tests for keys containing percent-encoded bracket text96755ab[readme] fix grammara419ce5[Fix]parse: handle nested bracket groups and add regression tests3f5e1c5v6.15.1Removes
serialize-javascriptUpdates
svgofrom 3.3.2 to 3.3.3Release notes
Sourced from svgo's releases.
Commits
bbab162deps: upgrade to sax v1.5.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditionsYou can disable automated security fix PRs for this repo from the Security Alerts page.