var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var N=(r,o,l)=>o in r?X(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,x=(r,o)=>{for(var l in o||(o={}))ee.call(o,l)&&N(r,l,o[l]);if(T)for(var l of T(o))te.call(o,l)&&N(r,l,o[l]);return r},j=(r,o)=>Y(r,Z(o));import{u as _,i as A,aq as se,a as ie,r as k,j as e,h as w,_ as m,I as F,M as oe,f as S,by as le,ck as re,ap as ne,aK as ce,e5 as ae}from"./main-343.js";import{B as pe,F as b,t as L}from"./bf-689-322.js";import{s as n}from"./bf-623-283.js";import{F as c}from"./bf-838-284.js";import{p as de}from"./bf-90-70.js";import{a as ue}from"./bf-603-251.js";import{A as B}from"./bf-772-285.js";import{F as p,I as me}from"./bf-505-323.js";import{S as M}from"./bf-711-253.js";import"./bf-649-79.js";import"./bf-697-110.js";import"./bf-983-247.js";import"./bf-810-248.js";import"./bf-914-249.js";import"./bf-870-250.js";import"./bf-411-252.js";import"./bf-901-254.js";import"./bf-656-255.js";import"./bf-806-256.js";import"./bf-519-87.js";import"./bf-190-88.js";import"./bf-318-257.js";import"./bf-437-78.js";import"./bf-123-272.js";import"./bf-594-113.js";import"./bf-453-86.js";function De(){const r=_(le),o=_(re),[l,R]=A(ne),C=se(ce),[a,g]=A(ae),{css:s}=ie(),$=a||{},[H,h]=k.useState(!1),[v,z]=k.useState(""),{showStepHeader:U}=l.multiStepSettings||{},{lbl:D,showLbl:y,subtitle:E,showSubtitle:P,lblPreIcn:q,lblSufIcn:K,subTlePreIcn:O,subTleSufIcn:V}=$||{},G=(t,i)=>{R(u=>S(u,W=>{W.multiStepSettings[t]=i})),C(u=>j(x({},u),{unsaved:!0}))},d=t=>{z(t),h(!0)},I=t=>{g(S(a,i=>{delete i[t]}))},f=(t,i)=>{g(S(a,u=>{u[t]=i}))},J=t=>{g(S(a,i=>{i[v]=t})),h(!1)},Q=t=>{a[v]===t&&g(S(a,i=>{delete i[v]}))};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("div",{className:s(n.section,n.flxColumn,n.fixed,o&&n.shw),children:[e.jsx(pe,{size:"16",className:s(n.btn,w.fontBody)}),e.jsx("div",{children:e.jsx("div",{className:s(n.mainTitle),children:m("Step Settings")})})]}),e.jsx(p,{}),e.jsxs("div",{className:s(n.section,{mx:15}),children:[e.jsx("span",{className:s(n.title),children:"Step key"}),e.jsx(de,{id:"fld-stng-key",value:r+1})]}),e.jsx(p,{}),e.jsx("div",{className:s(c.fieldSection,c.hover_tip),children:e.jsx(b,{label:"Step Icon",iconSrc:$.icon,styleRoute:"step-icn",setIcon:()=>d("icon"),isPro:!0,proProperty:"stepIcon"})}),e.jsx(p,{}),e.jsx("div",{className:s(c.fieldSection),children:e.jsx(ue,{id:"show-stp-header",tip:"By disabling this option, the Step Header will be hidden.",title:m("Show Step Header"),action:t=>G("showStepHeader",t.target.checked),isChecked:U||"",isPro:!0})}),e.jsx(p,{}),e.jsx(M,j(x({id:"fld-lbl-stng",title:m("Step Label"),className:`${s(c.fieldSection)} ${s(c.hover_tip)}`,switching:!0,tip:L.stepLbl,tipProps:{width:250,icnSize:17},toggleAction:t=>f("showLbl",t.target.checked),toggleChecked:y,open:y},F&&{disable:!y}),{isPro:!0,proTip:"Use this feature? please buy pro version.",children:e.jsxs("div",{children:[e.jsx("div",{className:s({w:"97%",mx:5}),children:e.jsx(B,{id:"fld-lbl-stng",ariaLabel:"Label input",changeAction:t=>{var i;return f("lbl",(i=t.target.value)==null?void 0:i.replace(/\\\\/g,"$_bf_$"))},value:D.replace(/\$_bf_\$/g,"\\")})}),e.jsxs("div",{className:s(w.mt1),children:[e.jsx(b,{label:"Leading Icon",iconSrc:q,styleRoute:"lbl-pre-i",setIcon:()=>d("lblPreIcn"),removeIcon:()=>I("lblPreIcn"),isPro:!0,proProperty:"leadingIcon"}),e.jsx(b,{label:"Trailing Icon",iconSrc:K,styleRoute:"lbl-suf-i",setIcon:()=>d("lblSufIcn"),removeIcon:()=>I("lblSufIcn"),isPro:!0,proProperty:"trailingIcon"})]})]})})),e.jsx(p,{}),e.jsx(M,j(x({id:"fld-sub-titl-stng",title:m("Step Subtitle"),className:`${s(c.fieldSection)} ${s(c.hover_tip)}`,switching:!0,tip:L.stepSubtitle,tipProps:{width:250,icnSize:17},toggleAction:t=>f("showSubtitle",t.target.checked),toggleChecked:P,open:P},F&&{disable:!P}),{isPro:!0,proTip:"Use this feature? please buy pro version.",children:e.jsxs("div",{children:[e.jsx("div",{className:s({w:"97%",mx:5}),children:e.jsx(B,{id:"fld-lbl-stng",ariaLabel:"Label input",changeAction:t=>{var i;return f("subtitle",(i=t.target.value)==null?void 0:i.replace(/\\\\/g,"$_bf_$"))},value:E.replace(/\$_bf_\$/g,"\\")})}),e.jsxs("div",{className:s(w.mt1),children:[e.jsx(b,{label:"Leading Icon",iconSrc:O,styleRoute:"lbl-pre-i",setIcon:()=>d("subTlePreIcn"),removeIcon:()=>I("subTlePreIcn"),isPro:!0,proProperty:"leadingIcon"}),e.jsx(b,{label:"Trailing Icon",iconSrc:V,styleRoute:"lbl-suf-i",setIcon:()=>d("subTleSufIcn"),removeIcon:()=>I("subTleSufIcn"),isPro:!0,proProperty:"trailingIcon"})]})]})})),e.jsx(p,{})]}),e.jsxs(oe,{md:!0,autoHeight:!0,show:H,setModal:h,className:"o-v",title:m("Icons"),children:[e.jsx("div",{className:"pos-rel"}),e.jsx(me,{iconType:"opt",setModal:h,setIconAction:J,removeIconAction:Q})]})]})}export{De as default};
