@govbr-ds/core
Version:
Padrão Digital de Governo
1 lines • 232 kB
JavaScript
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("core",[],n):"object"==typeof exports?exports.core=n():t.core=n()}(self,()=>(()=>{var e={"./node_modules/@popperjs/core/lib/popper.js":(e,t,n)=>{function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){var t;return e instanceof i(e).Element||e instanceof Element}function s(e){var t;return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot);var t}n.d(t,{n4:()=>lt});var a=Math.max,c=Math.min,l=Math.round;function d(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function u(){return!/^((?!chrome|android).)*safari/i.test(d())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,c=1;t&&s(e)&&(a=e.offsetWidth>0&&l(r.width)/e.offsetWidth||1,c=e.offsetHeight>0&&l(r.height)/e.offsetHeight||1);var d,h=(o(e)?i(e):window).visualViewport,p=!u()&&n,m=(r.left+(p&&h?h.offsetLeft:0))/a,f=(r.top+(p&&h?h.offsetTop:0))/c,g=r.width/a,b=r.height/c;return{width:g,height:b,top:f,right:m+g,bottom:f+b,left:m,x:m,y:f}}function p(e){var t=i(e),n,o;return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function m(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function f(e){return e!==i(e)&&s(e)?m(e):p(e)}function g(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return h(b(e)).left+p(e).scrollLeft}function y(e){return i(e).getComputedStyle(e)}function A(e){var t=y(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function w(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,i=l(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function S(e,t,n){void 0===n&&(n=!1);var i=s(t),o=s(t)&&w(t),r=b(t),a=h(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==g(t)||A(r))&&(c=f(t)),s(t)?((l=h(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=v(r))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function _(e){var t=h(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function k(e){return"html"===g(e)?e:e.assignedSlot||e.parentNode||(r(e)?e.host:null)||b(e)}function E(e){return["html","body","#document"].indexOf(g(e))>=0?e.ownerDocument.body:s(e)&&A(e)?e:E(k(e))}function L(e,t){var n;void 0===t&&(t=[]);var o=E(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),r=i(o),a=s?[r].concat(r.visualViewport||[],A(o)?o:[]):o,c=t.concat(a);return s?c:c.concat(L(k(a)))}function C(e){return["table","td","th"].indexOf(g(e))>=0}function x(e){return s(e)&&"fixed"!==y(e).position?e.offsetParent:null}function D(e){var t=/firefox/i.test(d()),n,i;if(/Trident/i.test(d())&&s(e)&&"fixed"===y(e).position)return null;var o=k(e);for(r(o)&&(o=o.host);s(o)&&["html","body"].indexOf(g(o))<0;){var a=y(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}function M(e){for(var t=i(e),n=x(e);n&&C(n)&&"static"===y(n).position;)n=x(n);return n&&("html"===g(n)||"body"===g(n)&&"static"===y(n).position)?t:n||D(e)||t}var T="top",I="bottom",q="right",O="left",B="auto",j=[T,I,q,O],P="start",N="end",F="clippingParents",H="viewport",R="popper",Y="reference",U=j.reduce(function(e,t){return e.concat([t+"-"+P,t+"-"+N])},[]),G=[].concat(j,[B]).reduce(function(e,t){return e.concat([t,t+"-"+P,t+"-"+N])},[]),W,z,V,K,$,Z,J,Q,X,ee=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function te(e){var t=new Map,n=new Set,i=[];function o(e){var s;n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function ne(e){var t=te(e);return ee.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function ie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oe(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var se={placement:"bottom",modifiers:[],strategy:"absolute"};function re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function ae(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?se:s;return function e(t,n,s){void 0===s&&(s=r);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},se,r),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],l=!1,d={state:a,setOptions:function e(s){var c="function"==typeof s?s(a.options):s;h(),a.options=Object.assign({},r,a.options,c),a.scrollParents={reference:o(t)?L(t):t.contextElement?L(t.contextElement):[],popper:L(n)};var l=ne(oe([].concat(i,a.options.modifiers)));return a.orderedModifiers=l.filter(function(e){return e.enabled}),u(),d.update()},forceUpdate:function e(){if(!l){var t=a.elements,n=t.reference,i=t.popper;if(re(n,i)){a.rects={reference:S(n,M(i),"fixed"===a.options.strategy),popper:_(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<a.orderedModifiers.length;o++)if(!0!==a.reset){var s=a.orderedModifiers[o],r=s.fn,c=s.options,u=void 0===c?{}:c,h=s.name;"function"==typeof r&&(a=r({state:a,options:u,name:h,instance:d})||a)}else a.reset=!1,o=-1}}},update:ie(function(){return new Promise(function(e){d.forceUpdate(),e(a)})}),destroy:function e(){h(),l=!0}};if(!re(t,n))return d;function u(){a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:a,name:t,instance:d,options:i}),r=function e(){};c.push(s||r)}})}function h(){c.forEach(function(e){return e()}),c=[]}return d.setOptions(s).then(function(e){!l&&s.onFirstUpdate&&s.onFirstUpdate(e)}),d}}var ce=null,le={passive:!0};function de(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,r=void 0===s||s,a=o.resize,c=void 0===a||a,l=i(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(e){e.addEventListener("scroll",n.update,le)}),c&&l.addEventListener("resize",n.update,le),function(){r&&d.forEach(function(e){e.removeEventListener("scroll",n.update,le)}),c&&l.removeEventListener("resize",n.update,le)}}const ue=undefined;function he(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e){var t=e.reference,n=e.element,i=e.placement,o=i?he(i):null,s=i?pe(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case T:c={x:r,y:t.y-n.height};break;case I:c={x:r,y:t.y+t.height};break;case q:c={x:t.x+t.width,y:a};break;case O:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var l=o?me(o):null;if(null!=l){var d="y"===l?"height":"width";switch(s){case P:c[l]=c[l]-(t[d]/2-n[d]/2);break;case N:c[l]=c[l]+(t[d]/2-n[d]/2)}}return c}function ge(e){var t=e.state,n=e.name;t.modifiersData[n]=fe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const be=undefined;var ve={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ye(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:l(n*o)/o||0,y:l(i*o)/o||0}}function Ae(e){var t,n=e.popper,o=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,h=e.isFixed,p=a.x,m=void 0===p?0:p,f=a.y,g=void 0===f?0:f,v="function"==typeof u?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var A=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=O,_=T,k=window;if(d){var E=M(n),L="clientHeight",C="clientWidth",x,D;if(E===i(n)&&"static"!==y(E=b(n)).position&&"absolute"===c&&(L="scrollHeight",C="scrollWidth"),s===T||(s===O||s===q)&&r===N)_=I,g-=(h&&E===k&&k.visualViewport?k.visualViewport.height:E[L])-o.height,g*=l?1:-1;if(s===O||(s===T||s===I)&&r===N)S=q,m-=(h&&E===k&&k.visualViewport?k.visualViewport.width:E[C])-o.width,m*=l?1:-1}var B=Object.assign({position:c},d&&ve),j=!0===u?ye({x:m,y:g},i(n)):{x:m,y:g},P;return m=j.x,g=j.y,l?Object.assign({},B,((P={})[_]=w?"0":"",P[S]=A?"0":"",P.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",P)):Object.assign({},B,((t={})[_]=w?g+"px":"",t[S]=A?m+"px":"",t.transform="",t))}function we(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,c=void 0===a||a,l={placement:he(t.placement),variation:pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ae(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ae(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Se=undefined;function _e(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];s(o)&&g(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})}function ke(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r,a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});s(i)&&g(i)&&(Object.assign(i.style,a),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}}const Ee=undefined;function Le(e,t,n){var i=he(e),o=[O,T].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[O,q].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function Ce(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=void 0===o?[0,0]:o,r=G.reduce(function(e,n){return e[n]=Le(n,t.rects,s),e},{}),a=r[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=r}const xe=undefined;var De={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(e){return e.replace(/left|right|bottom|top/g,function(e){return De[e]})}var Te={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,function(e){return Te[e]})}function qe(e,t){var n=i(e),o=b(e),s=n.visualViewport,r=o.clientWidth,a=o.clientHeight,c=0,l=0;if(s){r=s.width,a=s.height;var d=u();(d||!d&&"fixed"===t)&&(c=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:c+v(e),y:l}}function Oe(e){var t,n=b(e),i=p(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-i.scrollLeft+v(e),l=-i.scrollTop;return"rtl"===y(o||n).direction&&(c+=a(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:c,y:l}}function Be(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&r(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pe(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ne(e,t,n){return t===H?je(qe(e,n)):o(t)?Pe(t,n):je(Oe(b(e)))}function Fe(e){var t=L(k(e)),n,i=["absolute","fixed"].indexOf(y(e).position)>=0&&s(e)?M(e):e;return o(i)?t.filter(function(e){return o(e)&&Be(e,i)&&"body"!==g(e)}):[]}function He(e,t,n,i){var o="clippingParents"===t?Fe(e):[].concat(t),s=[].concat(o,[n]),r=s[0],l=s.reduce(function(t,n){var o=Ne(e,n,i);return t.top=a(o.top,t.top),t.right=c(o.right,t.right),t.bottom=c(o.bottom,t.bottom),t.left=a(o.left,t.left),t},Ne(e,r,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Re(){return{top:0,right:0,bottom:0,left:0}}function Ye(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Ge(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,a=void 0===r?e.strategy:r,c=n.boundary,l=void 0===c?F:c,d=n.rootBoundary,u=void 0===d?H:d,p=n.elementContext,m=void 0===p?R:p,f=n.altBoundary,g=void 0!==f&&f,v=n.padding,y=void 0===v?0:v,A=Ye("number"!=typeof y?y:Ue(y,j)),w=m===R?Y:R,S=e.rects.popper,_=e.elements[g?w:m],k=He(o(_)?_:_.contextElement||b(e.elements.popper),l,u,a),E=h(e.elements.reference),L=fe({reference:E,element:S,strategy:"absolute",placement:s}),C=je(Object.assign({},S,L)),x=m===R?C:E,D={top:k.top-x.top+A.top,bottom:x.bottom-k.bottom+A.bottom,left:k.left-x.left+A.left,right:x.right-k.right+A.right},M=e.modifiersData.offset;if(m===R&&M){var O=M[s];Object.keys(D).forEach(function(e){var t=[q,I].indexOf(e)>=0?1:-1,n=[T,I].indexOf(e)>=0?"y":"x";D[e]+=O[n]*t})}return D}function We(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,r=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?G:c,d=pe(i),u=d?a?U:U.filter(function(e){return pe(e)===d}):j,h=u.filter(function(e){return l.indexOf(e)>=0});0===h.length&&(h=u);var p=h.reduce(function(t,n){return t[n]=Ge(e,{placement:n,boundary:o,rootBoundary:s,padding:r})[he(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function ze(e){if(he(e)===B)return[];var t=Me(e);return[Ie(e),t,Ie(t)]}function Ve(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0===r||r,c=n.fallbackPlacements,l=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,f=n.allowedAutoPlacements,g=t.options.placement,b=he(g),v,y=c||(b===g||!m?[Me(g)]:ze(g)),A=[g].concat(y).reduce(function(e,n){return e.concat(he(n)===B?We(t,{placement:n,boundary:d,rootBoundary:u,padding:l,flipVariations:m,allowedAutoPlacements:f}):n)},[]),w=t.rects.reference,S=t.rects.popper,_=new Map,k=!0,E=A[0],L=0;L<A.length;L++){var C=A[L],x=he(C),D=pe(C)===P,M=[T,I].indexOf(x)>=0,j=M?"width":"height",N=Ge(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:l}),F=M?D?q:O:D?I:T;w[j]>S[j]&&(F=Me(F));var H=Me(F),R=[];if(s&&R.push(N[x]<=0),a&&R.push(N[F]<=0,N[H]<=0),R.every(function(e){return e})){E=C,k=!1;break}_.set(C,R)}if(k)for(var Y,U=function e(t){var n=A.find(function(e){var n=_.get(e);if(n)return n.slice(0,t).every(function(e){return e})});if(n)return E=n,"break"},G=m?3:1;G>0;G--){var W;if("break"===U(G))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}}const Ke=undefined;function $e(e){return"x"===e?"y":"x"}function Ze(e,t,n){return a(e,c(t,n))}function Je(e,t,n){var i=Ze(e,t,n);return i>n?n:i}function Qe(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=void 0===o||o,r=n.altAxis,l=void 0!==r&&r,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.padding,m=n.tether,f=void 0===m||m,g=n.tetherOffset,b=void 0===g?0:g,v=Ge(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:h}),y=he(t.placement),A=pe(t.placement),w=!A,S=me(y),k=$e(S),E=t.modifiersData.popperOffsets,L=t.rects.reference,C=t.rects.popper,x="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,D="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(s){var N,F="y"===S?T:O,H="y"===S?I:q,R="y"===S?"height":"width",Y=E[S],U=Y+v[F],G=Y-v[H],W=f?-C[R]/2:0,z=A===P?L[R]:C[R],V=A===P?-C[R]:-L[R],K=t.elements.arrow,$=f&&K?_(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=Z[F],Q=Z[H],X=Ze(0,L[R],$[R]),ee=w?L[R]/2-W-X-J-D.mainAxis:z-X-J-D.mainAxis,te=w?-L[R]/2+W+X+Q+D.mainAxis:V+X+Q+D.mainAxis,ne=t.elements.arrow&&M(t.elements.arrow),ie=ne?"y"===S?ne.clientTop||0:ne.clientLeft||0:0,oe=null!=(N=null==B?void 0:B[S])?N:0,se,re=Y+te-oe,ae=Ze(f?c(U,Y+ee-oe-ie):U,Y,f?a(G,re):G);E[S]=ae,j[S]=ae-Y}if(l){var ce,le="x"===S?T:O,de="x"===S?I:q,ue=E[k],fe="y"===k?"height":"width",ge=ue+v[le],be=ue-v[de],ve=-1!==[T,O].indexOf(y),ye=null!=(ce=null==B?void 0:B[k])?ce:0,Ae=ve?ge:ue-L[fe]-C[fe]-ye+D.altAxis,we=ve?ue+L[fe]+C[fe]-ye-D.altAxis:be,Se=f&&ve?Je(Ae,ue,we):Ze(f?Ae:ge,ue,f?we:be);E[k]=Se,j[k]=Se-ue}t.modifiersData[i]=j}}const Xe=undefined;var et=function e(t,n){return Ye("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:Ue(t,j))};function tt(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,a=he(n.placement),c=me(a),l,d=[O,q].indexOf(a)>=0?"height":"width";if(s&&r){var u=et(o.padding,n),h=_(s),p="y"===c?T:O,m="y"===c?I:q,f=n.rects.reference[d]+n.rects.reference[c]-r[c]-n.rects.popper[d],g=r[c]-n.rects.reference[c],b=M(s),v=b?"y"===c?b.clientHeight||0:b.clientWidth||0:0,y=f/2-g/2,A=u[p],w=v-h[d]-u[m],S=v/2-h[d]/2+y,k=Ze(A,S,w),E=c;n.modifiersData[i]=((t={})[E]=k,t.centerOffset=k-S,t)}}function nt(e){var t=e.state,n,i=e.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Be(t.elements.popper,o)&&(t.elements.arrow=o)}const it=undefined;function ot(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function st(e){return[T,q,I,O].some(function(t){return e[t]>=0})}function rt(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=Ge(t,{elementContext:"reference"}),a=Ge(t,{altBoundary:!0}),c=ot(r,i),l=ot(a,o,s),d=st(c),u=st(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const at=undefined;var ct,lt=ae({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:de,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:ge,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:we,data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:_e,effect:ke,requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ce},{name:"flip",enabled:!0,phase:"main",fn:Ve,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Qe,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:tt,effect:nt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rt}]})},"./node_modules/flatpickr/dist/esm/utils/polyfills.js":()=>{"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,s=t;o<s.length;o++){var r;i(s[o])}return e})},"./node_modules/flatpickr/dist/l10n/pt.js":function(e,t){!function(e,n){n(t)}(this,function(e){var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até ",time_24hr:!0};t.l10ns.pt=n;var i=t.l10ns;e.Portuguese=n,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})})},"./node_modules/focus-visible/dist/focus-visible.js":function(){!function(e,t){t()}(this,function(){function e(e){var t=!0,n=!1,i=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function r(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!o[t]||e.readOnly)||("TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function l(n){n.metaKey||n.altKey||n.ctrlKey||(s(e.activeElement)&&a(e.activeElement),t=!0)}function d(e){t=!1}function u(e){s(e.target)&&(t||r(e.target))&&a(e.target)}function h(e){s(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),c(e.target))}function p(e){"hidden"===document.visibilityState&&(n&&(t=!0),m())}function m(){document.addEventListener("mousemove",g),document.addEventListener("mousedown",g),document.addEventListener("mouseup",g),document.addEventListener("pointermove",g),document.addEventListener("pointerdown",g),document.addEventListener("pointerup",g),document.addEventListener("touchmove",g),document.addEventListener("touchstart",g),document.addEventListener("touchend",g)}function f(){document.removeEventListener("mousemove",g),document.removeEventListener("mousedown",g),document.removeEventListener("mouseup",g),document.removeEventListener("pointermove",g),document.removeEventListener("pointerdown",g),document.removeEventListener("pointerup",g),document.removeEventListener("touchmove",g),document.removeEventListener("touchstart",g),document.removeEventListener("touchend",g)}function g(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,f())}document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",p,!0),m(),e.addEventListener("focus",u,!0),e.addEventListener("blur",h,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)})},"./src/components/accordion/accordion.js":(e,t,n)=>{n.d(t,{A:()=>o});class i{constructor(e,t){this.name=e,this.component=t,this._setBehavior()}_setBehavior(){for(const e of this.component.querySelectorAll("button.header"))e.addEventListener("click",e=>{this._collapse(e),this._changeIcon(e)})}_collapse(e){if(this.component.hasAttribute("single"))for(const t of this.component.querySelectorAll(".item"))t===e.currentTarget.parentNode?t.hasAttribute("active")?t.removeAttribute("active"):t.setAttribute("active",""):t.hasAttribute("active")&&t.removeAttribute("active");else for(const t of this.component.querySelectorAll(".item"))t===e.currentTarget.parentNode&&(t.hasAttribute("active")?t.removeAttribute("active"):t.setAttribute("active",""))}_changeIcon(){for(const e of this.component.querySelectorAll(".item"))if(e.hasAttribute("active"))for(const t of e.querySelectorAll(".icon"))t.children[0].classList.remove("fa-angle-down"),t.children[0].classList.add("fa-angle-up");else for(const t of e.querySelectorAll(".icon"))t.children[0].classList.remove("fa-angle-up"),t.children[0].classList.add("fa-angle-down")}}const o=i},"./src/components/avatar/avatar.js":(e,t,n)=>{n.d(t,{A:()=>s});var i=n("./src/partial/js/behavior/dropdown.js");class o{constructor(e,t){this.name=e,this.component=t,this._setBehavior()}_setBehavior(){this._setDropdownBehavior()}_setDropdownBehavior(){if("dropdown"===this.component.parentElement.dataset.toggle){const e={iconToHide:"fa-caret-up",iconToShow:"fa-caret-down",trigger:this.component.parentElement,useIcons:!0},t=undefined;new i.default(e).setBehavior()}}}const s=o},"./src/components/breadcrumb/breadcrumb.js":(e,t,n)=>{n.d(t,{A:()=>o});class i{constructor(e,t){this.name=e,this.component=t,this._setBehavior()}_setBehavior(){this._setView(),window.addEventListener("resize",()=>{this._setView()}),window.document.addEventListener("click",e=>{!this.component.contains(e.target)&&this.component.querySelector(".br-card")&&this.component.querySelector(".br-card").remove()})}resetBreadcrumbs(){this._reset();const e=this.component.querySelector(".br-card");null!==e&&e.remove(),this._setView()}_setView(){this._reset();for(const e of this.component.querySelectorAll(".crumb-list")){const t=e.querySelectorAll(".crumb:not([data-active])");window.innerWidth<575?1!==t.length&&(t.forEach(e=>{e.classList.add("d-none")}),this._insertExpandButton()):(e.scrollWidth>e.offsetWidth||t.length>5)&&(t.forEach((e,n)=>{n>0&&n<t.length-1&&e.classList.add("d-none")}),this._insertExpandButton())}}_insertExpandButton(){const e=this._createCrumb(),t=this.component.querySelector(".crumb-list"),n=t.querySelectorAll(".crumb");t.insertBefore(e,n[1]);for(const e of this.component.querySelectorAll('[aria-current="page"]'))e.setAttribute("tabindex","-1")}_reset(){this.component.querySelectorAll(".crumb-list .crumb").forEach(e=>{if(e.classList.contains("menu-mobil")){e.remove();for(const e of this.component.querySelectorAll('[aria-current="page"]'))e.setAttribute("tabindex","0")}else e.classList.remove("d-none")})}_createCrumb(){const e=document.createElement("li");e.classList.add("crumb","menu-mobil"),e.setAttribute("data-toggle","dropdown");const t=document.createElement("button");t.classList.add("br-button","circle"),t.setAttribute("aria-label","Abrir menu Breadcrumb");const n=document.createElement("span");n.classList.add("sr-only"),n.innerHTML="Botão Menu";const i=document.createElement("i");i.classList.add("fas","fa-folder-plus");const o=document.createElement("i");return o.classList.add("icon","fas","fa-chevron-right"),e.appendChild(o),e.appendChild(t),t.appendChild(n),t.appendChild(i),e.addEventListener("click",()=>{let e=this.component.querySelector(".br-card");e?(i.classList.remove("fas","fa-folder-minus"),i.classList.add("fas","fa-folder-plus"),t.setAttribute("aria-label","Breadcrumb menu fechado"),this.component.querySelector(".br-card").remove()):(i.classList.remove("fas","fa-folder-plus"),i.classList.add("fas","fa-folder-minus"),t.setAttribute("aria-label","Breadcrumb menu aberto"),e=this._createList(),this.component.appendChild(e))}),e}_createList(){const e=document.createElement("nav");return e.classList.add("br-card"),this.component.querySelectorAll(".crumb-list .crumb").forEach(t=>{if(t.classList.contains("d-none")){const n=document.createElement("div");n.classList.add("br-item"),t.classList.contains("home")||(n.appendChild(t.querySelector("a").cloneNode(!0)),e.appendChild(n))}}),e}}const o=i},"./src/components/card/card.js":(e,t,n)=>{n.d(t,{A:()=>s});var i=n("./src/partial/js/behavior/collapse.js");class o{constructor(e,t,n){this.name=e,this.component=t,this.component.setAttribute("id",`card${n}`),this._setBehavior()}_setBehavior(){this._setFlipBehavior(),this._setDragBehavior(),this._setDisableBehavior(),this._collpaseBehavior()}_collpaseBehavior(){this.component.querySelectorAll('[data-toggle="collapse"]').forEach(e=>{const t={iconToHide:"fa-chevron-up",iconToShow:"fa-chevron-down",trigger:e,useIcons:!0},n=undefined;new i.default(t).setBehavior()})}_setDisableBehavior(){if(this.component.classList.contains("disabled")){this.component.setAttribute("aria-hidden","true");const e=this.component.querySelectorAll("button"),t=this.component.querySelectorAll("input"),n=this.component.querySelectorAll("select"),i=this.component.querySelectorAll("textarea");for(const t of e)t.setAttribute("disabled","disabled");for(const e of t)e.setAttribute("disabled","disabled");for(const e of n)e.setAttribute("disabled","disabled");for(const e of i)e.setAttribute("disabled","disabled")}}_setFlipBehavior(){for(const e of this.component.querySelectorAll("button.flip"))e.addEventListener("click",()=>{"off"===this.component.getAttribute("flipped")?this.component.setAttribute("flipped","on"):this.component.setAttribute("flipped","off")})}_setDragBehavior(){for(const e of this.component.querySelectorAll("img"))e.setAttribute("draggable","false");for(const e of this.component.querySelectorAll("a"))e.setAttribute("draggable","false");this.component.addEventListener("dragstart",e=>{e.stopPropagation(),e.dataTransfer.setData("text/plain",this.component.getAttribute("id")),e.dropEffect="move"})}}const s=o},"./src/components/carousel/carousel.js":(e,t,n)=>{n.d(t,{A:()=>r});var i=n("./src/partial/js/behavior/swipe.js"),o=n("./src/components/step/step.js");class s{constructor(e,t){this.name=e,this.component=t,this.activeStageNum=0,this.DOMstrings={carouselNextBtn:this.component.querySelector(".carousel-btn-next"),carouselPages:this.component.querySelectorAll(".carousel-page"),carouselPrevBtn:this.component.querySelector(".carousel-btn-prev"),carouselStage:this.component.querySelector(".carousel-stage"),circular:this.component.hasAttribute("data-circular"),step:this.component.querySelector(".br-step")},this.step=new o.A("br-step",this.DOMstrings.step),this._setBehavior()}removeAttributes(e,t){e.forEach(e=>{e.removeAttribute(t)})}getActiveStep(){return this.step.activeStepNum}setActiveStep(e){this.step.setActiveStep(e)}getActiveStage(){let e;return this.DOMstrings.carouselPages.forEach(t=>{t.hasAttribute("active")&&(e=t)}),e}setActiveStage(e){this.removeAttributes(this.DOMstrings.carouselPages,"active"),this.DOMstrings.carouselPages.forEach((t,n)=>{t.style.left=n>e?"100%":"-100%",n===e&&(t.setAttribute("active",""),this.activeStageNum=e)}),this.disabledBtns()}disabledBtns(){this.DOMstrings.circular||(0===this.activeStageNum?this.DOMstrings.carouselNextBtn&&(document.activeElement==this.DOMstrings.carouselPrevBtn&&this.DOMstrings.carouselNextBtn.focus(),this.DOMstrings.carouselPrevBtn.setAttribute("disabled","")):this.DOMstrings.carouselPrevBtn.removeAttribute("disabled"),this.activeStageNum===this.DOMstrings.carouselPages.length-1?this.DOMstrings.carouselNextBtn&&(document.activeElement==this.DOMstrings.carouselNextBtn&&this.DOMstrings.carouselPrevBtn.focus(),this.DOMstrings.carouselNextBtn.setAttribute("disabled","")):this.DOMstrings.carouselNextBtn.removeAttribute("disabled"))}shiftPage(e){const t=this.getActiveStage(),n=this.DOMstrings.carouselPages.length-1;let i=Array.from(this.DOMstrings.carouselPages).indexOf(t);e<0?this.DOMstrings.circular?i=0===i?n:i-=1:i-=0===i?0:1:this.DOMstrings.circular?i=i===n?0:i+=1:i+=i===n?0:1,this.setActiveStep(i),this.setActiveStage(i)}_setBehavior(){this.DOMstrings.carouselNextBtn.addEventListener("click",()=>{this.shiftPage(1)}),this.DOMstrings.carouselPrevBtn.addEventListener("click",()=>{this.shiftPage(-1)}),this.DOMstrings.step.addEventListener("click",()=>{this.setActiveStage(this.step.activeStepNum)});const e=new i.A(this.DOMstrings.carouselStage);e.on("SWIPE_LEFT",()=>{this.shiftPage(1)}),e.on("SWIPE_RIGHT",()=>{this.shiftPage(-1)}),this.disabledBtns()}}const r=s},"./src/components/checkbox/checkbox.js":(e,t,n)=>{n.d(t,{A:()=>s});var i=n("./src/partial/js/behavior/checkgroup.js");class o{constructor(e,t){this.name=e,this.component=t,this._setBehavior()}_setBehavior(){this._setCheckgroupBehavior()}_setCheckgroupBehavior(){this.component.querySelectorAll('input[type="checkbox"][data-parent]').forEach(e=>{const t=undefined;new i.default(e).setBehavior()})}}const s=o},"./src/components/cookiebar/cookiebar-data.js":(e,t,n)=>{n.d(t,{CookiebarData:()=>i});class i{constructor(e,t){this.PRIORITY_LEVELS=5,Object.assign(this,this._filterByLang(e,t)),this._setDataCoherenceByPriority(this.PRIORITY_LEVELS)}_filterByLang(e,t){const n=JSON.parse(e),i=n.filter(e=>e.lang===t);return i.length>0?i[0]:n[0]}_setDataCoherenceByPriority(){this.selectAll=!this.allOptOut||this.selectAll,this.cookieGroups.forEach(e=>{e.groupOptOut=!!this.allOptOut&&e.groupOptOut,e.groupSelected=!(!this.selectAll&&e.groupOptOut)||e.groupSelected,e.cookieList.forEach(t=>{t.cookieOptOut=!!e.groupOptOut&&t.cookieOptOut,t.cookieSelected=e.groupSelected||!t.cookieOptOut?e.groupSelected:t.cookieSelected})}),this._setIndeterminateState()}_setIndeterminateState(){this._setGroupIndeterminateState(),this._setAllIndeterminateState()}_setGroupIndeterminateState(){this.cookieGroups.forEach(e=>{let t=!0,n=!0;e.cookieList.forEach(e=>{e.cookieSelected?n=!1:t=!1}),e.groupSelected=!!t||!n,e.groupIndeterminated=!t&&!n})}_setAllIndeterminateState(){let e=!0,t=!0,n=!1;this.cookieGroups.forEach(i=>{i.groupSelected?t=!1:e=!1,i.groupIndeterminated&&(n=!0)}),this.selectAll=!!e||!t,this.allIndeterminated=!!n||!e&&!t}getCookiesCheckedAmount(e){let t=0;return e.cookieList.forEach(e=>{e.cookieSelected&&(t+=1)}),t}getCookiesAmount(e){let t=0;return e.cookieList.forEach(()=>{t+=1}),t}static loadJSON(e,t){const n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",e,!0),n.onreadystatechange=()=>{4===n.readyState&&200===n.status&&t(n.responseText)},n.send(null)}}},"./src/components/cookiebar/cookiebar-labels.js":(e,t,n)=>{n.d(t,{CookiebarLabels:()=>i});class i{constructor(e){this.data=e}setLastUpdateLabel(){return this.data.lastUpdateLabel||"Última atualização"}setCookieGroupsLabel(){return this.data.cookieGroupsLabel||"Classes de cookies"}setUnselectAllLabel(){return this.data.unselectAllLabel||"Desselecionar tudo"}setSelectAllLabel(){return this.data.selectAllLabel||"Selecionar tudo"}setCheckAllLabel(){return this.data.selectAll&&!this.data.allIndeterminated?this.setUnselectAllLabel():this.setSelectAllLabel()}setUnselectAllGroupLabel(){return this.data.unselectAllGroupLabel||"Desselecionar toda classe"}setSelectAllGroupLabel(){return this.data.selectAllGroupLabel||"Selecionar toda classe"}setCheckGroupLabel(e){return e.groupSelected&&!e.groupIndeterminated?this.setUnselectAllGroupLabel():this.setSelectAllGroupLabel()}setAlwaysActiveLabel(){return this.data.alwaysActiveLabel||"Sempre ativo"}setCheckCookieEnabledLabel(){return this.data.onLabel||"Ligado"}setCheckCookieDisabledLabel(){return this.data.offLabel||"Desligado"}setCookieNameLabel(){return this.data.cookieNameLabel||"Cookies"}setCookieExpiresLabel(){return this.data.expiresLabel||"Vencimento"}setCookieDomainLabel(){return this.data.domainLabel||"Domínio"}setCookieEnterpriseLabel(){return this.data.enterpriseLabel||"Empresa"}setCookiePurposeLabel(){return this.data.purposeLabel||"Finalidade"}setCookieDescriptionLabel(){return this.data.descriptionLabel||"Descrição"}setPoliticsButtonLabel(){return this.data.allOptOut?this.data.optOutButton||"Definir Cookies":this.data.optInButton||"Ver Política de Cookies"}setAcceptButtonLabel(){return this.data.acceptButton||"Aceitar"}}},"./src/components/cookiebar/cookiebar-templates.js":(e,t,n)=>{n.d(t,{CookiebarTemplates:()=>o});var i=n("./src/components/cookiebar/cookiebar-labels.js");class o{constructor(e){this.data=e,this.labels=new i.CookiebarLabels(this.data)}setGlobalContentArea(){return`<div class="br-modal">\n <div class="br-card" id="card0">\n <div class="container-fluid p-1 p-2xh">\n <div class="wrapper p-2xh">\n ${this._setIntroductoryContentArea()}\n <div id="info-t" class="br-modal-body">\n ${this._setInfoText()}\n ${this._setMainContentArea()}\n ${this._setComplementaryContentArea()}\n </div>\n </div>\n ${this._setActionArea()}\n </div>\n </div>\n </div>`}_setIntroductoryContentArea(){return`<div class="br-modal-header entry-content">\n ${this._setMainTitle()}\n ${this._setLastUpdate()}\n ${this._setEntryText()}\n </div>`}_setMainContentArea(){return`<div class="br-list main-content">\n ${this._setMainContentHeader()}\n ${this._setCookieGroups()}\n ${this.data.noteList&&this.data.noteList.length?this._setNotifications():""}\n </div>`}_setActionArea(){return`<div class="br-modal-footer actions justify-content-end">\n ${this._setPoliticsButton()}\n ${this._setAcceptButton()}\n </div>`}_setMainTitle(){return`<div class="br-modal-title">\n <div class="row">\n <div class="col-sm">\n <h1>${this.data.mainTitle}</h1>\n </div>\n <div class="col-sm-auto order-first order-sm-last">\n ${this._setCloseButton()}\n </div>\n </div>\n </div>`}_setLastUpdate(){return`<p class="last-update">${this.labels.setLastUpdateLabel()}: <span>${this.data.lastUpdate}</span></p>`}_setEntryText(){return`<p class="entry-text">${this.data.entryText}</p>`}_setInfoText(){return`<p class="info-text">${this.data.infoText}</p>`}_setMainContentHeader(){return`<div class="header">\n <div class="row justify-content-between flex-fill">\n <div class="col-12 col-sm align-self-center mb-2">\n <div class="title">${this.labels.setCookieGroupsLabel()}</div>\n </div>\n <div class="col-12 align-self-center">\n ${this.data.allOptOut?this._setCheckAll():""}\n </div>\n <div class="col-12 text-sm-right message mt-1">\n ${this.setAllAlertMessage()}\n </div>\n </div>\n </div>`}_setCookieGroups(){let e="";return this.data.cookieGroups.forEach((t,n)=>{e+=`<hr>\n <div class="br-item group-info">\n <div class="row mb-1">\n <div class="col-12 col-sm align-self-center order-4 order-sm-1">\n ${this._setGroupName(t)}\n </div>\n <div class="col align-self-center order-1 order-sm-2">\n ${t.groupOptOut?this._setCheckGroup(t,n):`<span class="always-active float-sm-right">\n ${this.labels.setAlwaysActiveLabel()}\n </span>`}\n </div>\n <div class="col col-sm-auto align-self-center order-2 order-sm-3">\n ${this._setGroupButton(t.groupName)}\n </div>\n <div class="col-12 col-sm-12 order-3 order-sm-4 text-sm-right message mt-1 mb-1">\n ${this.setGroupAlertMessage(t)}\n </div>\n </div>\n <div class="row">\n <div class="col">\n <p class="group-description">${this._setGroupDescription(t)}</p>\n </div>\n </div>\n </div>\n <div class="br-list cookie-info">\n <div class="br-item">\n <div class="row">\n <div class="col">\n ${this._setCookieInfo(t,n)}\n </div>\n </div>\n </div>\n </div>`}),e}_setGroupName(e){return`<span class="group-name" title="Expandir">${e.groupName}</span>\n <span class="cookies-checked" title="Expandir">(${e.groupOptOut?`${this.data.getCookiesCheckedAmount(e)} de `:""}</span><span class="group-size" title="Expandir">${this.data.getCookiesAmount(e)})</span>`}_setGroupDescription(e){return`<p class="group-description">${e.groupText}</p>`}_setCookieInfo(e,t){let n="";return e.cookieList.forEach((e,i)=>{n+=`<div class="br-card">\n <div class="card-content">\n <div class="row mb-1">\n <div class="col-12 text-right">\n ${e.cookieOptOut?this._setCheckCookie(t,e,i):""}\n </div>\n <div class="col-12 message text-right mb-1 mt-1">\n ${this.setCookieAlertMessage(e)}\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookieNameLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.cookieName}</span>\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookieExpiresLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.expires}</span>\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookieDomainLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.domain}</span>\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookieEnterpriseLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.enterprise}</span>\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookiePurposeLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.purpose}</span>\n </div>\n </div>\n <div class="row">\n <div class="fixed-width cookie-term">\n <span>${this.labels.setCookieDescriptionLabel()}</span>\n </div>\n <div class="col-12 col-sm mb-1 cookie-data">\n <span>${e.description}</span>\n </div>\n </div>\n </div>\n </div>`}),n}_setNotifications(){return`<hr>\n <div class="br-item">\n <div class="row">\n <div class="col align-self-center">\n <span class="group-name" title="Expandir">\n ${this.data.noteTitle}</span>\n </div>\n <div class="col-auto">\n ${this._setGroupButton(this.data.noteTitle)}\n </div>\n </div>\n </div>\n <div class="br-list">\n ${this._setNotificationInfo()}\n </div>\n <hr>`}_setNotificationInfo(){let e="";return this.data.noteList.forEach(t=>{e+=`<div class="br-item notes">\n <div class="row">\n <div class="col">\n <p>${t.question}</p>\n <p>${t.answer}</p>\n </div>\n </div>\n </div>`}),e}_setComplementaryContentArea(){return`<div class="br-list complementary-content">\n ${this._setLinkInfo()}\n </div>`}_setLinkInfo(){let e="";return this.data.links.forEach(t=>{const n=t.target?' target="${linkData.target}"':"";e+=`<div class="br-item text-center">\n <div class="row">\n <div class="col">\n <a href="${t.url}"${n}>${t.name}<i class="fas fa-external-link-alt" aria-hidden="true"></i>\n </a>\n </div>\n </div>\n </div>`}),e}_setPoliticsButton(){return`<button class="br-button secondary small" type="button" aria-label="${this.labels.setPoliticsButtonLabel()}">${this.labels.setPoliticsButtonLabel()}</button>`}_setAcceptButton(){return`<button class="br-button primary small" type="button" aria-label="${this.labels.setAcceptButtonLabel()}">${this.labels.setAcceptButtonLabel()}</button>`}_setCloseButton(){return`<button class="br-button close circle small float-right" type="button" data-dismiss="br-modal" aria-label="${this.data.closeLabel||"fechar"}">\n <i class="fas fa-times"></i>\n </button>`}_setGroupButton(e){return`<button class="br-button circle small float-right" type="button" aria-label="Expandir grupo de Cookies ${e}">\n <i class="fas fa-angle-down" aria-hidden="true"></i>\n </button>`}_setCheckAll(){return`<div class="br-checkbox">\n <input\n id="check-all"\n name="check-all"\n type="checkbox" \n aria-label="${this.labels.setCheckAllLabel()}"\n ${this.data.selectAll?"checked":""}\n ${this.data.allIndeterminated?"indeterminate":""}\n data-parent="check-all"\n data-checked-label="${this.labels.setSelectAllLabel()}"\n data-unchecked-label="${this.labels.setUnselectAllLabel()}"\n />\n <label for="check-all">\n ${this.labels.setCheckAllLabel()}\n </label>\n </div>`}_setCheckGroup(e,t){return`<div class="br-checkbox">\n <input\n id="check-group-${t}"\n name="check-group-${t}"\n type="checkbox" \n aria-label="${this.labels.setCheckGroupLabel(e)}"\n ${e.groupSelected?"checked":""}\n ${e.groupIndeterminated?"indeterminate":""}\n data-child="check-all"\n data-parent="check-group-${t}"\n data-checked-label="${this.labels.setSelectAllGroupLabel()}"\n data-unchecked-label="${this.labels.setUnselectAllGroupLabel()}"\n />\n <label for="check-group-${t}">\n ${this.labels.setCheckGroupLabel(e)}\n </label>\n </div>`}_setCheckCookie(e,t,n){return`<div class="br-switch small icon">\n <input\n id="check-cookie-${e}-${n}"\n name="check-cookie-${e}-${n}"\n type="checkbox"\n role="switch"\n ${t.cookieSelected?"checked":""}\n data-child="check-group-${e}"\n />\n <label\n for="check-cookie-${e}-${n}"\n aria-label="${t.cookieSelected?this.labels.setCheckCookieEnabledLabel():this.labels.setCheckCookieDisabledLabel()}">\n </label>\n <