import{d as p,c as u,o as c,a as l,w as m,C as f,r as g,s as h,av as b,g as _,f as v,h as x,t as V,u as i,m as w}from"./vendor-3-7-93.js";import{u as y}from"./Page-3-7-93.js";const k={class:"flex gap-2 items-center"},C={class:"relative inline-flex items-center cursor-pointer"},M={class:"ml-3 text-sm font-medium text-gray-900"},S={__name:"Toggle",props:["modelValue"],emits:["update:modelValue"],setup(d,{emit:s}){const a=d,n=s,r=p({get(){return a.modelValue},set(t){n("update:modelValue",t)}});return(t,e)=>(c(),u("div",k,[l("label",C,[m(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>r.value=o),type:"checkbox",class:"sr-only peer"},null,512),[[f,r.value]]),e[1]||(e[1]=l("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"},null,-1)),l("span",M,[g(t.$slots,"default")])])]))}},T={class:"flex gap-2 items-center"},E={__name:"TestMode",setup(d){const s=y(),{isTestMode:a}=h(s),{t:n}=b(),r=async t=>{await s.updateTestMode(t);const e=jQuery("#wp-admin-bar-gurmepos");t?(e.addClass("gpos-test-mode-active"),e.children("a").children("span").children("span.ab-label").html(`POS Entegratör ${n("test_mode")}`)):(e.removeClass("gpos-test-mode-active"),e.children("a").children("span").children("span.ab-label").html("POS Entegratör"))};return(t,e)=>(c(),u("div",T,[_(S,{id:"gpos-test-mode",modelValue:i(a),"onUpdate:modelValue":e[0]||(e[0]=o=>w(a)?a.value=o:null),onChange:e[1]||(e[1]=o=>r(i(a)))},{default:v(()=>[x(V(t.$t("test_mode")),1)]),_:1},8,["modelValue"])]))}};export{E as _};
