| 1 |
var w=Object.defineProperty,A=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var y=(s,i,e)=>i in s?w(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e,S=(s,i)=>{for(var e in i||(i={}))D.call(i,e)&&y(s,e,i[e]);if(h)for(var e of h(i))$.call(i,e)&&y(s,e,i[e]);return s},F=(s,i)=>A(s,B(i));import{t as M,k as N,l as E,a as k,r as f,j as t,M as z,_ as K,b as C,p as g,aU as H,aa as L,V as I,w as l,E as P,bp as R,dF as V,ae as U}from"./main-162.js";import{s as W}from"./bf-424-108.js";import{F as v}from"./bf-4-157.js";import{C as q}from"./bf-432-112.js";import{F as G,A as J,b as O,c as Q}from"./bf-947-93.js";import{F as X}from"./bf-382-322.js";import{a as d}from"./bf-630-188.js";import{T as Y}from"./bf-399-118.js";import"./bf-562-110.js";import"./bf-442-111.js";import"./bf-917-73.js";import"./bf-746-113.js";import"./bf-243-83.js";import"./bf-644-69.js";import"./bf-553-107.js";import"./bf-974-109.js";import"./bf-207-114.js";import"./bf-734-115.js";import"./bf-379-125.js";import"./bf-217-124.js";import"./bf-741-81.js";import"./bf-819-116.js";import"./bf-76-117.js";import"./bf-608-71.js";/* empty css */import"./bf-40-156.js";import"./bf-174-145.js";import"./bf-361-122.js";function Z({labelModal:s,setLabelModal:i}){var b;const{fieldKey:e}=M(),[r,c]=N(L),o=E(r[e]),{css:a}=k(),n=o.content||((b=o==null?void 0:o.info)==null?void 0:b.content),[x,m]=f.useState(n);f.useEffect(()=>{s&&m(n)},[s]);const T=p=>{const u=g(r,_=>{_[e].content=p});c(u),H({event:"Modify HTML Content Label",type:"html_content_label",state:{fields:u,fldKey:e}})},j=()=>{o.content=x;const p=g(r,u=>{u[e]=o});c(p),i(!1),H({event:"Cancel HTML Content Label ",type:"cancel_html_content_label",state:{fields:p,fldKey:e}})};return t.jsxs(z,{md:!0,show:s,setModal:j,title:K("Edit Decision Box Label"),children:[t.jsx(Y,{id:e,value:n,onChangeHandler:T}),t.jsxs("div",{className:"mt-2 f-right",children:[t.jsx("button",{type:"button",className:`${a(C.btn)} mr-2`,onClick:j,children:"Cancel"}),t.jsx("button",{type:"button",className:`${a(C.btn)} blue`,onClick:()=>i(!1),children:"Save"})]})]})}function kt(){const{fieldKey:s}=M(),[i,e]=N(L),r=I(U),c=E(i[s]),[o,a]=f.useState(!1),{css:n}=k(),x=()=>{r(m=>F(S({},m),{reCalculateSpecificFldHeight:{fieldKey:s,counter:m.reCalculateSpecificFldHeight.counter+1}}))};return f.useEffect(()=>{x()},[c.content]),t.jsxs("div",{children:[t.jsx(G,{title:"Field Settings",subtitle:c.typ,fieldKey:s}),t.jsx(J,{}),t.jsx(d,{}),t.jsx(O,{}),t.jsx(d,{}),t.jsxs("div",{className:n(v.fieldSection),children:[t.jsxs("div",{className:n(l.flxcb),children:[t.jsxs("div",{className:n(l.flxc),children:[t.jsx("b",{children:"Content: "}),t.jsx(q,{width:250,icnSize:17,className:n(l.ml2),children:t.jsx("div",{className:n(l.tipBody),children:K("Edit the HTML field content by clicking on edit icon")})})]}),t.jsx("span",{"data-testid":"cntnt-edt-btn",role:"button",tabIndex:"-1",className:n(l.mr2,l.cp),onClick:()=>a(!0),onKeyDown:()=>a(!0),children:t.jsx(P,{size:19})})]}),t.jsx("div",{"data-testid":"cntnt",role:"button",tabIndex:"-1",className:n(v.input,l.px10,l.py5,W.childPmargin0,{h:"auto",fs:"12px !important"}),onClick:()=>a(!0),onKeyDown:()=>a(!0),children:t.jsx(R,{html:V(c.content)})})]}),t.jsx(Z,{labelModal:o,setLabelModal:a}),t.jsx(d,{}),t.jsx(Q,{}),t.jsx(d,{}),t.jsx(X,{}),t.jsx(d,{})]})}export{kt as default}; |