1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3940797b-2d06-59c5-bbc3-3b12f993c4bd")}catch(e){}}(); 3import{a}from"./index-BbX67C3c.js";import{B as s,o as r,c,a as l,m as o,S as g}from"./app-D8smhW-8.js";import{f as h}from"./index-CvJX-ygu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"ce5f413906e32e862b2b7b1bcfc6ea1090bec070"}}catch{}})();try{(function(){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]="1f24396a-00af-4ecb-a818-501abc9996d9",e._sentryDebugIdIdentifier="sentry-dbid-1f24396a-00af-4ecb-a818-501abc9996d9")})()}catch{}var u=` 4 .p-toggleswitch { 5 display: inline-block; 6 width: dt('toggleswitch.width'); 7 height: dt('toggleswitch.height'); 8 } 9 10 .p-toggleswitch-input { 11 cursor: pointer; 12 appearance: none; 13 position: absolute; 14 top: 0; 15 inset-inline-start: 0; 16 width: 100%; 17 height: 100%; 18 padding: 0; 19 margin: 0; 20 opacity: 0; 21 z-index: 1; 22 outline: 0 none; 23 border-radius: dt('toggleswitch.border.radius'); 24 } 25 26 .p-toggleswitch-slider { 27 cursor: pointer; 28 width: 100%; 29 height: 100%; 30 border-width: dt('toggleswitch.border.width'); 31 border-style: solid; 32 border-color: dt('toggleswitch.border.color'); 33 background: dt('toggleswitch.background'); 34 transition: 35 background dt('toggleswitch.transition.duration'), 36 color dt('toggleswitch.transition.duration'), 37 border-color dt('toggleswitch.transition.duration'), 38 outline-color dt('toggleswitch.transition.duration'), 39 box-shadow dt('toggleswitch.transition.duration'); 40 border-radius: dt('toggleswitch.border.radius'); 41 outline-color: transparent; 42 box-shadow: dt('toggleswitch.shadow'); 43 } 44 45 .p-toggleswitch-handle { 46 position: absolute; 47 top: 50%; 48 display: flex; 49 justify-content: center; 50 align-items: center; 51 background: dt('toggleswitch.handle.background'); 52 color: dt('toggleswitch.handle.color'); 53 width: dt('toggleswitch.handle.size'); 54 height: dt('toggleswitch.handle.size'); 55 inset-inline-start: dt('toggleswitch.gap'); 56 margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2)); 57 border-radius: dt('toggleswitch.handle.border.radius'); 58 transition: 59 background dt('toggleswitch.transition.duration'), 60 color dt('toggleswitch.transition.duration'), 61 inset-inline-start dt('toggleswitch.slide.duration'), 62 box-shadow dt('toggleswitch.slide.duration'); 63 } 64 65 .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider { 66 background: dt('toggleswitch.checked.background'); 67 border-color: dt('toggleswitch.checked.border.color'); 68 } 69 70 .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle { 71 background: dt('toggleswitch.handle.checked.background'); 72 color: dt('toggleswitch.handle.checked.color'); 73 inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap'))); 74 } 75 76 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider { 77 background: dt('toggleswitch.hover.background'); 78 border-color: dt('toggleswitch.hover.border.color'); 79 } 80 81 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle { 82 background: dt('toggleswitch.handle.hover.background'); 83 color: dt('toggleswitch.handle.hover.color'); 84 } 85 86 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider { 87 background: dt('toggleswitch.checked.hover.background'); 88 border-color: dt('toggleswitch.checked.hover.border.color'); 89 } 90 91 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle { 92 background: dt('toggleswitch.handle.checked.hover.background'); 93 color: dt('toggleswitch.handle.checked.hover.color'); 94 } 95 96 .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider { 97 box-shadow: dt('toggleswitch.focus.ring.shadow'); 98 outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color'); 99 outline-offset: dt('toggleswitch.focus.ring.offset'); 100 } 101 102 .p-toggleswitch.p-invalid > .p-toggleswitch-slider { 103 border-color: dt('toggleswitch.invalid.border.color'); 104 } 105 106 .p-toggleswitch.p-disabled { 107 opacity: 1; 108 } 109 110 .p-toggleswitch.p-disabled .p-toggleswitch-slider { 111 background: dt('toggleswitch.disabled.background'); 112 } 113 114 .p-toggleswitch.p-disabled .p-toggleswitch-handle { 115 background: dt('toggleswitch.handle.disabled.background'); 116 } 117`,p={root:{position:"relative"}}
117,b={root:function(t){var i=t.instance,d=t.props;return["p-toggleswitch p-component",{"p-toggleswitch-checked":i.checked,"p-disabled":d.disabled,"p-invalid":i.$invalid}]},input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"},w=s.extend({name:"toggleswitch",style:u,classes:b,inlineStyles:p}),f={name:"BaseToggleSwitch",extends:a,props:{trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{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:w,provide:function(){return{$pcToggleSwitch:this,$parentInstance:this}}},k={name:"ToggleSwitch",extends:f,inheritAttrs:!1,emits:["change","focus","blur"],methods:{getPTOptions:function(t){var i=t==="root"?this.ptmi:this.ptm;return i(t,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(t){if(!this.disabled&&!this.readonly){var i=this.checked?this.falseValue:this.trueValue;this.writeValue(i,t),this.$emit("change",t)}},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){var i,d;this.$emit("blur",t),(i=(d=this.formField).onBlur)===null||i===void 0||i.call(d,t)}},computed:{checked:function(){return this.d_value===this.trueValue},dataP:function(){return h({checked:this.checked,disabled:this.disabled,invalid:this.$invalid})}}},y=["data-p-checked","data-p-disabled","data-p"],v=["id","checked","tabindex","disabled","readonly","aria-checked","aria-labelledby","aria-label","aria-invalid"],m=["data-p"],S=["data-p"];function T(e,t,i,d,B,n){return r(),c("div",o({class:e.cx("root"),style:e.sx("root")},n.getPTOptions("root"),{"data-p-checked":n.checked,"data-p-disabled":e.disabled,"data-p":n.dataP}),[l("input",o({id:e.inputId,type:"checkbox",role:"switch",class:[e.cx("input"),e.inputClass],style:e.inputStyle,checked:n.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,"aria-checked":n.checked,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return n.onFocus&&n.onFocus.apply(n,arguments)}),onBlur:t[1]||(t[1]=function(){return n.onBlur&&n.onBlur.apply(n,arguments)}),onChange:t[2]||(t[2]=function(){return n.onChange&&n.onChange.apply(n,arguments)})},n.getPTOptions("input")),null,16,v),l("div",o({class:e.cx("slider")},n.getPTOptions("slider"),{"data-p":n.dataP}),[l("div",o({class:e.cx("handle")},n.getPTOptions("handle"),{"data-p":n.dataP}),[g(e.$slots,"handle",{checked:n.checked})],16,S)],16,m)],16,y)}k.render=T;export{k as s}; 118 119//# debugId=3940797b-2d06-59c5-bbc3-3b12f993c4bd
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.