imio.smartweb.core 1.1.15__py3-none-any.whl → 1.1.19__py3-none-any.whl

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.
Files changed (112) hide show
  1. imio/smartweb/core/browser/configure.zcml +1 -0
  2. imio/smartweb/core/browser/controlpanel.py +24 -0
  3. imio/smartweb/core/browser/dashboards/__init__.py +0 -0
  4. imio/smartweb/core/browser/dashboards/configure.zcml +17 -0
  5. imio/smartweb/core/browser/dashboards/plausible.pt +29 -0
  6. imio/smartweb/core/browser/dashboards/plausible.py +21 -0
  7. imio/smartweb/core/browser/faceted/map.pt +3 -7
  8. imio/smartweb/core/browser/utils.py +33 -0
  9. imio/smartweb/core/contents/__init__.py +4 -0
  10. imio/smartweb/core/contents/cropping.py +2 -5
  11. imio/smartweb/core/contents/folder/content.py +1 -0
  12. imio/smartweb/core/contents/rest/base.py +16 -0
  13. imio/smartweb/core/contents/rest/directory/endpoint.py +8 -15
  14. imio/smartweb/core/contents/rest/events/endpoint.py +6 -12
  15. imio/smartweb/core/contents/rest/news/endpoint.py +6 -11
  16. imio/smartweb/core/contents/rest/search/endpoint.py +26 -6
  17. imio/smartweb/core/contents/sections/configure.zcml +1 -0
  18. imio/smartweb/core/contents/sections/contact/view.pt +1 -2
  19. imio/smartweb/core/contents/sections/external_content/__init__.py +0 -0
  20. imio/smartweb/core/contents/sections/external_content/configure.zcml +14 -0
  21. imio/smartweb/core/contents/sections/external_content/content.py +32 -0
  22. imio/smartweb/core/contents/sections/external_content/view.pt +31 -0
  23. imio/smartweb/core/contents/sections/external_content/views.py +31 -0
  24. imio/smartweb/core/contents/sections/gallery/view.pt +1 -2
  25. imio/smartweb/core/contents/sections/macros.pt +0 -4
  26. imio/smartweb/core/contents/sections/text/configure.zcml +0 -6
  27. imio/smartweb/core/contents/sections/text/content.py +0 -12
  28. imio/smartweb/core/contents/sections/text/forms.py +2 -0
  29. imio/smartweb/core/permissions.zcml +6 -0
  30. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  31. imio/smartweb/core/profiles/default/rolemap.xml +6 -0
  32. imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
  33. imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
  34. imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
  35. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionContact.xml +0 -1
  36. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +0 -1
  37. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionExternalContent.xml +35 -0
  38. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +0 -1
  39. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionGallery.xml +0 -1
  40. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +1 -1
  41. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionLinks.xml +0 -1
  42. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionMap.xml +0 -1
  43. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +0 -1
  44. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionPostit.xml +0 -1
  45. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSelections.xml +0 -1
  46. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSendinblue.xml +0 -1
  47. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSlide.xml +0 -1
  48. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionText.xml +0 -1
  49. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionVideo.xml +0 -1
  50. imio/smartweb/core/profiles/default/types.xml +1 -0
  51. imio/smartweb/core/profiles/default/workflows.xml +1 -0
  52. imio/smartweb/core/tests/resources/json_rest_directory.json +1099 -0
  53. imio/smartweb/core/tests/resources/json_rest_events.json +1099 -0
  54. imio/smartweb/core/tests/resources/json_rest_news.json +1103 -4
  55. imio/smartweb/core/tests/test_cropping.py +2 -24
  56. imio/smartweb/core/tests/test_folder.py +17 -0
  57. imio/smartweb/core/tests/test_plausibleview.py +83 -0
  58. imio/smartweb/core/tests/test_rest.py +40 -0
  59. imio/smartweb/core/tests/test_section_news.py +0 -1
  60. imio/smartweb/core/tests/test_sections.py +34 -0
  61. imio/smartweb/core/upgrades/configure.zcml +90 -0
  62. imio/smartweb/core/upgrades/profiles/1037_to_1038/registry/plausible.xml +9 -0
  63. imio/smartweb/core/upgrades/profiles/1038_to_1039/rolemap.xml +12 -0
  64. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Page.xml +11 -0
  65. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.PortalPage.xml +11 -0
  66. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Procedure.xml +11 -0
  67. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.SectionExternalContent.xml +36 -0
  68. imio/smartweb/core/upgrades/profiles/1038_to_1039/types.xml +4 -0
  69. imio/smartweb/core/upgrades/profiles/1038_to_1039/workflows.xml +6 -0
  70. imio/smartweb/core/upgrades/profiles/1039_to_1040/types/imio.smartweb.SectionSlide.xml +14 -0
  71. imio/smartweb/core/upgrades/profiles/1040_to_1041/types/imio.smartweb.SectionText.xml +17 -0
  72. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionContact.xml +14 -0
  73. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionEvents.xml +14 -0
  74. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionExternalContent.xml +15 -0
  75. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionFiles.xml +14 -0
  76. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionGallery.xml +15 -0
  77. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionLinks.xml +14 -0
  78. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionMap.xml +15 -0
  79. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionNews.xml +14 -0
  80. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionPostit.xml +14 -0
  81. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSelections.xml +14 -0
  82. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSendinblue.xml +14 -0
  83. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionVideo.xml +15 -0
  84. imio/smartweb/core/webcomponents/build/css/195.smartweb-webcomponents-compiled.css +1 -1
  85. imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +1 -1
  86. imio/smartweb/core/webcomponents/build/js/195.smartweb-webcomponents-compiled.js +1 -1
  87. imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +2 -0
  88. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +1 -1
  89. imio/smartweb/core/webcomponents/build/js/510.smartweb-webcomponents-compiled.js +1 -1
  90. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +1 -1
  91. imio/smartweb/core/webcomponents/build/js/{462.smartweb-webcomponents-compiled.js → 565.smartweb-webcomponents-compiled.js} +1 -1
  92. imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js → 729.smartweb-webcomponents-compiled.js} +2 -2
  93. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +1 -1
  94. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js.LICENSE.txt +2 -2
  95. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  96. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +2 -3
  97. imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +1 -2
  98. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +0 -1
  99. imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +1 -2
  100. imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +1 -1
  101. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/METADATA +63 -1
  102. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/RECORD +110 -78
  103. imio/smartweb/core/webcomponents/build/assets/img-placeholder-bla.a2b8b384c46ce56c99f042dc4625d309.png +0 -0
  104. imio/smartweb/core/webcomponents/build/js/650.smartweb-webcomponents-compiled.js +0 -2
  105. /imio/smartweb/core/webcomponents/build/js/{650.smartweb-webcomponents-compiled.js.LICENSE.txt → 212.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  106. /imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js.LICENSE.txt → 729.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  107. /imio.smartweb.core-1.1.15-py3.10-nspkg.pth → /imio.smartweb.core-1.1.19-py3.10-nspkg.pth +0 -0
  108. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.GPL +0 -0
  109. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.rst +0 -0
  110. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/WHEEL +0 -0
  111. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/namespace_packages.txt +0 -0
  112. {imio.smartweb.core-1.1.15.dist-info → imio.smartweb.core-1.1.19.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 842.smartweb-webcomponents-compiled.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[842],{14844:function(t,e,r){var n=r(78709),o=r(31806),i=r.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new E(o||[]);return n(a,"_invoke",{value:x(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var v={};function p(){}function y(){}function d(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(m=b);var w=d.prototype=p.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function o(n,i,u,c){var s=h(t[n],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function P(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}function f(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.Z=function(t){var e=h((0,n.useState)(null),2),r=e[0],o=e[1],a=h((0,n.useState)(""),2),u=a[0],s=a[1],v=h((0,n.useState)(!0),2),p=v[0],y=v[1],d=h((0,n.useState)(!1),2),m=d[0],g=d[1],b=new AbortController,w=function(){var t,e=(t=l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y(!0),e.load?g(!0):g(!1),0!=Object.keys(e.params).length){t.next=7;break}return o(null),t.abrupt("return");case 7:return t.prev=7,t.next=10,i().request(e);case 10:r=t.sent,o(r.data),y(!1),s(null),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(7),s(t.t0);case 19:case"end":return t.stop()}}),t,null,[[7,16]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,u,"next",t)}function u(t){f(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();return(0,n.useEffect)((function(){return w(c(c({},t),{},{signal:b.signal})),function(){return b.abort()}}),[t.params]),{response:r,error:u,isLoading:p,isMore:m}}},6489:function(t,e,r){r(78709);var n=r(51031);e.Z=function(){return new URLSearchParams((0,n.TH)().search)}},38401:function(t,e){e.Z={"Chargement...":{en:"Loading",fr:"Chargement..."},Recherche:{en:"Search",fr:"Recherche"},"Thématiques":{en:"Themes",fr:"Thématiques"},"Catégories":{en:"Categories",fr:"Catégories"},"Facilités":{en:"Facilities",fr:"Facilités"},"Plus de résultats":{en:"More results",fr:"Plus de résultats"},"Aucun résultat":{en:"No result",fr:"Aucun résultat"},Retour:{en:"Return",fr:"Retour"},"Téléchargements":{en:"Downloads",fr:"Téléchargements"},Billetterie:{en:"Ticketing",fr:"Billetterie"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne"},"Actualités trouvées":{en:" News found",fr:" actualités trouvées"},"Actualité trouvée":{en:" News found",fr:" actualité trouvée"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité"},"événements trouvés":{en:" events found",fr:" événements trouvés"},"événement trouvé":{en:" event found",fr:" événement trouvé"},"Aucun événement n'a été trouvé":{en:"No events was found",fr:"Aucun événement n'a été trouvé"},"Proposer un événement":{en:"Suggest a event",fr:"Proposer un événement"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques"},"Accessible aux PMR":{en:"Je sais pas traduire",fr:"Accessible aux PMR"},"Lien de l'événement":{en:"Event link",fr:"Lien de l'événement"},"contacts trouvés":{en:" contact found",fr:" contacts trouvés"},"contact trouvé":{en:" contact found",fr:" contact trouvé"},"Aucun contact n'a été trouvé":{en:"No contact was found",fr:"Aucun contact n'a été trouvé"},"Proposer un contact":{en:"Suggest a contact",fr:"Proposer un contact"}}},54570:function(t,e,r){r.p}}]);
1
+ /*! For license information please see 729.smartweb-webcomponents-compiled.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[729],{14844:function(t,e,r){var n=r(78709),o=r(31806),i=r.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new E(o||[]);return n(a,"_invoke",{value:x(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var v={};function p(){}function y(){}function d(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(m=b);var w=d.prototype=p.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function o(n,i,u,c){var s=h(t[n],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return o("throw",t,u,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function P(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(L.prototype),s(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),v}},t}function f(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.Z=function(t){var e=h((0,n.useState)(null),2),r=e[0],o=e[1],a=h((0,n.useState)(""),2),u=a[0],s=a[1],v=h((0,n.useState)(!0),2),p=v[0],y=v[1],d=h((0,n.useState)(!1),2),m=d[0],g=d[1],b=new AbortController,w=function(){var t,e=(t=l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y(!0),e.load?g(!0):g(!1),0!=Object.keys(e.params).length){t.next=7;break}return o(null),t.abrupt("return");case 7:return t.prev=7,t.next=10,i().request(e);case 10:r=t.sent,o(r.data),y(!1),s(null),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(7),s(t.t0);case 19:case"end":return t.stop()}}),t,null,[[7,16]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,u,"next",t)}function u(t){f(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();return(0,n.useEffect)((function(){return w(c(c({},t),{},{signal:b.signal})),function(){return b.abort()}}),[t.params]),{response:r,error:u,isLoading:p,isMore:m}}},6489:function(t,e,r){r(78709);var n=r(51031);e.Z=function(){return new URLSearchParams((0,n.TH)().search)}},38401:function(t,e){e.Z={"Chargement...":{en:"Loading",fr:"Chargement..."},Recherche:{en:"Search",fr:"Recherche"},"Thématiques":{en:"Themes",fr:"Thématiques"},"Catégories":{en:"Categories",fr:"Catégories"},"Facilités":{en:"Facilities",fr:"Facilités"},"Plus de résultats":{en:"More results",fr:"Plus de résultats"},"Aucun résultat":{en:"No result",fr:"Aucun résultat"},Retour:{en:"Return",fr:"Retour"},"Téléchargements":{en:"Downloads",fr:"Téléchargements"},Billetterie:{en:"Ticketing",fr:"Billetterie"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne"},"Actualités trouvées":{en:" News found",fr:" actualités trouvées"},"Actualité trouvée":{en:" News found",fr:" actualité trouvée"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité"},"événements trouvés":{en:" events found",fr:" événements trouvés"},"événement trouvé":{en:" event found",fr:" événement trouvé"},"Aucun événement n'a été trouvé":{en:"No events was found",fr:"Aucun événement n'a été trouvé"},"Proposer un événement":{en:"Suggest a event",fr:"Proposer un événement"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques"},"Accessible aux PMR":{en:"Je sais pas traduire",fr:"Accessible aux PMR"},"Lien de l'événement":{en:"Event link",fr:"Lien de l'événement"},"contacts trouvés":{en:" contact found",fr:" contacts trouvés"},"contact trouvé":{en:" contact found",fr:" contact trouvé"},"Aucun contact n'a été trouvé":{en:"No contact was found",fr:"Aucun contact n'a été trouvé"},"Proposer un contact":{en:"Suggest a contact",fr:"Proposer un contact"}}}}]);