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=(n,o,l)=>o in n?X(n,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[o]=l,f=(n,o)=>{for(var l in o||(o={}))ee.call(o,l)&&N(n,l,o[l]);if(T)for(var l of T(o))te.call(o,l)&&N(n,l,o[l]);return n},j=(n,o)=>Y(n,Z(o));import{u as _,h as A,W as se,a as ie,r as L,j as e,x as w,_ as m,I as k,bV as oe,g as S,bL as le,b3 as ne,V as re,ag as ce,dh as ae}from"./main-40.js";import{B as pe,a as p,F as b,t as B,I as de}from"./bf-541-191.js";import{s as r}from"./bf-955-157.js";import{F as c,A as F}from"./bf-350-158.js";import{C as ue}from"./bf-586-70.js";import{a as me}from"./bf-142-111.js";import{S as R}from"./bf-95-84.js";import"./bf-141-80.js";import"./bf-497-146.js";import"./bf-683-113.js";import"./bf-376-112.js";import"./bf-547-83.js";import"./bf-613-108.js";import"./bf-755-109.js";import"./bf-175-110.js";import"./bf-928-114.js";import"./bf-232-115.js";import"./bf-236-125.js";import"./bf-642-124.js";import"./bf-829-79.js";import"./bf-285-116.js";import"./bf-695-117.js";import"./bf-866-72.js";function He(){const n=_(le),o=_(ne),[l,M]=A(re),C=se(ce),[a,g]=A(ae),{css:s}=ie(),$=a||{},[H,h]=L.useState(!1),[v,z]=L.useState(""),{showStepHeader:U}=l.multiStepSettings||{},{lbl:V,showLbl:y,subtitle:D,showSubtitle:P,lblPreIcn:E,lblSufIcn:O,subTlePreIcn:W,subTleSufIcn:q}=$||{},G=(t,i)=>{M(u=>S(u,Q=>{Q.multiStepSettings[t]=i})),C(u=>j(f({},u),{unsaved:!0}))},d=t=>{z(t),h(!0)},I=t=>{g(S(a,i=>{delete i[t]}))},x=(t,i)=>{g(S(a,u=>{u[t]=i}))},J=t=>{g(S(a,i=>{i[v]=t})),h(!1)},K=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(r.section,r.flxColumn,r.fixed,o&&r.shw),children:[e.jsx(pe,{size:"16",className:s(r.btn,w.fontBody)}),e.jsx("div",{children:e.jsx("div",{className:s(r.mainTitle),children:m("Step Settings")})})]}),e.jsx(p,{}),e.jsxs("div",{className:s(r.section,{mx:15}),children:[e.jsx("span",{className:s(r.title),children:"Step key"}),e.jsx(ue,{id:"fld-stng-key",value:n+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(me,{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(R,j(f({id:"fld-lbl-stng",title:m("Step Label"),className:`${s(c.fieldSection)} ${s(c.hover_tip)}`,switching:!0,tip:B.stepLbl,tipProps:{width:250,icnSize:17},toggleAction:t=>x("showLbl",t.target.checked),toggleChecked:y,open:y},k&&{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(F,{id:"fld-lbl-stng",ariaLabel:"Label input",changeAction:t=>{var i;return x("lbl",(i=t.target.value)==null?void 0:i.replace(/\\\\/g,"$_bf_$"))},value:V.replace(/\$_bf_\$/g,"\\")})}),e.jsxs("div",{className:s(w.mt1),children:[e.jsx(b,{label:"Leading Icon",iconSrc:E,styleRoute:"lbl-pre-i",setIcon:()=>d("lblPreIcn"),removeIcon:()=>I("lblPreIcn"),isPro:!0,proProperty:"leadingIcon"}),e.jsx(b,{label:"Trailing Icon",iconSrc:O,styleRoute:"lbl-suf-i",setIcon:()=>d("lblSufIcn"),removeIcon:()=>I("lblSufIcn"),isPro:!0,proProperty:"trailingIcon"})]})]})})),e.jsx(p,{}),e.jsx(R,j(f({id:"fld-sub-titl-stng",title:m("Step Subtitle"),className:`${s(c.fieldSection)} ${s(c.hover_tip)}`,switching:!0,tip:B.stepSubtitle,tipProps:{width:250,icnSize:17},toggleAction:t=>x("showSubtitle",t.target.checked),toggleChecked:P,open:P},k&&{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(F,{id:"fld-lbl-stng",ariaLabel:"Label input",changeAction:t=>{var i;return x("subtitle",(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:W,styleRoute:"lbl-pre-i",setIcon:()=>d("subTlePreIcn"),removeIcon:()=>I("subTlePreIcn"),isPro:!0,proProperty:"leadingIcon"}),e.jsx(b,{label:"Trailing Icon",iconSrc:q,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(de,{iconType:"opt",setModal:h,setIconAction:J,removeIconAction:K})]})]})}export{He as default};
