PageSourceSearch

https://www.daniela-moreira.com/_nuxt/C0Q1JbKP.js

js daniela-moreira.com collected 2026-10-02 01:27:38 UTC 10,676 bytes, 141 lines download raw bytes

1import{E as k,be as x,I as f,R as l,c as m,o as d,a as s,V as r,C as y,l as b,m as g,D as v}from"./D2G4-NGQ.js";import{s as C}from"./D1C4sNXN.js";import{s as w}from"./D1UqB3Ml.js";import{s as P}from"./BF_0Vv00.js";import{f as S}from"./ZhWAdK_X.js";import"./CyrISmrK.js";import"./9iqK8ldb.js";import"./Dgjl3wbS.js";var I=`
2    .p-checkbox {
3        position: relative;
4        display: inline-flex;
5        user-select: none;
6        vertical-align: bottom;
7        width: dt('checkbox.width');
8        height: dt('checkbox.height');
9    }
10
11    .p-checkbox-input {
12        cursor: pointer;
13        appearance: none;
14        position: absolute;
15        inset-block-start: 0;
16        inset-inline-start: 0;
17        width: 100%;
18        height: 100%;
19        padding: 0;
20        margin: 0;
21        opacity: 0;
22        z-index: 1;
23        outline: 0 none;
24        border: 1px solid transparent;
25        border-radius: dt('checkbox.border.radius');
26    }
27
28    .p-checkbox-box {
29        display: flex;
30        justify-content: center;
31        align-items: center;
32        border-radius: dt('checkbox.border.radius');
33        border: 1px solid dt('checkbox.border.color');
34        background: dt('checkbox.background');
35        width: dt('checkbox.width');
36        height: dt('checkbox.height');
37        transition:
38            background dt('checkbox.transition.duration'),
39            color dt('checkbox.transition.duration'),
40            border-color dt('checkbox.transition.duration'),
41            box-shadow dt('checkbox.transition.duration'),
42            outline-color dt('checkbox.transition.duration');
43        outline-color: transparent;
44        box-shadow: dt('checkbox.shadow');
45    }
46
47    .p-checkbox-icon {
48        transition-duration: dt('checkbox.transition.duration');
49        color: dt('checkbox.icon.color');
50        font-size: dt('checkbox.icon.size');
51        width: dt('checkbox.icon.size');
52        height: dt('checkbox.icon.size');
53    }
54
55    .p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
56        border-color: dt('checkbox.hover.border.color');
57    }
58
59    .p-checkbox-checked .p-checkbox-box {
60        border-color: dt('checkbox.checked.border.color');
61        background: dt('checkbox.checked.background');
62    }
63
64    .p-checkbox-checked .p-checkbox-icon {
65        color: dt('checkbox.icon.checked.color');
66    }
67
68    .p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
69        background: dt('checkbox.checked.hover.background');
70        border-color: dt('checkbox.checked.hover.border.color');
71    }
72
73    .p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
74        color: dt('checkbox.icon.checked.hover.color');
75    }
76
77    .p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
78        border-color: dt('checkbox.focus.border.color');
79        box-shadow: dt('checkbox.focus.ring.shadow');
80        outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
81        outline-offset: dt('checkbox.focus.ring.offset');
82    }
83
84    .p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
85        border-color: dt('checkbox.checked.focus.border.color');
86    }
87
88    .p-checkbox.p-invalid > .p-checkbox-box {
89        border-color: dt('checkbox.invalid.border.color');
90    }
91
92    .p-checkbox.p-variant-filled .p-checkbox-box {
93        background: dt('checkbox.filled.background');
94    }
95
96    .p-checkbox-checked.p-variant-filled .p-checkbox-box {
97        background: dt('checkbox.checked.background');
98    }
99
100    .p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
101        background: dt('checkbox.checked.hover.background');
102    }
103
104    .p-checkbox.p-disabled {
105        opacity: 1;
106    }
107
108    .p-checkbox.p-disabled .p-checkbox-box {
109        background: dt('checkbox.disabled.background');
110        border-color: dt('checkbox.checked.disabled.border.color');
111    }
112
113    .p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
114        color: dt('checkbox.icon.disabled.color');
115    }
116
117    .p-checkbox-sm,
118    .p-checkbox-sm .p-checkbox-box {
119        width: dt('checkbox.sm.width');
120        height: dt('checkbox.sm.height');
121    }
122
123    .p-checkbox-sm .p-checkbox-icon {
124        font-size: dt('checkbox.icon.sm.size');
125        width: dt('checkbox.icon.sm.size');
126        height: dt('checkbox.icon.sm.size');
127    }
128
129    .p-checkbox-lg,
130    .p-checkbox-lg .p-checkbox-box {
131        width: dt('checkbox.lg.width');
132        height: dt('checkbox.lg.height');
133    }
134
135    .p-checkbox-lg .p-checkbox-icon {
136        font-size: dt('checkbox.icon.lg.size');
137        width: dt('checkbox.icon.lg.size');
138        height: dt('checkbox.icon.lg.size');
139    }
140`,z={root:function(n){var t=n.instance,c=n.props;return["p-checkbox p-component",{"p-checkbox-checked":t.checked,"p-disabled":c.disabled,"p-invalid":t.$pcCheckboxGroup?t.$pcCheckboxGroup.$invalid:t.$invali
140d,"p-variant-filled":t.$variant==="filled","p-checkbox-sm p-inputfield-sm":c.size==="small","p-checkbox-lg p-inputfield-lg":c.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},B=k.extend({name:"checkbox",style:I,classes:z}),_={name:"BaseCheckbox",extends:P,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:B,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function a(e){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a(e)}function A(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){var n=G(e,"string");return a(n)=="symbol"?n:n+""}function G(e,n){if(a(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var c=t.call(e,n);if(a(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function O(e){return F(e)||N(e)||j(e)||$()}function $(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(e,n){if(e){if(typeof e=="string")return h(e,n);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function N(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F(e){if(Array.isArray(e))return h(e)}function h(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,c=Array(n);t<n;t++)c[t]=e[t];return c}var V={name:"Checkbox",extends:_,inheritAttrs:!1,emits:["change","focus","blur","update:indeterminate"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(n){this.d_indeterminate=n,this.updateIndeterminate()}},mounted:function(){this.updateIndeterminate()},updated:function(){this.updateIndeterminate()},methods:{getPTOptions:function(n){var t=n==="root"?this.ptmi:this.ptm;return t(n,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(n){var t=this;if(!this.disabled&&!this.readonly){var c=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,i;this.binary?i=this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?i=c.filter(function(o){return!f(o,t.value)}):i=c?[].concat(O(c),[this.value]):[this.value],this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit("update:indeterminate",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(i,n):this.writeValue(i,n),this.$emit("change",n)}},onFocus:function(n){this.$emit("focus",n)},onBlur:function(n){var t,c;this.$emit("blur",n),(t=(c=this.formField).onBlur)===null||t===void 0||t.call(c,n)},updateIndeterminate:function(){this.$refs.input&&(this.$refs.input.indeterminate=this.d_indeterminate)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var n=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?n===this.trueValue:x(this.value,n)},dataP:function(){return S(A({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant==="filled"},this.size,this.size))}},components:{CheckIcon:C,MinusIcon:w}}
141,q=["data-p-checked","data-p-indeterminate","data-p-disabled","data-p"],L=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid"],E=["data-p"];function D(e,n,t,c,i,o){var u=l("CheckIcon"),p=l("MinusIcon");return d(),m("div",r({class:e.cx("root")},o.getPTOptions("root"),{"data-p-checked":o.checked,"data-p-indeterminate":i.d_indeterminate||void 0,"data-p-disabled":e.disabled,"data-p":o.dataP}),[s("input",r({ref:"input",id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:o.groupName,checked:o.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:n[0]||(n[0]=function(){return o.onFocus&&o.onFocus.apply(o,arguments)}),onBlur:n[1]||(n[1]=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}),onChange:n[2]||(n[2]=function(){return o.onChange&&o.onChange.apply(o,arguments)})},o.getPTOptions("input")),null,16,L),s("div",r({class:e.cx("box")},o.getPTOptions("box"),{"data-p":o.dataP}),[y(e.$slots,"icon",{checked:o.checked,indeterminate:i.d_indeterminate,class:v(e.cx("icon")),dataP:o.dataP},function(){return[o.checked?(d(),b(u,r({key:0,class:e.cx("icon")},o.getPTOptions("icon"),{"data-p":o.dataP}),null,16,["class","data-p"])):i.d_indeterminate?(d(),b(p,r({key:1,class:e.cx("icon")},o.getPTOptions("icon"),{"data-p":o.dataP}),null,16,["class","data-p"])):g("",!0)]})],16,E)],16,q)}V.render=D;export{V as default};

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.