1import{a as G,b as J}from"./chunk-EAAONWCV.js";import{a as H,b as z}from"./chunk-LZ4XC2TM.js";import"./chunk-REXD3XXG.js";import"./chunk-XZTRQ27X.js";import{b as K,c as j,e as $,f as W}from"./chunk-OVGYRFXU.js";import{i as F,z as X}from"./chunk-MZWCCPRN.js";import{Ic as D,Lb as v,Nb as E,Ob as S,Oc as r,Pc as c,Qb as T,Qc as R,Rb as O,Sb as N,Tb as k,Ub as n,Vb as i,Wb as f,Z as M,ab as A,bc as g,da as x,ea as b,fc as m,gb as t,hc as u,nb as P,pa as I,tc as h,td as V,ub as L,wc as s,xc as C,ya as w,yc as d}from"./chunk-JXIB5BED.js";import{a as y,b as B,e as Y}from"./chunk-J6LPXIX4.js";function Q(o,_){o&1&&(n(0,"span",19),s(1),r(2,"translate"),i()),o&2&&(t(),C(c(2,1,"COOKIE_PANEL.OFF")))}function Z(o,_){o&1&&(n(0,"span",19),s(1),r(2,"translate"),i()),o&2&&(t(),C(c(2,1,"COOKIE_PANEL.OFF")))}function ee(o,_){if(o&1){let e=g();n(0,"div",27)(1,"span"),s(2),n(3,"span",24),s(4),i()(),n(5,"button",28),m("click",function(){let a=x(e).$implicit,p=u(3);return b(p.deleteCookie(a.name))}),f(6,"i",29),i()()}if(o&2){let e=_.$implicit;t(2),d("",e.name," "),t(2),d("\u2022 ",e.domain)}}function te(o,_){if(o&1&&(n(0,"div"),O(1,ee,7,2,"div",27,T),i()),o&2){let e=u(2);t(),N(e.cookiesByCat("prefs"))}}function ie(o,_){o&1&&(n(0,"div",24),s(1),r(2,"translate"),i()),o&2&&(t(),C(c(2,1,"COOKIE_PANEL.NO_PREFS")))}function ne(o,_){if(o&1){let e=g();n(0,"div",27)(1,"span"),s(2),n(3,"span",24),s(4),i()(),n(5,"button",28),m("click",function(){let a=x(e).$implicit,p=u(3);return b(p.deleteCookie(a.name))}),f(6,"i",29),i()()}if(o&2){let e=_.$implicit;t(2),d("",e.name," "),t(2),d("\u2022 ",e.domain)}}function oe(o,_){if(o&1&&(n(0,"div"),O(1,ne,7,2,"div",27,T),i()),o&2){let e=u(2);t(),N(e.cookiesByCat("stats"))}}function ae(o,_){o&1&&(n(0,"div",24),s(1),r(2,"translate"),i()),o&2&&(t(),C(c(2,1,"COOKIE_PANEL.NO_STATS")))}function le(o,_){if(o&1){let e=g();n(0,"div",27)(1,"span"),s(2),n(3,"span",24),s(4),i()(),n(5,"button",28),m("click",function(){let a=x(e).$implicit,p=u(3);return b(p.deleteCookie(a.name))}),f(6,"i",29),i()()}if(o&2){let e=_.$implicit;t(2),d("",e.name," "),t(2),d("\u2022 ",e.domain)}}function se(o,_){if(o&1&&(n(0,"div"),O(1,le,7,2,"div",27,T),i()),o&2){let e=u(2);t(),N(e.cookiesByCat("mkt"))}}function re(o,_){o&1&&(n(0,"div",24),s(1),r(2,"translate"),i()),o&2&&(t(),C(c(2,1,"COOKIE_PANEL.NO_MKT")))}function ce(o,_){if(o&1){let e=g();n(0,"div")(1,"div",10)(2,"strong"),s(3),r(4,"translate"),i(),n(5,"span"),s(6),r(7,"translate"),i()(),n(8,"label",11)(9,"input",12),r(10,"translate"),m("change",function(a){x(e);let p=u();return b(p.prefs=a.target.checked)}),i(),s(11),r(12,"translate"),i(),n(13,"label",11)(14,"input",12),r(15,"translate"),m("change",function(a){x(e);let p=u();return b(p.stats=a.target.checked)}),i(),s(16),r(17,"translate"),i(),n(18,"label",13)(19,"input",12),r(20,"translate"),m("change",function(a){x(e);let p=u();return b(p.mkt=a.target.checked)}),i(),s(21),r(22,"translate"),i(),n(23,"details",14)(24,"summary",15),m("click",function(a){x(e);let p=u();return a.preventDefault(),b(p.toggleDetails())}),n(25,"span"),s(26),r(27,"translate"),i(),f(28,"i",16),i(),n(29,"div",17)(30,"div",18),f(31,"i",16),n(32,"span"),s(33),r(34,"translate"),i(),E(35,Q,3,3,"span",19),i(),n(36,"div",18),f(37,"i",16),n(38,"span"),s(39),r(40,"translate"),i(),E(41,Z,3,3,"span",19),i(),n(42,"div",18),f(43,"i",20),n(44,"span"),s(45),r(46,"translate"),i()()(),n(47,"div",21)(48,"article",22)(49,"h4",23),s(50),r(51,"translate"),i(),E(52,te,3,0,"div")(53,ie,3,3,"div",24),i(),n(54,"article",22)(55,"h4",23),s(56),r(57,"translate"),i(),E(58,oe,3,0,"div")(59,ae,3,3,"div",24),i(),n(60,"article",22)(61,"h4",23),s(62),r(63,"translate"),i(),E(64,se,3,0,"div")(65,re,3,3,"div",24),i()(),n(66,"div",25)(67,"button",7),m("click",function(){x(e);let a=u();return b(a.withdrawAll())}),s(68),r(69,"translate"),i(),n(70,"button",26),m("click",function(){x(e);let a=u();return b(a.showBannerAgain())}),s(71),r(72,"translate"),i()()()()}if(o&2){let e=u();t(3),C(c(4,37,"CONSENT.NECESSARY")),t(3),d(" \u2014 ",c(7,39,"CONSENT.NECESSARY_NOTE")),t(3),k("checked",e.prefs),v("aria-label",c(10,41,"CONSENT.PREFERENCES")),t(2),d(" ",c(12,43,"CONSENT.PREFERENCES")," "),t(3),k("checked",e.stats),v("aria-label",c(1
15,45,"CONSENT.STATISTICS")),t(2),d(" ",c(17,47,"CONSENT.STATISTICS")," "),t(3),k("checked",e.mkt),v("aria-label",c(20,49,"CONSENT.MARKETING")),t(2),d(" ",c(22,51,"CONSENT.MARKETING")," "),t(2),k("open",e.detailsOpen),t(3),C(c(27,53,"CONSENT.SHOW_DETAILS")),t(2),k("ngClass",e.detailsOpen?"pi-chevron-up":"pi-chevron-down"),t(2),h("on",e.stats)("off",!e.stats),t(),k("ngClass",e.stats?"pi-check":"pi-times"),t(2),C(c(34,55,"CONSENT.STATISTICS")),t(2),S(e.stats?-1:35),t(),h("on",e.mkt)("off",!e.mkt),t(),k("ngClass",e.mkt?"pi-check":"pi-times"),t(2),C(c(40,57,"CONSENT.MARKETING")),t(2),S(e.mkt?-1:41),t(4),C(c(46,59,"CONSENT.NECESSARY")),t(5),C(c(51,61,"CONSENT.PREFERENCES")),t(2),S(e.cookiesByCat("prefs").length?52:53),t(4),C(c(57,63,"CONSENT.STATISTICS")),t(2),S(e.cookiesByCat("stats").length?58:59),t(4),C(c(63,65,"CONSENT.MARKETING")),t(2),S(e.cookiesByCat("mkt").length?64:65),t(4),d(" ",c(69,67,"COOKIE_PANEL.WITHDRAW_SHORT")," "),t(3),d(" ",c(72,69,"COOKIE_PANEL.SHOW_BANNER_AGAIN")," ")}}function pe(o,_){o&1&&(n(0,"div")(1,"p"),s(2),r(3,"translate"),i()()),o&2&&(t(2),C(c(3,1,"CONSENT.ABOUT_TEXT")))}var q,ve,de=Y(()=>{V();X();W();z();V();J();W();q=()=>({brand:"Textiaa"});ve=(()=>{class o{consent;tab=I("consent");prefs=!0;stats=!1;mkt=!1;detailsOpen=!1;cookies=I([]);seo=M(H);translate=M(K);ngOnInit(){this.setSeo(),this.translate.onLangChange.subscribe(()=>this.setSeo())}setSeo(){this.seo.setTitle(this.translate.instant("SEO.COOKIES.TITLE")),this.seo.setDescription(this.translate.instant("SEO.COOKIES.DESCRIPTION")),this.seo.setCanonical(),this.seo.setRobotsNoindex()}constructor(e){this.consent=e,w(()=>{let l=this.consent.consent();l&&(this.prefs=l.prefs,this.stats=l.stats,this.mkt=l.mkt)}),this.detailsOpen&&this.refreshDetectedCookies()}toggleDetails(){this.detailsOpen=!this.detailsOpen,this.detailsOpen&&this.refreshDetectedCookies()}acceptAll(){this.consent.acceptAll()}reject(){this.consent.rejectAll()}withdrawAll(){this.consent.rejectAll(),this.cookies().forEach(e=>this.eraseCookie(e.name)),this.refreshDetectedCookies()}saveCustom(){this.consent.saveCustom({prefs:this.prefs,stats:this.stats,mkt:this.mkt})}showBannerAgain(){document.cookie="textiaa_consent=; Max-Age=0; Path=/; SameSite=Lax",this.consent.consent.set(null)}onEsc(){}deleteCookie(e){this.eraseCookie(e),this.refreshDetectedCookies()}cookiesByCat(e){return this.cookies().filter(l=>l.category===e)}refreshDetectedCookies(){let l=this.parseCookies().map(a=>B(y({},a),{category:this.classifyCookie(a.name)})).filter(a=>a.category!=="unknown");this.cookies.set(l)}parseCookies(){return(document.cookie||"").split(";").map(l=>l.trim()).filter(Boolean).map(l=>{let[a,...p]=l.split("=");return{name:a,value:decodeURIComponent(p.join("=")),domain:location.hostname}})}eraseCookie(e){document.cookie=`${e}=; Max-Age=0; Path=/; SameSite=Lax`;let l=location.pathname.split("/").slice(0,-1).join("/")||"/";document.cookie=`${e}=; Max-Age=0; Path=${l}; SameSite=Lax`;let p=location.hostname.split(".");if(p.length>1){let U="."+p.slice(-2).join(".");document.cookie=`${e}=; Max-Age=0; Path=/; Domain=${U}; SameSite=Lax`}}classifyCookie(e){let l=e.toLowerCase();return["_ga","_gid","_gat","_ga_"].some(a=>l.startsWith(a))?"stats":l.startsWith("_gcl_")||l==="_fbp"||l.startsWith("li_")||l.includes("li_fat_id")?"mkt":l.includes("theme")||l.includes("pref")?"prefs":"unknown"}static \u0275fac=function(l){return new(l||o)(P(G))};static \u0275cmp=L({type:o,selectors:[["app-consent-mobile"]],hostBindings:function(l,a){l&1&&m("keydown.escape",function(){return a.onEsc()},A)},decls:31,vars:36,consts:[[1,"section","consent-mobile"],[1,"container"],[1,"title","is-4","mb-2"],[1,"mb-4"],["role","tablist",1,"tabs","is-toggle","is-small","mb-3"],["role","tab",3,"click"],[1,"actions"],["type","button",1,"button","is-danger","is-outlined","is-small",3,"click"],["type","button",1,"button","is-link","is-outlined","is-small",3,"click"],["type","button",1,"button","is-link","is-small",3,"click"],[1,"field","mb-2"],[1,"checkbox","block","mb-2"],["type","checkbox",3,"change","checked"],[1,"checkbox","block"],[1,"cookie-details",3,"open"],[3,"click"],["aria-hidden","true",1,"pi",3,"ngClass"],[1,"cookie-states"],[1,"state"],[1,"pill"],["aria-hidden","true",1,"pi","pi-lock"],[1,"cookie-lists"],[1,"box","is-shadowless","cookie-box"],[1,"is-6"],[1,"muted"],[1,"details-actions"],["type","button",1,"button","is-text","is-small",3,"click"],[1,"cookie-row"],["type","button",1,"button","is-text","is-small","danger-text",3,"click"],["aria-hidden","true",1,"pi","pi-trash"]],template:function(l,a){l&1&&(n(0,"section",0)(1,"div",1)(2,"h1",2),s(3),r(4,"translate"),i(),n(5,"p",3),s(6),r(7,"translate"),i(),n(8,"div",4),r(9,"translate"),n(10,"ul")(11,"li")(12,"a",5),m("click",function(){return a.tab.set("consent")}),s(13),r(14,"translate"),i()(),n(15,"li")(16,"a",5),m("click",function(){return a.tab.set("about")}),s(17),r(18,"translate"),i()()()(),E(19,ce,73,71,"div"),E(20,pe,4,3,"div"),n(21,"div",6)(22,"button",7),m("click",function(){return a.reject()}),s(23),r(24,"translate"),i(),n(25,"button",8),m("click",function(){return a.saveCustom()}),s(26),r(27,"translate"),i(),n(28,"button",9),m("click",function(){return a.acceptAll()}),s(29),r(30,"translate"),i()()()()),l&2&&(t(3),d(" ",c(4,18,"CONSENT.MODAL_TITLE")," "),t(3),d(" ",R(7,20,"CONSENT.MODAL_TEXT",D(35,q))," "),t(2),v("aria-label",c(9,23,"CONSENT.COOKIE_SETTINGS_ARIA")),t(3),h("is-active",a.tab()==="consent"),t(),v("aria-selected",a.tab()==="consent"?"true":"false")("tabindex",a.tab()==="consent"?"0":"-1"),t(),d(" ",c(14,25,"CONSENT.TAB_CONSENT")," "),t(2),h("is-active",a.tab()==="about"),t(),v("aria-selected",a.tab()==="about"?"true":"false")("tabindex",a.tab()==="about"?"0":"-1"),t(),d(" ",c(18,27,"CONSENT.TAB_ABOUT")," "),t(2),S(a.tab()==="consent"?19:-1),t(),S(a.tab()==="about"?20:-1),t(3),d(" ",c(24,29,"CONSENT.REJECT")," "),t(3),d(" ",c(27,31,"CONSENT.ALLOW_SELECTION")," "),t(3),d(" ",c(30,33,"CONSENT.ALLOW_ALL")," "))},dependencies:[F,$,j],styles:['@charset "UTF-8";[_nghost-%COMP%]{--cb-border: var(--bulma-border, #e5e7eb);--cb-text: var(--bulma-text, #363636)}[data-theme=dark][_nghost-%COMP%], [data-theme=dark] [_nghost-%COMP%]{--cb-border: #2a2a2a;--cb-text: var(--text, #e5e7eb)}.consent-mobile[_ngcontent-%COMP%]{padding-top:1.25rem;padding-bottom:5rem}.cookie-details[_ngcontent-%COMP%]{border-top:1px solid var(--cb-border);margin-top:1rem;padding-top:.75rem}.cookie-details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none}.cookie-details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}.cookie-states[_ngcontent-%COMP%]{margin-top:.75rem;display:grid;gap:.35rem}.state[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem}.state.on[_ngcontent-%COMP%]{color:#16a34a}.state.off[_ngcontent-%COMP%]{color:#dc2626}.state[_ngcontent-%COMP%] .pill[_ngcontent-%COMP%]{font-size:.75rem;padding:.1rem .5rem;border-radius:999px;border:1px solid currentColor;opacity:.85}.cookie-lists[_ngcontent-%COMP%]{margin-top:.75rem;display:grid;gap:.75rem}.cookie-box[_ngcontent-%COMP%]{padding:.75rem;border:1px solid var(--cb-border);border-radius:12px}.cookie-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem 0}.muted[_ngcontent-%COMP%]{opacity:.75}.danger-text[_ngcontent-%COMP%]{color:#dc2626}.details-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:space-between;margin-top:.75rem;flex-wrap:wrap}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem;flex-wrap:wrap}@media(max-width:576px){.actions[_ngcontent-%COMP%]{justify-content:stretch}.actions[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{flex:1 1 auto}}'],changeDetection:1})}return o}
1)()});de();export{ve as ConsentMobileComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.