1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9ecc4665-f075-46a7-8dc5-28085d795fc3`,e._sentryDebugIdIdentifier=`sentry-dbid-9ecc4665-f075-46a7-8dc5-28085d795fc3`)}catch{}})();import{n as e}from"./TDXjjWaw.js";import{Dt as t,J as n,N as r,U as i,_ as a,g as o,q as s,v as c,y as l}from"./CWTKM9QU.js";import{Dt as u,St as d,r as f}from"./DVCXu6AE.js";import{t as p}from"./E_7lyYyV.js";import{t as m}from"./CEPVPXJi.js";import{t as h}from"./D62Rftr0.js";import{t as g}from"./owrRAogo.js";var _=f.extend({name:`checkbox`,style:` 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`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-checkbox p-component`,{"p-checkbox-checked":t.checked,"p-disabled":n.disabled,"p-invalid":t.$pcCheckboxGroup?t.$pcCheckboxGroup.$invalid:t.$invali
140d,"p-variant-filled":t.$variant===`filled`,"p-checkbox-sm p-inputfield-sm":n.size===`small`,"p-checkbox-lg p-inputfield-lg":n.size===`large`}]},box:`p-checkbox-box`,input:`p-checkbox-input`,icon:`p-checkbox-icon`}}),v=e({default:()=>A}),y={name:`BaseCheckbox`,extends:m,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:_,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function b(e){"@babel/helpers - typeof";return b=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},b(e)}function x(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=C(e,`string`);return b(t)==`symbol`?t:t+``}function C(e,t){if(b(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(b(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function w(e){return O(e)||D(e)||E(e)||T()}function T(){throw TypeError(`Invalid attempt to spread non-iterable instance. 141In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(e,t){if(e){if(typeof e==`string`)return k(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function D(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function O(e){if(Array.isArray(e))return k(e)}function k(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var A={name:`Checkbox`,extends:y,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`update:indeterminate`],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(e){this.d_indeterminate=e,this.updateIndeterminate()}},mounted:function(){this.updateIndeterminate()},updated:function(){this.updateIndeterminate()},methods:{getPTOptions:function(e){return(e===`root`?this.ptmi:this.ptm)(e,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(e){var t=this;if(!this.disabled&&!this.readonly){var n=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,r=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?n.filter(function(e){return!d(e,t.value)}):n?[].concat(w(n),[this.value]):[this.value];this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit(`update:indeterminate`,this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(r,e):this.writeValue(r,e),this.$emit(`change`,e)}},onFocus:function(e){this.$emit(`focus`,e)},onBlur:function(e){var t,n;this.$emit(`blur`,e),(t=(n=this.formField).onBlur)==null||t.call(n,e)},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 e=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?e===this.trueValue:u(this.value,e)},dataP:function(){return p(x({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant===`filled`},this.size,this.size))}},components:{CheckIcon:h,MinusIcon:g}},j=[`data-p-checked`,`data-p-indeterminate`,`data-p-disabled`,`data-p`],M=[`id`,`value`,`name`,`checked`,`tabindex`,`disabled`,`readonly`,`required`,`aria-labelledby`,`aria-label`,`aria-invalid`],N=[`data-p`];function P(e,u,d,f,p,m){var h=n(`CheckIcon`),g=n(`MinusIcon`);return i(),l(`div`,r({class:e.cx(`root`)},m.getPTOptions(`root`),{"data-p-checked":m.checked,"data-p-indeterminate":p.d_indeterminate||void 0,"data-p-disabled":e.disabled,"data-p":m.dataP}),[o(`input`,r({ref:`input`,id:e.inputId,type:`checkbox`,class:[e.cx(`input`),e.inputClass],style:e.inputStyle,value:e.value,name:m.groupName,checked:m.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:u[0]||=function(){return m.onFocus&&m.onFocus.apply(m,arguments)},onBlur:u[1]||=function(){return m.onBlur&&m.onBlur.apply(m,arguments)},onChange:u[2]||=function(){return m.onChange&&m.onChange.apply(m,arguments)}},m.getPTOptions(`input`)),null,16,M),o(`div`,r({class:e.cx(`box`)},m.getPTOptions(`box`),{"data-p":m.dataP}),[s(e.$slots,`icon`,{checked:m.checked,indeterminate:p.d_indeterminate,class:t(e.cx(`icon`)),dataP:m.dataP},function(){return[m.checked?(i(),a(h,r({key:0,class:e.cx(`icon`)},m.getPTOptions(`icon`),{"data-p":m.dataP}),null,16,[`class`,`data-p`])):p.d_indeterminate?(i(),a(g,r({key:1,class:e.cx(`icon`)},m.getPTOptions(`icon`),{"data-p":m.dataP}),null,16,[`class`,`data-p`])):c(``,!0)]})],16,N)],16,j)}A.render=P;export{A as n,v as t}; 142//# sourceMappingURL=B814L_jK.js.map
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.