qc-trousse-sdg 1.2.5 → 1.3.0-develop.1

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 (148) hide show
  1. package/README.md +18 -23
  2. package/dist/css/qc-sdg-design-tokens.min.css +1 -1
  3. package/dist/css/qc-sdg-no-grid.min.css +1 -1
  4. package/dist/css/qc-sdg.min.css +1 -1
  5. package/dist/img/QUEBEC_couleur.svg +24 -0
  6. package/dist/js/qc-sdg.min.js +1 -1
  7. package/package.json +23 -18
  8. package/public/css/qc-doc-sdg.css +247 -335
  9. package/public/css/qc-sdg-design-tokens.css +111 -64
  10. package/public/css/qc-sdg-no-grid.css +957 -453
  11. package/public/css/qc-sdg.css +966 -634
  12. package/public/img/QUEBEC_couleur.svg +24 -0
  13. package/public/img/ampoule.svg +1 -0
  14. package/public/img/arrow-up-white.svg +3 -0
  15. package/public/img/chevron-blue.svg +3 -0
  16. package/public/img/chevron-white.svg +3 -0
  17. package/public/img/clipboard.svg +8 -0
  18. package/public/img/error-white.svg +1 -0
  19. package/public/img/error.svg +1 -0
  20. package/public/img/exclamation-white.svg +37 -0
  21. package/public/img/external-link-white.svg +18 -0
  22. package/public/img/facebook.svg +6 -0
  23. package/public/img/information-white.svg +1 -0
  24. package/public/img/information.svg +1 -0
  25. package/public/img/linkedin.svg +5 -0
  26. package/public/img/loupe-piv-droite.svg +1 -0
  27. package/public/img/loupe-piv-fonce.svg +1 -0
  28. package/public/img/minus.svg +6 -0
  29. package/public/img/note.svg +1 -0
  30. package/public/img/piv-MCE-theme-clair.svg +79 -0
  31. package/public/img/piv-MCE-theme-sombre.svg +62 -0
  32. package/public/img/piv-bas-MCE-theme-clair.png +0 -0
  33. package/public/img/piv-bas-MCE-theme-sombre.png +0 -0
  34. package/public/img/piv-logo-pied-de-page.svg +37 -0
  35. package/public/img/plus.svg +6 -0
  36. package/public/img/question-mark.svg +47 -0
  37. package/public/img/success-white.svg +1 -0
  38. package/public/img/success.svg +1 -0
  39. package/public/img/twitter.svg +8 -0
  40. package/public/img/warning.svg +1 -0
  41. package/public/img/xclose-blue.svg +6 -0
  42. package/public/img/xclose-white.svg +1 -0
  43. package/public/img/youtube.svg +3 -0
  44. package/public/index.html +871 -715
  45. package/public/js/qc-doc-exemple.js +9 -0
  46. package/public/js/qc-doc-sdg.js +6893 -3724
  47. package/public/js/qc-sdg.js +2103 -962
  48. package/rollup.config.js +58 -32
  49. package/src/doc/components/Code.svelte +69 -0
  50. package/src/doc/components/Exemple.svelte +71 -0
  51. package/src/doc/components/Switch.svelte +108 -0
  52. package/src/doc/components/TopNav.svelte +53 -0
  53. package/src/doc/components/color-doc.svelte +44 -0
  54. package/src/doc/qc-doc-sdg.js +25 -14
  55. package/src/doc/scss/_tables.scss +1 -2
  56. package/src/doc/scss/components/_button.scss +14 -14
  57. package/src/doc/scss/components/_code.scss +106 -4
  58. package/src/doc/scss/jQueryUI/_jquery-ui.autocomplete.scss +48 -0
  59. package/src/doc/scss/qc-doc-sdg.scss +76 -75
  60. package/src/sdg/components/Button/IconButton.svelte +29 -0
  61. package/src/sdg/components/Icon.svelte +39 -0
  62. package/src/sdg/components/{pivHeader.svelte → PivHeader/pivHeader.svelte} +49 -69
  63. package/src/sdg/components/SearchBar/searchBar.svelte +87 -0
  64. package/src/sdg/components/SearchInput/SearchInput.svelte +48 -0
  65. package/src/sdg/components/alert.svelte +40 -23
  66. package/src/sdg/components/componentWrapper.js +0 -3
  67. package/src/sdg/components/externalLink.svelte +92 -0
  68. package/src/sdg/components/notice.svelte +61 -34
  69. package/src/sdg/components/pivFooter.svelte +37 -36
  70. package/src/sdg/components/toTop.svelte +17 -11
  71. package/src/sdg/components/utils.js +28 -4
  72. package/src/sdg/qc-sdg.js +11 -3
  73. package/src/sdg/scss/_qc-sdg-lib.scss +3 -0
  74. package/src/sdg/scss/base/_accessibility.scss +4 -0
  75. package/src/sdg/scss/base/_colors.scss +10 -10
  76. package/src/sdg/scss/base/_figure.scss +14 -9
  77. package/src/sdg/scss/base/_fonts.scss +4 -4
  78. package/src/sdg/scss/base/_form.scss +7 -0
  79. package/src/sdg/scss/base/_layout.scss +45 -0
  80. package/src/sdg/scss/base/_lists.scss +5 -5
  81. package/src/sdg/scss/base/_shadings.scss +3 -11
  82. package/src/sdg/scss/base/_typography.scss +42 -25
  83. package/src/sdg/scss/components/_alert.scss +11 -34
  84. package/src/sdg/scss/components/_icons.scss +80 -57
  85. package/src/sdg/scss/components/_notice.scss +51 -44
  86. package/src/sdg/scss/components/_pivFooter.scss +35 -23
  87. package/src/sdg/scss/components/_pivHeader.scss +131 -154
  88. package/src/sdg/scss/components/_searchBar.scss +75 -0
  89. package/src/sdg/scss/components/_searchInput.scss +64 -0
  90. package/src/sdg/scss/components/_separator.scss +2 -5
  91. package/src/sdg/scss/components/_toTop.scss +4 -6
  92. package/src/sdg/scss/grid/_grid-lib.scss +516 -0
  93. package/src/sdg/scss/grid/_grid.scss +78 -0
  94. package/src/sdg/scss/lib/_functions.scss +78 -0
  95. package/src/sdg/scss/lib/_gridless-lib.scss +4 -0
  96. package/src/sdg/scss/lib/_mixins.scss +221 -0
  97. package/src/sdg/scss/qc-design-tokens.scss +31 -8
  98. package/src/sdg/scss/qc-sdg-utilities.scss +1 -0
  99. package/src/sdg/scss/qc-sdg.scss +1 -1
  100. package/src/sdg/scss/qc-sgd-no-grid.scss +20 -15
  101. package/src/sdg/scss/settings/_base.scss +58 -0
  102. package/src/sdg/scss/settings/_tokens.scss +145 -77
  103. package/src/sdg/scss/utilities/_display.scss +43 -3
  104. package/src/sdg/scss/utilities/_themes.scss +17 -0
  105. package/src/sdg/scss/vendor/modern-css-reset/src/reset.css +9 -8
  106. package/src/doc/components/code.svelte +0 -54
  107. package/src/sdg/scss/base/_grid.scss +0 -9
  108. package/src/sdg/scss/functions/_tokens.scss +0 -12
  109. package/src/sdg/scss/functions/_utils.scss +0 -44
  110. package/src/sdg/scss/modules/_grid.scss +0 -19
  111. package/src/sdg/scss/modules/_map.scss +0 -14
  112. package/src/sdg/scss/modules/_tokens.scss +0 -3
  113. package/src/sdg/scss/modules/_utils.scss +0 -55
  114. package/src/sdg/scss/settings/_grid.scss +0 -24
  115. package/src/sdg/scss/settings/_settings.scss +0 -12
  116. package/src/sdg/sprites/dist/view/svg/sprite.view.svg +0 -1
  117. package/src/sdg/sprites/gulpfile.js +0 -41
  118. package/src/sdg/sprites/package-lock.json +0 -5949
  119. package/src/sdg/sprites/package.json +0 -16
  120. package/src/sdg/sprites/svg/QUEBEC_blanc.svg +0 -13
  121. package/src/sdg/sprites/svg/external-link.svg +0 -10
  122. package/src/sdg/sprites/svg/logo-quebec-piv-footer.svg +0 -1
  123. /package/dist/img/{quebec-logo.svg → QUEBEC_blanc.svg} +0 -0
  124. /package/{src/sdg/sprites/svg → dist/img}/arrow-up-white.svg +0 -0
  125. /package/{src/sdg/sprites/svg → dist/img}/chevron-blue.svg +0 -0
  126. /package/{src/sdg/sprites/svg → dist/img}/chevron-white.svg +0 -0
  127. /package/{src/sdg/sprites/svg → dist/img}/clipboard.svg +0 -0
  128. /package/{src/sdg/sprites/svg → dist/img}/error-white.svg +0 -0
  129. /package/{src/sdg/sprites/svg → dist/img}/error.svg +0 -0
  130. /package/{src/sdg/sprites/svg → dist/img}/exclamation-white.svg +0 -0
  131. /package/{src/sdg/sprites/svg → dist/img}/external-link-white.svg +0 -0
  132. /package/{src/sdg/sprites/svg → dist/img}/facebook.svg +0 -0
  133. /package/{src/sdg/sprites/svg → dist/img}/information-white.svg +0 -0
  134. /package/{src/sdg/sprites/svg → dist/img}/information.svg +0 -0
  135. /package/{src/sdg/sprites/svg → dist/img}/linkedin.svg +0 -0
  136. /package/{src/sdg/sprites/svg → dist/img}/loupe-piv-droite.svg +0 -0
  137. /package/{src/sdg/sprites/svg → dist/img}/loupe-piv-fonce.svg +0 -0
  138. /package/{src/sdg/sprites/svg → dist/img}/minus.svg +0 -0
  139. /package/{src/sdg/sprites/svg → dist/img}/plus.svg +0 -0
  140. /package/{src/sdg/sprites/svg → dist/img}/question-mark.svg +0 -0
  141. /package/{src/sdg/sprites/svg → dist/img}/success-white.svg +0 -0
  142. /package/{src/sdg/sprites/svg → dist/img}/success.svg +0 -0
  143. /package/{src/sdg/sprites/svg → dist/img}/twitter.svg +0 -0
  144. /package/{src/sdg/sprites/svg → dist/img}/warning.svg +0 -0
  145. /package/{src/sdg/sprites/svg → dist/img}/xclose-blue.svg +0 -0
  146. /package/{src/sdg/sprites/svg → dist/img}/xclose-white.svg +0 -0
  147. /package/{src/sdg/sprites/svg → dist/img}/youtube.svg +0 -0
  148. /package/{src/sdg/sprites/svg/quebec-logo.svg → public/img/QUEBEC_blanc.svg} +0 -0
@@ -1 +1 @@
1
- !function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let i;function c(t,e){return t===e||(i||(i=document.createElement("a")),i.href=e,t===i.href)}function l(t,e,n,o){if(t){const r=a(t,e,n,o);return t[0](r)}}function a(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function u(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}function h(t,e,n,o,r,s){if(r){const i=a(e,n,o,s);t.p(i,r)}}function $(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}const d="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function g(t,e){t.appendChild(e)}function p(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function m(t){return document.createElement(t)}function x(t){return document.createTextNode(t)}function b(){return x(" ")}function y(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function T(t){return function(e){return e.preventDefault(),t.call(this,e)}}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const w=["width","height"];function S(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set&&-1===w.indexOf(o)?t[o]=e[o]:v(t,o,e[o])}function U(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){const o=e.toLowerCase();o in t?t[o]="boolean"==typeof t[o]&&""===n||n:e in t?t[e]="boolean"==typeof t[e]&&""===n||n:v(t,e,n)}(t,n,e[n])}))}function _(t,e){e=""+e,t.data!==e&&(t.data=e)}function q(t,e,n){t.classList.toggle(e,!!n)}class A{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(t=!1){this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var o;this.e||(this.is_svg?this.e=(o=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=m(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)p(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(f)}}let L;function k(t){L=t}function E(t){(function(){if(!L)throw new Error("Function called outside component initialization");return L})().$$.on_mount.push(t)}const C=[],P=[];let N=[];const j=[],O=Promise.resolve();let F=!1;function I(t){N.push(t)}const W=new Set;let H=0;function R(){if(0!==H)return;const t=L;do{try{for(;H<C.length;){const t=C[H];H++,k(t),M(t.$$)}}catch(t){throw C.length=0,H=0,t}for(k(null),C.length=0,H=0;P.length;)P.pop()();for(let t=0;t<N.length;t+=1){const e=N[t];W.has(e)||(W.add(e),e())}N.length=0}while(C.length);for(;j.length;)j.pop()();F=!1,W.clear(),k(t)}function M(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I)}}const B=new Set;let z,D;function Q(){z={r:0,c:[],p:z}}function Y(){z.r||o(z.c),z=z.p}function G(t,e){t&&t.i&&(B.delete(t),t.i(e))}function J(t,e,n,o){if(t&&t.o){if(B.has(t))return;B.add(t),z.c.push((()=>{B.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function K(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];N.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),N=e}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function V(t,e){-1===t.$$.dirty[0]&&(C.push(t),F||(F=!0,O.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function X(s,i,c,l,a,u,h=null,$=[-1]){const d=L;k(s);const g=s.$$={fragment:null,ctx:[],props:u,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(d?d.$$.context:[])),callbacks:n(),dirty:$,skip_bound:!1,root:i.target||d.$$.root};h&&h(g.root);let p=!1;if(g.ctx=c?c(s,i.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return g.ctx&&a(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),p&&V(s,t)),e})):[],g.update(),p=!0,o(g.before_update),g.fragment=!!l&&l(g.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);g.fragment&&g.fragment.l(t),t.forEach(f)}else g.fragment&&g.fragment.c();i.intro&&G(s.$$.fragment),function(t,n,s){const{fragment:i,after_update:c}=t.$$;i&&i.m(n,s),I((()=>{const n=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(I)}(s,i.target,i.anchor),R()}k(d)}function Z(t,e,n,o){const r=n[t]?.type;if(e="Boolean"===r&&"boolean"!=typeof e?null!=e:e,!o||!n[t])return e;if("toAttribute"===o)switch(r){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function tt(t,e,n,o,r,s){let i=class extends D{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(n){n=Z(t,n,e),this.$$d[t]=n,this.$$c?.$set({[t]:n})}})})),o.forEach((t=>{Object.defineProperty(i.prototype,t,{get(){return this.$$c?.[t]}})})),s&&(i=s(i)),t.element=i,i}"function"==typeof HTMLElement&&(D=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=m("slot"),"default"!==t&&v(e,"name",t)},m:function(t,n){p(t,e,n)},d:function(t){t&&f(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const r of this.$$s)r in n&&(e[r]=[t(r)]);for(const s of this.attributes){const i=this.$$g_p(s.name);i in this.$$d||(this.$$d[i]=Z(i,s.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)c in this.$$d||void 0===this[c]||(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Z(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const l in this.$$l)for(const a of this.$$l[l]){const u=this.$$c.$on(l,a);this.$$l_u.set(a,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Z(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class et{$$=void 0;$$set=void 0;$destroy(){K(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class nt{static assetsBasePath=new URL(document.currentScript.src).pathname.split("/").slice(0,-2).join("/")||".";static cssRelativePath=`${this.assetsBasePath}/css/`.replace("//","/");static imagesRelativePath=`${this.assetsBasePath}/img/`.replace("//","/");static cssFileName=document.currentScript.getAttribute("sdg-css-filename")||"qc-sdg.min.css";static sharedTexts={openInNewTab:{fr:"Ce lien s’ouvrira dans un nouvel onglet.",en:"This link will open in a new tab."}};static getPageLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")||"fr"}}function ot(t){let e,n;return{c(){var o;e=m(t[1]),n=x(t[2]),(o=t[1],/-/.test(o)?U:S)(e,{class:"title"})},m(t,o){p(t,e,o),g(e,n)},p(t,e){4&e&&_(n,t[2])},d(t){t&&f(e)}}}function rt(t){let e,n,o,r,i,c,a,d,x,y,T,w,S,U,_,q=t[1],L=t[1]&&ot(t);const k=t[5].default,E=l(k,t,t[4],null);return{c(){e=m("div"),n=m("div"),o=m("div"),i=b(),c=m("div"),a=m("div"),L&&L.c(),d=b(),x=m("div"),y=new A(!1),T=b(),E&&E.c(),S=b(),U=m("link"),v(o,"aria-hidden","true"),v(o,"class",r="qc-icon qc-"+t[0]),v(n,"class","icon-container"),y.a=T,v(x,"class","text"),v(a,"class","content"),v(c,"class","content-container"),v(e,"class",w="qc-component qc-notice qc-"+t[0]),v(e,"tabindex","0"),v(U,"rel","stylesheet"),v(U,"href",""+(nt.cssRelativePath+nt.cssFileName))},m(r,s){p(r,e,s),g(e,n),g(n,o),g(e,i),g(e,c),g(c,a),L&&L.m(a,null),g(a,d),g(a,x),y.m(t[3],x),g(x,T),E&&E.m(x,null),p(r,S,s),p(r,U,s),_=!0},p(t,[n]){(!_||1&n&&r!==(r="qc-icon qc-"+t[0]))&&v(o,"class",r),t[1]?q?s(q,t[1])?(L.d(1),L=ot(t),q=t[1],L.c(),L.m(a,d)):L.p(t,n):(L=ot(t),q=t[1],L.c(),L.m(a,d)):q&&(L.d(1),L=null,q=t[1]),(!_||8&n)&&y.p(t[3]),E&&E.p&&(!_||16&n)&&h(E,k,t,t[4],_?u(k,t[4],n,null):$(t[4]),null),(!_||1&n&&w!==(w="qc-component qc-notice qc-"+t[0]))&&v(e,"class",w)},i(t){_||(G(E,t),_=!0)},o(t){J(E,t),_=!1},d(t){t&&(f(e),f(S),f(U)),L&&L.d(t),E&&E.d(t)}}}function st(t,e,n){let{$$slots:o={},$$scope:r}=e;const s="h2",i="information",c=["information","warning","success","error"];let{title:l="",type:a=i,content:u="",header:h=s}=e;return E((()=>{n(1,h=h.match(/h[1-6]/)?h:s),n(0,a=c.includes(a)?a:i)})),t.$$set=t=>{"title"in t&&n(2,l=t.title),"type"in t&&n(0,a=t.type),"content"in t&&n(3,u=t.content),"header"in t&&n(1,h=t.header),"$$scope"in t&&n(4,r=t.$$scope)},[a,h,l,u,r,o]}customElements.define("qc-notice",tt(class extends et{constructor(t){super(),X(this,t,st,rt,s,{title:2,type:0,content:3,header:1})}get title(){return this.$$.ctx[2]}set title(t){this.$$set({title:t}),R()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),R()}get content(){return this.$$.ctx[3]}set content(t){this.$$set({content:t}),R()}get header(){return this.$$.ctx[1]}set header(t){this.$$set({header:t}),R()}},{title:{},type:{},content:{},header:{}},["default"],[],!0));const it=t=>({}),ct=t=>({}),lt=t=>({}),at=t=>({});function ut(t){let e,n,o;return{c(){e=m("div"),n=m("a"),o=x(t[12]),v(n,"href",t[11]),v(e,"class","go-to-content")},m(t,r){p(t,e,r),g(e,n),g(n,o)},p(t,e){4096&e&&_(o,t[12]),2048&e&&v(n,"href",t[11])},d(t){t&&f(e)}}}function ht(t){let e,n,o,r;return{c(){e=m("div"),n=m("a"),o=m("span"),r=x(t[5]),v(n,"href",t[4]),v(e,"class","title")},m(t,s){p(t,e,s),g(e,n),g(n,o),g(o,r)},p(t,e){32&e&&_(r,t[5]),16&e&&v(n,"href",t[4])},d(t){t&&f(e)}}}function $t(t){let e,n,r,s,i,c=(t[21]?t[17]:t[16])+"";return{c(){e=m("a"),n=m("span"),r=x(c),v(e,"class","qc-icon qc-search"),v(e,"href","/"),v(e,"role","button")},m(o,c){p(o,e,c),g(e,n),g(n,r),s||(i=[y(e,"click",T(t[27])),y(e,"click",t[19])],s=!0)},p(t,e){2293760&e&&c!==(c=(t[21]?t[17]:t[16])+"")&&_(r,c)},d(t){t&&f(e),s=!1,o(i)}}}function dt(t){let e,n,o=t[7]&&gt(t),r=t[9]&&pt(t);return{c(){e=m("ul"),o&&o.c(),n=b(),r&&r.c()},m(t,s){p(t,e,s),o&&o.m(e,null),g(e,n),r&&r.m(e,null)},p(t,s){t[7]?o?o.p(t,s):(o=gt(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[9]?r?r.p(t,s):(r=pt(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&f(e),o&&o.d(),r&&r.d()}}}function gt(t){let e,n,o;return{c(){e=m("li"),n=m("a"),o=x(t[6]),v(n,"href",t[7])},m(t,r){p(t,e,r),g(e,n),g(n,o)},p(t,e){64&e&&_(o,t[6]),128&e&&v(n,"href",t[7])},d(t){t&&f(e)}}}function pt(t){let e,n,o;return{c(){e=m("li"),n=m("a"),o=x(t[8]),v(n,"href",t[9])},m(t,r){p(t,e,r),g(e,n),g(n,o)},p(t,e){256&e&&_(o,t[8]),512&e&&v(n,"href",t[9])},d(t){t&&f(e)}}}function ft(t){let e,n=(t[9]||t[7])&&dt(t);return{c(){n&&n.c(),e=x("")},m(t,o){n&&n.m(t,o),p(t,e,o)},p(t,o){t[9]||t[7]?n?n.p(t,o):(n=dt(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&f(e),n&&n.d(t)}}}function mt(t){let e,n,o,r;return{c(){e=m("div"),n=m("a"),o=m("span"),r=x(t[5]),v(n,"href",t[4]),v(e,"class","title")},m(t,s){p(t,e,s),g(e,n),g(n,o),g(o,r)},p(t,e){32&e&&_(r,t[5]),16&e&&v(n,"href",t[4])},d(t){t&&f(e)}}}function xt(t){let e,n;const o=t[26]["search-zone"],r=l(o,t,t[25],ct),s=r||function(t){let e,n,o,r,s,i,c,l,a;return{c(){e=m("form"),n=m("div"),o=m("input"),r=b(),s=m("button"),i=m("span"),c=b(),l=m("span"),a=x(t[15]),v(o,"type","text"),v(o,"placeholder",t[13]),v(o,"name",t[14]),v(i,"class","qc-icon qc-search-submit"),v(l,"class","sr-description"),v(n,"class","input-group"),v(e,"method","get"),v(e,"action",t[18])},m(u,h){p(u,e,h),g(e,n),g(n,o),t[28](o),g(n,r),g(n,s),g(s,i),g(s,c),g(s,l),g(l,a)},p(t,n){8192&n&&v(o,"placeholder",t[13]),16384&n&&v(o,"name",t[14]),32768&n&&_(a,t[15]),262144&n&&v(e,"action",t[18])},d(n){n&&f(e),t[28](null)}}}(t);return{c(){e=m("div"),s&&s.c(),v(e,"class","search-zone")},m(t,o){p(t,e,o),s&&s.m(e,null),n=!0},p(t,e){r?r.p&&(!n||33554432&e)&&h(r,o,t,t[25],n?u(o,t[25],e,it):$(t[25]),ct):s&&s.p&&(!n||4513792&e)&&s.p(t,n?e:-1)},i(t){n||(G(s,t),n=!0)},o(t){J(s,t),n=!1},d(t){t&&f(e),s&&s.d(t)}}}function bt(t){let e,n,o,r,s,i,a,d,x,y,T,w,S,U,_,q,A,L,k,E="true"==t[10]&&ut(t),C=t[5]&&ht(t),P="true"==t[0]&&$t(t);const N=t[26].links,j=l(N,t,t[25],at),O=j||ft(t);let F=t[5]&&mt(t),I=t[21]&&xt(t);return{c(){e=m("div"),n=m("div"),E&&E.c(),o=b(),r=m("div"),s=m("div"),i=m("a"),a=m("img"),x=b(),C&&C.c(),y=b(),T=m("div"),P&&P.c(),w=b(),S=m("div"),O&&O.c(),U=b(),_=m("div"),F&&F.c(),q=b(),I&&I.c(),A=b(),L=m("link"),v(a,"alt",t[3]),c(a.src,d=t[2])||v(a,"src",d),v(i,"href",t[1]),v(i,"target","_blank"),v(i,"rel","noreferrer"),v(s,"class","logo"),v(S,"class","links"),v(T,"class","right-section"),v(r,"class","piv-top"),v(_,"class","piv-bottom"),v(n,"class",t[20]),v(e,"class","qc-piv-header qc-component"),v(L,"rel","stylesheet"),v(L,"href",""+(nt.cssRelativePath+nt.cssFileName))},m(t,c){p(t,e,c),g(e,n),E&&E.m(n,null),g(n,o),g(n,r),g(r,s),g(s,i),g(i,a),g(r,x),C&&C.m(r,null),g(r,y),g(r,T),P&&P.m(T,null),g(T,w),g(T,S),O&&O.m(S,null),g(n,U),g(n,_),F&&F.m(_,null),g(_,q),I&&I.m(_,null),p(t,A,c),p(t,L,c),k=!0},p(t,[e]){"true"==t[10]?E?E.p(t,e):(E=ut(t),E.c(),E.m(n,o)):E&&(E.d(1),E=null),(!k||8&e)&&v(a,"alt",t[3]),(!k||4&e&&!c(a.src,d=t[2]))&&v(a,"src",d),(!k||2&e)&&v(i,"href",t[1]),t[5]?C?C.p(t,e):(C=ht(t),C.c(),C.m(r,y)):C&&(C.d(1),C=null),"true"==t[0]?P?P.p(t,e):(P=$t(t),P.c(),P.m(T,w)):P&&(P.d(1),P=null),j?j.p&&(!k||33554432&e)&&h(j,N,t,t[25],k?u(N,t[25],e,lt):$(t[25]),at):O&&O.p&&(!k||960&e)&&O.p(t,k?e:-1),t[5]?F?F.p(t,e):(F=mt(t),F.c(),F.m(_,q)):F&&(F.d(1),F=null),t[21]?I?(I.p(t,e),2097152&e&&G(I,1)):(I=xt(t),I.c(),G(I,1),I.m(_,null)):I&&(Q(),J(I,1,1,(()=>{I=null})),Y()),(!k||1048576&e)&&v(n,"class",t[20])},i(t){k||(G(O,t),G(I),k=!0)},o(t){J(O,t),J(I),k=!1},d(t){t&&(f(e),f(A),f(L)),E&&E.d(),C&&C.d(),P&&P.d(),O&&O.d(t),F&&F.d(),I&&I.d()}}}function yt(t,e,n){let{$$slots:o={},$$scope:r}=e;const s=nt.getPageLanguage();let{logoUrl:i="/",fullWidth:c="false",logoSrc:l=nt.imagesRelativePath+"quebec-logo.svg",logoAlt:a=("fr"===s?"Logo du gouvernement du Québec":"Logo of government of Québec"),titleUrl:u="/",titleText:h="",altLanguageText:$=("fr"===s?"English":"Français"),altLanguageUrl:d="",joinUsText:g=("fr"===s?"Nous joindre":"Contact us"),joinUsUrl:p="",goToContent:f="true",goToContentAnchor:m="#main",goToContentText:x=("fr"===s?"Passer au contenu":"Skip to content"),searchPlaceholder:b=("fr"===s?"Rechercher…":"Search…"),searchInputName:y="q",submitSearchText:T=("fr"===s?"Rechercher":"Search"),displaySearchText:v=("fr"===s?"Cliquer pour faire une recherche":"Click to search"),hideSearchText:w=("fr"===s?"Masquer la barre de recherche":"Hide search bar"),searchFormAction:S="#",enableSearch:U="false",showSearch:_="false"}=e;let q,A="qc-container",L=!1;E((()=>{n(20,A+="true"===c?"-fluid":""),"true"===_&&(n(0,U="true"),n(21,L=!0))}));return t.$$set=t=>{"logoUrl"in t&&n(1,i=t.logoUrl),"fullWidth"in t&&n(23,c=t.fullWidth),"logoSrc"in t&&n(2,l=t.logoSrc),"logoAlt"in t&&n(3,a=t.logoAlt),"titleUrl"in t&&n(4,u=t.titleUrl),"titleText"in t&&n(5,h=t.titleText),"altLanguageText"in t&&n(6,$=t.altLanguageText),"altLanguageUrl"in t&&n(7,d=t.altLanguageUrl),"joinUsText"in t&&n(8,g=t.joinUsText),"joinUsUrl"in t&&n(9,p=t.joinUsUrl),"goToContent"in t&&n(10,f=t.goToContent),"goToContentAnchor"in t&&n(11,m=t.goToContentAnchor),"goToContentText"in t&&n(12,x=t.goToContentText),"searchPlaceholder"in t&&n(13,b=t.searchPlaceholder),"searchInputName"in t&&n(14,y=t.searchInputName),"submitSearchText"in t&&n(15,T=t.submitSearchText),"displaySearchText"in t&&n(16,v=t.displaySearchText),"hideSearchText"in t&&n(17,w=t.hideSearchText),"searchFormAction"in t&&n(18,S=t.searchFormAction),"enableSearch"in t&&n(0,U=t.enableSearch),"showSearch"in t&&n(24,_=t.showSearch),"$$scope"in t&&n(25,r=t.$$scope)},[U,i,l,a,u,h,$,d,g,p,f,m,x,b,y,T,v,w,S,function(){L&&q.focus()},A,L,q,c,_,r,o,()=>n(21,L=!L),function(t){P[t?"unshift":"push"]((()=>{q=t,n(22,q)}))}]}customElements.define("qc-piv-header",tt(class extends et{constructor(t){super(),X(this,t,yt,bt,s,{logoUrl:1,fullWidth:23,logoSrc:2,logoAlt:3,titleUrl:4,titleText:5,altLanguageText:6,altLanguageUrl:7,joinUsText:8,joinUsUrl:9,goToContent:10,goToContentAnchor:11,goToContentText:12,searchPlaceholder:13,searchInputName:14,submitSearchText:15,displaySearchText:16,hideSearchText:17,searchFormAction:18,enableSearch:0,showSearch:24,focusOnSearchInput:19})}get logoUrl(){return this.$$.ctx[1]}set logoUrl(t){this.$$set({logoUrl:t}),R()}get fullWidth(){return this.$$.ctx[23]}set fullWidth(t){this.$$set({fullWidth:t}),R()}get logoSrc(){return this.$$.ctx[2]}set logoSrc(t){this.$$set({logoSrc:t}),R()}get logoAlt(){return this.$$.ctx[3]}set logoAlt(t){this.$$set({logoAlt:t}),R()}get titleUrl(){return this.$$.ctx[4]}set titleUrl(t){this.$$set({titleUrl:t}),R()}get titleText(){return this.$$.ctx[5]}set titleText(t){this.$$set({titleText:t}),R()}get altLanguageText(){return this.$$.ctx[6]}set altLanguageText(t){this.$$set({altLanguageText:t}),R()}get altLanguageUrl(){return this.$$.ctx[7]}set altLanguageUrl(t){this.$$set({altLanguageUrl:t}),R()}get joinUsText(){return this.$$.ctx[8]}set joinUsText(t){this.$$set({joinUsText:t}),R()}get joinUsUrl(){return this.$$.ctx[9]}set joinUsUrl(t){this.$$set({joinUsUrl:t}),R()}get goToContent(){return this.$$.ctx[10]}set goToContent(t){this.$$set({goToContent:t}),R()}get goToContentAnchor(){return this.$$.ctx[11]}set goToContentAnchor(t){this.$$set({goToContentAnchor:t}),R()}get goToContentText(){return this.$$.ctx[12]}set goToContentText(t){this.$$set({goToContentText:t}),R()}get searchPlaceholder(){return this.$$.ctx[13]}set searchPlaceholder(t){this.$$set({searchPlaceholder:t}),R()}get searchInputName(){return this.$$.ctx[14]}set searchInputName(t){this.$$set({searchInputName:t}),R()}get submitSearchText(){return this.$$.ctx[15]}set submitSearchText(t){this.$$set({submitSearchText:t}),R()}get displaySearchText(){return this.$$.ctx[16]}set displaySearchText(t){this.$$set({displaySearchText:t}),R()}get hideSearchText(){return this.$$.ctx[17]}set hideSearchText(t){this.$$set({hideSearchText:t}),R()}get searchFormAction(){return this.$$.ctx[18]}set searchFormAction(t){this.$$set({searchFormAction:t}),R()}get enableSearch(){return this.$$.ctx[0]}set enableSearch(t){this.$$set({enableSearch:t}),R()}get showSearch(){return this.$$.ctx[24]}set showSearch(t){this.$$set({showSearch:t}),R()}get focusOnSearchInput(){return this.$$.ctx[19]}},{logoUrl:{attribute:"logo-url"},fullWidth:{attribute:"full-width"},logoSrc:{attribute:"logo-src"},logoAlt:{attribute:"logo-alt"},titleUrl:{attribute:"title-url"},titleText:{attribute:"title-text"},altLanguageText:{attribute:"alt-language-text"},altLanguageUrl:{attribute:"alt-language-url"},joinUsText:{attribute:"join-us-text"},joinUsUrl:{attribute:"join-us-url"},goToContent:{attribute:"go-to-content"},goToContentAnchor:{attribute:"go-to-content-anchor"},goToContentText:{attribute:"go-to-content-text"},searchPlaceholder:{attribute:"search-placeholder"},searchInputName:{attribute:"search-input-name"},submitSearchText:{attribute:"submit-search-text"},displaySearchText:{attribute:"display-search-text"},hideSearchText:{attribute:"hide-search-text"},searchFormAction:{attribute:"search-form-action"},enableSearch:{attribute:"enable-search"},showSearch:{attribute:"show-search"}},["links","search-zone"],["focusOnSearchInput"],!0));const Tt=t=>({}),vt=t=>({}),wt=t=>({}),St=t=>({});function Ut(t){let e,n,o,r,s,i,a,d,y,T;const w=t[8].default,S=l(w,t,t[7],null),U=t[8].logo,q=l(U,t,t[7],St),A=q||function(t){let e,n,o;return{c(){e=m("a"),n=m("img"),v(n,"class","logo-mo"),v(n,"alt",t[2]),c(n.src,o=t[1])||v(n,"src",o),v(n,"width",t[3]),v(n,"height",t[4]),v(e,"href",t[0])},m(t,o){p(t,e,o),g(e,n)},p(t,r){4&r&&v(n,"alt",t[2]),2&r&&!c(n.src,o=t[1])&&v(n,"src",o),8&r&&v(n,"width",t[3]),16&r&&v(n,"height",t[4]),1&r&&v(e,"href",t[0])},d(t){t&&f(e)}}}(t),L=t[8].copyright,k=l(L,t,t[7],vt),E=k||function(t){let e,n;return{c(){e=m("a"),n=x(t[5]),v(e,"href",t[6])},m(t,o){p(t,e,o),g(e,n)},p(t,o){32&o&&_(n,t[5]),64&o&&v(e,"href",t[6])},d(t){t&&f(e)}}}(t);return{c(){e=m("div"),n=m("div"),o=m("nav"),S&&S.c(),r=b(),s=m("div"),A&&A.c(),i=b(),a=m("span"),E&&E.c(),d=b(),y=m("link"),v(s,"class","logo"),v(a,"class","copyright"),v(n,"class","qc-container"),v(e,"class","qc-piv-footer qc-component"),v(y,"rel","stylesheet"),v(y,"href",""+(nt.cssRelativePath+nt.cssFileName))},m(t,c){p(t,e,c),g(e,n),g(n,o),S&&S.m(o,null),g(n,r),g(n,s),A&&A.m(s,null),g(n,i),g(n,a),E&&E.m(a,null),p(t,d,c),p(t,y,c),T=!0},p(t,[e]){S&&S.p&&(!T||128&e)&&h(S,w,t,t[7],T?u(w,t[7],e,null):$(t[7]),null),q?q.p&&(!T||128&e)&&h(q,U,t,t[7],T?u(U,t[7],e,wt):$(t[7]),St):A&&A.p&&(!T||31&e)&&A.p(t,T?e:-1),k?k.p&&(!T||128&e)&&h(k,L,t,t[7],T?u(L,t[7],e,Tt):$(t[7]),vt):E&&E.p&&(!T||96&e)&&E.p(t,T?e:-1)},i(t){T||(G(S,t),G(A,t),G(E,t),T=!0)},o(t){J(S,t),J(A,t),J(E,t),T=!1},d(t){t&&(f(e),f(d),f(y)),S&&S.d(t),A&&A.d(t),E&&E.d(t)}}}function _t(t,e,n){let{$$slots:o={},$$scope:r}=e;const s=nt.getPageLanguage();let{logoUrl:i="/",logoSrc:c=`${nt.imagesRelativePath}qc-sprite.svg?v=v1.2.5#logo-quebec-piv-footer`,logoAlt:l="Gouvernement du Québec",logoWidth:a="117",logoHeight:u="35",copyrightText:h="© Gouvernement du Québec, "+(new Date).getFullYear(),copyrightUrl:$=("fr"===s?"https://www.quebec.ca/droit-auteur":"https://www.quebec.ca/en/copyright")}=e;return t.$$set=t=>{"logoUrl"in t&&n(0,i=t.logoUrl),"logoSrc"in t&&n(1,c=t.logoSrc),"logoAlt"in t&&n(2,l=t.logoAlt),"logoWidth"in t&&n(3,a=t.logoWidth),"logoHeight"in t&&n(4,u=t.logoHeight),"copyrightText"in t&&n(5,h=t.copyrightText),"copyrightUrl"in t&&n(6,$=t.copyrightUrl),"$$scope"in t&&n(7,r=t.$$scope)},[i,c,l,a,u,h,$,r,o]}function qt(t){let e,n,o,r,s,i,c,a,d,x;const y=t[11].default,T=l(y,t,t[10],null);let w="true"===t[1]&&At(t);return{c(){e=m("div"),n=m("div"),o=m("div"),s=b(),i=m("div"),c=new A(!1),a=b(),T&&T.c(),d=b(),w&&w.c(),v(o,"class",r="qc-icon qc-"+t[0]+"-alert-icon"),v(o,"aria-hidden","true"),c.a=a,v(i,"class","qc-alert-content"),v(n,"class","qc-container qc-general-alert-elements"),v(e,"class","qc-general-alert "+t[5]),v(e,"role","alert"),v(e,"aria-label",t[7])},m(r,l){p(r,e,l),g(e,n),g(n,o),g(n,s),g(n,i),c.m(t[2],i),g(i,a),T&&T.m(i,null),g(n,d),w&&w.m(n,null),t[12](e),x=!0},p(t,e){(!x||1&e&&r!==(r="qc-icon qc-"+t[0]+"-alert-icon"))&&v(o,"class",r),(!x||4&e)&&c.p(t[2]),T&&T.p&&(!x||1024&e)&&h(T,y,t,t[10],x?u(y,t[10],e,null):$(t[10]),null),"true"===t[1]?w?w.p(t,e):(w=At(t),w.c(),w.m(n,null)):w&&(w.d(1),w=null)},i(t){x||(G(T,t),x=!0)},o(t){J(T,t),x=!1},d(n){n&&f(e),T&&T.d(n),w&&w.d(),t[12](null)}}}function At(e){let n,o,r,s,i;return{c(){n=m("div"),o=m("button"),r=m("span"),v(r,"aria-hidden","true"),v(r,"class","qc-icon qc-xclose-blue qc-close-alert-icon"),v(o,"type","button"),v(o,"class","qc-close"),v(o,"aria-label",e[6]),v(n,"class","qc-alert-close")},m(t,c){p(t,n,c),g(n,o),g(o,r),s||(i=y(o,"click",e[8]),s=!0)},p:t,d(t){t&&f(n),s=!1,i()}}}function Lt(t){let e,n,o,r=!t[4]&&qt(t);return{c(){r&&r.c(),e=b(),n=m("link"),v(n,"rel","stylesheet"),v(n,"href",""+(nt.cssRelativePath+nt.cssFileName))},m(t,s){r&&r.m(t,s),p(t,e,s),p(t,n,s),o=!0},p(t,[n]){t[4]?r&&(Q(),J(r,1,1,(()=>{r=null})),Y()):r?(r.p(t,n),16&n&&G(r,1)):(r=qt(t),r.c(),G(r,1),r.m(e.parentNode,e))},i(t){o||(G(r),o=!0)},o(t){J(r),o=!1},d(t){t&&(f(e),f(n)),r&&r.d(t)}}}function kt(t,e,n){let o,r,{$$slots:s={},$$scope:i}=e,{type:c="general",maskable:l="",content:a="",hide:u="false"}=e,h=""!==c?c:"general",$="fr"===nt.getPageLanguage()?"Fermer":"Close",d="fr"===nt.getPageLanguage()?"Information d'importance élevée":"Information of high importance",g="fr"===nt.getPageLanguage()?"Information importante":"Important information",p="general"===c?g:d;return t.$$set=t=>{"type"in t&&n(0,c=t.type),"maskable"in t&&n(1,l=t.maskable),"content"in t&&n(2,a=t.content),"hide"in t&&n(9,u=t.hide),"$$scope"in t&&n(10,i=t.$$scope)},t.$$.update=()=>{512&t.$$.dirty&&n(4,r="true"===u)},[c,l,a,o,r,h,$,p,function(){n(9,u="true"),o.dispatchEvent(new CustomEvent("qc.alert.hide",{bubbles:!0,composed:!0}))},u,i,s,function(t){P[t?"unshift":"push"]((()=>{o=t,n(3,o)}))}]}customElements.define("qc-piv-footer",tt(class extends et{constructor(t){super(),X(this,t,_t,Ut,s,{logoUrl:0,logoSrc:1,logoAlt:2,logoWidth:3,logoHeight:4,copyrightText:5,copyrightUrl:6})}get logoUrl(){return this.$$.ctx[0]}set logoUrl(t){this.$$set({logoUrl:t}),R()}get logoSrc(){return this.$$.ctx[1]}set logoSrc(t){this.$$set({logoSrc:t}),R()}get logoAlt(){return this.$$.ctx[2]}set logoAlt(t){this.$$set({logoAlt:t}),R()}get logoWidth(){return this.$$.ctx[3]}set logoWidth(t){this.$$set({logoWidth:t}),R()}get logoHeight(){return this.$$.ctx[4]}set logoHeight(t){this.$$set({logoHeight:t}),R()}get copyrightText(){return this.$$.ctx[5]}set copyrightText(t){this.$$set({copyrightText:t}),R()}get copyrightUrl(){return this.$$.ctx[6]}set copyrightUrl(t){this.$$set({copyrightUrl:t}),R()}},{logoUrl:{attribute:"logo-url"},logoSrc:{},logoAlt:{attribute:"logo-alt"},logoWidth:{attribute:"logo-width"},logoHeight:{attribute:"logo-height"},copyrightText:{attribute:"copyrightText"},copyrightUrl:{attribute:"copyright-url"}},["default","logo","copyright"],[],!0));customElements.define("qc-alert",tt(class extends et{constructor(t){super(),X(this,t,kt,Lt,s,{type:0,maskable:1,content:2,hide:9})}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),R()}get maskable(){return this.$$.ctx[1]}set maskable(t){this.$$set({maskable:t}),R()}get content(){return this.$$.ctx[2]}set content(t){this.$$set({content:t}),R()}get hide(){return this.$$.ctx[9]}set hide(t){this.$$set({hide:t}),R()}},{type:{},maskable:{},content:{},hide:{}},["default"],[],!0));const{window:Et}=d;function Ct(e){let n,r,s,i,c,l,a;return{c(){n=m("a"),r=m("span"),s=x(e[0]),i=b(),c=m("link"),v(n,"href"," "),v(n,"class","qc-to-top qc-icon qc-arrow-up-white"),v(n,"tabindex","0"),v(n,"demo",e[1]),q(n,"visible",e[2]),v(c,"rel","stylesheet"),v(c,"href",""+(nt.cssRelativePath+nt.cssFileName))},m(t,o){p(t,n,o),g(n,r),g(r,s),e[5](n),p(t,i,o),p(t,c,o),l||(a=[y(Et,"scroll",e[4]),y(n,"click",T(Pt)),y(n,"keydown",Nt)],l=!0)},p(t,[e]){1&e&&_(s,t[0]),2&e&&v(n,"demo",t[1]),4&e&&q(n,"visible",t[2])},i:t,o:t,d(t){t&&(f(n),f(i),f(c)),e[5](null),l=!1,o(a)}}}function Pt(){window.scrollTo({top:0,behavior:"smooth"})}function Nt(t){switch(t.code){case"Enter":case"Space":t.preventDefault(),Pt()}}function jt(t,e,n){const o=nt.getPageLanguage();let r,{alt:s=("fr"===o?"Retour en haut":"Back to top"),demo:i="false"}=e,c=0,l="true"===i,a=l;return t.$$set=t=>{"alt"in t&&n(0,s=t.alt),"demo"in t&&n(1,i=t.demo)},[s,i,l,r,function(){if("true"===i)return;let t=window.innerHeight+window.scrollY>=document.body.offsetHeight-1;n(2,l=c>window.scrollY&&(document.body.scrollTop>0||document.documentElement.scrollTop>0)&&!t),!l&&a&&r.blur(),a=l,c=window.scrollY},function(t){P[t?"unshift":"push"]((()=>{r=t,n(3,r)}))}]}customElements.define("qc-to-top",tt(class extends et{constructor(t){super(),X(this,t,jt,Ct,s,{alt:0,demo:1})}get alt(){return this.$$.ctx[0]}set alt(t){this.$$set({alt:t}),R()}get demo(){return this.$$.ctx[1]}set demo(t){this.$$set({demo:t}),R()}},{alt:{},demo:{}},[],[],!0))}();
1
+ !function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function i(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s;function c(t,e){return t===e||(s||(s=document.createElement("a")),s.href=e,t===s.href)}function a(t,e,n,i){if(t){const o=u(t,e,n,i);return t[0](o)}}function u(t,n,i,o){return t[1]&&o?e(i.ctx.slice(),t[1](o(n))):i.ctx}function h(t,e,n,i){if(t[2]&&i){const o=t[2](i(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let i=0;i<n;i+=1)t[i]=e.dirty[i]|o[i];return t}return e.dirty|o}return e.dirty}function $(t,e,n,i,o,r){if(o){const l=u(e,n,i,r);t.p(l,o)}}function d(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function g(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function f(t,e){const n={};e=new Set(e);for(const i in t)e.has(i)||"$"===i[0]||(n[i]=t[i]);return n}const p="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function m(t,e){t.appendChild(e)}function b(t,e,n){t.insertBefore(e,n||null)}function x(t){t.parentNode&&t.parentNode.removeChild(t)}function y(t){return document.createElement(t)}function v(t){return document.createTextNode(t)}function T(){return v(" ")}function w(){return v("")}function S(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function L(t){return function(e){return e.preventDefault(),t.call(this,e)}}function k(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const A=["width","height"];function E(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)null==e[i]?t.removeAttribute(i):"style"===i?t.style.cssText=e[i]:"__value"===i?t.value=t[i]=e[i]:n[i]&&n[i].set&&-1===A.indexOf(i)?t[i]=e[i]:k(t,i,e[i])}function C(t,e){e=""+e,t.data!==e&&(t.data=e)}function U(t,e){t.value=null==e?"":e}function _(t,e,n,i){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function q(t,e,n){t.classList.toggle(e,!!n)}class z{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(t=!1){this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var i;this.e||(this.is_svg?this.e=(i=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",i)):this.e=y(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)b(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(x)}}let P;function N(t){P=t}function j(t){(function(){if(!P)throw new Error("Function called outside component initialization");return P})().$$.on_mount.push(t)}function W(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const I=[],B=[];let O=[];const H=[],R=Promise.resolve();let F=!1;function M(t){O.push(t)}const D=new Set;let Q=0;function J(){if(0!==Q)return;const t=P;do{try{for(;Q<I.length;){const t=I[Q];Q++,N(t),Y(t.$$)}}catch(t){throw I.length=0,Q=0,t}for(N(null),I.length=0,Q=0;B.length;)B.pop()();for(let t=0;t<O.length;t+=1){const e=O[t];D.has(e)||(D.add(e),e())}O.length=0}while(I.length);for(;H.length;)H.pop()();F=!1,D.clear(),N(t)}function Y(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M)}}const G=new Set;let K,V;function X(){K={r:0,c:[],p:K}}function Z(){K.r||o(K.c),K=K.p}function tt(t,e){t&&t.i&&(G.delete(t),t.i(e))}function et(t,e,n,i){if(t&&t.o){if(G.has(t))return;G.add(t),K.c.push((()=>{G.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}else i&&i()}function nt(t){return void 0!==t?.length?t:Array.from(t)}function it(t,e){const n={},i={},o={$$scope:1};let r=t.length;for(;r--;){const l=t[r],s=e[r];if(s){for(const t in l)t in s||(i[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[r]=s}else for(const t in l)o[t]=1}for(const t in i)t in n||(n[t]=void 0);return n}function ot(t){return"object"==typeof t&&null!==t?t:{}}function rt(t){t&&t.c()}function lt(t,e,i){const{fragment:l,after_update:s}=t.$$;l&&l.m(e,i),M((()=>{const e=t.$$.on_mount.map(n).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...e):o(e),t.$$.on_mount=[]})),s.forEach(M)}function st(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];O.forEach((i=>-1===t.indexOf(i)?e.push(i):n.push(i))),n.forEach((t=>t())),O=e}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ct(t,e){-1===t.$$.dirty[0]&&(I.push(t),F||(F=!0,R.then(J)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function at(e,n,r,l,s,c,a=null,u=[-1]){const h=P;N(e);const $=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:s,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||h.$$.root};a&&a($.root);let d=!1;if($.ctx=r?r(e,n.props||{},((t,n,...i)=>{const o=i.length?i[0]:n;return $.ctx&&s($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),d&&ct(e,t)),n})):[],$.update(),d=!0,o($.before_update),$.fragment=!!l&&l($.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);$.fragment&&$.fragment.l(t),t.forEach(x)}else $.fragment&&$.fragment.c();n.intro&&tt(e.$$.fragment),lt(e,n.target,n.anchor),J()}N(h)}function ut(t,e,n,i){const o=n[t]?.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!i||!n[t])return e;if("toAttribute"===i)switch(o){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function ht(t,e,n,i,o,r){let l=class extends V{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(l.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(n){n=ut(t,n,e),this.$$d[t]=n,this.$$c?.$set({[t]:n})}})})),i.forEach((t=>{Object.defineProperty(l.prototype,t,{get(){return this.$$c?.[t]}})})),t.element=l,l}"function"==typeof HTMLElement&&(V=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=y("slot"),"default"!==t&&k(e,"name",t)},m:function(t,n){b(t,e,n)},d:function(t){t&&x(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ut(l,r.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)s in this.$$d||void 0===this[s]||(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const i=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=ut(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const c in this.$$l)for(const a of this.$$l[c]){const u=this.$$c.$on(c,a);this.$$l_u.set(a,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ut(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class $t{$$=void 0;$$set=void 0;$destroy(){st(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class dt{static assetsBasePath=document.currentScript.getAttribute("sdg-assets-base-path")||new URL(document.currentScript.src).pathname.split("/").slice(0,-2).join("/")||".";static cssRelativePath=`${this.assetsBasePath}/css/`.replace("//","/");static imagesRelativePath=`${this.assetsBasePath}/img/`.replace("//","/");static cssFileName=document.currentScript.getAttribute("sdg-css-filename")||"qc-sdg.min.css";static cssPath=document.currentScript.getAttribute("sdg-css-path")||this.cssRelativePath+this.cssFileName;static sharedTexts={openInNewTab:{fr:"Ce lien s’ouvrira dans un nouvel onglet.",en:"This link will open in a new tab."}};static getPageLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")||"fr"}static isTruthy(t){return"boolean"==typeof t?t:"string"==typeof t?"true"===t.toLowerCase()||!!parseInt(t):"number"==typeof t&&!!t}}function gt(n){let i,o,r=[{role:"img"},{class:"qc-icon"},{"aria-label":n[1]},{style:o="--img-color:var(--qc-color-"+n[2]+"); --img-width:"+n[3]+"; --img-height:"+n[4]+";"},{"data-img-type":n[0]},n[5],n[6]],l={};for(let t=0;t<r.length;t+=1)l=e(l,r[t]);return{c(){i=y("div"),E(i,l)},m(t,e){b(t,i,e)},p(t,[e]){E(i,l=it(r,[{role:"img"},{class:"qc-icon"},2&e&&{"aria-label":t[1]},28&e&&o!==(o="--img-color:var(--qc-color-"+t[2]+"); --img-width:"+t[3]+"; --img-height:"+t[4]+";")&&{style:o},1&e&&{"data-img-type":t[0]},32&e&&t[5],64&e&&t[6]]))},i:t,o:t,d(t){t&&x(i)}}}function ft(t,n,i){let o;const r=["type","label","size","color","width","height"];let l=f(n,r),{type:s,label:c,size:a="md",color:u="text-primary",width:h="auto",height:$="auto"}=n;return t.$$set=t=>{n=e(e({},n),g(t)),i(6,l=f(n,r)),"type"in t&&i(0,s=t.type),"label"in t&&i(1,c=t.label),"size"in t&&i(7,a=t.size),"color"in t&&i(2,u=t.color),"width"in t&&i(3,h=t.width),"height"in t&&i(4,$=t.height)},t.$$.update=()=>{136&t.$$.dirty&&i(5,o="auto"===h?{"data-img-size":a}:{})},[s,c,u,h,$,o,l,a]}class pt extends $t{constructor(t){super(),at(this,t,ft,gt,l,{type:0,label:1,size:7,color:2,width:3,height:4})}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),J()}get label(){return this.$$.ctx[1]}set label(t){this.$$set({label:t}),J()}get size(){return this.$$.ctx[7]}set size(t){this.$$set({size:t}),J()}get color(){return this.$$.ctx[2]}set color(t){this.$$set({color:t}),J()}get width(){return this.$$.ctx[3]}set width(t){this.$$set({width:t}),J()}get height(){return this.$$.ctx[4]}set height(t){this.$$set({height:t}),J()}}function mt(t){let e,n=t[0],i=t[0]&&bt(t);return{c(){i&&i.c(),e=w()},m(t,n){i&&i.m(t,n),b(t,e,n)},p(t,o){t[0]?n?l(n,t[0])?(i.d(1),i=bt(t),n=t[0],i.c(),i.m(e.parentNode,e)):i.p(t,o):(i=bt(t),n=t[0],i.c(),i.m(e.parentNode,e)):n&&(i.d(1),i=null,n=t[0])},d(t){t&&x(e),i&&i.d(t)}}}function bt(t){let e;return{c(){e=y(t[0])},m(n,i){b(n,e,i),e.innerHTML=t[1]},p(t,n){2&n&&(e.innerHTML=t[1])},d(t){t&&x(e)}}}function xt(t){let e,n,i,o,r,l,s,c,u,g,f,p,v,w;o=new pt({props:{type:t[6],label:t[5],size:"nm"}});let S=t[1]&&mt(t);const L=t[12].default,A=a(L,t,t[11],null);return{c(){e=y("div"),n=y("div"),i=y("div"),rt(o.$$.fragment),r=T(),l=y("div"),s=y("div"),S&&S.c(),c=T(),u=new z(!1),g=T(),A&&A.c(),p=T(),v=y("link"),k(i,"class","qc-icon"),k(n,"class","icon-container"),u.a=g,k(s,"class","content"),k(s,"role",t[4]),k(l,"class","content-container"),k(e,"class",f="qc-component qc-notice qc-"+t[7]),k(e,"tabindex","0"),k(v,"rel","stylesheet"),k(v,"href",dt.cssPath)},m(a,h){b(a,e,h),m(e,n),m(n,i),lt(o,i,null),m(e,r),m(e,l),m(l,s),S&&S.m(s,null),m(s,c),u.m(t[2],s),m(s,g),A&&A.m(s,null),t[13](s),b(a,p,h),b(a,v,h),w=!0},p(t,[n]){const i={};64&n&&(i.type=t[6]),32&n&&(i.label=t[5]),o.$set(i),t[1]?S?S.p(t,n):(S=mt(t),S.c(),S.m(s,c)):S&&(S.d(1),S=null),(!w||4&n)&&u.p(t[2]),A&&A.p&&(!w||2048&n)&&$(A,L,t,t[11],w?h(L,t[11],n,null):d(t[11]),null),(!w||16&n)&&k(s,"role",t[4]),(!w||128&n&&f!==(f="qc-component qc-notice qc-"+t[7]))&&k(e,"class",f)},i(t){w||(tt(o.$$.fragment,t),tt(A,t),w=!0)},o(t){et(o.$$.fragment,t),et(A,t),w=!1},d(n){n&&(x(e),x(p),x(v)),st(o),S&&S.d(),A&&A.d(n),t[13](null)}}}function yt(t,e,n){let i,o,r,l,s,{$$slots:c={},$$scope:a}=e;const u="fr"==dt.getPageLanguage(),h="h2",$="information",d={advice:u?"Avis conseil":"Advisory notice",note:u?"Avis explicatif":"Explanatory notice",information:u?"Avis général":"General notice",warning:u?"Avis d’avertissement":"Warning notice",success:u?"Avis de réussite":"Success notice",error:u?"Avis d’erreur":"Error notice"},g=Object.keys(d);let f,{title:p="",type:m=$,content:b="",header:x=h,icon:y}=e;return t.$$set=t=>{"title"in t&&n(1,p=t.title),"type"in t&&n(8,m=t.type),"content"in t&&n(2,b=t.content),"header"in t&&n(0,x=t.header),"icon"in t&&n(9,y=t.icon),"$$scope"in t&&n(11,a=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty&&n(0,x=x.match(/h[1-6]/)?x:h),256&t.$$.dirty&&n(8,m=g.includes(m)?m:$),256&t.$$.dirty&&n(4,i="success"===m?"status":"error"===m?"alert":null),24&t.$$.dirty&&i&&f){const t=Array.from(f.childNodes);n(3,f.innerHTML="",f),t.forEach((t=>f.appendChild(t)))}256&t.$$.dirty&&n(10,o="advice"===m||"note"===m),1280&t.$$.dirty&&n(7,r=o?"neutral":m),1792&t.$$.dirty&&n(6,l=o?y??"note":m),256&t.$$.dirty&&n(5,s=d[m]??d.information)},[x,p,b,f,i,s,l,r,m,y,o,a,c,function(t){B[t?"unshift":"push"]((()=>{f=t,n(3,f),n(4,i),n(8,m)}))}]}customElements.define("qc-icon",ht(pt,{type:{attribute:"icon"},label:{attribute:"label"},size:{attribute:"size"},color:{attribute:"color"},width:{attribute:"width"},height:{attribute:"height"}},[],[],!1));customElements.define("qc-notice",ht(class extends $t{constructor(t){super(),at(this,t,yt,xt,l,{title:1,type:8,content:2,header:0,icon:9})}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),J()}get type(){return this.$$.ctx[8]}set type(t){this.$$set({type:t}),J()}get content(){return this.$$.ctx[2]}set content(t){this.$$set({content:t}),J()}get header(){return this.$$.ctx[0]}set header(t){this.$$set({header:t}),J()}get icon(){return this.$$.ctx[9]}set icon(t){this.$$set({icon:t}),J()}},{title:{},type:{},content:{},header:{},icon:{}},["default"],[],!0));const vt=t=>({}),Tt=t=>({}),wt=t=>({}),St=t=>({});function Lt(t){let e,n,i;return{c(){e=y("div"),n=y("a"),i=v(t[13]),k(n,"href",t[12]),k(e,"class","go-to-content")},m(t,o){b(t,e,o),m(e,n),m(n,i)},p(t,e){8192&e&&C(i,t[13]),4096&e&&k(n,"href",t[12])},d(t){t&&x(e)}}}function kt(t){let e,n,i;return{c(){e=y("div"),n=y("a"),i=v(t[5]),k(n,"href",t[4]),k(n,"class","title"),k(e,"class","title")},m(t,o){b(t,e,o),m(e,n),m(n,i)},p(t,e){32&e&&C(i,t[5]),16&e&&k(n,"href",t[4])},d(t){t&&x(e)}}}function At(t){let e,n,i,r,l,s=(t[18]?t[15]:t[14])+"";return{c(){e=y("a"),n=y("span"),i=v(s),k(e,"class","qc-search"),k(e,"href","/"),k(e,"role","button")},m(o,s){b(o,e,s),m(e,n),m(n,i),r||(l=[S(e,"click",L(t[23])),S(e,"click",t[16])],r=!0)},p(t,e){311296&e&&s!==(s=(t[18]?t[15]:t[14])+"")&&C(i,s)},d(t){t&&x(e),r=!1,o(l)}}}function Et(t){let e,n,i,o=t[8]&&Ct(t),r=t[10]&&Ut(t);return{c(){e=y("nav"),n=y("ul"),o&&o.c(),i=T(),r&&r.c(),k(e,"aria-label",t[6])},m(t,l){b(t,e,l),m(e,n),o&&o.m(n,null),m(n,i),r&&r.m(n,null)},p(t,l){t[8]?o?o.p(t,l):(o=Ct(t),o.c(),o.m(n,i)):o&&(o.d(1),o=null),t[10]?r?r.p(t,l):(r=Ut(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null),64&l&&k(e,"aria-label",t[6])},d(t){t&&x(e),o&&o.d(),r&&r.d()}}}function Ct(t){let e,n,i;return{c(){e=y("li"),n=y("a"),i=v(t[7]),k(n,"href",t[8])},m(t,o){b(t,e,o),m(e,n),m(n,i)},p(t,e){128&e&&C(i,t[7]),256&e&&k(n,"href",t[8])},d(t){t&&x(e)}}}function Ut(t){let e,n,i;return{c(){e=y("li"),n=y("a"),i=v(t[9]),k(n,"href",t[10])},m(t,o){b(t,e,o),m(e,n),m(n,i)},p(t,e){512&e&&C(i,t[9]),1024&e&&k(n,"href",t[10])},d(t){t&&x(e)}}}function _t(t){let e,n;const i=t[22]["search-zone"],o=a(i,t,t[21],Tt);return{c(){e=y("div"),o&&o.c(),k(e,"class","search-zone")},m(t,i){b(t,e,i),o&&o.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||2097152&e)&&$(o,i,t,t[21],n?h(i,t[21],e,vt):d(t[21]),Tt)},i(t){n||(tt(o,t),n=!0)},o(t){et(o,t),n=!1},d(t){t&&x(e),o&&o.d(t)}}}function qt(t){let e,n,i,o,r,l,s,c,u,g,f,p,v,S,L,A,E,C="true"==t[11]&&Lt(t),U=t[5]&&kt(t),q="true"==t[0]&&At(t);const z=t[22].links,P=a(z,t,t[21],St),N=P||function(t){let e,n=(t[10]||t[8])&&Et(t);return{c(){n&&n.c(),e=w()},m(t,i){n&&n.m(t,i),b(t,e,i)},p(t,i){t[10]||t[8]?n?n.p(t,i):(n=Et(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&x(e),n&&n.d(t)}}}(t);let j=t[18]&&_t(t);return{c(){e=y("div"),n=y("div"),C&&C.c(),i=T(),o=y("div"),r=y("div"),l=y("a"),s=y("div"),c=T(),U&&U.c(),u=T(),g=y("div"),q&&q.c(),f=T(),p=y("div"),N&&N.c(),v=T(),S=y("div"),j&&j.c(),L=T(),A=y("link"),k(s,"role","img"),k(s,"aria-label",t[3]),k(l,"href",t[1]),k(l,"class","logo"),k(l,"target","_blank"),k(l,"rel","noreferrer"),k(r,"class","signature-group"),k(p,"class","links"),k(g,"class","right-section"),k(o,"class","piv-top"),k(S,"class","piv-bottom"),k(n,"class",t[17]),k(e,"role","banner"),k(e,"class","qc-piv-header qc-component"),_(e,"--logo-src","url("+t[2]+")"),k(A,"rel","stylesheet"),k(A,"href",dt.cssPath)},m(t,a){b(t,e,a),m(e,n),C&&C.m(n,null),m(n,i),m(n,o),m(o,r),m(r,l),m(l,s),m(r,c),U&&U.m(r,null),m(o,u),m(o,g),q&&q.m(g,null),m(g,f),m(g,p),N&&N.m(p,null),m(n,v),m(n,S),j&&j.m(S,null),b(t,L,a),b(t,A,a),E=!0},p(t,[o]){"true"==t[11]?C?C.p(t,o):(C=Lt(t),C.c(),C.m(n,i)):C&&(C.d(1),C=null),(!E||8&o)&&k(s,"aria-label",t[3]),(!E||2&o)&&k(l,"href",t[1]),t[5]?U?U.p(t,o):(U=kt(t),U.c(),U.m(r,null)):U&&(U.d(1),U=null),"true"==t[0]?q?q.p(t,o):(q=At(t),q.c(),q.m(g,f)):q&&(q.d(1),q=null),P?P.p&&(!E||2097152&o)&&$(P,z,t,t[21],E?h(z,t[21],o,wt):d(t[21]),St):N&&N.p&&(!E||1984&o)&&N.p(t,E?o:-1),t[18]?j?(j.p(t,o),262144&o&&tt(j,1)):(j=_t(t),j.c(),tt(j,1),j.m(S,null)):j&&(X(),et(j,1,1,(()=>{j=null})),Z()),(!E||131072&o)&&k(n,"class",t[17]),(!E||4&o)&&_(e,"--logo-src","url("+t[2]+")")},i(t){E||(tt(N,t),tt(j),E=!0)},o(t){et(N,t),et(j),E=!1},d(t){t&&(x(e),x(L),x(A)),C&&C.d(),U&&U.d(),q&&q.d(),N&&N.d(t),j&&j.d()}}}function zt(t,e,n){let{$$slots:i={},$$scope:o}=e;const r=dt.getPageLanguage();let{logoUrl:l="/",fullWidth:s="false",logoSrc:c=dt.imagesRelativePath+"QUEBEC_blanc.svg",logoAlt:a=("fr"===r?"Logo du gouvernement du Québec":"Logo of government of Québec"),titleUrl:u="/",titleText:h="",linksLabel:$=("fr"===r?"Navigation PIV":"PIV navigation"),altLanguageText:d=("fr"===r?"English":"Français"),altLanguageUrl:g="",joinUsText:f=("fr"===r?"Nous joindre":"Contact us"),joinUsUrl:p="",goToContent:m="true",goToContentAnchor:b="#main",goToContentText:x=("fr"===r?"Passer au contenu":"Skip to content"),displaySearchText:y=("fr"===r?"Cliquer pour faire une recherche":"Click to search"),hideSearchText:v=("fr"===r?"Masquer la barre de recherche":"Hide search bar"),enableSearch:T="false",showSearch:w="false"}=e;let S="qc-container",L=!1;j((()=>{n(17,S+="true"===s?"-fluid":""),"true"===w&&(n(0,T="true"),n(18,L=!0))}));return t.$$set=t=>{"logoUrl"in t&&n(1,l=t.logoUrl),"fullWidth"in t&&n(19,s=t.fullWidth),"logoSrc"in t&&n(2,c=t.logoSrc),"logoAlt"in t&&n(3,a=t.logoAlt),"titleUrl"in t&&n(4,u=t.titleUrl),"titleText"in t&&n(5,h=t.titleText),"linksLabel"in t&&n(6,$=t.linksLabel),"altLanguageText"in t&&n(7,d=t.altLanguageText),"altLanguageUrl"in t&&n(8,g=t.altLanguageUrl),"joinUsText"in t&&n(9,f=t.joinUsText),"joinUsUrl"in t&&n(10,p=t.joinUsUrl),"goToContent"in t&&n(11,m=t.goToContent),"goToContentAnchor"in t&&n(12,b=t.goToContentAnchor),"goToContentText"in t&&n(13,x=t.goToContentText),"displaySearchText"in t&&n(14,y=t.displaySearchText),"hideSearchText"in t&&n(15,v=t.hideSearchText),"enableSearch"in t&&n(0,T=t.enableSearch),"showSearch"in t&&n(20,w=t.showSearch),"$$scope"in t&&n(21,o=t.$$scope)},[T,l,c,a,u,h,$,d,g,f,p,m,b,x,y,v,function(){L&&document.querySelector('[slot="search-zone"] input')?.focus()},S,L,s,w,o,i,()=>n(18,L=!L)]}customElements.define("qc-piv-header",ht(class extends $t{constructor(t){super(),at(this,t,zt,qt,l,{logoUrl:1,fullWidth:19,logoSrc:2,logoAlt:3,titleUrl:4,titleText:5,linksLabel:6,altLanguageText:7,altLanguageUrl:8,joinUsText:9,joinUsUrl:10,goToContent:11,goToContentAnchor:12,goToContentText:13,displaySearchText:14,hideSearchText:15,enableSearch:0,showSearch:20,focusOnSearchInput:16})}get logoUrl(){return this.$$.ctx[1]}set logoUrl(t){this.$$set({logoUrl:t}),J()}get fullWidth(){return this.$$.ctx[19]}set fullWidth(t){this.$$set({fullWidth:t}),J()}get logoSrc(){return this.$$.ctx[2]}set logoSrc(t){this.$$set({logoSrc:t}),J()}get logoAlt(){return this.$$.ctx[3]}set logoAlt(t){this.$$set({logoAlt:t}),J()}get titleUrl(){return this.$$.ctx[4]}set titleUrl(t){this.$$set({titleUrl:t}),J()}get titleText(){return this.$$.ctx[5]}set titleText(t){this.$$set({titleText:t}),J()}get linksLabel(){return this.$$.ctx[6]}set linksLabel(t){this.$$set({linksLabel:t}),J()}get altLanguageText(){return this.$$.ctx[7]}set altLanguageText(t){this.$$set({altLanguageText:t}),J()}get altLanguageUrl(){return this.$$.ctx[8]}set altLanguageUrl(t){this.$$set({altLanguageUrl:t}),J()}get joinUsText(){return this.$$.ctx[9]}set joinUsText(t){this.$$set({joinUsText:t}),J()}get joinUsUrl(){return this.$$.ctx[10]}set joinUsUrl(t){this.$$set({joinUsUrl:t}),J()}get goToContent(){return this.$$.ctx[11]}set goToContent(t){this.$$set({goToContent:t}),J()}get goToContentAnchor(){return this.$$.ctx[12]}set goToContentAnchor(t){this.$$set({goToContentAnchor:t}),J()}get goToContentText(){return this.$$.ctx[13]}set goToContentText(t){this.$$set({goToContentText:t}),J()}get displaySearchText(){return this.$$.ctx[14]}set displaySearchText(t){this.$$set({displaySearchText:t}),J()}get hideSearchText(){return this.$$.ctx[15]}set hideSearchText(t){this.$$set({hideSearchText:t}),J()}get enableSearch(){return this.$$.ctx[0]}set enableSearch(t){this.$$set({enableSearch:t}),J()}get showSearch(){return this.$$.ctx[20]}set showSearch(t){this.$$set({showSearch:t}),J()}get focusOnSearchInput(){return this.$$.ctx[16]}},{logoUrl:{attribute:"logo-url"},fullWidth:{attribute:"full-width"},logoSrc:{attribute:"logo-src"},logoAlt:{attribute:"logo-alt"},titleUrl:{attribute:"title-url"},titleText:{attribute:"title-text"},linksLabel:{attribute:"links-label"},altLanguageText:{attribute:"alt-language-text"},altLanguageUrl:{attribute:"alt-language-url"},joinUsText:{attribute:"join-us-text"},joinUsUrl:{attribute:"join-us-url"},goToContent:{attribute:"go-to-content"},goToContentAnchor:{attribute:"go-to-content-anchor"},goToContentText:{attribute:"go-to-content-text"},displaySearchText:{attribute:"display-search-text"},hideSearchText:{attribute:"hide-search-text"},enableSearch:{attribute:"enable-search"},showSearch:{attribute:"show-search"}},["links","search-zone"],["focusOnSearchInput"],!0));const Pt=t=>({}),Nt=t=>({});function jt(t,e,n){const i=t.slice();return i[11]=e[n][0],i[12]=e[n][1],i}function Wt(t){let e,n,i;return{c(){e=y("img"),c(e.src,n=t[12])||k(e,"src",n),k(e,"alt",t[3]),k(e,"class",i="qc-"+t[11]+"-theme-show")},m(t,n){b(t,e,n)},p(t,o){6&o&&!c(e.src,n=t[12])&&k(e,"src",n),8&o&&k(e,"alt",t[3]),6&o&&i!==(i="qc-"+t[11]+"-theme-show")&&k(e,"class",i)},d(t){t&&x(e)}}}function It(t){let e,n,i,o,r,l,s,c;const u=t[9].default,g=a(u,t,t[8],null);let f=nt([["light",t[1]],["dark",t[2]]]),p=[];for(let e=0;e<2;e+=1)p[e]=Wt(jt(t,f,e));const w=t[9].copyright,S=a(w,t,t[8],Nt),L=S||function(t){let e,n;return{c(){e=y("a"),n=v(t[4]),k(e,"href",t[7])},m(t,i){b(t,e,i),m(e,n)},p(t,i){16&i&&C(n,t[4]),128&i&&k(e,"href",t[7])},d(t){t&&x(e)}}}(t);return{c(){e=y("div"),g&&g.c(),n=T(),i=y("a");for(let t=0;t<2;t+=1)p[t].c();o=T(),r=y("span"),L&&L.c(),l=T(),s=y("link"),k(i,"href",t[0]),k(i,"class","logo"),_(i,"--logo-width",t[5]),_(i,"--logo-height",t[6]),k(r,"class","copyright"),k(e,"class","qc-piv-footer qc-container-fluid"),k(s,"rel","stylesheet"),k(s,"href",dt.cssPath)},m(t,a){b(t,e,a),g&&g.m(e,null),m(e,n),m(e,i);for(let t=0;t<2;t+=1)p[t]&&p[t].m(i,null);m(e,o),m(e,r),L&&L.m(r,null),b(t,l,a),b(t,s,a),c=!0},p(t,[e]){if(g&&g.p&&(!c||256&e)&&$(g,u,t,t[8],c?h(u,t[8],e,null):d(t[8]),null),14&e){let n;for(f=nt([["light",t[1]],["dark",t[2]]]),n=0;n<2;n+=1){const o=jt(t,f,n);p[n]?p[n].p(o,e):(p[n]=Wt(o),p[n].c(),p[n].m(i,null))}for(;n<2;n+=1)p[n].d(1)}(!c||1&e)&&k(i,"href",t[0]),32&e&&_(i,"--logo-width",t[5]),64&e&&_(i,"--logo-height",t[6]),S?S.p&&(!c||256&e)&&$(S,w,t,t[8],c?h(w,t[8],e,Pt):d(t[8]),Nt):L&&L.p&&(!c||144&e)&&L.p(t,c?e:-1)},i(t){c||(tt(g,t),tt(L,t),c=!0)},o(t){et(g,t),et(L,t),c=!1},d(t){t&&(x(e),x(l),x(s)),g&&g.d(t),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(p,t),L&&L.d(t)}}}function Bt(t,e,n){let{$$slots:i={},$$scope:o}=e;const r=dt.getPageLanguage();let{logoUrl:l="/",logoSrc:s=dt.imagesRelativePath+"/QUEBEC_couleur.svg",logoSrcDarkTheme:c=dt.imagesRelativePath+"/QUEBEC_blanc.svg",logoAlt:a=("fr"===r?"Logo du gouvernement du Québec":"Logo of the Quebec government"),copyrightText:u="© Gouvernement du Québec, "+(new Date).getFullYear(),logoWidth:h=139,logoHeight:$=50,copyrightUrl:d=("fr"===r?"https://www.quebec.ca/droit-auteur":"https://www.quebec.ca/en/copyright")}=e;return t.$$set=t=>{"logoUrl"in t&&n(0,l=t.logoUrl),"logoSrc"in t&&n(1,s=t.logoSrc),"logoSrcDarkTheme"in t&&n(2,c=t.logoSrcDarkTheme),"logoAlt"in t&&n(3,a=t.logoAlt),"copyrightText"in t&&n(4,u=t.copyrightText),"logoWidth"in t&&n(5,h=t.logoWidth),"logoHeight"in t&&n(6,$=t.logoHeight),"copyrightUrl"in t&&n(7,d=t.copyrightUrl),"$$scope"in t&&n(8,o=t.$$scope)},[l,s,c,a,u,h,$,d,o,i]}function Ot(t){let e,n;return e=new pt({props:{type:t[2],size:t[3],color:t[4],"aria-hidden":"true",label:t[1]}}),{c(){rt(e.$$.fragment)},m(t,i){lt(e,t,i),n=!0},p(t,n){const i={};4&n&&(i.type=t[2]),8&n&&(i.size=t[3]),16&n&&(i.color=t[4]),2&n&&(i.label=t[1]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function Ht(t){let n,i,o,r,l,s=t[2]&&Ot(t),c=[{"data-button-size":t[0]},t[5],{class:i="qc-icon-button "+(t[5].class??"")}],a={};for(let t=0;t<c.length;t+=1)a=e(a,c[t]);return{c(){n=y("button"),s&&s.c(),E(n,a)},m(e,i){b(e,n,i),s&&s.m(n,null),n.autofocus&&n.focus(),o=!0,r||(l=S(n,"click",t[6]),r=!0)},p(t,[e]){t[2]?s?(s.p(t,e),4&e&&tt(s,1)):(s=Ot(t),s.c(),tt(s,1),s.m(n,null)):s&&(X(),et(s,1,1,(()=>{s=null})),Z()),E(n,a=it(c,[(!o||1&e)&&{"data-button-size":t[0]},32&e&&t[5],(!o||32&e&&i!==(i="qc-icon-button "+(t[5].class??"")))&&{class:i}]))},i(t){o||(tt(s),o=!0)},o(t){et(s),o=!1},d(t){t&&x(n),s&&s.d(),r=!1,l()}}}function Rt(t,n,i){const o=["size","label","icon","iconSize","iconColor"];let r=f(n,o),{size:l="xl",label:s,icon:c,iconSize:a,iconColor:u}=n;return t.$$set=t=>{n=e(e({},n),g(t)),i(5,r=f(n,o)),"size"in t&&i(0,l=t.size),"label"in t&&i(1,s=t.label),"icon"in t&&i(2,c=t.icon),"iconSize"in t&&i(3,a=t.iconSize),"iconColor"in t&&i(4,u=t.iconColor)},[l,s,c,a,u,r,function(e){W.call(this,t,e)}]}customElements.define("qc-piv-footer",ht(class extends $t{constructor(t){super(),at(this,t,Bt,It,l,{logoUrl:0,logoSrc:1,logoSrcDarkTheme:2,logoAlt:3,copyrightText:4,logoWidth:5,logoHeight:6,copyrightUrl:7})}get logoUrl(){return this.$$.ctx[0]}set logoUrl(t){this.$$set({logoUrl:t}),J()}get logoSrc(){return this.$$.ctx[1]}set logoSrc(t){this.$$set({logoSrc:t}),J()}get logoSrcDarkTheme(){return this.$$.ctx[2]}set logoSrcDarkTheme(t){this.$$set({logoSrcDarkTheme:t}),J()}get logoAlt(){return this.$$.ctx[3]}set logoAlt(t){this.$$set({logoAlt:t}),J()}get copyrightText(){return this.$$.ctx[4]}set copyrightText(t){this.$$set({copyrightText:t}),J()}get logoWidth(){return this.$$.ctx[5]}set logoWidth(t){this.$$set({logoWidth:t}),J()}get logoHeight(){return this.$$.ctx[6]}set logoHeight(t){this.$$set({logoHeight:t}),J()}get copyrightUrl(){return this.$$.ctx[7]}set copyrightUrl(t){this.$$set({copyrightUrl:t}),J()}},{logoUrl:{attribute:"logo-url"},logoSrc:{attribute:"logo-src"},logoSrcDarkTheme:{attribute:"logo-src-dark-theme"},logoAlt:{attribute:"logo-alt"},copyrightText:{attribute:"copyright-text"},logoWidth:{attribute:"logo-width"},logoHeight:{attribute:"logo-height"},copyrightUrl:{attribute:"copyright-url"}},["default","copyright"],[],!0));class Ft extends $t{constructor(t){super(),at(this,t,Rt,Ht,l,{size:0,label:1,icon:2,iconSize:3,iconColor:4})}get size(){return this.$$.ctx[0]}set size(t){this.$$set({size:t}),J()}get label(){return this.$$.ctx[1]}set label(t){this.$$set({label:t}),J()}get icon(){return this.$$.ctx[2]}set icon(t){this.$$set({icon:t}),J()}get iconSize(){return this.$$.ctx[3]}set iconSize(t){this.$$set({iconSize:t}),J()}get iconColor(){return this.$$.ctx[4]}set iconColor(t){this.$$set({iconColor:t}),J()}}function Mt(t){let e,n,i,o,r,l,s,c,u,g;o=new pt({props:{type:"warning"==t[0]?"warning":"information",color:"general"==t[0]?"blue-piv":"yellow-dark",size:"nm",label:t[8]}});const f=t[13].default,p=a(f,t,t[12],null);let v="true"===t[1]&&Dt(t);return{c(){e=y("div"),n=y("div"),i=y("div"),rt(o.$$.fragment),r=T(),l=y("div"),s=new z(!1),c=T(),p&&p.c(),u=T(),v&&v.c(),s.a=c,k(l,"class","qc-alert-content"),k(i,"class","qc-general-alert-elements"),k(n,"class",t[5]),k(e,"class","qc-general-alert "+t[6]),k(e,"role","alert")},m(a,h){b(a,e,h),m(e,n),m(n,i),lt(o,i,null),m(i,r),m(i,l),s.m(t[2],l),m(l,c),p&&p.m(l,null),m(i,u),v&&v.m(i,null),t[14](e),g=!0},p(t,e){const r={};1&e&&(r.type="warning"==t[0]?"warning":"information"),1&e&&(r.color="general"==t[0]?"blue-piv":"yellow-dark"),o.$set(r),(!g||4&e)&&s.p(t[2]),p&&p.p&&(!g||4096&e)&&$(p,f,t,t[12],g?h(f,t[12],e,null):d(t[12]),null),"true"===t[1]?v?(v.p(t,e),2&e&&tt(v,1)):(v=Dt(t),v.c(),tt(v,1),v.m(i,null)):v&&(X(),et(v,1,1,(()=>{v=null})),Z()),(!g||32&e)&&k(n,"class",t[5])},i(t){g||(tt(o.$$.fragment,t),tt(p,t),tt(v),g=!0)},o(t){et(o.$$.fragment,t),et(p,t),et(v),g=!1},d(n){n&&x(e),st(o),p&&p.d(n),v&&v.d(),t[14](null)}}}function Dt(e){let n,i;return n=new Ft({props:{"aria-label":e[7],size:"nm",icon:"clear-input",iconSize:"sm",iconColor:"text-primary"}}),n.$on("click",e[9]),{c(){rt(n.$$.fragment)},m(t,e){lt(n,t,e),i=!0},p:t,i(t){i||(tt(n.$$.fragment,t),i=!0)},o(t){et(n.$$.fragment,t),i=!1},d(t){st(n,t)}}}function Qt(t){let e,n,i,o=!t[4]&&Mt(t);return{c(){o&&o.c(),e=T(),n=y("link"),k(n,"rel","stylesheet"),k(n,"href",dt.cssPath)},m(t,r){o&&o.m(t,r),b(t,e,r),b(t,n,r),i=!0},p(t,[n]){t[4]?o&&(X(),et(o,1,1,(()=>{o=null})),Z()):o?(o.p(t,n),16&n&&tt(o,1)):(o=Mt(t),o.c(),tt(o,1),o.m(e.parentNode,e))},i(t){i||(tt(o),i=!0)},o(t){et(o),i=!1},d(t){t&&(x(e),x(n)),o&&o.d(t)}}}function Jt(t,e,n){let i,o,r,{$$slots:l={},$$scope:s}=e,{type:c="general",maskable:a="",content:u="",hide:h="false",fullWidth:$="false"}=e,d=""!==c?c:"general",g="fr"===dt.getPageLanguage()?"Fermer l’alerte":"Close l’alerte",f="fr"===dt.getPageLanguage()?"Information d'importance élevée":"Information of high importance",p="fr"===dt.getPageLanguage()?"Information importante":"Important information",m="general"===c?p:f;return t.$$set=t=>{"type"in t&&n(0,c=t.type),"maskable"in t&&n(1,a=t.maskable),"content"in t&&n(2,u=t.content),"hide"in t&&n(10,h=t.hide),"fullWidth"in t&&n(11,$=t.fullWidth),"$$scope"in t&&n(12,s=t.$$scope)},t.$$.update=()=>{1024&t.$$.dirty&&n(4,o="true"===h),2048&t.$$.dirty&&n(5,r="qc-container"+("true"===$?"-fluid":""))},[c,a,u,i,o,r,d,g,m,function(){n(10,h="true"),i.dispatchEvent(new CustomEvent("qc.alert.hide",{bubbles:!0,composed:!0}))},h,$,s,l,function(t){B[t?"unshift":"push"]((()=>{i=t,n(3,i)}))}]}ht(Ft,{size:{},label:{},icon:{},iconSize:{},iconColor:{}},[],[],!0);customElements.define("qc-alert",ht(class extends $t{constructor(t){super(),at(this,t,Jt,Qt,l,{type:0,maskable:1,content:2,hide:10,fullWidth:11})}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),J()}get maskable(){return this.$$.ctx[1]}set maskable(t){this.$$set({maskable:t}),J()}get content(){return this.$$.ctx[2]}set content(t){this.$$set({content:t}),J()}get hide(){return this.$$.ctx[10]}set hide(t){this.$$set({hide:t}),J()}get fullWidth(){return this.$$.ctx[11]}set fullWidth(t){this.$$set({fullWidth:t}),J()}},{type:{attribute:"type"},maskable:{attribute:"maskable"},content:{attribute:"content"},hide:{attribute:"hide"},fullWidth:{attribute:"full-width"}},["default"],[],!0));const{window:Yt}=p;function Gt(t){let e,n,i,r,l,s,c,a,u;return n=new pt({props:{type:"arrow-up-white",color:"background"}}),{c(){e=y("a"),rt(n.$$.fragment),i=T(),r=y("span"),l=v(t[0]),k(e,"href","javascript:;"),k(e,"class","qc-to-top"),k(e,"tabindex",s=t[2]?0:-1),k(e,"demo",t[1]),q(e,"visible",t[2])},m(o,s){b(o,e,s),lt(n,e,null),m(e,i),m(e,r),m(r,l),t[5](e),c=!0,a||(u=[S(Yt,"scroll",t[4]),S(e,"click",L(Kt)),S(e,"keydown",Vt)],a=!0)},p(t,[n]){(!c||1&n)&&C(l,t[0]),(!c||4&n&&s!==(s=t[2]?0:-1))&&k(e,"tabindex",s),(!c||2&n)&&k(e,"demo",t[1]),(!c||4&n)&&q(e,"visible",t[2])},i(t){c||(tt(n.$$.fragment,t),c=!0)},o(t){et(n.$$.fragment,t),c=!1},d(i){i&&x(e),st(n),t[5](null),a=!1,o(u)}}}function Kt(){window.scrollTo({top:0,behavior:"smooth"})}function Vt(t){switch(t.code){case"Enter":case"Space":t.preventDefault(),Kt()}}function Xt(t,e,n){const i=dt.getPageLanguage();let o,{text:r=("fr"===i?"Retour en haut":"Back to top"),demo:l="false"}=e,s=0,c="true"===l,a=c;return t.$$set=t=>{"text"in t&&n(0,r=t.text),"demo"in t&&n(1,l=t.demo)},[r,l,c,o,function(){if("true"===l)return;let t=window.innerHeight+window.scrollY>=document.body.offsetHeight-1;n(2,c=s>window.scrollY&&(document.body.scrollTop>0||document.documentElement.scrollTop>0)&&!t),!c&&a&&o.blur(),a=c,s=window.scrollY},function(t){B[t?"unshift":"push"]((()=>{o=t,n(3,o)}))}]}function Zt(e){let n;return{c(){n=y("span"),k(n,"role","img"),k(n,"class","qc-ext-link-img"),k(n,"aria-label",e[0])},m(t,i){b(t,n,i),e[2](n)},p(t,[e]){1&e&&k(n,"aria-label",t[0])},i:t,o:t,d(t){t&&x(n),e[2](null)}}}function te(t,e,n){let i,{externalIconAlt:o=("fr"==dt.getPageLanguage()?"Ce lien dirige vers un autre site.":"This link directs to another site.")}=e;return j((()=>{i.parentElement.querySelectorAll("a").forEach((t=>{const e=document.createTreeWalker(t,NodeFilter.SHOW_ALL,{acceptNode:t=>{if(t instanceof Element){if(t.hasAttribute("hidden"))return NodeFilter.FILTER_REJECT;const e=window.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"absolute"===e.position)return NodeFilter.FILTER_REJECT}return!t instanceof Text?NodeFilter.FILTER_SKIP:/\S/.test(t.textContent)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let n=null;for(;e.nextNode();)n=e.currentNode;if(!n)return;const o=n.textContent.match(/^(.*\s)?(\S+)\s*$/m);if(!o)return;const r=o[1]||"",l=o[2],s=document.createElement("span");s.classList.add("img-wrap"),s.innerHTML=`${l}`,s.appendChild(i),r?(n.textContent=r,n.parentNode.insertBefore(s,n.nextSibling)):n.parentNode.replaceChild(s,n)}))})),t.$$set=t=>{"externalIconAlt"in t&&n(0,o=t.externalIconAlt)},[o,i,function(t){B[t?"unshift":"push"]((()=>{i=t,n(1,i)}))}]}customElements.define("qc-to-top",ht(class extends $t{constructor(t){super(),at(this,t,Xt,Gt,l,{text:0,demo:1})}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),J()}get demo(){return this.$$.ctx[1]}set demo(t){this.$$set({demo:t}),J()}},{text:{attribute:"text",type:"String"},demo:{}},[],[],!1));function ee(t){let e,n;return e=new Ft({props:{type:"button",icon:"clear-input",iconColor:"blue-piv",iconSize:"sm","aria-label":t[2]}}),e.$on("click",t[7]),{c(){rt(e.$$.fragment)},m(t,i){lt(e,t,i),n=!0},p(t,n){const i={};4&n&&(i["aria-label"]=t[2]),e.$set(i)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function ne(t){let n,i,o,r,l,s,c=[{type:"search"},{autocomplete:"off"},t[1]?{"aria-label":t[1]}:{},t[4]],a={};for(let t=0;t<c.length;t+=1)a=e(a,c[t]);let u=t[0]&&ee(t);return{c(){n=y("div"),i=y("input"),o=T(),u&&u.c(),E(i,a),k(n,"class","qc-search-input")},m(e,c){b(e,n,c),m(n,i),i.autofocus&&i.focus(),t[5](i),U(i,t[0]),m(n,o),u&&u.m(n,null),r=!0,l||(s=S(i,"input",t[6]),l=!0)},p(t,[e]){E(i,a=it(c,[{type:"search"},{autocomplete:"off"},2&e&&(t[1]?{"aria-label":t[1]}:{}),16&e&&t[4]])),1&e&&i.value!==t[0]&&U(i,t[0]),t[0]?u?(u.p(t,e),1&e&&tt(u,1)):(u=ee(t),u.c(),tt(u,1),u.m(n,null)):u&&(X(),et(u,1,1,(()=>{u=null})),Z())},i(t){r||(tt(u),r=!0)},o(t){et(u),r=!1},d(e){e&&x(n),t[5](null),u&&u.d(),l=!1,s()}}}function ie(t,n,i){const o=["value","ariaLabel","clearAriaLabel"];let r=f(n,o);const l=dt.getPageLanguage();let s,{value:c,ariaLabel:a=("fr"===l?"Rechercher…":"Search_"),clearAriaLabel:u=("fr"===l?"Effacer le texte":"Clear text")}=n;return t.$$set=t=>{n=e(e({},n),g(t)),i(4,r=f(n,o)),"value"in t&&i(0,c=t.value),"ariaLabel"in t&&i(1,a=t.ariaLabel),"clearAriaLabel"in t&&i(2,u=t.clearAriaLabel)},[c,a,u,s,r,function(t){B[t?"unshift":"push"]((()=>{s=t,i(3,s)}))},function(){c=this.value,i(0,c)},t=>{t.preventDefault(),i(0,c=""),s.focus()}]}customElements.define("qc-external-link",ht(class extends $t{constructor(t){super(),at(this,t,te,Zt,l,{externalIconAlt:0})}get externalIconAlt(){return this.$$.ctx[0]}set externalIconAlt(t){this.$$set({externalIconAlt:t}),J()}},{externalIconAlt:{attribute:"img-alt"}},[],[],!1));class oe extends $t{constructor(t){super(),at(this,t,ie,ne,l,{value:0,ariaLabel:1,clearAriaLabel:2})}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),J()}get ariaLabel(){return this.$$.ctx[1]}set ariaLabel(t){this.$$set({ariaLabel:t}),J()}get clearAriaLabel(){return this.$$.ctx[2]}set clearAriaLabel(t){this.$$set({clearAriaLabel:t}),J()}}function re(t){let n,i,o,r;const l=[t[1]];let s={};for(let t=0;t<l.length;t+=1)s=e(s,l[t]);i=new oe({props:s});let c=function(t){let n,i;const o=[{type:"submit"},{iconColor:t[0]?"blue-piv":"background"},{icon:"loupe-piv-fine"},{iconSize:"md"},t[2]];let r={};for(let t=0;t<o.length;t+=1)r=e(r,o[t]);return n=new Ft({props:r}),{c(){rt(n.$$.fragment)},m(t,e){lt(n,t,e),i=!0},p(t,e){const i=5&e?it(o,[o[0],1&e&&{iconColor:t[0]?"blue-piv":"background"},o[2],o[3],4&e&&ot(t[2])]):{};n.$set(i)},i(t){i||(tt(n.$$.fragment,t),i=!0)},o(t){et(n.$$.fragment,t),i=!1},d(t){st(n,t)}}}(t);return{c(){n=y("div"),rt(i.$$.fragment),o=T(),c&&c.c(),k(n,"class","qc-search-bar"),q(n,"piv-background",t[0])},m(t,e){b(t,n,e),lt(i,n,null),m(n,o),c&&c.m(n,null),r=!0},p(t,[e]){const o=2&e?it(l,[ot(t[1])]):{};i.$set(o),c.p(t,e),(!r||1&e)&&q(n,"piv-background",t[0])},i(t){r||(tt(i.$$.fragment,t),tt(c),r=!0)},o(t){et(i.$$.fragment,t),et(c),r=!1},d(t){t&&x(n),st(i),c&&c.d()}}}function le(t,n,i){const o=["value","name","pivBackground"];let r=f(n,o);const l=dt.getPageLanguage(),s="fr"===l?"Rechercher…":"Search",c="fr"===l?"Lancer la recherche":"Submit search";let{value:a="",name:u="q",pivBackground:h=!1}=n,$={input:{placeholder:s,"aria-label":s},submit:{"aria-label":c}},d={},p={};return t.$$set=t=>{n=e(e({},n),g(t)),i(10,r=f(n,o)),"value"in t&&i(3,a=t.value),"name"in t&&i(4,u=t.name),"pivBackground"in t&&i(0,h=t.pivBackground)},t.$$.update=()=>{var e;i(1,[d,p]=(e=r,["input","submit"].map((t=>{const n=`${t}-`;return{...$[t],...Object.fromEntries(Object.entries(e).map((([t,e])=>t.startsWith(n)?[t.replace(n,""),e]:null)).filter((t=>t)))}}))),d,(i(2,p),i(10,r))),26&t.$$.dirty&&i(1,d={value:a,name:u,...d})},[h,d,p,a,u]}customElements.define("qc-search-input",ht(oe,{value:{},ariaLabel:{attribute:"aria-label"},clearAriaLabel:{attribute:"clear-aria-label"}},[],[],!1));customElements.define("qc-search-bar",ht(class extends $t{constructor(t){super(),at(this,t,le,re,l,{value:3,name:4,pivBackground:0})}get value(){return this.$$.ctx[3]}set value(t){this.$$set({value:t}),J()}get name(){return this.$$.ctx[4]}set name(t){this.$$set({name:t}),J()}get pivBackground(){return this.$$.ctx[0]}set pivBackground(t){this.$$set({pivBackground:t}),J()}},{value:{attribute:"input-value",type:"String"},name:{attribute:"input-name",type:"String"},pivBackground:{attribute:"piv-background",type:"Boolean"}},[],[],!1));window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("qc-dark-theme")}();
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "qc-trousse-sdg",
3
- "version": "1.2.5",
3
+ "version": "1.3.0-develop.1",
4
4
  "description": "Trousse de développement du Système de design gouvernemental du Québec",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "dev": "rollup -c -w",
8
- "build": "rollup -c",
7
+ "dev": "rollup -c -w --bundleConfigAsCjs",
8
+ "build": "rollup -c --bundleConfigAsCjs",
9
9
  "start": "sirv public",
10
10
  "rewrite-bootstrap": "gulp rewriteBs"
11
11
  },
@@ -16,28 +16,33 @@
16
16
  "author": "MCE",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "@rollup/plugin-commonjs": "^24.1.0",
20
- "@rollup/plugin-node-resolve": "^13.3.0",
21
- "@rollup/plugin-replace": "^5.0.1",
19
+ "@rollup/plugin-commonjs": "^28.0.2",
20
+ "@rollup/plugin-node-resolve": "^16.0.0",
21
+ "@rollup/plugin-replace": "^6.0.2",
22
+ "@rollup/plugin-terser": "^0.4.4",
22
23
  "autoprefixer": "^10.4.7",
23
- "del": "^7.0.0",
24
+ "del": "^8.0.0",
24
25
  "highlight.js": "^11.8.0",
25
26
  "js-beautify": "^1.14.7",
26
- "postcss": "^8.4.14",
27
+ "postcss": "^8.5.1",
27
28
  "postcss-replace": "^2.0.0",
28
29
  "pretty": "^2.0.0",
29
30
  "requirejs": "^2.3.7",
30
- "rollup": "^2.75.7",
31
+ "rollup": "^4.34.4",
31
32
  "rollup-plugin-copy": "^3.4.0",
32
- "rollup-plugin-css-only": "^4.3.0",
33
- "rollup-plugin-delete": "^2.0.0",
33
+ "rollup-plugin-css-only": "^4.5.2",
34
+ "rollup-plugin-delete": "^2.1.0",
34
35
  "rollup-plugin-livereload": "^2.0.5",
35
- "rollup-plugin-scss": "^3.0.0",
36
- "rollup-plugin-svelte": "^7.1.5",
37
- "rollup-plugin-terser": "^7.0.2",
38
- "rollup-watch": "^3.2.2",
39
- "sass": "^1.53.0",
40
- "sirv-cli": "^2.0.2",
41
- "svelte": "^4.0.0"
36
+ "rollup-plugin-svelte": "^7.2.2",
37
+ "sass": "^1.84.0",
38
+ "sirv-cli": "^3.0.0",
39
+ "svelte": "^4.2.19"
40
+ },
41
+ "dependencies": {
42
+ "postcss-import": "^16.1.0",
43
+ "postcss-scss": "^4.0.9",
44
+ "rollup-plugin-postcss": "^4.0.2",
45
+ "rollup-plugin-scss": "^4.0.1",
46
+ "svelte-preprocess": "^6.0.3"
42
47
  }
43
48
  }