diff --git a/Config/module.xml b/Config/module.xml index f0d2f69..e26d55c 100755 --- a/Config/module.xml +++ b/Config/module.xml @@ -20,7 +20,7 @@ en_US fr_FR - 1.0.2 + 1.0.2.1 diff --git a/templates/backOffice/default/app/dist/thelia-blocks.es.js b/templates/backOffice/default/app/dist/thelia-blocks.es.js index 708a480..a41c7bc 100644 --- a/templates/backOffice/default/app/dist/thelia-blocks.es.js +++ b/templates/backOffice/default/app/dist/thelia-blocks.es.js @@ -1,4 +1,4 @@ -var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,u=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&a(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&a(e,n,t[n]);return e},l=(e,r)=>t(e,n(r)),s=(e,t)=>{var n={};for(var a in e)i.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&r)for(var a of r(e))t.indexOf(a)<0&&o.call(e,a)&&(n[a]=e[a]);return n},c=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{u(n.next(e))}catch(t){i(t)}},a=e=>{try{u(n.throw(e))}catch(t){i(t)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);u((n=n.apply(e,t)).next())}));import*as f from"react";import d,{Component as p,useLayoutEffect as h,useEffect as m,useMemo as v,useContext as g,useReducer as b,useRef as y,useDebugValue as w,createElement as E,isValidElement as x,cloneElement as C,useState as k,forwardRef as S}from"react";function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}var T=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function N(){return(N=Object.assign||function(e){for(var t=1;t=0&&e!==1/0}function I(e){return Array.isArray(e)?e:[e]}function L(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R(e,t,n){return V(e)?"function"==typeof t?N({},n,{queryKey:e,queryFn:t}):N({},t,{queryKey:e}):e}function B(e,t,n){return V(e)?[N({},t,{queryKey:e}),n]:[e||{},t]}function j(e,t){var n,r=e.active,i=e.exact,o=e.fetching,a=e.inactive,u=e.predicate,l=e.queryKey,s=e.stale;if(V(l))if(i){if(t.queryHash!==F(l,t.options))return!1}else if(!z(t.queryKey,l))return!1;return!1===a||r&&!a?n=!0:(!1===r||a&&!r)&&(n=!1),("boolean"!=typeof n||t.isActive()===n)&&(("boolean"!=typeof s||t.isStale()===s)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(u&&!u(t))))}function M(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(V(o)){if(!t.options.mutationKey)return!1;if(n){if(U(t.options.mutationKey)!==U(o))return!1}else if(!z(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function F(e,t){return((null==t?void 0:t.queryKeyHashFn)||U)(e)}function U(e){var t,n=I(e);return t=n,JSON.stringify(t,(function(e,t){return q(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function z(e,t){return H(I(e),I(t))}function H(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!H(e[n],t[n])})))}function W(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||q(e)&&q(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},u=0,l=0;l0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:b,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:pe(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;if(e===t)return!1;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],u=null==o?void 0:o.some((function(e){return e===n})),l=null==i?void 0:i.some((function(e){return e===n}));return a&&!l&&(!o||u)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(N({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;te.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(T);function fe(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&pe(e,t))}(e,t)}function de(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&pe(e,n)}function pe(e,t){return e.isStaleByTime(t.staleTime)}var he=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}O(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,N({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0};this.currentResult=N({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset})},n.notify=function(e){var t=this;te.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(T),me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ve={exports:{}},ge={},be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;function Ee(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var xe=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,r,i=Ee(e),o=1;on in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,u=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&a(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&a(e,n,t[n]);return e},l=(e,r)=>t(e,n(r)),s=(e,t)=>{var n={};for(var a in e)i.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&r)for(var a of r(e))t.indexOf(a)<0&&o.call(e,a)&&(n[a]=e[a]);return n},c=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{u(n.next(e))}catch(t){i(t)}},a=e=>{try{u(n.throw(e))}catch(t){i(t)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);u((n=n.apply(e,t)).next())}));import*as f from"react";import d,{Component as p,useLayoutEffect as h,useEffect as m,useMemo as v,useContext as g,useReducer as b,useRef as y,useDebugValue as w,createElement as E,isValidElement as x,cloneElement as C,useState as k,forwardRef as S}from"react";function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}var T=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function N(){return(N=Object.assign||function(e){for(var t=1;t=0&&e!==1/0}function I(e){return Array.isArray(e)?e:[e]}function L(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R(e,t,n){return V(e)?"function"==typeof t?N({},n,{queryKey:e,queryFn:t}):N({},t,{queryKey:e}):e}function B(e,t,n){return V(e)?[N({},t,{queryKey:e}),n]:[e||{},t]}function j(e,t){var n,r=e.active,i=e.exact,o=e.fetching,a=e.inactive,u=e.predicate,l=e.queryKey,s=e.stale;if(V(l))if(i){if(t.queryHash!==F(l,t.options))return!1}else if(!z(t.queryKey,l))return!1;return!1===a||r&&!a?n=!0:(!1===r||a&&!r)&&(n=!1),("boolean"!=typeof n||t.isActive()===n)&&(("boolean"!=typeof s||t.isStale()===s)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(u&&!u(t))))}function M(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(V(o)){if(!t.options.mutationKey)return!1;if(n){if(U(t.options.mutationKey)!==U(o))return!1}else if(!z(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function F(e,t){return((null==t?void 0:t.queryKeyHashFn)||U)(e)}function U(e){var t,n=I(e);return t=n,JSON.stringify(t,(function(e,t){return W(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function z(e,t){return H(I(e),I(t))}function H(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!H(e[n],t[n])})))}function q(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||W(e)&&W(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},u=0,l=0;l0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:b,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:pe(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;if(e===t)return!1;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],u=null==o?void 0:o.some((function(e){return e===n})),l=null==i?void 0:i.some((function(e){return e===n}));return a&&!l&&(!o||u)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(N({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;te.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(T);function fe(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&pe(e,t))}(e,t)}function de(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&pe(e,n)}function pe(e,t){return e.isStaleByTime(t.staleTime)}var he=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}O(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,N({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0};this.currentResult=N({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset})},n.notify=function(e){var t=this;te.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(T),me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ve={exports:{}},ge={},be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;function Ee(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var xe=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,r,i=Ee(e),o=1;o