qc-trousse-sdg 1.3.0-develop.5 → 1.3.0-develop.6

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.
@@ -1 +1 @@
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")}();
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,"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,6 +1,6 @@
1
1
  {
2
2
  "name": "qc-trousse-sdg",
3
- "version": "1.3.0-develop.5",
3
+ "version": "1.3.0-develop.6",
4
4
  "description": "Trousse de développement du Système de design gouvernemental du Québec",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -744,6 +744,14 @@ select {
744
744
  font: inherit;
745
745
  }
746
746
 
747
+ label {
748
+ font-size: var(--qc-font-size-md);
749
+ line-height: var(--qc-line-height-md);
750
+ font-weight: var(--qc-font-weight-bold);
751
+ display: inline-block;
752
+ margin-bottom: 0.4rem;
753
+ }
754
+
747
755
  .qc-sr-only {
748
756
  position: absolute;
749
757
  width: 1px;
@@ -744,6 +744,14 @@ select {
744
744
  font: inherit;
745
745
  }
746
746
 
747
+ label {
748
+ font-size: var(--qc-font-size-md);
749
+ line-height: var(--qc-line-height-md);
750
+ font-weight: var(--qc-font-weight-bold);
751
+ display: inline-block;
752
+ margin-bottom: 0.4rem;
753
+ }
754
+
747
755
  .qc-sr-only {
748
756
  position: absolute;
749
757
  width: 1px;
@@ -69953,7 +69953,7 @@
69953
69953
  customElements.define("qc-doc-exemple", create_custom_element(Exemple, {"caption":{"attribute":"caption"},"codeTargetId":{"attribute":"code-target-id"},"hideCode":{"attribute":"hide-code","type":"Boolean"},"rawCode":{"attribute":"raw-code"}}, [], [], false));
69954
69954
 
69955
69955
  if (document.getElementById("version")) {
69956
- document.getElementById("version").textContent = `v1.3.0-develop.5`;
69956
+ document.getElementById("version").textContent = `v1.3.0-develop.6`;
69957
69957
  }
69958
69958
 
69959
69959
  // Show maskable "general alert" component
@@ -1880,7 +1880,7 @@
1880
1880
  };
1881
1881
  }
1882
1882
 
1883
- // (111:12) {#if titleText}
1883
+ // (110:12) {#if titleText}
1884
1884
  function create_if_block_5(ctx) {
1885
1885
  let div;
1886
1886
  let a;
@@ -1915,7 +1915,7 @@
1915
1915
  };
1916
1916
  }
1917
1917
 
1918
- // (123:8) {#if enableSearch == 'true'}
1918
+ // (122:8) {#if enableSearch == 'true'}
1919
1919
  function create_if_block_4(ctx) {
1920
1920
  let a;
1921
1921
  let span;
@@ -1967,7 +1967,7 @@
1967
1967
  };
1968
1968
  }
1969
1969
 
1970
- // (134:10) {#if joinUsUrl || altLanguageUrl}
1970
+ // (133:10) {#if joinUsUrl || altLanguageUrl}
1971
1971
  function create_if_block_1$1(ctx) {
1972
1972
  let nav;
1973
1973
  let ul;
@@ -2033,7 +2033,7 @@
2033
2033
  };
2034
2034
  }
2035
2035
 
2036
- // (137:18) {#if altLanguageUrl}
2036
+ // (136:18) {#if altLanguageUrl}
2037
2037
  function create_if_block_3(ctx) {
2038
2038
  let li;
2039
2039
  let a;
@@ -2066,7 +2066,7 @@
2066
2066
  };
2067
2067
  }
2068
2068
 
2069
- // (140:18) {#if joinUsUrl}
2069
+ // (139:18) {#if joinUsUrl}
2070
2070
  function create_if_block_2(ctx) {
2071
2071
  let li;
2072
2072
  let a;
@@ -2099,7 +2099,7 @@
2099
2099
  };
2100
2100
  }
2101
2101
 
2102
- // (133:29)
2102
+ // (132:29)
2103
2103
  function fallback_block$1(ctx) {
2104
2104
  let if_block_anchor;
2105
2105
  let if_block = (/*joinUsUrl*/ ctx[10] || /*altLanguageUrl*/ ctx[8]) && create_if_block_1$1(ctx);
@@ -2137,7 +2137,7 @@
2137
2137
  };
2138
2138
  }
2139
2139
 
2140
- // (151:6) {#if displaySearchForm}
2140
+ // (150:6) {#if displaySearchForm}
2141
2141
  function create_if_block$4(ctx) {
2142
2142
  let div;
2143
2143
  let current;
@@ -2247,7 +2247,6 @@
2247
2247
  attr(div0, "aria-label", /*logoAlt*/ ctx[3]);
2248
2248
  attr(a, "href", /*logoUrl*/ ctx[1]);
2249
2249
  attr(a, "class", "logo");
2250
- attr(a, "target", "_blank");
2251
2250
  attr(a, "rel", "noreferrer");
2252
2251
  attr(div1, "class", "signature-group");
2253
2252
  attr(div2, "class", "links");
@@ -101,7 +101,6 @@ onMount(() => {
101
101
  <div class="signature-group">
102
102
  <a href="{logoUrl}"
103
103
  class="logo"
104
- target="_blank"
105
104
  rel="noreferrer">
106
105
  <div role="img"
107
106
  aria-label="{logoAlt}"
@@ -1,7 +1,14 @@
1
+ @use "qc-sdg-lib" as *;
1
2
  // Inherit fonts for inputs and buttons
2
3
  input,
3
4
  button,
4
5
  textarea,
5
6
  select {
6
7
  font: inherit;
8
+ }
9
+
10
+ label {
11
+ @include content-font('md', 'bold');
12
+ display: inline-block;
13
+ margin-bottom: rem(4);
7
14
  }
@@ -27,7 +27,6 @@
27
27
  }
28
28
 
29
29
  // ruler
30
-
31
30
  @mixin ruler() {
32
31
  margin: token-value(spacer lg) 0;
33
32
  border: 0;