import{j as s,a as j,g as P,i as m,aH as y,aX as S,H as $,_ as h,f as d,dr as N,a8 as B,m as A,bG as H,ba as C}from"./main-634.js";import{a3 as I}from"./bf-692-111.js";import{F as T}from"./bf-767-388.js";import{S as F}from"./bf-982-242.js";import{S as L}from"./bf-534-247.js";import"./bf-400-72.js";import"./bf-25-81.js";import"./bf-438-114.js";import"./bf-486-243.js";import"./bf-497-246.js";import"./bf-723-244.js";import"./bf-299-245.js";import"./bf-962-248.js";import"./bf-343-249.js";import"./bf-791-250.js";import"./bf-641-107.js";import"./bf-570-251.js";import"./bf-838-80.js";import"./bf-297-103.js";import"./bf-284-252.js";import"./bf-17-106.js";import"./bf-671-253.js";import"./bf-334-254.js";function R({size:e=32,stroke:t=1.5}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:s.jsx("path",{className:"svg-icn",strokeWidth:t,d:"M4 4h16v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4Zm6 6v4m0 0h4m-4 0l4-4"})})}function _({size:e=32,stroke:t=1.5}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:s.jsx("path",{className:"svg-icn",strokeWidth:t,d:"M4 4h16v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4Zm6 10h4m0 0v-4m0 4l-4-4"})})}function M({size:e=32,stroke:t=1.5}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:s.jsx("path",{className:"svg-icn",strokeWidth:t,d:"M4 4h16v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4Zm10 6h-4m0 0v4m0-4l4 4"})})}function V({size:e=32,stroke:t=1.5}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:s.jsx("path",{className:"svg-icn",strokeWidth:t,d:"M4 4h16v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4Zm10 10v-4m0 0h-4m4 0l-4 4"})})}function W(e){return{"top-left":{top:"10px",left:"10px"},"top-right":{top:"10px",right:"10px"},"bottom-left":{bottom:"10px",left:"10px"},"bottom-right":{bottom:"10px",right:"10px"},center:{top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"top-center":{top:"10px",left:"50%"},"bottom-center":{bottom:"10px",left:"50%"}}[e]}function ht(){const{css:e}=j(),{fieldKey:t}=P(),[n,f]=m(y),[l,x]=m(S);if(!t)return null;const r=$(n[t]),g=r.adminLbl||"",w=o=>{const c=d(n,i=>{i[t].tickPosition=o}),v=W(o),b=d(l,i=>{["top","left","right","bottom","transform"].forEach(a=>{var p;(p=l.fields[t].classes[`.${t}-check-box`])!=null&&p[a]&&N(i,`fields->${t}->classes->.${t}-check-box->${a}`)});const u=i.fields[t].classes[`.${t}-check-box`],k=B(u,v);A(i,`fields->${t}->classes->.${t}-check-box`,k)});x(b),f(c),H({event:`Tick Position Update to ${o}: ${r.lbl||g||t}`,type:"tick_position_update",state:{fields:c,fldKey:t}}),C(t)};return s.jsx(F,{id:"chk-pos-stng",title:h("Check Position"),className:e(T.fieldSection),proProperty:"checkPosition",tip:h("Specify the check position."),children:s.jsx("div",{className:e(Z.tikPosIcn),children:s.jsx(L,{className:e({w:180}),show:["icn"],tipPlace:"right",size:"120",h:"37px",options:[{icn:s.jsx(M,{size:"30"}),label:"top-left",tip:"Top Left"},{icn:s.jsx(V,{size:"30"}),label:"top-right",tip:"Top Right"},{icn:s.jsx(I,{size:"30"}),label:"center",tip:"Center"},{icn:s.jsx(R,{size:"30"}),label:"bottom-left",tip:"Bottom Left"},{icn:s.jsx(_,{size:"30"}),label:"bottom-right",tip:"Bottom Right"}],onChange:o=>w(o),defaultActive:r.tickPosition})})})}const Z={tikPosIcn:{flx:"align-center",mt:10}};export{ht as default};
