PageSourceSearch

https://mazeed.sa/_nuxt/Bp7uNI0I.js

js mazeed.sa collected 2026-09-25 03:20:40 UTC 6,957 bytes, 101 lines download raw bytes

1import{c4 as a,c5 as d}from"./CaEOT4Op.js";import{P as s,Q as r,R as l,L as c}from"./Bb4g8rqR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="acdf5dfa-7bf4-4047-a655-f375d456d599",t._sentryDebugIdIdentifier="sentry-dbid-acdf5dfa-7bf4-4047-a655-f375d456d599")}catch{}})();var g=function(n){var e=n.dt;return`
2.p-toggleswitch {
3    display: inline-block;
4    width: `.concat(e("toggleswitch.width"),`;
5    height: `).concat(e("toggleswitch.height"),`;
6}
7
8.p-toggleswitch-input {
9    cursor: pointer;
10    appearance: none;
11    position: absolute;
12    top: 0;
13    left: 0;
14    width: 100%;
15    height: 100%;
16    padding: 0;
17    margin: 0;
18    opacity: 0;
19    z-index: 1;
20    outline: 0 none;
21    border-radius: `).concat(e("toggleswitch.border.radius"),`;
22}
23
24.p-toggleswitch-slider {
25    display: inline-block;
26    cursor: pointer;
27    width: 100%;
28    height: 100%;
29    border-width: `).concat(e("toggleswitch.border.width"),`;
30    border-style: solid;
31    border-color: `).concat(e("toggleswitch.border.color"),`;
32    background: `).concat(e("toggleswitch.background"),`;
33    transition: background `).concat(e("toggleswitch.transition.duration"),", color ").concat(e("toggleswitch.transition.duration"),", border-color ").concat(e("toggleswitch.transition.duration"),", outline-color ").concat(e("toggleswitch.transition.duration"),", box-shadow ").concat(e("toggleswitch.transition.duration"),`;
34    border-radius: `).concat(e("toggleswitch.border.radius"),`;
35    outline-color: transparent;
36    box-shadow: `).concat(e("toggleswitch.shadow"),`;
37}
38
39.p-toggleswitch-slider:before {
40    position: absolute;
41    content: "";
42    top: 50%;
43    background: `).concat(e("toggleswitch.handle.background"),`;
44    width: `).concat(e("toggleswitch.handle.size"),`;
45    height: `).concat(e("toggleswitch.handle.size"),`;
46    left: `).concat(e("toggleswitch.gap"),`;
47    margin-top: calc(-1 * calc(`).concat(e("toggleswitch.handle.size"),` / 2));
48    border-radius: `).concat(e("toggleswitch.handle.border.radius"),`;
49    transition: background `).concat(e("toggleswitch.transition.duration"),", left ").concat(e("toggleswitch.slide.duration"),`;
50}
51
52.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {
53    background: `).concat(e("toggleswitch.checked.background"),`;
54    border-color: `).concat(e("toggleswitch.checked.border.color"),`;
55}
56
57.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider:before {
58    background: `).concat(e("toggleswitch.handle.checked.background"),`;
59    left: calc(`).concat(e("toggleswitch.width")," - calc(").concat(e("toggleswitch.handle.size")," + ").concat(e("toggleswitch.gap"),`));
60}
61
62.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {
63    background: `).concat(e("toggleswitch.hover.background"),`;
64    border-color: `).concat(e("toggleswitch.hover.border.color"),`;
65}
66
67.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider:before {
68    background: `).concat(e("toggleswitch.handle.hover.background"),`;
69}
70
71.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {
72    background: `).concat(e("toggleswitch.checked.hover.background"),`;
73    border-color: `).concat(e("toggleswitch.checked.hover.border.color"),`;
74}
75
76.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider:before {
77    background: `).concat(e("toggleswitch.handle.checked.hover.background"),`;
78}
79
80.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {
81    box-shadow: `).concat(e("toggleswitch.focus.ring.shadow"),`;
82    outline: `).concat(e("toggleswitch.focus.ring.width")," ").concat(e("toggleswitch.focus.ring.style")," ").concat(e("toggleswitch.focus.ring.color"),`;
83    outline-offset: `).concat(e("toggleswitch.focus.ring.offset"),`;
84}
85
86.p-toggleswitch.p-invalid > .p-toggleswitch-slider {
87    border-color: `).concat(e("toggleswitch.invalid.border.color"),`;
88}
89
90.p-toggleswitch.p-disabled {
91    opacity: 1;
92}
93
94.p-toggleswitch.p-disabled .p-toggleswitch-slider {
95    background: `).concat(e("toggleswitch.disabled.background"),`;
96}
97
98.p-toggleswitch.p-disabled .p-toggleswitch-slider:before {
99    background: `).concat(e("toggleswitch.handle.disabled.background"),`;
100}
101`)},h={root:{position:"relative"}}
101,u={root:function(n){var e=n.instance,i=n.props;return["p-toggleswitch p-component",{"p-toggleswitch-checked":e.checked,"p-disabled":i.disabled,"p-invalid":i.invalid}]},input:"p-toggleswitch-input",slider:"p-toggleswitch-slider"},p=a.extend({name:"toggleswitch",theme:g,classes:u,inlineStyles:h}),b={name:"BaseToggleSwitch",extends:d,props:{modelValue:{type:null,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,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:p,provide:function(){return{$pcToggleSwitch:this,$parentInstance:this}}},w={name:"ToggleSwitch",extends:b,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(n){var e=n==="root"?this.ptmi:this.ptm;return e(n,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(n){if(!this.disabled&&!this.readonly){var e=this.checked?this.falseValue:this.trueValue;this.$emit("update:modelValue",e),this.$emit("change",n)}},onFocus:function(n){this.$emit("focus",n)},onBlur:function(n){this.$emit("blur",n)}},computed:{checked:function(){return this.modelValue===this.trueValue}}},f=["data-p-checked","data-p-disabled"],k=["id","checked","tabindex","disabled","readonly","aria-checked","aria-labelledby","aria-label","aria-invalid"];function y(t,n,e,i,v,o){return s(),r("div",c({class:t.cx("root"),style:t.sx("root")},o.getPTOptions("root"),{"data-p-checked":o.checked,"data-p-disabled":t.disabled}),[l("input",c({id:t.inputId,type:"checkbox",role:"switch",class:[t.cx("input"),t.inputClass],style:t.inputStyle,checked:o.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-checked":o.checked,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.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,k),l("span",c({class:t.cx("slider")},o.getPTOptions("slider")),null,16)],16,f)}w.render=y;export{w 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.