PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.10.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.10.0
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
bit-form / assets / bf-260-186.js

bf-260-186.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 2.10.0, at assets/bf-260-186.js

2 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{r as u,t as C,V as E,j as e,a as K,k as q,l as S,_ as d,B,aL as z,M as b,aq as U,aa as V,I as G,p as h,aU as x}from"./main-162.js";/* empty css */import{a as n,F as J,t as y,I as Q}from"./bf-630-188.js";import{F as l}from"./bf-4-157.js";import{a as R}from"./bf-562-110.js";import{F as W,a as X,S as Y,A as Z,b as D,H as ee,c as te}from"./bf-947-93.js";import{R as se}from"./bf-204-324.js";import{E as ie}from"./bf-170-327.js";import{S as oe}from"./bf-243-83.js";import"./bf-917-73.js";import"./bf-174-145.js";import"./bf-746-113.js";import"./bf-442-111.js";import"./bf-432-112.js";import"./bf-40-156.js";import"./bf-644-69.js";import"./bf-348-191.js";import"./bf-399-118.js";import"./bf-361-122.js";import"./bf-97-75.js";import"./bf-298-76.js";import"./bf-582-127.js";import"./bf-734-115.js";import"./bf-379-125.js";import"./bf-217-124.js";import"./bf-954-155.js";import"./bf-875-77.js";import"./bf-553-107.js";import"./bf-424-108.js";import"./bf-974-109.js";import"./bf-207-114.js";import"./bf-741-81.js";import"./bf-819-116.js";import"./bf-76-117.js";import"./bf-608-71.js";function le(){const{fieldKey:t}=C(),O=E(U),[F,f]=u.useState(!1);if(!t)return e.jsx(e.Fragment,{children:"No field exist with this field key"});const{css:r}=K(),[m,v]=q(V),[j,w]=u.useState(!1),s=S(m[t]),L=S(m[t].opt),_=(s==null?void 0:s.showReviewLblOnHover)||!1,M=(s==null?void 0:s.showReviewLblOnSelect)||!1,P=s.adminLbl||"",N=(s==null?void 0:s.ratingPos)||"start",I=[{name:d("Left"),value:"start"},{name:d("Center"),value:"center"},{name:d("Right"),value:"end"}],H=()=>{w(!0)},k=i=>{if(!G)return;const o=h(m,a=>{a[t].opt=i});v(o),x({event:`Modify Option: ${s.lbl||P||t}`,type:"modify_options_list",state:{fields:o,fldKey:t}})},$=({target:i})=>{const{checked:o}=i,a=h(m,p=>{const c=p[t];o?c.showReviewLblOnHover=!0:c.showReviewLblOnHover=!1}),g=o?"show":"hide";v(a),x({event:`Review Label ${g}`,type:"review_lbl_show_hide",state:{fields:a,fldKey:t}})},T=({target:i})=>{const{checked:o}=i,a=h(m,p=>{const c=p[t];o?c.showReviewLblOnSelect=!0:c.showReviewLblOnSelect=!1}),g=o?"show":"hide";v(a),x({event:`Review Label ${g}`,type:"review_lbl_show_hovsr_hide",state:{fields:a,fldKey:t}})},A=({target:i})=>{const{value:o}=i,a=h(m,p=>{p[t].ratingPos=o});O(p=>h(p,c=>{c.fields[t].classes[`.${t}-inp-fld-wrp`]["justify-content"]=o,o==="end"?c.fields[t].classes[`.${t}-inp-fld-wrp`]["flex-direction"]="row-reverse":delete c.fields[t].classes[`.${t}-inp-fld-wrp`]["flex-direction"]}));const g=o;v(a),x({event:`Review start position change to ${g}`,type:"review_start_pos",state:{fields:a,fldKey:t}})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"",children:[e.jsx(W,{title:"Field Settings",subtitle:s.typ,fieldKey:t}),e.jsx(X,{}),e.jsx(n,{}),e.jsx(Y,{}),e.jsx(n,{}),e.jsx(Z,{}),e.jsx(n,{}),e.jsx(D,{}),e.jsx(n,{}),e.jsx(oe,{id:"rating-algn",title:d("Rating Position"),className:r(l.fieldSection),isPro:!0,children:e.jsx("div",{className:r(l.placeholder),children:e.jsx("select",{"data-testid":"rating-algn-slct",className:r(l.input),name:"",id:"",value:N,onChange:A,children:I.map(i=>e.jsx("option",{value:i.value,children:i.name},`btcd-k-${i.name}`))})})}),e.jsx(n,{}),e.jsx("div",{className:r(l.fieldSection,l.hover_tip,l.singleOption,{fw:700}),children:e.jsx(J,{label:"Rating Icon",iconSrc:s.opt[0].img,styleRoute:"rating-img",setIcon:()=>f(!0),isPro:!0,proProperty:"ratingIcon"})}),e.jsx(n,{}),e.jsx("div",{className:r(l.fieldSection),children:e.jsxs(B,{dataTestId:"edt-opt-stng",variant:"primary-outline",size:"sm",className:r({mt:10}),onClick:H,children:[d("Add/Edit Rating Options"),e.jsx("span",{className:r(ne.plsIcn),children:e.jsx(z,{size:"13",stroke:"3"})})]})}),e.jsx(n,{}),e.jsx("div",{className:r(l.fieldSection,l.hover_tip,l.singleOption),children:e.jsx(R,{id:"fld-rating-lbl-hover",tip:y.ratingLbl,title:d("Show Rating Message On hover"),action:$,isChecked:_,isPro:!0,proProperty:"ratingMsgOnHover"})}),e.jsx(n,{}),e.jsx("div",{className:r(l.fieldSection,l.hover_tip,l.singleOption),children:e.jsx(R,{id:"fld-rating-lbl-select",tip:y.ratingSelectTip,title:d("Show Rating Message On Selected"),action:T,isChecked:M,isPro:!0,proProperty:"ratingMsgOnSelect"})}),e.jsx(n,{}),e.jsx(ee,{}),e.jsx(n,{}),e.jsx(se,{}),e.jsx(n,{}),e.jsx(te,{}),e.jsx(n,{})]}),e.jsx(b,{md:!0,autoHeight:!0,show:j,setModal:()=>w(!1),className:"o-v ",title:d("Options"),width:"740px",children:e.jsx("div",{className:"pos-rel",children:e.jsx(ie,{optionMdl:j,options:L,setOptions:i=>k(i),lblKey:"lbl",valKey:"val",imgKey:"img",isRating:s.typ,type:"rating",showUpload:!0,onlyVisualOptionsTab:!0,isPro:!0})})}),e.jsxs(b,{md:!0,autoHeight:!0,show:F,setModal:f,className:"o-v",title:d("Icons"),children:[e.jsx("div",{className:"pos-rel"}),e.jsx(Q,{iconType:"opt",setModal:f})]})]})}var Be=u.memo(le);const ne={dotBtn:{b:0,brs:5,mr:15,curp:1},button:{dy:"block",w:"100%",ta:"left",b:0,bd:"none",p:3,curp:1,"&:hover":{bd:"var(--white-0-95)",cr:"var(--black-0)",brs:8},fs:11},plsIcn:{ml:8,mt:3,tm:"rotate(45deg)"}};export{Be as default};
2