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
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 2.10.1 All 138 releases
bit-form / assets / bf-558-166.js

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

2 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{t as $,j as e,a as L,k as M,r as A,l as G,_ as c,B as E,aL as K,M as z,aa as R,p as y,aU as u}from"./main-162.js";import{F as i}from"./bf-4-157.js";import{a as h}from"./bf-562-110.js";import{F as q,a as V,S as U,A as J,b as Q,H as W,c as X}from"./bf-947-93.js";import{F as Y}from"./bf-382-322.js";import{F as Z}from"./bf-99-323.js";import{a as o}from"./bf-630-188.js";import{O as ee}from"./bf-788-325.js";import{P as te}from"./bf-823-326.js";import{R as ie}from"./bf-204-324.js";import{E as oe}from"./bf-170-327.js";import{S}from"./bf-243-83.js";import"./bf-442-111.js";import"./bf-917-73.js";import"./bf-432-112.js";import"./bf-746-113.js";/* empty css */import"./bf-40-156.js";import"./bf-644-69.js";import"./bf-174-145.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";const qe=()=>{const{fieldKey:l}=$();if(!l)return e.jsx(e.Fragment,{children:"No field exist with this field key"});const{css:a}=L(),[g,m]=M(R),[f,j]=A.useState(!1),s=G(g[l]),b=s.adminLbl||"",{options:C}=s,{selectedFlagImage:F,selectedCountryClearable:P,searchClearable:v,optionFlagImage:N,detectCountryByIp:O,detectCountryByGeo:B,showSearchPh:x,searchPlaceholder:k,noCountryFoundText:I,maxHeight:le}=s.config,w=()=>{j(!0)},T=()=>{j(!1)},_=t=>{const r=t.find(d=>d.check),n=y(g,d=>{d[l].options=t,d[l].config.defaultValue=r?r.i:""});m(n),u({event:`Modify Options List: ${s.lbl||l}`,type:"options_modify",state:{fields:n,fldKey:l}})},p=(t,r)=>{s.config[r]=t;const n=y(g,d=>{d[l]=s});m(n),u({event:`${se[r]} '${String(t||"Off").replace("true","On")}': ${s.lbl||l}`,type:`${r}_changed`,state:{fields:n,fldKey:l}})},D=t=>{t.target.checked?(s.config.searchPlaceholder="Search Country Here...",s.config.showSearchPh=!0):(s.config.searchPlaceholder="",s.config.showSearchPh=!1);const r=t.target.checked?"Show":"Hide",n=y(g,d=>{d[l]=s});m(n),u({event:`${r} Search Placeholder: ${s.lbl||b||l}`,type:"toggle_search_placeholder",state:{fields:n,fldKey:l}})};function H(t){s.config.searchPlaceholder=t.target.value;const r=y(g,n=>{n[l]=s});m(r),u({event:`Search Placeholder updated: ${s.lbl||b||l}`,type:"change_placeholder",state:{fields:r,fldKey:l}})}return window.selectedFieldData=s,e.jsxs(e.Fragment,{children:[e.jsx(q,{title:"Field Settings",subtitle:s.typ,fieldKey:l}),e.jsx(V,{}),e.jsx(o,{}),e.jsx(U,{}),e.jsx(o,{}),e.jsx(J,{}),e.jsx(o,{}),e.jsx(Q,{}),e.jsx(o,{}),e.jsx(ie,{}),e.jsx(o,{}),e.jsx(te,{}),e.jsx(o,{}),e.jsx(W,{}),e.jsx(o,{}),e.jsx(Z,{}),e.jsx(o,{}),e.jsx(Y,{}),e.jsx(o,{}),e.jsx(S,{id:"srch-plchldr-stng",title:c("Search Placeholder"),className:a(i.fieldSection,i.hover_tip),switching:!0,tip:"By disabling this option, the search placeholder text will be remove",tipProps:{width:250,icnSize:17},toggleAction:D,toggleChecked:x,open:x,disable:!x,isPro:!0,proProperty:"searchPlaceholder",children:e.jsx("div",{className:a(i.placeholder),children:e.jsx("input",{"data-testid":"srch-plchldr-stng-inp","aria-label":"Placeholer for Country Search",placeholder:"Type Placeholder here...",className:a(i.input),type:"text",value:k,onChange:H})})}),e.jsx(o,{}),e.jsx(S,{id:"cntry-nt-fund-stng",title:c("Country Not Found Text"),className:a(i.fieldSection),isPro:!0,proProperty:"countryNotFoundText",children:e.jsx("div",{className:a(i.placeholder),children:e.jsx("input",{"data-testid":"cntry-nt-fund-inp","aria-label":"Country Not Found Text",placeholder:"Type no country found text here...",className:a(i.input),type:"text",value:I,onChange:t=>p(t.target.value,"noCountryFoundText")})})}),e.jsx(o,{}),e.jsx(h,{id:"shw-slctd-img-stng",tip:"By disabling this option, the show selected flag image will be hidden",className:a(i.fieldSection,i.hover_tip,i.singleOption),title:c("Show Selected Flag Image"),action:t=>p(t.target.checked,"selectedFlagImage"),isChecked:F,isPro:!0,proProperty:"selectedFlagImage"}),e.jsx(o,{}),e.jsx(h,{id:"slctd-clrbl-stng",tip:"By disabling this option, the selected country clearable button will be hidden",className:a(i.fieldSection,i.hover_tip,i.singleOption),title:c("Selected Country Clearable"),action:t=>p(t.target.checked,"selectedCountryClearable"),isChecked:P}),e.jsx(o,{}),e.jsx(h,{id:"srch-clrbl-stng",className:a(i.fieldSection,i.hover_tip,i.singleOption),tip:"By disabling this option, the selected country search clearable button will be hidden",title:c("Search Clearable"),action:t=>p(t.target.checked,"searchClearable"),isChecked:v}),e.jsx(o,{}),e.jsx(h,{id:"opt-icn-stng",className:a(i.fieldSection,i.hover_tip,i.singleOption),tip:"By disabling this option, the option flags image will be hidden",title:c("Option Flag Image"),action:t=>p(t.target.checked,"optionFlagImage"),isChecked:N,isPro:!0,proProperty:"optionIcon"}),e.jsx(o,{}),e.jsx(h,{id:"dtct-cntry-by-ip-stng",className:a(i.fieldSection,i.hover_tip,i.singleOption),tip:"By disabling this option, are not detect county by ip",title:c("Detect Country By IP"),action:t=>p(t.target.checked,"detectCountryByIp"),isChecked:O||!1,isPro:!0,proProperty:"detectCountryByIp"}),e.jsx(o,{}),e.jsx(h,{id:"dtct-cntry-by-geo-stng",className:a(i.fieldSection,i.hover_tip,i.singleOption),tip:"By disabling this option, are not detect county by Geo location",title:c("Detect Country By Geo"),action:t=>p(t.target.checked,"detectCountryByGeo"),isChecked:B||!1,isPro:!0,proProperty:"detectCountryByGeo"}),e.jsx(o,{}),e.jsx(X,{}),e.jsx(o,{}),e.jsx(ee,{}),e.jsx(o,{}),e.jsx("div",{className:a(i.fieldSection),children:e.jsxs(E,{dataTestId:"edt-opt-stng",variant:"primary-outline",size:"sm",className:a({mt:10}),onClick:w,children:[c("Edit Options"),e.jsx("span",{className:a({ml:3,mt:3,tm:"rotate(45deg)"}),children:e.jsx(K,{size:"13",stroke:"3"})})]})}),e.jsx(o,{}),e.jsx(z,{md:!0,autoHeight:!0,show:f,setModal:T,className:"o-v",title:c("Options"),children:e.jsx("div",{className:"pos-rel",children:e.jsx(oe,{optionMdl:f,options:C,setOptions:t=>_(t),lblKey:"lbl",valKey:"val",type:"radio",onlyVisualOptionsTab:!0,hideNDisabledOptions:!0})})})]})},se={noCountryFoundText:"Country Not Found Text",selectedFlagImage:"Selected Flag Image",selectedCountryClearable:"Selected Country Clearable",searchClearable:"Search Clearable",optionFlagImage:"Allow Option Flag Image",detectCountryByIp:"Detect Country By Ip",detectCountryByGeo:"Detect Country By Geo"};export{qe as default};
2