1import{a as q}from"./chunk-EGEBNI4V.js";import{E as K,a as Q,b as U,g as W,o as $}from"./chunk-EBOVR5NW.js";import{Ca as a,Cb as S,Dc as l,Fa as v,Gb as R,Hc as X,Ib as C,Ic as z,Jb as D,Kb as M,Lc as P,Ma as T,Oa as k,Pb as w,Rb as A,Ta as b,Ub as H,X as x,Xb as I,Yb as L,Zc as G,aa as O,bb as E,bc as F,cc as j,dc as B,fb as s,gb as g,jc as V,lb as r,mb as c,nb as i,ob as f,ub as N,ya as y}from"./chunk-HVCWS4IF.js";import{j as d}from"./chunk-KJ7W2O2B.js";var m=class m{template=O(v);name=l(void 0,{alias:"ptTemplate"});};d(m,"\u0275fac",function(n){return new(n||m)();}),d(m,"\u0275dir",k({type:m,selectors:[["","ptTemplate",""]],inputs:{name:[1,"ptTemplate","name"]}}));var u=m;var Z=[[["description"]],[["extra"]]],ee=["description","extra"];function ne(t,e){if(t&1&&(c(0,"span"),I(1),i()),t&2){let n=C();a(),L(n.labelText());}}function te(t,e){if(t&1&&f(0,"span",4),t&2){let n=C();r("innerHTML",n.labelInnerHTML(),y);}}function oe(t,e){t&1&&N(0);}function ae(t,e){if(t&1&&(c(0,"span"),b(1,oe,1,0,"ng-container",10),i()),t&2){let n=C();a(),r("ngTemplateOutlet",n.labelTemplate);}}function ie(t,e){}function le(t,e){t&1&&b(0,ie,0,0,"ng-template");}function ce(t,e){if(t&1&&(c(0,"my-help",5),b(1,le,1,0,null,10),i()),t&2){let n=C();r("tooltipPlacement",n.helpPlacement()),a(),r("ngTemplateOutlet",n.helpTemplate);}}function re(t,e){t&1&&(c(0,"div",6),S(1,0),i());}var p=class p{checked=z(!1);inputName=l(void 0);labelText=l(void 0);labelInnerHTML=l(void 0);helpPlacement=l("top auto");recommended=l(!1,{transform:P});small=l(!1,{transform:P});disabled=!1;describedby;templates=X(u);labelTemplate;helpTemplate;ngAfterContentInit(){{let e=this.templates().find(n=>n.name()==="label");e&&(this.labelTemplate=e.template);}{let e=this.templates().find(n=>n.name()==="help");e&&(this.helpTemplate=e.template);}}propagateChange=e=>{};writeValue(e){this.checked.set(e);}registerOnChange(e){this.propagateChange=e;}registerOnTouched(){}onModelChange(){this.propagateChange(this.checked());}setDisabledState(e){this.disabled=e;}};d(p,"\u0275fac",function(n){return new(n||p)();}),d(p,"\u0275cmp",T({type:p,selectors:[["my-peertube-checkbox"]],contentQueries:function(n,o,_){n&1&&w(_,o.templates,u,4),n&2&&A();},inputs:{checked:[1,"checked"],inputName:[1,"inputName"],labelText:[1,"labelText"],labelInnerHTML:[1,"labelInnerHTML"],helpPlacement:[1,"helpPlacement"],recommended:[1,"recommended"],small:[1,"small"]},outputs:{checked:"checkedChange"},features:[V([{provide:Q,useExisting:x(()=>p),multi:!0}])],ngContentSelectors:ee,decls:15,vars:11,consts:()=>{let e;return e="Recommended",[e,[1,"root","flex-column"],[1,"d-flex","align-items-center"],["type","checkbox",3,"ngModelChange","ngModel","id","disabled"],[3,"innerHTML"],["helpType","custom",3,"tooltipPlacement"],[1,"ms-2","pt-badge","badge-secondary"],[1,"d-flex","flex-column","extra-container"],[1,"wrapper","form-group-description",3,"id"],[1,"wrapper","mt-3"],[4,"ngTemplateOutlet"]];},template:function(n,o){n&1&&(D(Z),c(0,"div",1)(1,"div",2)(2,"label")(3,"input",3),B("ngModelChange",function(h){return j(o.checked,h)||(o.checked=h),h;}),R("ngModelChange",function(){return o.onModelChange();}),i(),f(4,"span"),s(5,ne,2,1,"span")(6,te,1,1,"span",4),s(7,ae,2,1,"span"),i(),s(8,ce,2,2,"my-help",5),s(9,re,2,0,"div",6),i(),c(10,"div",7)(11,"div",8),M(12),i(),c(13,"span",9),M(14,1),i()()()),n&2&&(H("small",o.small()),a(3),F("ngModel",o.checked),r("id",o.inputName())("disabled",o.disabled),E("aria-describedby",o.inputName()+"-description"),a(2),g(o.labelText()?5:o.labelInnerHTML()?6:-1),a(2),g(o.labelTemplate?7:-1),a(),g(o.helpTemplate?8:-1),a(),g(o.recommended()?9:-1),a(2),r("id",o.inputName()+"-description"));},dependencies:[K,U,W,$,G,q],styles:['.root[_ngcontent-%COMP%]{--pt-checkbox-scale: 1;display:flex}.root.small[_ngcontent-%COMP%]{--pt-checkbox-scale: .875}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:calc(16px * var(--pt-checkbox-scale));position:relative}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus + span[_ngcontent-%COMP%]{box-shadow:0 0 0 .2rem var(--fg-100)}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{position:relative;width:calc(20px * var(--pt-checkbox-scale));min-width:calc(20px * var(--pt-checkbox-scale));height:calc(20px * var(--pt-checkbox-scale));border:2px solid var(--fg-400);border-radius:2px;vertical-align:middle;cursor:pointer}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]:after{content:"";position:absolute;top:calc(4px * var(--pt-checkbox-scale));left:calc(6px * var(--pt-checkbox-scale));width:calc(5px * var(--pt-checkbox-scale));height:calc(7px * var(--pt-checkbox-scale));opacity:0;transform:rotate(45deg) scale(0);
1border-right:2px solid var(--input-check-active-fg);border-bottom:2px solid var(--input-check-active-fg)}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]{background:var(--input-check-active-bg);animation:jelly .6s ease}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:before{content:"";width:100%;height:100%;background:var(--input-check-active-bg);position:absolute;left:0;transition:all .2s ease;border:2px solid var(--input-check-active-fg);border-radius:2px}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span[_ngcontent-%COMP%]:after{opacity:1;transform:rotate(45deg) scale(1)}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%] + span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{font-weight:400;cursor:pointer;display:inline;color:var(--fg-350);margin-inline-start:calc(8px * var(--pt-checkbox-scale))}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[disabled][_ngcontent-%COMP%] + span[_ngcontent-%COMP%], .root[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[disabled][_ngcontent-%COMP%] + span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{opacity:.5;cursor:default}.root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.root[_ngcontent-%COMP%] my-help[_ngcontent-%COMP%]{line-height:17px}.root[_ngcontent-%COMP%] .form-group-description[_ngcontent-%COMP%]{margin-top:2px}.root[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%]:empty{display:none}.pt-badge[_ngcontent-%COMP%]{height:fit-content}.extra-container[_ngcontent-%COMP%]{margin-inline-start:calc(1.3rem + .6vw)}@media(min-width:1200px){.extra-container[_ngcontent-%COMP%]{margin-inline-start:1.75rem}}']}));var J=p;export{u as a,J as b};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
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.