cft-builder 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cft-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-
|
|
1
|
+
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-BR-BL88C.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BuilderItems,
|
|
4
4
|
o as BuilderItemsRender,
|
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -4160,7 +4160,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4160
4160
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rwe(t,e){if(t){if(typeof t=="string")return H$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H$(t,e)}}function H$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,l;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function awe(t){if(Array.isArray(t))return t}function swe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function owe(t,e,n){return e&&Y$(t.prototype,e),n&&Y$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var I5=function(){function t(e,n){swe(this,t),this.metadata=new uo(n);var r=this.getCountryAndCallingCode(e),i=twe(r,2),a=i[0],s=i[1];this.defaultCountry=a,this.defaultCallingCode=s,this.reset()}return owe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(w5(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(i,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var l=this.state.getNationalDigits();l&&(s=this.formatter.format(l,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new dAe({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a,i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new UAe({state:this.state,metadata:this.metadata}),this.parser=new QAe({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(l){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!l})+l},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.complexPrefixBeforeNationalSignificantNumber,a=n.nationalPrefix,s=r,l=i||a;return l&&(s=l+s),s}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Uc)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(lAe(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,s=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+s:"+"+r;if(a||i){var l=a?this.metadata.countryCallingCode():i;return"+"+l+s}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode,s=this._getCountry();if(r&&!(!s&&!a)){if(s&&s===this.defaultCountry){var l=new uo(this.metadata.metadata);l.selectNumberingPlan(s);var c=l.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(c);if(u.length>1){var d=_$(r,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(s=d)}}var f=new Jye(s||a,r,this.metadata.metadata);return i&&(f.carrierCode=i),f}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t}();function lwe(t,e,n){return n||(n=e,e=void 0),new I5(e,n).input(t)}function K$(t){var e=t.country,n=t.international,r=t.withCountryCallingCode,i=t.metadata;return e&&n&&!r?"+".concat(O1(e,i)):""}function SS(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function cwe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return u$(t,e,r)}}function X$(t){var e=t.onKeyDown,n=t.international;return N.useCallback(function(r){if(r.keyCode===uwe&&n&&r.target instanceof HTMLInputElement&&dwe(r.target)===fwe){r.preventDefault();return}e&&e(r)},[e,n])}var uwe=8;function dwe(t){return t.selectionStart}var fwe=1,hwe=["onKeyDown","country","international","withCountryCallingCode","metadata"];function xS(){return xS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xS.apply(this,arguments)}function pwe(t,e){if(t==null)return{};var n=gwe(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gwe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function mwe(t){function e(n,r){var i=n.onKeyDown,a=n.country,s=n.international,l=n.withCountryCallingCode,c=n.metadata,u=c===void 0?t:c,d=pwe(n,hwe),f=N.useCallback(function(m){var g=new I5(a,u),v=K$({country:a,international:s,withCountryCallingCode:l,metadata:u}),A=g.input(v+m),S=g.getTemplate();return v&&(A=SS(A,v),S&&(S=SS(S,v))),{text:A,template:S}},[a,u]),h=X$({onKeyDown:i,international:s});return N.createElement(iye,xS({},d,{ref:r,parse:cwe,format:f,onKeyDown:h}))}return e=N.forwardRef(e),e.propTypes={value:vn.string.isRequired,onChange:vn.func.isRequired,onKeyDown:vn.func,country:vn.string,international:vn.bool,withCountryCallingCode:vn.bool,metadata:vn.object},e}const vwe=mwe();var bwe=["value","onChange","onKeyDown","country","international","withCountryCallingCode","metadata","inputComponent"];function CS(){return CS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},CS.apply(this,arguments)}function ywe(t,e){if(t==null)return{};var n=Awe(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Awe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function wwe(t){function e(n,r){var i=n.value,a=n.onChange,s=n.onKeyDown,l=n.country,c=n.international,u=n.withCountryCallingCode,d=n.metadata,f=d===void 0?t:d,h=n.inputComponent,m=h===void 0?"input":h,g=ywe(n,bwe),v=K$({country:l,international:c,withCountryCallingCode:u,metadata:f}),A=N.useCallback(function(C){var w=_ye(C.target.value);if(w===i){var T=G$(v,w,l,f);T.indexOf(C.target.value)===0&&(w=w.slice(0,-1))}a(w)},[v,i,a,l,f]),S=X$({onKeyDown:s,international:c});return N.createElement(m,CS({},g,{ref:r,value:G$(v,i,l,f),onChange:A,onKeyDown:S}))}return e=N.forwardRef(e),e.propTypes={value:vn.string.isRequired,onChange:vn.func.isRequired,onKeyDown:vn.func,country:vn.string,international:vn.bool,withCountryCallingCode:vn.bool,metadata:vn.object,inputComponent:vn.elementType},e}const Swe=wwe();function G$(t,e,n,r){return SS(lwe(t+e,n,r),t)}var xwe=vn.shape({country_calling_codes:vn.object.isRequired,countries:vn.object.isRequired});vn.objectOf(vn.string);function R$(t,e){var n="+"+O1(t,e);return n}function Eg(t,e){return Iwe(t)||Ewe(t,e)||Twe(t,e)||Cwe()}function Cwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4161
4161
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Twe(t,e){if(t){if(typeof t=="string")return W$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W$(t,e)}}function W$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ewe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function Iwe(t){if(Array.isArray(t))return t}function _we(t){var e=this,n=t.value,r=t.onChange,i=t.country,a=t.defaultCountry,s=t.international,l=t.withCountryCallingCode,c=t.useNationalFormatForDefaultCountryValue,u=t.metadata,d=N.useRef(),f=function(Y,me,ee){console.error("[react-phone-number-input] Expected phone number ".concat(Y," to correspond to country ").concat(me," but ").concat(ee?"in reality it corresponds to country "+ee:"it doesn't",".")),d.current=!0},h=function(Y){return Dwe(n,i,s,l,a,c,u,function(){Y&&Y.onCountryMismatch&&Y.onCountryMismatch();for(var me=arguments.length,ee=new Array(me),ie=0;ie<me;ie++)ee[ie]=arguments[ie];f.apply(e,ee)})},m=N.useState(i),g=Eg(m,2),v=g[0],A=g[1],S=N.useState(a),C=Eg(S,2),w=C[0],T=C[1],x=N.useState(h()),_=Eg(x,2),E=_[0],D=_[1],V=N.useState(n),L=Eg(V,2),F=L[0],$=L[1],k=N.useState(),H=Eg(k,2);H[0];var pe=H[1],he=N.useCallback(function(){return pe({})},[pe]);function Z(re){if(re){i&&s&&!l&&(re="+".concat(O1(i,u)).concat(re));var Y=new I5(i||a,u);return Y.input(re),Y.getNumberValue()}}N.useEffect(function(){n!==F&&($(n),D(h()))},[n]),N.useEffect(function(){if(i!==v){A(i);var re,Y=h({onCountryMismatch:function(){re=!0}});D(Y),re&&$(Z(Y))}},[i]),N.useEffect(function(){a!==w&&(T(a),D(h()))},[a]),N.useEffect(function(){F!==n&&r(F)},[F]);var W=N.useCallback(function(re){var Y;if(i)if(s&&l){var me=R$(i,u);if(re.indexOf(me)!==0){if(re&&re[0]!=="+")re=me+re;else if(!d.current)return D(me),$(void 0),he()}}else re&&re[0]==="+"&&(re=re.slice(1));else a||re&&re[0]!=="+"&&(re="+"+re);re&&(Y=Z(re)),D(re),$(Y)},[i,s,l,a,u,D,$,he,d]);return[E,W]}function Dwe(t,e,n,r,i,a,s,l){if(e&&n&&r){var c=R$(e,s);return t?(t.indexOf(c)!==0&&l(t,e),t):c}if(!t)return"";if(!e&&!i)return t;var u=new I5(void 0,s);u.input(t);var d=u.getNumber();return d?e?(d.country&&d.country!==e?l(t,e,d.country):d.countryCallingCode!==O1(e,s)&&l(t,e),n?d.nationalNumber:_h(d.formatNational())):d.countryCallingCode&&d.countryCallingCode===O1(i,s)&&a?_h(d.formatNational()):t:""}var Owe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function TS(){return TS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},TS.apply(this,arguments)}function Nwe(t,e){return Mwe(t)||kwe(t,e)||Pwe(t,e)||Fwe()}function Fwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4162
4162
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pwe(t,e){if(t){if(typeof t=="string")return Q$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q$(t,e)}}function Q$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function Mwe(t){if(Array.isArray(t))return t}function Lwe(t,e){if(t==null)return{};var n=Bwe(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Bwe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function _5(t,e){var n=t.Component,r=t.country,i=t.defaultCountry,a=t.useNationalFormatForDefaultCountryValue,s=a===void 0?!0:a,l=t.value,c=t.onChange,u=t.metadata,d=t.international,f=t.withCountryCallingCode,h=Lwe(t,Owe),m=_we({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),g=Nwe(m,2),v=g[0],A=g[1];return N.createElement(n,TS({},h,{ref:e,metadata:u,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:A}))}_5=N.forwardRef(_5),_5.propTypes={value:vn.string,onChange:vn.func.isRequired,country:vn.string,defaultCountry:vn.string,international:vn.bool,withCountryCallingCode:vn.bool,Component:vn.elementType.isRequired,useNationalFormatForDefaultCountryValue:vn.bool,metadata:xwe};const Vwe=_5;var Uwe=["type","autoComplete","smartCaret","metadata"];function ES(){return ES=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ES.apply(this,arguments)}function qwe(t,e){if(t==null)return{};var n=$we(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function $we(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function J$(t){function e(n,r){var i=n.type,a=i===void 0?"tel":i,s=n.autoComplete,l=s===void 0?"tel":s,c=n.smartCaret,u=c===void 0?!0:c,d=n.metadata,f=d===void 0?t:d,h=qwe(n,Uwe);return N.createElement(Vwe,ES({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?vwe:Swe}))}return e=N.forwardRef(e),e.propTypes={type:vn.string,autoComplete:vn.string,smartCaret:vn.bool,metadata:vn.object},e}J$();const jwe=J$(Lbe),zwe=t=>{var K,ae,fe,be,ye,Ae,_e,ne,q,te,Q;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=mr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A,isDisabled:S}=t,{isAdmin:C,isRenderView:w,isPreview:T}=Qt(),[x,_]=N.useState(!1),[E,D]=N.useState(""),[V,L]=N.useState(0),[F,$]=N.useState(!1),[k,H]=N.useState(!1),pe=()=>{H(!0)},he=()=>{H(!1)},Z=()=>{var de,Ce,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const Oe=[...g.repeatableFields],we=Ct.findIndex(Oe,function(Te){return Te.uuid===(d==null?void 0:d.uuid)});we>=0&&Oe[we].fieldData?D(Oe[we].fieldData):D("")}}else{const Oe=a;if(Oe!=null&&Oe.length){for(const we of Oe)if(we.fieldId===t.field.uuid&&((de=we==null?void 0:we.postData[0])==null?void 0:de.postValue)!==""&&((Ce=we==null?void 0:we.postData[0])!=null&&Ce.postValue)){D((Ee=we==null?void 0:we.postData[0])==null?void 0:Ee.postValue);break}}}$(!0)};N.useEffect(()=>{F||Z();const de=Kt.addListener("clearRepeatableFields",we=>{we===(g==null?void 0:g.uuid)&&(D(""),L(0),d.isValid=0,u(m,h,v,A,f,d))}),Ce=Kt.addListener("onSubmitUserForm",()=>{var we;(we=d==null?void 0:d.attributes)!=null&&we.required?E?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Kt.addListener("OnInvalidFieldCatch",we=>{d.uuid===(we==null?void 0:we.fieldId)?L(1):L(0)}),Oe=Kt.addListener("OnGetFieldValue",we=>{var ve;const Te=(ve=we==null?void 0:we.repeatableColumn)==null?void 0:ve.filter(M=>(M==null?void 0:M.fieldUuid)===(d==null?void 0:d.uuid));Te!=null&&Te.length});return()=>{Ce.remove(),Ee.remove(),Oe.remove(),de.remove()}});const W=de=>{_(de)},re=()=>{_(!1)},Y=(de,Ce)=>{const Ee=a,Oe=Ct.cloneDeep(e);if(Ce){if(Oe[d==null?void 0:d.uuid]=de,(Ee==null?void 0:Ee.length)>0)for(const we of Ee)we.fieldId===t.field.uuid&&(we.postData[0]={postValue:de})}else if(delete Oe[d==null?void 0:d.uuid],(Ee==null?void 0:Ee.length)>0)for(const we of Ee)we.fieldId===t.field.uuid&&(we.postData[0]={postValue:de});if(!(g!=null&&g.rowIsRepeatable)){n(Oe);const we=Object.keys(Oe).length;r(we)}},me=(de,Ce)=>{var Ee;if(a){const Oe=[...a],we=Ct.findIndex(Oe,function(ve){return ve.rowId===(g==null?void 0:g.uuid)});let Te=(Ee=a[we])==null?void 0:Ee.repeatableFields;Te={...Te,[de==null?void 0:de.uuid]:Ce},Oe[we]={...Oe[we],repeatableFields:Te},i(Oe)}D(Ce),Ce!==""?de.isValid=1:de.isValid=0},ee=de=>{g!=null&&g.rowIsRepeatable?me(d,de):Y(de,!0)},ie=o.jsxs("div",{onMouseOver:pe,onMouseOut:he,children:[!w&&!T&&k&&o.jsx(jr,{handleFieldSettingsSidebar:W,...t}),o.jsxs("div",{className:`field ${T?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:T?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(K=d==null?void 0:d.headerText)==null?void 0:K[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((ae=d==null?void 0:d.attributes)==null?void 0:ae.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",T?o.jsx(o.Fragment,{children:(fe=d==null?void 0:d.label)==null?void 0:fe[c==null?void 0:c.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(be=d==null?void 0:d.toolTip)==null?void 0:be[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((Ae=(ye=d==null?void 0:d.icon)==null?void 0:ye.properties)==null?void 0:Ae.name)}),o.jsx(jwe,{id:d==null?void 0:d.uuid,placeholder:(_e=d==null?void 0:d.placeholder)==null?void 0:_e[c==null?void 0:c.type],value:E,onFocus:()=>L(1),onChange:ee,international:!0,className:`${V===1&&((ne=d==null?void 0:d.attributes)!=null&&ne.required)?E?"valid":"invalid":"valid'"} p-inputtext`,readOnly:S})]}),o.jsx("div",{children:((q=d==null?void 0:d.attributes)==null?void 0:q.required)&&o.jsx("small",{className:"error",children:V===1&&!E?(te=d==null?void 0:d.validationMesssage)==null?void 0:te.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(Q=d==null?void 0:d.helperText)==null?void 0:Q[c==null?void 0:c.type]})})]})]})}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:re,...t}),o.jsx(wi,{...t,fieldWrap:ie})]})},Hwe=t=>{var Y,me,ee,ie,K,ae,fe,be,ye,Ae,_e;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isPreview:l,isAdmin:c,isRenderView:u}=Qt(),{task_status:d,taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:m,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:A}=mr(),{userSelectedLanguage:S}=sn(),[C,w]=N.useState(!1),[T,x]=N.useState(""),[_,E]=N.useState(0),[D,V]=N.useState(!1),L=()=>{V(!0)},F=()=>{V(!1)};N.useEffect(()=>{C||he();const ne=Kt.addListener("clearRepeatableFields",te=>{te===(a==null?void 0:a.uuid)&&(x(""),E(0),e.isValid=0)}),q=Kt.addListener("onSubmitUserForm",()=>{var te;(te=e==null?void 0:e.attributes)!=null&&te.required?T!==""&&lu.test(T)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{q.remove(),ne.remove()}});const[$,k]=N.useState(!1),H=ne=>{k(ne)},pe=()=>{k(!1)},he=()=>{var ne,q,te;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const Q=[...a.repeatableFields],de=Ct.findIndex(Q,function(Ce){return Ce.uuid===(e==null?void 0:e.uuid)});de>=0&&Q[de].fieldData?x(Q[de].fieldData):x("")}}else{const Q=v;if(Q!=null&&Q.length){for(const de of Q)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&((q=de==null?void 0:de.postData[0])!=null&&q.postValue)){x((te=de==null?void 0:de.postData[0])==null?void 0:te.postValue),w(!0);break}}}w(!0)},Z=ne=>{x(ne);const q=v,te=Ct.cloneDeep(f);if(ne!==""&&lu.test(ne)===!0){if(te[e==null?void 0:e.uuid]=ne,(q==null?void 0:q.length)>0)for(const Q of q)Q.fieldId===t.field.uuid&&(Q.postData[0]={postValue:ne})}else if(delete te[e==null?void 0:e.uuid],(q==null?void 0:q.length)>0)for(const Q of q)Q.fieldId===t.field.uuid&&(Q.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){h(te);const Q=Object.keys(te).length;m(Q)}},W=(ne,q)=>{var Oe;const te=[...v],Q=Ct.findIndex(te,function(we){return we.rowId===(a==null?void 0:a.uuid)});let de=(Oe=v[Q])==null?void 0:Oe.repeatableFields;const Ce=ne,Ee=Ce==null?void 0:Ce.uuid;de={...de,[Ee]:q},te[Q]={...te[Q],repeatableFields:de},g(te),x(q),q!==""&&lu.test(q)===!0?e.isValid=1:e.isValid=0},re=o.jsxs("div",{onMouseOver:L,onMouseOut:F,children:[!u&&!l&&D&&o.jsx(jr,{handleFieldSettingsSidebar:H,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Y=e==null?void 0:e.headerText)==null?void 0:Y[S==null?void 0:S.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((me=e==null?void 0:e.attributes)==null?void 0:me.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(ee=e==null?void 0:e.label)==null?void 0:ee[S==null?void 0:S.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[S==null?void 0:S.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((ae=(K=e==null?void 0:e.icon)==null?void 0:K.properties)==null?void 0:ae.name)}),o.jsx(gn,{id:e==null?void 0:e.uuid,placeholder:(fe=e==null?void 0:e.placeholder)==null?void 0:fe[S==null?void 0:S.type],value:T,onFocus:()=>E(1),onChange:ne=>{a!=null&&a.rowIsRepeatable?W(r,i):Z(ne.target.value)},className:_===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?T?"valid":"invalid":"valid'",readOnly:s})]}),((ye=e==null?void 0:e.attributes)==null?void 0:ye.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:_===1&&!T?(Ae=e==null?void 0:e.validationMesssage)==null?void 0:Ae[S==null?void 0:S.type]:""})}),T!==""&&_===1&&lu.test(T)===!1&&o.jsx("small",{className:"error",children:"Please enter correct url"}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(_e=e==null?void 0:e.helperText)==null?void 0:_e[S==null?void 0:S.type]})})]}),c&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[$===!0&&o.jsx(Xi,{visibilty:$,closeSettingFieldSidebar:pe,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:re})]})},Ywe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxfuTKxcePGg6IoOsjMDlUUHeJBcJBJh8n9YHc/2MwOdelgSfMl7VfnkeyUtMWke1y606R73f1uBcFdFkX3Kgjudve7giC4d9GiRfdaf3+BswgAKAAAUDM2HXfcARNtbYcH0mFeKHRYEBxu0mEeRR1m1uHSQklNJFW0zZJGJI2YdKdLd5g04tKdhSC4o2tgYKNJETEBAAUAAMoiHYbN892PkNQZSEkPgk65d7qUNKldUhspzagxl0bNbFhRNGxSzqThgpTbYraJKUcAQAEAgIc0vHjxwWpu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GZZNCv2UhFJMxJN/p7ESVPbAk9njPJdDxz3nwUgj69nuu4NNDghWlwRR7MtUwZJBRJtxqa2BY5j8m6B/kvZxsRa8zkAGaSb2Ys9uIfEvn265N0kPhdtbuzT9SSVVBrirKmnCR7Zp0s+zhZeF2t4qk/X0xRXADKINTxF4j/24VJbCa5iGyc6+UuajmhzI9s4keAqYGvvL8h/cPLPwxWATNJNDLKY7wPtHl3iW8Al0eIXPfp8SRWXhnk98AfAO3p0iVsZZfXU2Sj1mQUgozTC4cAPSRzQxY99kOB3osk1XfxMSTWWhjmHySJweBc/9iGCVb4GOB+3ADKKJr8isRa6chveGME6tnCck7+kbooW15M4AbgSunKA+CESb3Pyz8sVgAJIP+YQxvkz4PRZfsRNwGejxb90MZYkvUIa5njgi8DaWX7EdxjgQz5/JD8LQEFMvbnrIyR+l+kvs/0UuDxa/GUPo0nSK6Rh3kPiKoKl0/wt9xD8O1bwxxF0ehpO02IBKJipw4HvBN4NrAZez4tvDxwD/pnE90n8T9p8128kSbmkRINh3gScT3AqcAIwb+qXJ4C7gO8Df8kG/tqH/RSLBaDg0nUMcByLATiJzU74kooqJRr8hL0B+BmjTviSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJKnG/n/K52f+BC6LdAAAAABJRU5ErkJggg==",Gwe=t=>{var re,Y,me,ee,ie,K,ae,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isPreview:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:m,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=mr(),{userSelectedLanguage:A}=sn(),[S,C]=N.useState(!1),[w,T]=N.useState(""),[x,_]=N.useState(0),[E,D]=N.useState(!1),V=()=>{D(!0)},L=()=>{D(!1)};N.useEffect(()=>{S||pe();const ye=Kt.addListener("clearRepeatableFields",_e=>{_e===(i==null?void 0:i.uuid)&&(T(""),_(0),e.isValid=0)}),Ae=Kt.addListener("onSubmitUserForm",()=>{var _e;(_e=e==null?void 0:e.attributes)!=null&&_e.required?w!==""&&lu.test(w)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Ae.remove(),ye.remove()}});const[F,$]=N.useState(!1),k=ye=>{$(ye)},H=()=>{$(!1)},pe=()=>{var ye,Ae,_e;if(i!=null&&i.rowIsRepeatable){const ne=[...(i==null?void 0:i.repeatableFields)||[]],q=Ct.findIndex(ne,function(te){return te.uuid===(e==null?void 0:e.uuid)});q>=0&&ne[q].fieldData?T(ne[q].fieldData):T("")}else{const ne=g;if(ne!=null&&ne.length){for(const q of ne)if(q.fieldId===t.field.uuid&&((ye=q==null?void 0:q.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=q==null?void 0:q.postData[0])!=null&&Ae.postValue)){T((_e=q==null?void 0:q.postData[0])==null?void 0:_e.postValue),C(!0);break}}}C(!0)},he=(ye,Ae)=>{T(Ae);const _e=g,ne=Ct.cloneDeep(d);if(_e!==null){if(Ae){if(ne[e==null?void 0:e.uuid]=Ae,(_e==null?void 0:_e.length)>0)for(const q of _e)q.fieldId===t.field.uuid&&(q.postData[0]={postValue:Ae})}else if(delete ne[e==null?void 0:e.uuid],(_e==null?void 0:_e.length)>0)for(const q of _e)q.fieldId===t.field.uuid&&(q.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const q=Object.keys(ne).length;h(q)}},Z=(ye,Ae,_e,ne)=>{var de;const q=[...g],te=Ct.findIndex(q,function(Ce){return Ce.rowId===(i==null?void 0:i.uuid)});let Q=(de=g[te])==null?void 0:de.repeatableFields;Q={...Q,[_e==null?void 0:_e.uuid]:ne},q[te]={...q[te],repeatableFields:Q},m(q),T(ne),ne!==""&&lu.test(ne)===!0?e.isValid=1:e.isValid=0},W=o.jsxs("div",{onMouseOver:V,onMouseOut:L,children:[!c&&!l&&E&&o.jsx(jr,{handleFieldSettingsSidebar:k,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:s?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(re=e==null?void 0:e.headerText)==null?void 0:re[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((Y=e==null?void 0:e.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(me=e==null?void 0:e.label)==null?void 0:me[A==null?void 0:A.type]}):o.jsx(ea,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(P6,{cancelIcon:o.jsx("img",{src:Ywe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:Kwe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:Xwe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[A==null?void 0:A.type],value:w,onFocus:()=>_(1),onChange:ye=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,ye.value):he(ye,ye.value)},className:x===1&&((K=e==null?void 0:e.attributes)!=null&&K.required)?w?"valid":"invalid":"valid'",readOnly:a})}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:x===1&&!w?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Xi,{visibilty:F,closeSettingFieldSidebar:H,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:W})]})},Rwe=t=>{var re,Y,me,ee,ie,K,ae,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:m,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=mr(),{userSelectedLanguage:A}=sn(),[S,C]=N.useState(!1),[w,T]=N.useState(""),[x,_]=N.useState(0),[E,D]=N.useState(!1),V=()=>{D(!0)},L=()=>{D(!1)};N.useEffect(()=>{S||pe();const ye=Kt.addListener("clearRepeatableFields",_e=>{_e===(i==null?void 0:i.uuid)&&(T(""),_(0),e.isValid=0)}),Ae=Kt.addListener("onSubmitUserForm",()=>{var _e;(_e=e==null?void 0:e.attributes)!=null&&_e.required?w!==""&&lu.test(w)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Ae.remove(),ye.remove()}});const[F,$]=N.useState(!1),k=ye=>{$(ye)},H=()=>{$(!1)},pe=()=>{var ye,Ae,_e;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const ne=[...i.repeatableFields],q=Ct.findIndex(ne,function(te){return te.uuid===(e==null?void 0:e.uuid)});q>=0&&ne[q].fieldData?T(ne[q].fieldData):T("")}}else{const ne=g;if(ne!=null&&ne.length){for(const q of ne)if(q.fieldId===t.field.uuid&&((ye=q==null?void 0:q.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=q==null?void 0:q.postData[0])!=null&&Ae.postValue)){T((_e=q==null?void 0:q.postData[0])==null?void 0:_e.postValue),C(!0);break}}}C(!0)},he=(ye,Ae)=>{T(Ae);const _e=g,ne=Ct.cloneDeep(d);if(_e!==null){if(Ae){if(ne[e==null?void 0:e.uuid]=Ae,(_e==null?void 0:_e.length)>0)for(const q of _e)q.fieldId===t.field.uuid&&(q.postData[0]={postValue:Ae})}else if(delete ne[e==null?void 0:e.uuid],(_e==null?void 0:_e.length)>0)for(const q of _e)q.fieldId===t.field.uuid&&(q.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const q=Object.keys(ne).length;h(q)}},Z=(ye,Ae,_e,ne)=>{var de;const q=[...g],te=Ct.findIndex(q,function(Ce){return Ce.rowId===(i==null?void 0:i.uuid)});let Q=(de=g[te])==null?void 0:de.repeatableFields;Q={...Q,[_e==null?void 0:_e.uuid]:ne},q[te]={...q[te],repeatableFields:Q},m(q),T(ne),ne!==""&&lu.test(ne)===!0?e.isValid=1:e.isValid=0},W=o.jsxs("div",{onMouseOver:V,onMouseOut:L,children:[!c&&!s&&E&&o.jsx(jr,{handleFieldSettingsSidebar:k,...t}),o.jsx("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:s?"col-12 p-fluid":"col-12 p-fluid field-form-builder",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(re=e==null?void 0:e.headerText)==null?void 0:re[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((Y=e==null?void 0:e.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(me=e==null?void 0:e.label)==null?void 0:me[A==null?void 0:A.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx(L6,{id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[A==null?void 0:A.type],value:w,onFocus:()=>_(1),onChange:ye=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,ye.value):he(ye,ye.value)},className:x===1&&((K=e==null?void 0:e.attributes)!=null&&K.required)?w?"valid":"invalid":"valid'",readOnly:a}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:x===1&&!w?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Xi,{visibilty:F,closeSettingFieldSidebar:H,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:W})]})},Wwe=t=>{var W,re,Y,me,ee,ie;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Qt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=mr(),{userSelectedLanguage:v}=sn(),[A,S]=N.useState(!1),[C,w]=N.useState(""),[T,x]=N.useState(0),[_,E]=N.useState(!1),D=()=>{E(!0)},V=()=>{E(!1)};N.useEffect(()=>{A||H();const K=Kt.addListener("clearRepeatableFields",fe=>{fe===(i==null?void 0:i.uuid)&&(w(""),x(0),e.isValid=0)}),ae=Kt.addListener("onSubmitUserForm",()=>{var fe;(fe=e==null?void 0:e.attributes)!=null&&fe.required&&(C!==""&&lu.test(C)===!0?e.isValid=1:e.isValid=0)});return()=>{ae.remove(),K.remove()}});const[L,F]=N.useState(!1),$=K=>{F(K)},k=()=>{F(!1)},H=()=>{var K,ae,fe;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const be=[...i.repeatableFields],ye=Ct.findIndex(be,function(Ae){return Ae.uuid===(e==null?void 0:e.uuid)});ye>=0&&be[ye].fieldData?w(be[ye].fieldData):w("")}}else{const be=m;if(be!=null&&be.length){for(const ye of be)if(ye.fieldId===t.field.uuid&&((K=ye==null?void 0:ye.postData[0])==null?void 0:K.postValue)!==""&&((ae=ye==null?void 0:ye.postData[0])!=null&&ae.postValue)){w((fe=ye==null?void 0:ye.postData[0])==null?void 0:fe.postValue),S(!0);break}}}S(!0)},pe=(K,ae)=>{w(ae);const fe=m,be=Ct.cloneDeep(u);if(ae){if(be[e==null?void 0:e.uuid]=ae,(fe==null?void 0:fe.length)>0)for(const ye of fe)ye.fieldId===t.field.uuid&&(ye.postData[0]={postValue:ae})}else if(delete be[e==null?void 0:e.uuid],(fe==null?void 0:fe.length)>0)for(const ye of fe)ye.fieldId===t.field.uuid&&(ye.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(be);const ye=Object.keys(be).length;f(ye)}},he=(K,ae,fe,be)=>{var ne;const ye=[...m],Ae=Ct.findIndex(ye,function(q){return q.rowId===(i==null?void 0:i.uuid)});let _e=(ne=m[Ae])==null?void 0:ne.repeatableFields;_e={..._e,[fe==null?void 0:fe.uuid]:be},ye[Ae]={...ye[Ae],repeatableFields:_e},h(ye),w(be),be!==""&&lu.test(be)===!0?e.isValid=1:e.isValid=0},Z=o.jsxs("div",{onMouseOver:D,onMouseOut:V,children:[!l&&!a&&_&&o.jsx(jr,{handleFieldSettingsSidebar:$,...t}),o.jsxs("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" p-fluid ":" "} ${l?" ":" py-6 px-4 card"}`,children:[o.jsxs("div",{className:a?"p-fluid":"card p-fluid field-form-builder",children:[!a&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(gn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(W=e==null?void 0:e.placeholder)==null?void 0:W[v==null?void 0:v.type],value:(re=e==null?void 0:e.defaultValue)==null?void 0:re[v==null?void 0:v.type],onFocus:()=>x(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?he(n,r,e,e==null?void 0:e.defaultValue):pe("",e==null?void 0:e.defaultValue)},className:T===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?C?"valid":"invalid":"valid'",readOnly:c===g}),((me=e==null?void 0:e.attributes)==null?void 0:me.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:T===1&&!C?(ee=e==null?void 0:e.validationMesssage)==null?void 0:ee[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ie=e==null?void 0:e.helperText)==null?void 0:ie[v==null?void 0:v.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[L===!0&&o.jsx(Xi,{visibilty:L,closeSettingFieldSidebar:k,...t}),o.jsx(wi,{...t,fieldWrap:Z})]})},Z$=t=>{var T;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=N.useState(e),{isPreview:f}=Qt();N.useEffect(()=>{var x;return C((x=e[c])==null?void 0:x[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:m,fieldSettingUpdateInlineConditional:g,gridComponentFieldSettingUpdate:v}=sn(),A=(x,_,E)=>{d(D=>({...D,[x]:{...D[x],[_==null?void 0:_.type]:E}}))},[S,C]=N.useState((T=e[c])==null?void 0:T[h==null?void 0:h.type]);N.useEffect(()=>(w(),()=>{}),[u]);const w=()=>{const x=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?g(x[oa],x[la],x[fa],x[ha],x[pa],x[wa],x[$o],x[yo],u):(x==null?void 0:x.length)>wa&&(x==null?void 0:x.length)===Bl+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?v(x[oa],x[la],x[fa],x[ha],x[pa],x[5],x[6],x[7],u):m(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(B3,{style:{display:"inline-block"},className:"builder-input-label-edit",html:S,disabled:f,onChange:x=>{var _;C(j3.sanitize((_=x==null?void 0:x.target)==null?void 0:_.value))},onBlur:x=>{var E;const _=j3.sanitize((E=x==null?void 0:x.target)==null?void 0:E.innerText);C(_),A(c,h,_)},tagName:"article"})})},Qwe=t=>{var ie,K,ae,fe,be,ye,Ae;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=mr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g,isDisabled:v}=t,{isPreview:A,isAdmin:S,isRenderView:C}=Qt(),[w,T]=N.useState(!1),[x,_]=N.useState(""),[E,D]=N.useState(0),[V,L]=N.useState(!1),[F,$]=N.useState(!1),k=()=>{$(!0)},H=()=>{$(!1)},pe=()=>{var _e,ne,q;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const te=[...h.repeatableFields],Q=Ct.findIndex(te,function(de){return de.uuid===(c==null?void 0:c.uuid)});Q>=0&&te[Q].fieldData?_(te[Q].fieldData):_("")}}else{const te=a;if(te!=null&&te.length){for(const Q of te)if(Q.fieldId===t.field.uuid&&((_e=Q==null?void 0:Q.postData[0])==null?void 0:_e.postValue)!==""&&((ne=Q==null?void 0:Q.postData[0])!=null&&ne.postValue)){_((q=Q==null?void 0:Q.postData[0])==null?void 0:q.postValue);break}}}L(!0)};N.useEffect(()=>{V||pe();const _e=Kt.addListener("clearRepeatableFields",Q=>{Q===(h==null?void 0:h.uuid)&&(_(""),D(0),c.isValid=0,l(f,d,m,g,u,c))}),ne=Kt.addListener("onSubmitUserForm",()=>{var Q;(Q=c==null?void 0:c.attributes)!=null&&Q.required?x?c.isValid=1:c.isValid=0:c.isValid=1}),q=Kt.addListener("OnInvalidFieldCatch",Q=>{c.uuid===(Q==null?void 0:Q.fieldId)?D(1):D(0)}),te=Kt.addListener("OnGetFieldValue",Q=>{var Ce;const de=(Ce=Q==null?void 0:Q.repeatableColumn)==null?void 0:Ce.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));de!=null&&de.length});return()=>{ne.remove(),q.remove(),te.remove(),_e.remove()}});const he=_e=>{T(_e)},Z=()=>{T(!1)},W=_e=>{var te,Q;_(_e.target.value);const ne=a,q=Ct.cloneDeep(e);if(ne!==null){if((te=_e==null?void 0:_e.target)!=null&&te.value){if(q[c==null?void 0:c.uuid]=(Q=_e==null?void 0:_e.target)==null?void 0:Q.value,(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:_e.target.value})}else if(delete q[c==null?void 0:c.uuid],(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(q);const de=Object.keys(q).length;r(de)}},re=(_e,ne,q,te)=>{var Q;if(a){const de=[...a],Ce=Ct.findIndex(de,function(Oe){return Oe.rowId===(h==null?void 0:h.uuid)});let Ee=(Q=a[Ce])==null?void 0:Q.repeatableFields;Ee={...Ee,[q==null?void 0:q.uuid]:te},de[Ce]={...de[Ce],repeatableFields:Ee},i(de)}_(te),te!==""?q.isValid=1:q.isValid=0},Y=10,me=()=>{const _e=[];for(let ne=0;ne<=Y;ne++)_e.push(o.jsxs("label",{children:[o.jsx("input",{onChange:q=>{h!=null&&h.rowIsRepeatable?re(f,d,c,q.target.value):W(q)},checked:parseInt(x)===ne,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne,disabled:v}),o.jsx("span",{children:ne})]},`field-${c==null?void 0:c.uuid}-likertScale-${ne} ${parseInt(x)===ne?"scale-selected":""}`));return _e},ee=o.jsxs("div",{onMouseOver:k,onMouseOut:H,children:[!C&&!A&&F&&o.jsx(jr,{handleFieldSettingsSidebar:he,...t}),o.jsxs("div",{className:`field ${A?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ie=c==null?void 0:c.headerText)==null?void 0:ie[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((K=c==null?void 0:c.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(o.Fragment,{children:(ae=c==null?void 0:c.label)==null?void 0:ae[s==null?void 0:s.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(fe=c==null?void 0:c.toolTip)==null?void 0:fe[s==null?void 0:s.type],position:"right"})})]}),o.jsx("div",{children:o.jsxs("div",{className:"mt-4",children:[o.jsxs("div",{className:"flex justify-content-between mb-3",children:[o.jsx("div",{className:"font-medium text-900 ",children:o.jsx(Z$,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(Z$,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:me()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:E===1&&!x?(ye=c==null?void 0:c.validationMesssage)==null?void 0:ye.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Ae=c==null?void 0:c.helperText)==null?void 0:Ae[s==null?void 0:s.type]})})]}),S&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[w===!0&&o.jsx(Xi,{visibilty:w,closeSettingFieldSidebar:Z,...t}),o.jsx(wi,{...t,fieldWrap:ee})]})},Jwe=t=>{var ie,K,ae,fe,be,ye,Ae,_e,ne,q,te,Q;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=mr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A,isDisabled:S}=t,{isPreview:C,isAdmin:w,isRenderView:T}=Qt(),[x,_]=N.useState(!1),[E,D]=N.useState(""),[V,L]=N.useState(0),[F,$]=N.useState(!1),[k,H]=N.useState(!1),pe=()=>{H(!0)},he=()=>{H(!1)},Z=()=>{var de,Ce,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const Oe=[...g.repeatableFields],we=Ct.findIndex(Oe,function(Te){return Te.uuid===(d==null?void 0:d.uuid)});we>=0&&Oe[we].fieldData?D(Oe[we].fieldData):D("")}}else{const Oe=a;if(Oe!=null&&Oe.length){for(const we of Oe)if(we.fieldId===t.field.uuid&&((de=we==null?void 0:we.postData[0])==null?void 0:de.postValue)!==""&&((Ce=we==null?void 0:we.postData[0])!=null&&Ce.postValue)){D((Ee=we==null?void 0:we.postData[0])==null?void 0:Ee.postValue);break}}}$(!0)};N.useEffect(()=>{F||Z();const de=Kt.addListener("clearRepeatableFields",we=>{we===(g==null?void 0:g.uuid)&&(D(""),L(0),d.isValid=0,u(m,h,v,A,f,d))}),Ce=Kt.addListener("onSubmitUserForm",()=>{var we;(we=d==null?void 0:d.attributes)!=null&&we.required?E?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Kt.addListener("OnInvalidFieldCatch",we=>{d.uuid===(we==null?void 0:we.fieldId)?L(1):L(0)}),Oe=Kt.addListener("OnGetFieldValue",we=>{var ve;const Te=(ve=we==null?void 0:we.repeatableColumn)==null?void 0:ve.filter(M=>(M==null?void 0:M.fieldUuid)===(d==null?void 0:d.uuid));Te!=null&&Te.length});return()=>{Ce.remove(),Ee.remove(),Oe.remove(),de.remove()}});const W=de=>{_(de)},re=()=>{_(!1)},Y=de=>{var Oe,we;D(de.target.value);const Ce=a,Ee=Ct.cloneDeep(e);if(Ce!==null){if((Oe=de==null?void 0:de.target)!=null&&Oe.value){if(Ee[d==null?void 0:d.uuid]=(we=de==null?void 0:de.target)==null?void 0:we.value,(Ce==null?void 0:Ce.length)>0)for(const Te of Ce)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:de.target.value})}else if(delete Ee[d==null?void 0:d.uuid],(Ce==null?void 0:Ce.length)>0)for(const Te of Ce)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:""})}if(!(g!=null&&g.rowIsRepeatable)){n(Ee);const Te=Object.keys(Ee).length;r(Te)}},me=(de,Ce)=>{var Ee;if(a){const Oe=[...a],we=Ct.findIndex(Oe,function(ve){return ve.rowId===(g==null?void 0:g.uuid)});let Te=(Ee=a[we])==null?void 0:Ee.repeatableFields;Te={...Te,[de==null?void 0:de.uuid]:Ce},Oe[we]={...Oe[we],repeatableFields:Te},i(Oe)}D(Ce),Ce!==""?de.isValid=1:de.isValid=0},ee=o.jsxs("div",{onMouseOver:pe,onMouseOut:he,children:[!T&&!C&&k&&o.jsx(jr,{handleFieldSettingsSidebar:W,...t}),o.jsxs("div",{className:`field ${C?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:C?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(ie=d==null?void 0:d.headerText)==null?void 0:ie[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((K=d==null?void 0:d.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",C?o.jsx(o.Fragment,{children:(ae=d==null?void 0:d.label)==null?void 0:ae[c==null?void 0:c.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(fe=d==null?void 0:d.toolTip)==null?void 0:fe[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((ye=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:ye.name)}),o.jsx(gn,{id:d==null?void 0:d.uuid,placeholder:(Ae=d==null?void 0:d.placeholder)==null?void 0:Ae[c==null?void 0:c.type],value:E,onFocus:()=>L(1),onChange:de=>{g!=null&&g.rowIsRepeatable?me(d,de.target.value):Y(de)},className:V===1&&((_e=d==null?void 0:d.attributes)!=null&&_e.required)?E?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:S})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:V===1&&!E?(q=d==null?void 0:d.validationMesssage)==null?void 0:q.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(te=d==null?void 0:d.helperText)==null?void 0:te[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(Q=d==null?void 0:d.fontStyle)==null?void 0:Q.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:E})}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:re,...t}),o.jsx(wi,{...t,fieldWrap:ee})]})},Zwe=t=>{var _e,ne,q,te,Q,de,Ce,Ee,Oe,we,Te,ve,M,R,se,ge,le;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=mr(),{globalAlignment:l}=Qt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{isRenderView:d,isAdmin:f,isPreview:h}=Qt(),m=oe=>{const Fe=oe.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ne=`${oe.className} justify-content-start`,Ke=`${oe.titleClassName} pl-1`;return o.jsxs("div",{className:Ne,children:[o.jsxs("button",{className:oe.togglerClassName,onClick:oe.onTogglerClick,children:[o.jsx("span",{className:Fe}),o.jsx(Wt,{})]}),o.jsx("span",{className:Ke,children:Z})]})},{field:g,fieldIndex:v,sectionIndex:A,pageIndex:S,row:C,rowIndex:w,columnIndex:T,isDisabled:x}=t,[_,E]=N.useState(!1),[D,V]=N.useState(null),[L,F]=N.useState({country:null,city:null,state:null,addressOne:null,addressTwo:null,zipcode:null,isBillingAddressSame:!1,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}),[$,k]=N.useState(!1),H=()=>{k(!0)},pe=()=>{k(!1)},he=(oe,Fe)=>{let Ne={...L};Ne={...Ne,[oe]:Fe},F(Ne),(Ne==null?void 0:Ne.addressOne)!==""&&(Ne!=null&&Ne.addressTwo)&&(Ne!=null&&Ne.zipcode)&&ye(Ne==null?void 0:Ne.zipcode)?(g.isValid=1,ae(Ne,!0)):(g.isValid=0,ae(null,!1))},[Z]=N.useState((_e=g==null?void 0:g.label)==null?void 0:_e[c==null?void 0:c.type]),[W,re]=N.useState(0),[Y,me]=N.useState(!1),ee=()=>{var oe,Fe;if(!(C!=null&&C.rowIsRepeatable)){const Ne=i;if(Ne!=null&&Ne.length){for(const Ke of Ne)if(Ke.fieldId===t.field.uuid&&((oe=Ke==null?void 0:Ke.postData[0])!=null&&oe.postValue)){F((Fe=Ke==null?void 0:Ke.postData[0])==null?void 0:Fe.postValue);break}}}me(!0)};N.useEffect(()=>{Y||ee();const oe=Kt.addListener("clearRepeatableFields",wt=>{wt===(C==null?void 0:C.uuid)&&(re(0),g.isValid=0,u(S,A,w,T,v,g))}),Fe=Kt.addListener("onSubmitUserForm",()=>{var wt;(wt=g==null?void 0:g.attributes)!=null&&wt.required?(L==null?void 0:L.addressOne)!==""&&(L==null?void 0:L.zipcode)!==""&&ye(L==null?void 0:L.zipcode)?g.isValid=1:g.isValid=0:g.isValid=1}),Ne=Kt.addListener("OnInvalidFieldCatch",wt=>{g.uuid===(wt==null?void 0:wt.fieldId)?re(1):re(0)}),Ke=Kt.addListener("OnGetFieldValue",wt=>{var Xe;const nt=(Xe=wt==null?void 0:wt.repeatableColumn)==null?void 0:Xe.filter(Nt=>(Nt==null?void 0:Nt.fieldUuid)===(g==null?void 0:g.uuid));nt!=null&&nt.length}),vt=Kt.addListener("formFieldAdded",wt=>{D===null&&V(wt.uuid)});return()=>{Fe.remove(),Ne.remove(),Ke.remove(),oe.remove(),vt.remove()}});const ie=oe=>{E(oe)},K=()=>{E(!1)},ae=(oe,Fe)=>{const Ne=i,Ke=Ct.cloneDeep(e);if(Fe){if(Ke[g==null?void 0:g.uuid]=oe,(Ne==null?void 0:Ne.length)>0)for(const vt of Ne)vt.fieldId===t.field.uuid&&(vt.postData[0]={postValue:oe})}else if(delete Ke[g==null?void 0:g.uuid],(Ne==null?void 0:Ne.length)>0)for(const vt of Ne)vt.fieldId===t.field.uuid&&(vt.postData[0]={postValue:oe});if(!(C!=null&&C.rowIsRepeatable)){n(Ke);const vt=Object.keys(Ke).length;r(vt)}},fe=()=>{let oe="";return h||(oe=oe+" field-form-builder"),s===a&&f===!0&&(oe=oe+" card"),oe},be=()=>{let oe=!1;return L.addressOne!==""&&L.zipcode!==""&&ye(L.zipcode)&&(oe=!0),oe};function ye(oe){const Fe=/\d/.test(oe),Ne=/[a-zA-Z]/.test(oe);return Fe&&Ne?!0:!!Fe}N.useEffect(()=>(D!==null&&setTimeout(()=>{V(null)},1e3),()=>{}),[D]);const Ae=o.jsxs("div",{onMouseOver:H,onMouseOut:pe,children:[!d&&!h&&$&&o.jsx(jr,{handleFieldSettingsSidebar:ie,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(g==null?void 0:g.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${D===(g==null?void 0:g.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(g==null?void 0:g.showHeaderText)&&o.jsx("h6",{children:(ne=g==null?void 0:g.headerText)==null?void 0:ne[c==null?void 0:c.type]}),(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((q=g==null?void 0:g.attributes)==null?void 0:q.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(te=g==null?void 0:g.label)==null?void 0:te[c==null?void 0:c.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Mi,{message:(Q=g==null?void 0:g.toolTip)==null?void 0:Q[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(de=g==null?void 0:g.addresslineFirstLabel)==null?void 0:de[c==null?void 0:c.type]})}),o.jsx(gn,{value:L.addressOne||"",onChange:oe=>he("addressOne",oe.target.value),className:"my-2 ",readOnly:x}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ce=g==null?void 0:g.addresslineSecondLabel)==null?void 0:Ce[c==null?void 0:c.type]})}),o.jsx(gn,{value:L.addressTwo||"",onChange:oe=>he("addressTwo",oe.target.value),className:"my-2",readOnly:x}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ee=g==null?void 0:g.postalcodeLabel)==null?void 0:Ee[c==null?void 0:c.type]})}),o.jsx(gn,{value:L.zipcode||"",onChange:oe=>he("zipcode",oe.target.value),className:"my-2",readOnly:x}),o.jsx("p",{children:!ye(L.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((Oe=g==null?void 0:g.attributes)==null?void 0:Oe.required)&&!be()&&o.jsx("small",{className:"error",children:W===1?(we=g==null?void 0:g.validationMesssage)==null?void 0:we.language:""}),(g==null?void 0:g.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"binary",checked:L.isBillingAddressSame,onChange:oe=>{he("isBillingAddressSame",oe.checked),oe.checked?F(Fe=>({...Fe,billingCountry:L.country,billingCity:L.city,billingState:L.state,billingAddressOne:L.addressOne,billingAddressTwo:L.addressTwo,billingZipcode:L.zipcode})):F(Fe=>({...Fe,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:x}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),L.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Te=g==null?void 0:g.attributes)==null?void 0:Te.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(ve=g==null?void 0:g.billingLabel)==null?void 0:ve[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Mi,{message:(M=g==null?void 0:g.toolTip)==null?void 0:M[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(R=g==null?void 0:g.addresslineFirstLabel)==null?void 0:R[c==null?void 0:c.type]}),o.jsx(gn,{value:L.billingAddressOne||"",onChange:oe=>he("billingAddressOne",oe.target.value),className:"my-2",readOnly:x}),o.jsx("label",{htmlFor:"",children:(se=g==null?void 0:g.addresslineSecondLabel)==null?void 0:se[c==null?void 0:c.type]}),o.jsx(gn,{value:L.billingAddressTwo||"",onChange:oe=>he("billingAddressTwo",oe.target.value),className:"my-2",readOnly:x}),o.jsx("label",{htmlFor:"",children:(ge=g==null?void 0:g.postalcodeLabel)==null?void 0:ge[c==null?void 0:c.type]}),o.jsx(gn,{value:L.billingZipcode||"",onChange:oe=>he("billingZipcode",oe.target.value),className:"my-2",readOnly:x}),!ye(L.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(g==null?void 0:g.showHelperText)&&o.jsx("small",{children:(le=g==null?void 0:g.helperText)==null?void 0:le[c==null?void 0:c.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[_===!0&&o.jsx(Xi,{visibilty:_,closeSettingFieldSidebar:K,...t}),o.jsx("div",{dir:l?"ltr":"rtl",className:fe(),children:s===a&&f===!0?o.jsx(li,{headerTemplate:m,toggleable:!0,children:Ae}):Ae})]})},eSe=t=>{var w;const{customColumn:e,indexes:n,customColumnIndex:r,path:i,field:a,onSetValuetoPostData:s,sectionIndex:l,page:c,row:u,column:d,section:f,pageIndex:h,rowIndex:m,columnIndex:g}=t,{handleDrop:v}=sn(),{isPreview:A,isAdvanceView:S}=Qt(),C=(T,x)=>{s(T,x)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((w=a.children)==null?void 0:w.length)>0&&a.children.map((T,x)=>{const _=T[`${n.rowIndex}-${n.columnIndex}`];return _?o.jsx("div",{children:o.jsx(qc,{type:"grid",showFieldIcons:!1,onChange:C,data:_,field:_,path:`${i}-${n.rowIndex}-${n.columnIndex}-${x}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:m,columnIndex:g,fieldIndex:x,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${x}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Tr,{isAdvanceView:S,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:v})})]})},ej=t=>{var F,$,k,H,pe,he,Z;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,isPreview:c,userSelectedLanguage:u,fieldIndex:d,customColumnHeaderTemplate:f,onSetValuetoPostData:h,setAllFields:m,allFields:g,actionHeaderTemplate:v,actionBodyTemplate:A,isFocus:S,inputValue:C,handleFieldSettingsSidebar:w,isAdmin:T,emitSocketData:x,isRenderView:_}=t,[E,D]=N.useState(!1),V=()=>{D(!0)},L=()=>{D(!1)};return o.jsxs("div",{onMouseOver:V,onMouseOut:L,children:[!_&&!c&&E&&o.jsx(jr,{handleFieldSettingsSidebar:w,...t}),o.jsxs("div",{className:`field ${c?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 ":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(F=e==null?void 0:e.headerText)==null?void 0:F[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:d,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),(($=e==null?void 0:e.attributes)==null?void 0:$.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(o.Fragment,{children:(k=e==null?void 0:e.label)==null?void 0:k[u==null?void 0:u.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(H=e==null?void 0:e.toolTip)==null?void 0:H[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(zs,{scrollable:!0,showGridlines:!0,columnResizeMode:"expand",resizableColumns:!0,value:e==null?void 0:e.options,tableStyle:{minWidth:"50rem"},children:[e==null?void 0:e.customColumnsForOptions.map((W,re)=>o.jsx(dr,{style:{minWidth:350},header:f(W,re),body:(Y,me)=>o.jsx(eSe,{customColumn:W,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:Y,indexes:me,customColumnIndex:re,onSetValuetoPostData:h,setAllFields:m,allFields:g,emitSocketData:x,field:e,...t})},W==null?void 0:W.uuid)),!c&&o.jsx(dr,{frozen:!0,header:W=>v(W),body:(W,re)=>A(W,re),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((pe=e==null?void 0:e.attributes)==null?void 0:pe.required)&&o.jsx("small",{className:"error",children:S===1&&!C?(he=e==null?void 0:e.validationMesssage)==null?void 0:he.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Z=e==null?void 0:e.helperText)==null?void 0:Z[u==null?void 0:u.type]})})]})]})}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},tj=t=>{var _e;const{globalAlignment:e}=Qt(),n=ne=>{const q=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",te=`${ne.className} justify-content-start`,Q=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:te,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:q}),o.jsx(Wt,{})]}),o.jsx("span",{className:Q,children:x})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=mr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:m,rowIndex:g,columnIndex:v,isAdmin:A}=t,[S,C]=N.useState(!1),[w,T]=N.useState(""),[x]=N.useState((_e=u==null?void 0:u.label)==null?void 0:_e[s==null?void 0:s.type]),[_,E]=N.useState(0),[D,V]=N.useState(!1),[L,F]=N.useState(null),[$,k]=N.useState([]),H=()=>{var ne,q,te;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const Q=[...m.repeatableFields],de=Ct.findIndex(Q,function(Ce){return Ce.uuid===(u==null?void 0:u.uuid)});de>=0&&Q[de].fieldData?T(Q[de].fieldData):T("")}}else{const Q=r;if(Q!=null&&Q.length){for(const de of Q)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&((q=de==null?void 0:de.postData[0])!=null&&q.postValue)){T((te=de==null?void 0:de.postData[0])==null?void 0:te.postValue);break}}}V(!0)},pe=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:it()}],Ae(ne)},[he,Z]=N.useState(!1),W=(ne,q)=>{var te;return o.jsxs(o.Fragment,{children:[((te=u==null?void 0:u.options)==null?void 0:te.length)>1&&o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>me(ne==null?void 0:ne.uuid,q==null?void 0:q.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>be(),"aria-label":"Add Row",size:"small"})]})},re=(ne,q)=>{var te;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((te=u==null?void 0:u.customColumnsForOptions)==null?void 0:te.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ee(ne==null?void 0:ne.uuid,q)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{F(ne),Z(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,icon:"pi pi-plus",onClick:()=>pe(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),me=(ne,q)=>{var Ee,Oe;const te=(Ee=u==null?void 0:u.customColumnsForOptions)==null?void 0:Ee.length,Q=[...(u==null?void 0:u.children)||[]];(Oe=u==null?void 0:u.children)==null||Oe.map(we=>{for(let Te=0;Te<te;Te++)if(we[`${q}-${Te}`]!==void 0){const ve=Ct.findIndex(Q,function(M){return M[`${q}-${Te}`]!==void 0});Q.splice(ve,1)}});for(let we=0;we<(Q==null?void 0:Q.length);we++){const Te=Q[we],M=Object.keys(Te)[0].split("-");parseInt(M[0])>q&&(Q[we]={[`${parseInt(M[0])-1}-${M[1]}`]:Q[we][`${parseInt(M[0])}-${M[1]}`]})}const de=u==null?void 0:u.options.filter(function(we){return(we==null?void 0:we.uuid)!==ne}),Ce={...u,children:[...Q]};Ce.options=de,Ae(Ce)},ee=(ne,q)=>{var Oe,we;const te=Ct.findIndex(u==null?void 0:u.customColumnsForOptions,Te=>Te.uuid===ne),Q=u==null?void 0:u.customColumnsForOptions.filter(function(Te,ve){return ve!==te}),de=(Oe=u==null?void 0:u.options)==null?void 0:Oe.length,Ce=[...(u==null?void 0:u.children)||[]];(we=u==null?void 0:u.children)==null||we.map(Te=>{for(let ve=0;ve<de;ve++)if(Te[`${ve}-${q}`]!==void 0){const M=Ct.findIndex(Ce,function(R){return R[`${ve}-${q}`]!==void 0});Ce.splice(M,1)}});for(let Te=0;Te<(Ce==null?void 0:Ce.length);Te++){const ve=Ce[Te],R=Object.keys(ve)[0].split("-");parseInt(R[1])>q&&(Ce[Te]={[`${parseInt(R[0])}-${parseInt(R[1])-1}`]:Ce[Te][`${parseInt(R[0])}-${R[1]}`]})}const Ee={...u,children:[...Ce]};Ee.customColumnsForOptions=Q,Ae(Ee)};N.useEffect(()=>{D||H();const ne=Kt.addListener("clearRepeatableFields",de=>{de===(m==null?void 0:m.uuid)&&(T(""),E(0),u.isValid=0,l(h,f,g,v,d,u))}),q=Kt.addListener("onSubmitUserForm",()=>{var de;(de=u==null?void 0:u.attributes)!=null&&de.required&&(u.isValid=1)}),te=Kt.addListener("OnInvalidFieldCatch",de=>{u.uuid===(de==null?void 0:de.fieldId)?E(1):E(0)}),Q=Kt.addListener("OnGetFieldValue",de=>{var Ee;const Ce=(Ee=de==null?void 0:de.repeatableColumn)==null?void 0:Ee.filter(Oe=>(Oe==null?void 0:Oe.fieldUuid)===(u==null?void 0:u.uuid));Ce!=null&&Ce.length});return()=>{q.remove(),te.remove(),Q.remove(),ne.remove()}});const ie=ne=>{C(ne)},K=()=>{C(!1)},ae=(ne,q)=>{var Q;const te=r;if((te==null?void 0:te.length)>0)for(const de of te)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:{...(Q=de.postData[0])==null?void 0:Q.postValue,[ne]:q}})},fe=()=>{let ne="";return c||(ne=ne+" field-form-builder"),a===i&&A===!0&&(ne=ne+" card"),ne},be=()=>{const ne=u;ne.options=[...ne.options,{uuid:it(),custom_values:{}}],Ae(ne)},ye=(ne,q)=>{F(Ce=>Ce===null?{customKey:q,uuid:""}:{...Ce,customKey:q});const te=u.customColumnsForOptions,Q=te.findIndex(Ce=>Ce.uuid===ne.uuid);te[Q]={...te[Q],customKey:q};const de=u;de.customColumnsForOptions=te,Ae(de)},Ae=ne=>{l(h,f,g,v,d,ne)};return o.jsxs(o.Fragment,{children:[o.jsx(Is,{maximizable:!0,header:"Update Column Title",visible:he,style:{width:"20vw"},footer:()=>o.jsx(Pt,{text:!0,label:"Save",onClick:()=>Z(!1)}),onHide:()=>Z(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(gn,{value:(L==null?void 0:L.customKey)||"",onChange:ne=>ye(L,ne.target.value)})})}),o.jsx(Xi,{visibilty:S,closeSettingFieldSidebar:K,...t}),o.jsx("div",{dir:e,className:fe(),children:a===i&&A===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(ej,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:re,onSetValuetoPostData:ae,setAllFields:ne=>k(ne),allFields:$,actionHeaderTemplate:Y,actionBodyTemplate:W,addOption:be,isFocus:_,inputValue:w,handleFieldSettingsSidebar:ie,isAdmin:A})}):o.jsx(ej,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:re,onSetValuetoPostData:ae,setAllFields:ne=>k(ne),allFields:$,actionHeaderTemplate:Y,actionBodyTemplate:W,addOption:be,isFocus:_,inputValue:w,handleFieldSettingsSidebar:ie,isAdmin:A})})]})},tSe=t=>{const{customColumn:e,indexes:n,customColumnIndex:r,setAllFields:i,allFields:a}=t,s=l=>{const c={...a};c[`${n==null?void 0:n.rowIndex}-${r}`]=l,i(c)};return o.jsx("div",{children:o.jsx(Sa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},nj=t=>{var T,x,_,E,D,V,L;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,customColumnRowBodyTemplate:s,setAllFields:l,allFields:c,actionHeaderTemplate:u,actionBodyTemplate:d,isFocus:f,inputValue:h,handleFieldSettingsSidebar:m,isAdmin:g,isRenderView:v}=t,[A,S]=N.useState(!1),C=()=>{S(!0)},w=()=>{S(!1)};return o.jsxs("div",{onMouseOver:C,onMouseOut:w,children:[!v&&!n&&A&&o.jsx(jr,{handleFieldSettingsSidebar:m,...t}),o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:n?"col-12 ":"col-11 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(T=e==null?void 0:e.headerText)==null?void 0:T[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((x=e==null?void 0:e.attributes)==null?void 0:x.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(_=e==null?void 0:e.label)==null?void 0:_[r==null?void 0:r.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(E=e==null?void 0:e.toolTip)==null?void 0:E[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(zs,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(dr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:F=>s(F)}),e==null?void 0:e.customColumns.map((F,$)=>o.jsx(dr,{header:a(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(k,H)=>o.jsx(tSe,{customColumn:F,e:k,indexes:H,customColumnIndex:$,setAllFields:l,allFields:c,...t})},F==null?void 0:F.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:F=>u(F),body:F=>d(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((D=e==null?void 0:e.attributes)==null?void 0:D.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(V=e==null?void 0:e.validationMesssage)==null?void 0:V.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(L=e==null?void 0:e.helperText)==null?void 0:L[r==null?void 0:r.type]})})]})]})}),g&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},nSe=(t,e)=>{var Te,ve;const n=M=>{const R=M.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${M.className} justify-content-start`,ge=`${M.titleClassName} pl-1`;return o.jsxs("div",{className:se,children:[o.jsxs("button",{className:M.togglerClassName,onClick:M.onTogglerClick,children:[o.jsx("span",{className:R}),o.jsx(Wt,{})]}),o.jsx("span",{className:ge,children:_})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=mr(),{globalAlignment:s,isPreview:l,isAdmin:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:S}=t,[C,w]=N.useState(!1),[T,x]=N.useState(""),[_]=N.useState((Te=f==null?void 0:f.label)==null?void 0:Te[u==null?void 0:u.type]),[E,D]=N.useState(0),[V,L]=N.useState(!1),[F,$]=N.useState(null),[k,H]=N.useState(null),[pe,he]=N.useState({}),Z=()=>{var M,R,se;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ge=[...v.repeatableFields],le=Ct.findIndex(ge,function(oe){return oe.uuid===(f==null?void 0:f.uuid)});le>=0&&ge[le].fieldData?x(ge[le].fieldData):x("")}}else{const ge=r;if(ge!=null&&ge.length){for(const le of ge)if(le.fieldId===t.field.uuid&&((M=le==null?void 0:le.postData[0])==null?void 0:M.postValue)!==""&&((R=le==null?void 0:le.postData[0])!=null&&R.postValue)){x((se=le==null?void 0:le.postData[0])==null?void 0:se.postValue);break}}}L(!0)},W=()=>{const M=f;M.customColumns=[...M.customColumns,{customKey:"Column",uuid:it(),options:[]}],de(M)},[re,Y]=N.useState(!1),[me,ee]=N.useState(!1),ie=M=>{var R;return o.jsxs(o.Fragment,{children:[((R=f==null?void 0:f.rows)==null?void 0:R.length)>1&&o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(M==null?void 0:M.uuid),"aria-label":"Add Row"}),o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>q(),"aria-label":"Add Row"})]})},K=M=>{var R;return o.jsxs(o.Fragment,{children:[M==null?void 0:M.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((R=f==null?void 0:f.customColumns)==null?void 0:R.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ye(M==null?void 0:M.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{$(M),Y(!0)}})]})]})},ae=()=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>W(),"aria-label":"Add Column"})}),fe=M=>o.jsxs(o.Fragment,{children:[M==null?void 0:M.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{H(M),ee(!0)}})})]}),be=M=>{const R=f==null?void 0:f.rows.filter(function(ge){return(ge==null?void 0:ge.uuid)!==M}),se=f;se.rows=R,de(se)},ye=M=>{const R=Ct.findIndex(f==null?void 0:f.customColumns,le=>le.uuid===M),se=f==null?void 0:f.customColumns.filter(function(le,oe){return oe!==R}),ge=f;ge.customColumns=se,de(ge)};N.useEffect(()=>{V||Z();const M=Kt.addListener("clearRepeatableFields",ge=>{ge===(v==null?void 0:v.uuid)&&(x(""),D(0),f.isValid=0,d(g,m,A,S,h,f))}),R=Kt.addListener("OnInvalidFieldCatch",ge=>{f.uuid===(ge==null?void 0:ge.fieldId)?D(1):D(0)}),se=Kt.addListener("OnGetFieldValue",ge=>{var oe;const le=(oe=ge==null?void 0:ge.repeatableColumn)==null?void 0:oe.filter(Fe=>(Fe==null?void 0:Fe.fieldUuid)===(f==null?void 0:f.uuid));le!=null&&le.length});return()=>{R.remove(),se.remove(),M.remove()}});const Ae=M=>{w(M)},_e=()=>{w(!1)},ne=()=>{let M="";return l||(M=M+" field-form-builder"),a===i&&c===!0&&(M=M+" card"),M},q=()=>{const M=f;M.rows=[...M.rows,{rowHeading:"Row",uuid:it(),custom_values:{}}],de(M)},te=(M,R)=>{$(oe=>oe===null?{customKey:R,uuid:""}:{...oe,customKey:R});const se=f.customColumns,ge=se.findIndex(oe=>oe.uuid===M.uuid);se[ge]={...se[ge],customKey:R};const le=f;le.customColumns=se,de(le)},Q=(M,R)=>{H(oe=>oe===null?{uuid:"",rowHeading:R}:{...oe,rowHeading:R});const se=f.rows,ge=se.findIndex(oe=>oe.uuid===M.uuid);se[ge]={...se[ge],rowHeading:R};const le=f;le.rows=se,de(le)},de=M=>{d(g,m,A,S,h,M)};function Ce(M){return M.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Ee=(M,R,se)=>{const ge=f.customColumns,le=ge.findIndex(Fe=>F&&Fe.uuid===F.uuid);ge[le].options[se][R]=M,ge[le].options[se].value=Ce(M);const oe=f;oe.customColumns=ge,de(oe)},Oe=()=>{const M=f.customColumns,R=M.findIndex(ge=>F&&ge.uuid===F.uuid);M[R].options.push({label:"",value:"",uuid:it()});const se=f;se.customColumns=M,de(se)},we=M=>{const R=f.customColumns,se=R.findIndex(le=>F&&le.uuid===F.uuid);if(se===-1){console.error("Custom column not found");return}R[se].options=R[se].options.filter(le=>le.uuid!==M);const ge=f;ge.customColumns=R,de(ge)};return o.jsxs(o.Fragment,{children:[o.jsxs(Is,{maximizable:!0,header:"Update Column Title",visible:re,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(Pt,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>Oe()}),o.jsx(Pt,{text:!0,label:"Save",onClick:()=>Y(!1)})]}),onHide:()=>Y(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(gn,{value:(F==null?void 0:F.customKey)||"",onChange:M=>te(F,M.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(F==null?void 0:F.options)&&((ve=F==null?void 0:F.options)==null?void 0:ve.length)>0&&(F==null?void 0:F.options.map((M,R)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:R+1}),o.jsx(gn,{value:(M==null?void 0:M.label)||"",className:"ml-2",onChange:se=>Ee(se.target.value,"label",R)}),o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>we(M.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${R}`)))]}),o.jsx(Is,{maximizable:!0,header:"Update Row Title",visible:me,style:{width:"20vw"},footer:()=>o.jsx(Pt,{text:!0,label:"Save",onClick:()=>ee(!1)}),onHide:()=>ee(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(gn,{value:(k==null?void 0:k.rowHeading)||"",onChange:M=>Q(k,M.target.value)})})}),o.jsx(Xi,{visibilty:C,closeSettingFieldSidebar:_e,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&c===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(nj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:K,customColumnRowBodyTemplate:fe,setAllFields:he,allFields:pe,actionHeaderTemplate:ae,actionBodyTemplate:ie,isFocus:E,inputValue:T,handleFieldSettingsSidebar:Ae,isAdmin:c})}):o.jsx(nj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:K,customColumnRowBodyTemplate:fe,setAllFields:he,allFields:pe,actionHeaderTemplate:ae,actionBodyTemplate:ie,isFocus:E,inputValue:T,handleFieldSettingsSidebar:Ae,isAdmin:c})})]})},rSe=t=>{const{indexes:e,customColumnIndex:n,allFields:r}=t;return o.jsx("div",{children:o.jsx(gn,{value:r[`${e==null?void 0:e.rowIndex}-${n}`]})})},rj=t=>{var m,g,v,A,S,C,w;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,isAdmin:h}=t;return o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card p-fluid py-6 px-4":"card py-3 px-4"}`,children:[" ",o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(m=e==null?void 0:e.headerText)==null?void 0:m[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((g=e==null?void 0:e.attributes)==null?void 0:g.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(v=e==null?void 0:e.label)==null?void 0:v[r==null?void 0:r.type]}):o.jsx(ea,{path:"",...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(zs,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((T,x)=>o.jsx(dr,{header:a(T),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(_,E)=>o.jsx(rSe,{customColumn:T,e:_,indexes:E,customColumnIndex:x,setAllFields:s,allFields:l,...t})},T==null?void 0:T.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:T=>c(T),body:T=>u(T),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((S=e==null?void 0:e.attributes)==null?void 0:S.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(C=e==null?void 0:e.validationMesssage)==null?void 0:C.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(w=e==null?void 0:e.helperText)==null?void 0:w[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},iSe=t=>{var Te;const e=ve=>{const M=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",R=`${ve.className} justify-content-start`,se=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:R,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:M}),o.jsx(Wt,{})]}),o.jsx("span",{className:se,children:_})]})},{userTaskSubmitFormData:n,TASK_PUBLISHED:r,task_status:i}=mr(),{userSelectedLanguage:a,fieldSettingUpdate:s}=sn(),{globalAlignment:l,isPreview:c,isAdmin:u,isRenderView:d}=Qt(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:S}=t,[C,w]=N.useState(!1),[T,x]=N.useState(""),[_]=N.useState((Te=f==null?void 0:f.label)==null?void 0:Te[a==null?void 0:a.type]),[E,D]=N.useState(0),[V,L]=N.useState(!1),[F,$]=N.useState(null),[k,H]=N.useState(null),[pe,he]=N.useState({}),[Z,W]=N.useState(!1),re=()=>{var ve,M,R;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const se=[...v.repeatableFields],ge=Ct.findIndex(se,function(le){return le.uuid===(f==null?void 0:f.uuid)});ge>=0&&se[ge].fieldData?x(se[ge].fieldData):x("")}}else{const se=n;if(se!=null&&se.length){for(const ge of se)if(ge.fieldId===t.field.uuid&&((ve=ge==null?void 0:ge.postData[0])==null?void 0:ve.postValue)!==""&&((M=ge==null?void 0:ge.postData[0])!=null&&M.postValue)){x((R=ge==null?void 0:ge.postData[0])==null?void 0:R.postValue);break}}}L(!0)},Y=()=>{const ve=f;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:it(),options:[]}],Ee(ve)},[me,ee]=N.useState(!1),[ie,K]=N.useState(!1),ae=ve=>{var M;return o.jsxs(o.Fragment,{children:[((M=f==null?void 0:f.options)==null?void 0:M.length)>1&&o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>Ae(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Q(),"aria-label":"Add Row",size:"small"})]})},fe=ve=>{var M;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((M=f==null?void 0:f.customColumns)==null?void 0:M.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>_e(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{$(ve),ee(!0)}})]})]})},be=()=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Y(),"aria-label":"Add Column"})}),ye=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,c===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{H(ve),K(!0)}})})]}),Ae=ve=>{const M=f==null?void 0:f.rows.filter(function(se){return(se==null?void 0:se.uuid)!==ve}),R=f;R.rows=M,Ee(R)},_e=ve=>{const M=Ct.findIndex(f==null?void 0:f.customColumns,ge=>ge.uuid===ve),R=f==null?void 0:f.customColumns.filter(function(ge,le){return le!==M}),se=f;se.customColumns=R,Ee(se)};N.useEffect(()=>{V||re();const ve=Kt.addListener("clearRepeatableFields",ge=>{ge===(v==null?void 0:v.uuid)&&(x(""),D(0),f.isValid=0,s(g,m,A,S,h,f))}),M=Kt.addListener("onSubmitUserForm",()=>{}),R=Kt.addListener("OnInvalidFieldCatch",ge=>{f.uuid===(ge==null?void 0:ge.fieldId)?D(1):D(0)}),se=Kt.addListener("OnGetFieldValue",ge=>{var oe;const le=(oe=ge==null?void 0:ge.repeatableColumn)==null?void 0:oe.filter(Fe=>(Fe==null?void 0:Fe.fieldUuid)===(f==null?void 0:f.uuid));le!=null&&le.length});return()=>{M.remove(),R.remove(),se.remove(),ve.remove()}});const ne=ve=>{w(ve)},q=()=>{w(!1)},te=()=>{let ve="";return c||(ve=ve+" field-form-builder"),i===r&&u===!0&&(ve=ve+" card"),ve},Q=()=>{const ve=f;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:it(),custom_values:{}}],Ee(ve)},de=(ve,M)=>{$(le=>le===null?{customKey:M,uuid:""}:{...le,customKey:M});const R=f.customColumns,se=R.findIndex(le=>le.uuid===ve.uuid);R[se]={...R[se],customKey:M};const ge=f;ge.customColumns=R,Ee(ge)},Ce=(ve,M)=>{H(le=>le===null?{uuid:"",rowHeading:M}:{...le,rowHeading:M});const R=f.rows,se=R.findIndex(le=>le.uuid===ve.uuid);R[se]={...R[se],rowHeading:M};const ge=f;ge.rows=R,Ee(ge)},Ee=ve=>{s(g,m,A,S,h,ve)},Oe=()=>{W(!0)},we=()=>{W(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Is,{maximizable:!0,header:"Update Column Title",visible:me,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,label:"Save",onClick:()=>ee(!1)})}),onHide:()=>ee(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(gn,{value:(F==null?void 0:F.customKey)||"",onChange:ve=>de(F,ve.target.value)})})}),o.jsx(Is,{maximizable:!0,header:"Update Row Title",visible:ie,style:{width:"20vw"},footer:()=>o.jsx(Pt,{text:!0,label:"Save",onClick:()=>K(!1)}),onHide:()=>K(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(gn,{value:(k==null?void 0:k.rowHeading)||"",onChange:ve=>Ce(k,ve.target.value)})})}),o.jsx(Xi,{visibilty:C,closeSettingFieldSidebar:q,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:Oe,onMouseOut:we,children:[!d&&!c&&Z&&o.jsx(jr,{handleFieldSettingsSidebar:ne,...t}),o.jsx("div",{dir:l,className:te(),children:i===r&&u===!0?o.jsx(li,{headerTemplate:e,toggleable:!0,children:o.jsx(rj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:fe,customColumnRowBodyTemplate:ye,setAllFields:he,allFields:pe,actionHeaderTemplate:be,actionBodyTemplate:ae,isFocus:E,inputValue:T,handleFieldSettingsSidebar:ne,isAdmin:u})}):o.jsx(rj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:fe,customColumnRowBodyTemplate:ye,setAllFields:he,allFields:pe,actionHeaderTemplate:be,actionBodyTemplate:ae,isFocus:E,inputValue:T,handleFieldSettingsSidebar:ne,isAdmin:u})})]})})]})},aSe=t=>{var ne,q,te,Q,de,Ce,Ee,Oe,we,Te,ve;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=mr(),[s,l]=N.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:m,page:g,rowIndex:v,columnIndex:A,path:S,update:C,value:w,isDisabled:T}=t,{isRenderView:x,isAdmin:_,isPreview:E}=Qt(),{userSelectedLanguage:D}=sn(),[V,L]=N.useState(!1),[F,$]=N.useState(""),[k,H]=N.useState(0),[pe,he]=N.useState(!1),[Z,W]=N.useState(!1),re=()=>{W(!0)},Y=()=>{W(!1)},me=M=>{L(M)},ee=()=>{L(!1)};N.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const ie=()=>{var R,se,ge,le;let M=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const oe=[...d.repeatableFields],Fe=Ct.findIndex(oe,function(Ne){return Ne.uuid===(c==null?void 0:c.uuid)});Fe>=0&&oe[Fe].fieldData?(M=oe[Fe].fieldData,$(oe[Fe].fieldData)):(c.isValid=0,$(""))}}else{const oe=i,Fe=Ct.cloneDeep(e);if(oe!=null&&oe.length){for(const Ne of oe)if(Ne.fieldId===t.field.uuid&&((R=Ne==null?void 0:Ne.postData)!=null&&R.length)){M=(se=Ne==null?void 0:Ne.postData[0])==null?void 0:se.postValue,$((ge=Ne==null?void 0:Ne.postData[0])==null?void 0:ge.postValue),Fe[c==null?void 0:c.uuid]=(le=Ne==null?void 0:Ne.postData[0])==null?void 0:le.postValue;const Ke=Object.keys(Fe).length;r(Ke);break}}}$(M),setTimeout(()=>{he(!0)},2e3)};N.useEffect(()=>{!pe&&(i==null?void 0:i.length)>0&&ie();const M=Kt.addListener("clearRepeatableFields",ge=>{ge===(d==null?void 0:d.uuid)&&($(""),H(0),c.isValid=1)}),R=Kt.addListener("onSubmitUserForm",()=>{var ge;(ge=c==null?void 0:c.attributes)!=null&&ge.required?F?c.isValid=1:c.isValid=0:c.isValid=1}),se=Kt.addListener("OnInvalidFieldCatch",ge=>{c.uuid===(ge==null?void 0:ge.fieldId)?H(1):H(0)});return()=>{R.remove(),se.remove(),M.remove()}});const K=(M,R)=>{var se;if(i){const ge=[...i],le=Ct.findIndex(ge,function(Fe){return Fe.rowId===(d==null?void 0:d.uuid)});let oe=(se=i[le])==null?void 0:se.repeatableFields;oe={...oe,[M==null?void 0:M.uuid]:R},ge[le]={...ge[le],repeatableFields:oe},a(ge)}$(R),R?M.isValid=1:M.isValid=0},ae=M=>{var R;$(M.target.value),d!=null&&d.rowIsRepeatable?K(c,(R=M==null?void 0:M.target)==null?void 0:R.value):Ae(M.target.value)},fe=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${D.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${D.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",ye=()=>{var M,R,se;if(((M=c==null?void 0:c.fieldType)==null?void 0:M.type)==="radio"){const ge=[];return s.map((le,oe)=>{var Ne,Ke,vt,wt;const Fe=F;ge.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{ae({value:le,target:{value:le}})},style:(Fe==null?void 0:Fe.uuid)===(le==null?void 0:le.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(Zi,{onFocus:()=>H(1),inputId:`radio-option-${oe}-${le==null?void 0:le.uuid}-${E?"preview":"builder-radio"}`,onChange:nt=>{ae(nt)},value:le,name:`radio-option-${oe}-${le==null?void 0:le.uuid}-${E?"preview":"builder"}`,checked:(Fe==null?void 0:Fe.uuid)===(le==null?void 0:le.uuid),disabled:T}),((Ne=le==null?void 0:le.hyperlinkText)==null?void 0:Ne[D==null?void 0:D.type])===""?o.jsx("label",{htmlFor:`radio-option-${oe}-${le==null?void 0:le.uuid}-${E?"preview":"builder"}`,children:(Ke=le==null?void 0:le.optionText)==null?void 0:Ke[D==null?void 0:D.type]}):o.jsx("label",{children:o.jsx("a",{href:(vt=le==null?void 0:le.hyperlinkText)==null?void 0:vt[D==null?void 0:D.type],target:"_blank",rel:"noreferrer",children:(wt=le==null?void 0:le.optionText)==null?void 0:wt[D==null?void 0:D.type]})})]},oe))}),ge}if(((R=c==null?void 0:c.fieldType)==null?void 0:R.type)==="dropdown")return o.jsx(Sa,{onFocus:()=>H(1),onChange:ge=>{d!=null&&d.rowIsRepeatable?K(c,ge.target.value):Ae(ge.target.value)},options:s,optionLabel:be(),optionValue:fe(),value:F,placeholder:(se=c==null?void 0:c.placeholder)==null?void 0:se[D==null?void 0:D.type],disabled:T})},Ae=M=>{var ge,le;$(M.target.value);const R=i,se=Ct.cloneDeep(e);if(R!==null){if((ge=M==null?void 0:M.target)!=null&&ge.value){if(se[c==null?void 0:c.uuid]=(le=M==null?void 0:M.target)==null?void 0:le.value,(R==null?void 0:R.length)>0)for(const oe of R)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:M.target.value})}else if(delete se[c==null?void 0:c.uuid],(R==null?void 0:R.length)>0)for(const oe of R)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(se);const oe=Object.keys(se).length;r(oe)}},_e=o.jsxs("div",{onMouseOver:re,onMouseOut:Y,children:[!x&&!E&&Z&&o.jsx(jr,{handleFieldSettingsSidebar:me,...t}),o.jsx("div",{className:`field-${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ne=c==null?void 0:c.headerText)==null?void 0:ne[D==null?void 0:D.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-5 text-700 text-2xl",children:[o.jsx(ia,{sectionIndex:h,fieldIndex:u,field:c,update:C,value:w}),((q=c==null?void 0:c.attributes)==null?void 0:q.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(o.Fragment,{children:(te=c==null?void 0:c.label)==null?void 0:te[D==null?void 0:D.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Mi,{message:(Q=c==null?void 0:c.toolTip)==null?void 0:Q[D==null?void 0:D.type],position:"right"})}):""})]}),ye(),o.jsx("div",{children:((de=c==null?void 0:c.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:k===1&&!F?(Ce=c==null?void 0:c.validationMesssage)==null?void 0:Ce.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Ee=c==null?void 0:c.helperText)==null?void 0:Ee[D==null?void 0:D.type]})}),((Oe=c==null?void 0:c.inlineConditionalRules)==null?void 0:Oe.rules.length)>0&&E===!1&&o.jsx("p",{children:"Inline conditional rules"}),pe===!0&&((Te=(we=c==null?void 0:c.inlineConditionalRules)==null?void 0:we.rules)==null?void 0:Te.length)>0&&((ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules.map((M,R)=>{const se=F;return E===!0?o.jsx("div",{children:M==null?void 0:M.conditions.map((ge,le)=>o.jsx(N.Fragment,{children:o.jsx(Qd,{isConditionTrue:(se==null?void 0:se.value)==ge.value||!E,inputValue:F,condition:ge,ruleIndex:R,conditionIndex:le,field:c,section:m,page:g,row:d,pageIndex:f,sectionIndex:h,rowIndex:v,columnIndex:A,path:S,...t})},`select-rule-${R}-`+le))},`rule-${R}`):o.jsx(li,{className:"mt-4",header:`Rule ${R+1}`,children:o.jsx("div",{children:M==null?void 0:M.conditions.map((ge,le)=>o.jsx(N.Fragment,{children:o.jsx(Qd,{isConditionTrue:(se==null?void 0:se.value)===ge.value||!E,inputValue:F,condition:ge,ruleIndex:R,conditionIndex:le,isPreview:E,field:c,section:m,page:g,row:d,pageIndex:f,sectionIndex:h,rowIndex:v,columnIndex:A,path:S,...t})},`select-rule-${R}-`+le))},`rule-${R}`)},R)}))]}),_&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[V===!0&&o.jsx(Xi,{visibilty:V,closeSettingFieldSidebar:ee,...t},c==null?void 0:c.uuid),o.jsx(wi,{...t,fieldWrap:_e})]})},sSe=t=>{var pe,he,Z,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=mr(),{field:a,row:s,isDisabled:l}=t,{isPreview:c,isRenderView:u,isAdmin:d}=Qt(),{userSelectedLanguage:f}=sn(),[h,m]=N.useState(!1),[g,v]=N.useState(""),[A,S]=N.useState(0),[C,w]=N.useState(!1),[T,x]=N.useState(!1),_=()=>{x(!0)},E=()=>{x(!1)},D=re=>{m(re)},V=()=>{m(!1)},L=()=>{var Y,me,ee,ie;let re=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const K=[...s.repeatableFields],ae=Ct.findIndex(K,function(fe){return fe.uuid===(a==null?void 0:a.uuid)});ae>=0&&K[ae].fieldData?(re=K[ae].fieldData,v(K[ae].fieldData)):(a.isValid=0,v(""))}}else{const K=i,ae=Ct.cloneDeep(e);if(K!=null&&K.length){for(const fe of K)if(fe.fieldId===t.field.uuid&&((Y=fe==null?void 0:fe.postData)!=null&&Y.length)){re=(me=fe==null?void 0:fe.postData[0])==null?void 0:me.postValue,v((ee=fe==null?void 0:fe.postData[0])==null?void 0:ee.postValue),ae[a==null?void 0:a.uuid]=(ie=fe==null?void 0:fe.postData[0])==null?void 0:ie.postValue;const be=Object.keys(ae).length;r(be);break}}}v(re),setTimeout(()=>{w(!0)},2e3)};N.useEffect(()=>{C||L();const re=Kt.addListener("clearRepeatableFields",ee=>{ee===(s==null?void 0:s.uuid)&&(v(""),S(0),a.isValid=1)}),Y=Kt.addListener("onSubmitUserForm",()=>{var ee;if((ee=a==null?void 0:a.attributes)!=null&&ee.required){const ie=g;ie!=null&&ie[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),me=Kt.addListener("OnInvalidFieldCatch",ee=>{a.uuid===(ee==null?void 0:ee.fieldId)?S(1):S(0)});return()=>{Y.remove(),me.remove(),re.remove()}});const F=(re,Y,me,ee,ie)=>ee==null?void 0:ee.map(K=>{var ae,fe;return{...K,children:K!=null&&K.children&&((ae=K==null?void 0:K.children)==null?void 0:ae.length)>0?[...((fe=K==null?void 0:K.children)==null?void 0:fe.map(be=>Y===(K==null?void 0:K.uuid)||ie===!0?(me!=null&&me[be==null?void 0:be.uuid]&&delete me[be==null?void 0:be.uuid],{...be,options:F(re,Y,me,(be==null?void 0:be.options)||[],!0)}):{...be,options:F(re,Y,me,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),$=(re,Y)=>{const me={...g};F(re,Y,me,a==null?void 0:a.options,!1),me[re]=Y,v(me),s!=null&&s.rowIsRepeatable||k(me)},k=re=>{const Y=i,me=Ct.cloneDeep(e);if(Y!==null){if(re){if(me[a==null?void 0:a.uuid]=re,(Y==null?void 0:Y.length)>0)for(const ee of Y)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:re})}else if(delete me[a==null?void 0:a.uuid],(Y==null?void 0:Y.length)>0)for(const ee of Y)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(me);const ee=Object.keys(me).length;r(ee)}},H=o.jsxs("div",{onMouseOver:_,onMouseOut:E,children:[!u&&!c&&T&&o.jsx(jr,{handleFieldSettingsSidebar:D,...t}),o.jsx("div",{className:`field-${(a==null?void 0:a.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(pe=a==null?void 0:a.headerText)==null?void 0:pe[f==null?void 0:f.type]}),o.jsx($7,{...t,isDisabled:l,isFirst:!0,isPreview:c,schema:a,field:a,value:g,update:(re,Y)=>{$(re,Y)}}),o.jsx("div",{children:((he=a==null?void 0:a.attributes)==null?void 0:he.required)&&o.jsx("small",{className:"error",children:A===1&&!g?(Z=a==null?void 0:a.validationMesssage)==null?void 0:Z.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(W=a==null?void 0:a.helperText)==null?void 0:W[f==null?void 0:f.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:h,closeSettingFieldSidebar:V,...t},a==null?void 0:a.uuid),o.jsx(wi,{...t,fieldWrap:H})]})},oSe=t=>{var ae,fe,be,ye,Ae,_e,ne,q,te,Q;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isPreview:f}=Qt(),{taskRegisterData:h,updateTaskRegisterData:m,updateTaskProgressValue:g,updateUserFormDataSubmit:v,userTaskSubmitFormData:A,task_status:S,TASK_PUBLISHED:C}=mr(),[w,T]=N.useState(!1),{userSelectedLanguage:x,fieldSettingUpdate:_}=sn(),[E,D]=N.useState(!1),[V,L]=N.useState(0),[F,$]=N.useState(),[k,H]=N.useState(!1),pe=()=>{H(!0)},he=()=>{H(!1)},Z=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],W=de=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:de.icon})}),re=()=>{var de,Ce,Ee;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const Oe=[...a.repeatableFields],we=Ct.findIndex(Oe,function(Te){return Te.uuid===(e==null?void 0:e.uuid)});we>=0&&Oe[we].fieldData?$(Oe[we].fieldData):$("")}}else{const Oe=A;if(Oe!=null&&Oe.length){for(const we of Oe)if(we.fieldId===t.field.uuid&&((de=we==null?void 0:we.postData[0])==null?void 0:de.postValue)!==""&&((Ce=we==null?void 0:we.postData[0])!=null&&Ce.postValue)){$((Ee=we==null?void 0:we.postData[0])==null?void 0:Ee.postValue);break}}}D(!0)};N.useEffect(()=>{E||re();const de=Kt.addListener("clearRepeatableFields",we=>{we===(a==null?void 0:a.uuid)&&($(""),L(0),e.isValid=0,_(i,r,s,l,n,e))}),Ce=Kt.addListener("onSubmitUserForm",()=>{var we;(we=e==null?void 0:e.attributes)!=null&&we.required?F?e.isValid=1:e.isValid=0:e.isValid=1}),Ee=Kt.addListener("OnInvalidFieldCatch",we=>{e.uuid===(we==null?void 0:we.fieldId)?L(1):L(0)}),Oe=Kt.addListener("OnGetFieldValue",we=>{var ve;const Te=(ve=we==null?void 0:we.repeatableColumn)==null?void 0:ve.filter((M,R)=>(M==null?void 0:M.fieldUuid)===(e==null?void 0:e.uuid));Te!=null&&Te.length});return()=>{Ce.remove(),Ee.remove(),Oe.remove(),de.remove()}});const Y=de=>{$(de.value);const Ce=A,Ee=Ct.cloneDeep(h);if(Ce!==null){if(de!=null&&de.value){if(Ee[e==null?void 0:e.uuid]=de==null?void 0:de.value,(Ce==null?void 0:Ce.length)>0)for(const Oe of Ce)Oe.fieldId===t.field.uuid&&(Oe.postData[0]={postValue:de.value})}else if(delete Ee[e==null?void 0:e.uuid],(Ce==null?void 0:Ce.length)>0)for(const Oe of Ce)Oe.fieldId===t.field.uuid&&(Oe.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){m(Ee);const Oe=Object.keys(Ee).length;g(Oe)}},me=(de,Ce)=>{var Ee;if(A){const Oe=[...A],we=Ct.findIndex(Oe,function(ve){return ve.rowId===(a==null?void 0:a.uuid)});let Te=(Ee=A[we])==null?void 0:Ee.repeatableFields;Te={...Te,[de==null?void 0:de.uuid]:Ce},Oe[we]={...Oe[we],repeatableFields:Te},v(Oe)}$(Ce),Ce!==""?de.isValid=1:de.isValid=0},ee=de=>{T(de)},ie=()=>{T(!1)},K=o.jsxs("div",{onMouseOver:pe,onMouseOut:he,children:[!u&&!f&&k&&o.jsx(jr,{handleFieldSettingsSidebar:ee,...t}),o.jsx("div",{className:`field ${f?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:d?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ae=e==null?void 0:e.headerText)==null?void 0:ae[x==null?void 0:x.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((fe=e==null?void 0:e.attributes)==null?void 0:fe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[x==null?void 0:x.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ye=e==null?void 0:e.toolTip)==null?void 0:ye[x==null?void 0:x.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((_e=(Ae=e==null?void 0:e.icon)==null?void 0:Ae.properties)==null?void 0:_e.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx($0,{value:F,onChange:de=>{$(de.value),a!=null&&a.rowIsRepeatable?me(e,de.value):Y(de)},itemTemplate:W,optionLabel:"value",onFocus:()=>L(1),options:Z,readOnly:c,className:V===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?F?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((q=e==null?void 0:e.attributes)==null?void 0:q.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:V===1&&!F?(te=e==null?void 0:e.validationMesssage)==null?void 0:te.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Q=e==null?void 0:e.helperText)==null?void 0:Q[x==null?void 0:x.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:w,closeSettingFieldSidebar:ie,...t}),o.jsx(wi,{...t,fieldWrap:K})]})},lSe=t=>{var ee,ie,K,ae,fe,be,ye;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=mr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g}=t,{isRenderView:v,isAdmin:A,isPreview:S}=Qt(),[C,w]=N.useState(!1),[T,x]=N.useState(""),[_,E]=N.useState(0),[D,V]=N.useState(!1),[L,F]=N.useState(!1),$=()=>{F(!0)},k=()=>{F(!1)},H=()=>{var Ae,_e,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const q=[...h.repeatableFields],te=Ct.findIndex(q,function(Q){return Q.uuid===(c==null?void 0:c.uuid)});te>=0&&q[te].fieldData?x(q[te].fieldData):x("")}}else{const q=a;if(q!=null&&q.length){for(const te of q)if(te.fieldId===t.field.uuid&&((Ae=te==null?void 0:te.postData[0])==null?void 0:Ae.postValue)!==""&&((_e=te==null?void 0:te.postData[0])!=null&&_e.postValue)){x((ne=te==null?void 0:te.postData[0])==null?void 0:ne.postValue);break}}}V(!0)};N.useEffect(()=>{D||H();const Ae=Kt.addListener("clearRepeatableFields",te=>{te===(h==null?void 0:h.uuid)&&(x(""),E(0),c.isValid=0,l(f,d,m,g,u,c))}),_e=Kt.addListener("onSubmitUserForm",()=>{var te;(te=c==null?void 0:c.attributes)!=null&&te.required?T?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Kt.addListener("OnInvalidFieldCatch",te=>{c.uuid===(te==null?void 0:te.fieldId)?E(1):E(0)}),q=Kt.addListener("OnGetFieldValue",te=>{var de;const Q=(de=te==null?void 0:te.repeatableColumn)==null?void 0:de.filter(Ce=>(Ce==null?void 0:Ce.fieldUuid)===(c==null?void 0:c.uuid));Q!=null&&Q.length});return()=>{_e.remove(),ne.remove(),q.remove(),Ae.remove()}});const pe=Ae=>{w(Ae)},he=()=>{w(!1)},Z=Ae=>{var q,te;x(Ae.target.value);const _e=a,ne=Ct.cloneDeep(e);if(_e!==null){if((q=Ae==null?void 0:Ae.target)!=null&&q.value){if(ne[c==null?void 0:c.uuid]=(te=Ae==null?void 0:Ae.target)==null?void 0:te.value,(_e==null?void 0:_e.length)>0)for(const Q of _e)Q.fieldId===t.field.uuid&&(Q.postData[0]={postValue:Ae.target.value})}else if(delete ne[c==null?void 0:c.uuid],(_e==null?void 0:_e.length)>0)for(const Q of _e)Q.fieldId===t.field.uuid&&(Q.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const Q=Object.keys(ne).length;r(Q)}},W=(Ae,_e,ne,q)=>{var te;if(a){const Q=[...a],de=Ct.findIndex(Q,function(Ee){return Ee.rowId===(h==null?void 0:h.uuid)});let Ce=(te=a[de])==null?void 0:te.repeatableFields;Ce={...Ce,[ne==null?void 0:ne.uuid]:q},Q[de]={...Q[de],repeatableFields:Ce},i(Q)}x(q),q!==""?ne.isValid=1:ne.isValid=0},re=5,Y=()=>{const Ae=[],_e=[BE,LE,VE,kE,ME],ne=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let q=0;q<re;q++)Ae.push(o.jsxs("label",{children:[o.jsx("input",{onChange:te=>{h!=null&&h.rowIsRepeatable?W(f,d,c,te.target.value):Z(te)},checked:parseInt(T)===q,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:q}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:_e[q]})}),o.jsx("div",{children:ne[q]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${q} ${parseInt(T)===q?"scale-selected":""}`));return Ae},me=o.jsxs("div",{onMouseOver:$,onMouseOut:k,children:[!v&&!S&&L&&o.jsx(jr,{handleFieldSettingsSidebar:pe,...t}),o.jsxs("div",{className:`field ${S?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ee=c==null?void 0:c.headerText)==null?void 0:ee[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:`label${u}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((ie=c==null?void 0:c.attributes)==null?void 0:ie.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(o.Fragment,{children:(K=c==null?void 0:c.label)==null?void 0:K[s==null?void 0:s.type]}):o.jsx(ea,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(ae=c==null?void 0:c.toolTip)==null?void 0:ae[s==null?void 0:s.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("div",{children:o.jsx("div",{className:"emoji",children:Y()})}),o.jsx("div",{children:((fe=c==null?void 0:c.attributes)==null?void 0:fe.required)&&o.jsx("small",{className:"error",children:_===1&&!T?(be=c==null?void 0:c.validationMesssage)==null?void 0:be.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(ye=c==null?void 0:c.helperText)==null?void 0:ye[s==null?void 0:s.type]})})]})]})}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:C,closeSettingFieldSidebar:he,...t}),o.jsx(wi,{...t,fieldWrap:me})]})},cSe=t=>{var H,pe,he,Z,W,re,Y,me,ee,ie,K;const{userTaskSubmitFormData:e}=mr(),{userSelectedLanguage:n,fieldSettingUpdate:r}=sn(),{isPreview:i,isAdmin:a,isRenderView:s}=Qt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:m}=t,[g,v]=N.useState(!1),[A,S]=N.useState(""),[C,w]=N.useState(0),[T,x]=N.useState(!1),[_,E]=N.useState(!1),D=()=>{E(!0)},V=()=>{E(!1)},L=()=>{var ae,fe,be;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const ye=[...f.repeatableFields],Ae=Ct.findIndex(ye,function(_e){return _e.uuid===(l==null?void 0:l.uuid)});Ae>=0&&ye[Ae].fieldData?S(ye[Ae].fieldData):S("")}}else{const ye=e;if(ye!=null&&ye.length){for(const Ae of ye)if(Ae.fieldId===t.field.uuid&&((ae=Ae==null?void 0:Ae.postData[0])==null?void 0:ae.postValue)!==""&&((fe=Ae==null?void 0:Ae.postData[0])!=null&&fe.postValue)){S((be=Ae==null?void 0:Ae.postData[0])==null?void 0:be.postValue);break}}}x(!0)};N.useEffect(()=>{T||L();const ae=Kt.addListener("clearRepeatableFields",Ae=>{Ae===(f==null?void 0:f.uuid)&&(S(""),w(0),l.isValid=0,r(d,u,h,m,c,l))}),fe=Kt.addListener("onSubmitUserForm",()=>{var Ae,_e;(Ae=l==null?void 0:l.attributes)!=null&&Ae.required?A&&(A==null?void 0:A.length)<((_e=l==null?void 0:l.attributes)==null?void 0:_e.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),be=Kt.addListener("OnInvalidFieldCatch",Ae=>{l.uuid===(Ae==null?void 0:Ae.fieldId)?w(1):w(0)}),ye=Kt.addListener("OnGetFieldValue",Ae=>{var ne;const _e=(ne=Ae==null?void 0:Ae.repeatableColumn)==null?void 0:ne.filter(q=>(q==null?void 0:q.fieldUuid)===(l==null?void 0:l.uuid));_e!=null&&_e.length});return()=>{fe.remove(),be.remove(),ye.remove(),ae.remove()}});const F=ae=>{v(ae)},$=()=>{v(!1)},k=o.jsxs("div",{onMouseOver:D,onMouseOut:V,children:[!s&&!i&&_&&o.jsx(jr,{handleFieldSettingsSidebar:F,...t}),o.jsxs("div",{className:`field ${i?" ":" builder-element-wrapper "}${(l==null?void 0:l.isFluid)===!0?" card p-fluid ":"card"} ${s?" ":" py-6 px-4 "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(l==null?void 0:l.showHeaderText)&&o.jsx("h6",{children:(H=l==null?void 0:l.headerText)==null?void 0:H[n==null?void 0:n.type]}),(l==null?void 0:l.showLabel)&&o.jsxs("label",{htmlFor:c,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(ia,{...t}),((pe=l==null?void 0:l.attributes)==null?void 0:pe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(he=l==null?void 0:l.label)==null?void 0:he[n==null?void 0:n.type]}):o.jsx(ea,{...t}),(l==null?void 0:l.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(Z=l==null?void 0:l.toolTip)==null?void 0:Z[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(l==null?void 0:l.iconAlignment),children:(l==null?void 0:l.showIcon)&&o.jsx("i",{className:"pi pi-"+((re=(W=l==null?void 0:l.icon)==null?void 0:W.properties)==null?void 0:re.name)})}),o.jsx("div",{children:((Y=l==null?void 0:l.attributes)==null?void 0:Y.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:C===1&&!A?(me=l==null?void 0:l.validationMesssage)==null?void 0:me.english:""}),o.jsx("small",{className:"error",children:C===1&&(A==null?void 0:A.length)<((ee=l==null?void 0:l.attributes)==null?void 0:ee.minLength)?`Mini length ${(ie=l==null?void 0:l.attributes)==null?void 0:ie.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(K=l==null?void 0:l.helperText)==null?void 0:K[n==null?void 0:n.type]})})]})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:g,closeSettingFieldSidebar:$,...t}),o.jsx(wi,{...t,fieldWrap:k})]})},uSe=t=>{var $,k,H,pe,he,Z,W;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{userTaskSubmitFormData:f}=mr(),[h,m]=N.useState(!1),[g,v]=N.useState(""),[A,S]=N.useState(0),[C,w]=N.useState(!1),[T,x]=N.useState(!1),_=()=>{x(!0)},E=()=>{x(!1)},D=()=>{var Y;const re=f;if(re.length){for(const me of re)if(me.fieldId===t.field.uuid){v((Y=me==null?void 0:me.postData[0])==null?void 0:Y.postValue),w(!0);break}}};N.useEffect(()=>{C||D();const re=Kt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required&&(g?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),Y=Kt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?S(1):S(0)});return()=>{re.remove(),Y.remove()}});const V=re=>{m(re)},L=()=>{m(!1)},F=o.jsxs("div",{onMouseOver:_,onMouseOut:E,children:[!c&&T&&o.jsx(jr,{handleFieldSettingsSidebar:V,...t}),o.jsx("div",{className:c?"":"field-form-builder",ref:l,children:o.jsx("div",{className:"field",children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:c?"col-12":"col-11",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:($=e==null?void 0:e.headerText)==null?void 0:$[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[((k=e==null?void 0:e.attributes)==null?void 0:k.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(H=e==null?void 0:e.label)==null?void 0:H[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(pe=e==null?void 0:e.toolTip)==null?void 0:pe[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("p",{children:"Anchor Tag"}),o.jsx("div",{children:((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("small",{className:"error",children:A===1&&!g?(Z=e==null?void 0:e.validationMesssage)==null?void 0:Z.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(W=e==null?void 0:e.helperText)==null?void 0:W[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h===!0&&o.jsx(Xi,{visibilty:h,closeSettingFieldSidebar:L,...t}),o.jsx(wi,{...t,fieldWrap:F})]})},qc=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a,isAdmin:s}=Qt(),{task_status:l,TASK_PUBLISHED:c}=mr(),u=N.useRef(null),[d,f]=N.useState(!1),[{isDragging:h},m]=Ji({item:{...e,type:z1,uuid:e==null?void 0:e.uuid,path:n},type:z1,collect:T=>({isDragging:T.isDragging()})}),g=h?.25:1;m(u);const v=l===c||s,A=T=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(wle,{typeName:"Text",field:r,...T});case"number":return o.jsx(Ele,{typeName:"Number",field:r,...T});case"email":return o.jsx(Ile,{typeName:"Email",field:r,...T});case"textarea":return o.jsx(_le,{typeName:"Text Area",field:r,...T});case"editor":return o.jsx(Xle,{typeName:"Editor",field:r,...T});case"question":return o.jsx(xce,{typeName:"Exam",field:r,...T});case"select":return o.jsx(Mle,{typeName:"Select",field:r,...T});case"multi-select":return o.jsx(cce,{typeName:"Multi Select",field:r,...T});case"checkbox":return o.jsx(uce,{typeName:"Checkbox",field:r,...T});case"radio":return o.jsx(fce,{typeName:"Radio",field:r,...T});case"radio-hierarchal":return o.jsx(sSe,{typeName:"Radio Progressive",field:r,...T});case"href":return o.jsx(Tle,{typeName:"Href",field:r,...T});case"heading":return o.jsx(mce,{typeName:"Heading",field:r,...T});case"paragraph":return o.jsx(Ive,{typeName:"Paragraph",field:r,...T});case"image":return o.jsx(XF,{typeName:"Image",field:r,...T});case"video":return o.jsx(D3e,{typeName:"Video",field:r,...T});case"hr":return o.jsx(O3e,{typeName:"Hr",field:r,...T});case"date-picker":return o.jsx(N3e,{typeName:"Date Picker",field:r,...T});case"signature":return o.jsx(F3e,{typeName:"Signature",field:r,...T});case"file-upload":return o.jsx(Dbe,{typeName:"File Upload",field:r,...T});case"facebook-login":return o.jsx(cSe,{typeName:"Facebook Login",field:r,...T});case"anchor":return o.jsx(uSe,{ref:u,typeName:"Anchor Tag",field:r,...T});case"image-gallery":return o.jsx(Cve,{typeName:"Image Gallery",field:r,...T});case"quiz":return o.jsx(Fbe,{typeName:"Quiz",field:r,...T});case"document":return o.jsx(Obe,{typeName:"Document",field:r,...T});case"list":return o.jsx(Mbe,{typeName:"List",field:r,...T});case"country":return o.jsx(Ale,{typeName:"Country",field:r,...T});case"phone":return o.jsx(zwe,{typeName:"Phone",field:r,...T});case"web-url":return o.jsx(Hwe,{typeName:"Website Url",field:r,...T});case"rating":return o.jsx(Gwe,{typeName:"Rating",field:r,...T});case"slider":return o.jsx(Rwe,{typeName:"Rating",field:r,...T});case"hidden-field":return o.jsx(Wwe,{typeName:"Hidden Field",field:r,...T});case"likert-scale":return o.jsx(Qwe,{typeName:"Likert Scale Field",field:r,...T});case"type-signature":return o.jsx(Jwe,{typeName:"Likert Scale Field",field:r,...T});case"address":return o.jsx(Zwe,{typeName:"Address",field:r,...T});case"grid-component":return o.jsx(tj,{typeName:"Grid",field:r,...T});case"matrix-scale":return o.jsx(tj,{typeName:"Grid",field:r,...T});case"matrix-dropdown":return o.jsx(nSe,{typeName:"Grid",field:r,...T});case"thumbs":return o.jsx(oSe,{typeName:"Thumbs Up and Down",field:r,...T});case"likert-emoji-scale":return o.jsx(lSe,{typeName:"Thumbs Up and Down",field:r,...T});case"table":return o.jsx(iSe,{typeName:"Grid",field:r,...T});case"dynamic-listing":return o.jsx(aSe,{typeName:"Grid",field:r,...T});default:return o.jsx(o.Fragment,{children:"Empty"})}},S=()=>{f(!0)},C=()=>{f(!1)},w=()=>{let T="";return a?(T=T+" component ",i===Y1?T=T+" ":T=T+" px-2 "):(T=T+" component draggable field-form-builder-not-preview",i===Y1?T=T+" pdf-component":T=T+" px-2 pdf-component"),T};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:g},className:w(),onMouseOver:S,onMouseOut:C,children:[!a&&d&&o.jsx("i",{ref:a===!1?u:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),A({...t,isDisabled:v})]})})},dSe={position:"relative"},fSe=t=>{var V,L,F,$,k;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=N.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:m,formBuilderFormLayout:g,handleDrop:v}=sn(),{isPreview:A,isRenderView:S,isAdvanceView:C,emitSocketData:w}=Qt(),[{isDragging:T},x]=Ji({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:H=>({isDragging:H.isDragging()})}),_=T&&!S?.25:1;x(d);const E=(H,pe,he,Z,W,re,Y)=>o.jsx(qc,{page:u,type:"field",row:c,column:e,section:l,field:H,data:H,path:pe,pageIndex:he,sectionIndex:Z,rowIndex:W,columnIndex:re,fieldIndex:Y},`component-${n}-${H==null?void 0:H.uuid}`),D=(H,pe,he,Z,W)=>{var ee,ie,K,ae;const re=H.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${H.className} justify-content-space-between`,me=`${H.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:H.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:H.togglerClassName,onClick:H.onTogglerClick,children:[o.jsx("span",{className:re}),o.jsx(Wt,{})]}),o.jsx("span",{className:me,children:"Column"})]}),A===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:H.togglerClassName,onClick:()=>{h(pe,he,Z),w()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ae=(K=(ie=(ee=g[pe])==null?void 0:ee.children[he])==null?void 0:ie.children[Z])==null?void 0:K.children)==null?void 0:ae.length)>1&&o.jsxs("button",{className:H.togglerClassName,onClick:()=>{f(pe,he,Z,W),w()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:H.togglerClassName,onClick:()=>{m(e,pe,he,Z,W),w()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsx("div",{style:C?{...dSe,opacity:_}:{},className:S?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:C===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:H=>D(H,r,i,a,s),children:[((V=e==null?void 0:e.children)==null?void 0:V.length)>0?(L=e==null?void 0:e.children)==null?void 0:L.map((H,pe)=>{const he=`${n}-${pe}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:C,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),E(H,he,r,i,a,s,pe)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:C,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((F=e==null?void 0:e.children)==null?void 0:F.length)>0?($=e==null?void 0:e.children)==null?void 0:$.map((H,pe)=>{const he=`${n}-${pe}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:C,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),E(H,he,r,i,a,s,pe)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:C,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(k=e==null?void 0:e.children)==null?void 0:k.map((H,pe)=>{const he=`${n}-${pe}`;return o.jsx(N.Fragment,{children:E(H,he,r,i,a,s,pe)},he)})})})},hSe=t=>{var i,a,s;const{language:e,onHandleChange:n,stateRow:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Heading"}),o.jsx(gn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Description"}),o.jsx(_s,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:l=>n("subHeadingText",e,l.target.value)})]}),(r==null?void 0:r.rowIsRepeatable)===!0&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Add To List Button Label"}),o.jsx(gn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},pSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Qt();return o.jsxs("div",{className:"p-fluid",children:[r===P0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"rowIsRepeatable",checked:e==null?void 0:e.rowIsRepeatable,onChange:i=>n("rowIsRepeatable",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isRepeatable",children:"Row is repeatable ?"})]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Row Minimum Entries"}),o.jsx(Oa,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"isManualEnumerationEnabled",checked:(e==null?void 0:e.isManualEnumerationEnabled)||!1,onChange:i=>n("isManualEnumerationEnabled",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isManualEnumerationEnabled",children:"Enable manual enumeration for row components?"}),o.jsxs("small",{children:[" ","You need to set mannual enumeration for every component from its settings."," "]})]})]})},gSe=t=>{var f,h,m,g;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new Ub,[,a]=N.useState("");N.useEffect(()=>{},[]);const[s]=N.useState(null),l=()=>{},c=v=>{e("bgImage",v==null?void 0:v.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=v=>o.jsx("i",{className:v.icon});return o.jsxs("div",{className:"",children:[o.jsxs("div",{className:" field",children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Left"}),o.jsx(Oa,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:v=>{r("left",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Right"}),o.jsx(Oa,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:v=>{r("right",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Top"}),o.jsx(Oa,{value:(m=n==null?void 0:n.margin)==null?void 0:m.top,onChange:v=>{r("top",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Bottom"}),o.jsx(Oa,{value:(g=n==null?void 0:n.margin)==null?void 0:g.bottom,onChange:v=>{r("bottom",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx($0,{value:n==null?void 0:n.bgType,options:u,onChange:v=>e("bgType",v.value),itemTemplate:d,optionLabel:"value"})]}),(n==null?void 0:n.bgType)==="color"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid field",children:o.jsx(Rd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value)})}),o.jsx(Rd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value),inline:!0})]}),(n==null?void 0:n.bgType)==="image"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"p-fluid field",children:[o.jsx("span",{className:"must-required",children:"*"}),o.jsx("label",{children:"Background image"}),o.jsx(gn,{value:(n==null?void 0:n.bgImage)||"",onChange:v=>e("bgImage",v.target.value),placeholder:"enter page title",id:"page_title",name:"page_title"})]}),o.jsxs("div",{className:"shadow-2 border-round surface-card p-4",children:[o.jsx("div",{className:"flex align-items-center justify-content-between mb-4",children:o.jsx("span",{className:"text-xl font-medium text-900",children:"Selected Files"})}),o.jsx("h5",{children:"Media Library"}),o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-8",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(gn,{placeholder:"Keyword",onChange:v=>a(v.target.value)}),o.jsx(Pt,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>l()})]})}),o.jsx("div",{className:"col-12 mb-5",children:o.jsx("div",{className:"surface-section ",children:o.jsx("div",{className:"grid -mt-3 -ml-3 -mr-3"})})})]})}),o.jsx("div",{className:"col-4 card",children:s!==null&&o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("img",{style:{height:"150px",width:"150px",objectFit:"contain"},src:s==null?void 0:s.url,className:"w-full mb-3 border-round-2xl",onError:v=>v.target.src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png",alt:"https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.name})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base URL:"}),o.jsx("div",{className:"text-900 w-full md:w-8 line-height-3",style:{wordWrap:"break-word"},children:o.jsx("a",{href:s==null?void 0:s.url,children:s==null?void 0:s.url})})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:i.formatBytes(s==null?void 0:s.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:On(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(Pt,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},mSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=N.useState(""),[a,s]=N.useState([""]),[l,c]=N.useState(!1),[u,d]=N.useState(0),[f,h]=N.useState(!1),{updateGlobalToast:m}=Qt(),g=()=>{h(!0)},v=()=>{var H;const $=((H=e==null?void 0:e.reviewerChecklist)==null?void 0:H.length)>=0?[...e.reviewerChecklist]:[];$.push({uuid:it(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const k={...e,reviewerChecklist:$};n(k),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},S=$=>{const k=[...e.reviewerChecklist];k.splice($,1);const H={...e,reviewerChecklist:k};n(H)},C=($,k)=>{c(!0);const{checklist:H,action:pe}=$;h(!0),d(k),setTimeout(()=>{i(H),s(pe)},1e3)},w=($,k)=>o.jsxs(o.Fragment,{children:[o.jsx(Pt,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>C($,k==null?void 0:k.rowIndex),size:"small"}),o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>S(k==null?void 0:k.rowIndex),size:"small"})]}),T=$=>{var k;return o.jsx(o.Fragment,{children:(k=$==null?void 0:$.action)==null?void 0:k.length})},x=$=>{const k=[...a];k.splice($,1),s(k)},_=()=>{const $=[...e.reviewerChecklist];$[u]={checklist:r,action:a};const k={...e,reviewerChecklist:$};n(k),h(!1),c(!1)},E=()=>o.jsx("div",{children:l?o.jsx(Pt,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{_()}}):o.jsx(Pt,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{v()}})}),D=$=>{n(k=>Object.assign({},k,{reviewerChecklist:$==null?void 0:$.value}))},V=$=>{navigator.clipboard.writeText(JSON.stringify($)),m({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function L($){try{JSON.parse($)}catch{return!1}return!0}const F=async()=>{var H;const $=await navigator.clipboard.readText();let k="";if(L($)){const pe=JSON.parse($);if((H=pe[0])!=null&&H.checklist){const he={...Ct.cloneDeep(e),reviewerChecklist:pe};n(he),m({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else k=" Empty or Invalid Schema"}else k="Invalid Schema";m({showToast:!0,toastMessage:k,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(Is,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:E(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(_s,{rows:2,cols:50,value:r,onChange:$=>{var k;i((k=$==null?void 0:$.target)==null?void 0:k.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map(($,k)=>o.jsxs("div",{children:[k+1,"."," ",o.jsx(_s,{value:$,onChange:H=>{var he;const pe=[...a];pe[k]=(he=H==null?void 0:H.target)==null?void 0:he.value,s(pe)},rows:2,cols:50})," ",o.jsx(Pt,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>x(k)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${k}`)),o.jsx(Pt,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(Pt,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{g()}}),o.jsx(Pt,{text:!0,label:"Copy Schema ",onClick:()=>{V([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(Pt,{text:!0,label:"Paste Checklist ",onClick:()=>{F()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(zs,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:D,children:[o.jsx(dr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(dr,{field:"checklist",header:"Checklist"}),o.jsx(dr,{field:"actions",header:"Actions",body:$=>T($)}),o.jsx(dr,{header:"",body:($,k)=>w($,k)})]})})]})},Ig=t=>{var T;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=sn(),[f,h]=N.useState(r),{updateGlobalToast:m,emitSocketData:g}=Qt(),v=(x,_,E)=>{h(D=>{const V=D[x];return Object.assign({},D,{[x]:Object.assign({},V,{[_==null?void 0:_.type]:E})})})},A=(x,_)=>{h(E=>({...E,[x]:_}))},S=()=>{const x={...f,children:r==null?void 0:r.children};c(i,a,s,x),g(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Row Updated",toastType:"success"})},C=(x,_)=>{let E=f;E={...E,margin:{...E.margin,[x]:_}},h(E)},w=(x,_)=>{h(E=>({...E,[x]:_}))};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Row Settings - ",(T=r==null?void 0:r.heading)==null?void 0:T[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(Pt,{className:"mt-3",label:"Update",onClick:()=>S(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(fr,{header:"Text",children:o.jsx(io,{activeIndex:0,children:l!=null&&l.length?l.map((x,_)=>o.jsx(ro,{tabIndex:_,header:x==null?void 0:x.language,children:o.jsx(hSe,{language:x,stateRow:f,onHandleChange:v,...t})},_)):""})}),o.jsx(fr,{header:"Advance",children:o.jsx(pSe,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:x=>A("showRowTitle",x==null?void 0:x.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:x=>A("showRowSubTitle",x==null?void 0:x.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})}),o.jsx(fr,{header:"Styling",children:o.jsx(gSe,{stateRow:f,onHandleChange:w,onHandleChangePageMargin:C,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(fr,{header:"Admin",children:o.jsx(mSe,{stateRow:f,setStateRow:h})})]})]})})},vSe={},bSe=t=>{var fe,be,ye,Ae,_e,ne,q,te,Q,de,Ce;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=N.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m,handleDrop:g}=sn(),{userTaskSubmitFormData:v,taskRegisterData:A,updateTaskRegisterData:S,updateTaskProgressValue:C,addUserDataFormSectionRepeatableData:w,removeUserDataFormSectionRepeatableData:T,task_status:x,TASK_PUBLISHED:_}=mr(),{isPreview:E,isRenderView:D,isAdvanceView:V,renderType:L,isAdmin:F,emitSocketData:$}=Qt(),[k,H]=N.useState(!1),[{isDragging:pe},he]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Ee=>({isDragging:Ee.isDragging()})}),Z=pe?.25:1;he(c);const W=(Ee,Oe,we,Te,ve,M)=>o.jsx(fSe,{page:l,row:e,section:s,data:Ee,path:Oe,pageIndex:we,sectionIndex:Te,rowIndex:ve,columnIndex:M,isAdmin:F,emitSocketData:$},`column-${n}-${Ee.uuid}`),re=(Ee,Oe,we,Te)=>{var se,ge,le,oe;const ve=Ee.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",M=`${Ee.className} justify-content-space-between`,R=`${Ee.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-row-tool"}),o.jsxs("div",{className:M,children:[o.jsxs("span",{ref:E===!1?c:null,children:[o.jsx("button",{className:Ee.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Ee.togglerClassName,onClick:Ee.onTogglerClick,children:[o.jsx("span",{className:ve}),o.jsx(Wt,{})]}),o.jsxs("span",{className:R,children:["Row:"," ",((se=e==null?void 0:e.heading)==null?void 0:se[m==null?void 0:m.type])!==""?(ge=e==null?void 0:e.heading)==null?void 0:ge[m==null?void 0:m.type]:"Untitled"]})]}),E===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{d(Oe,we),$()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((oe=(le=h[Oe])==null?void 0:le.children[we])==null?void 0:oe.children.length)>1&&o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{u(Oe,we,Te),$()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{f(e,Oe,we,Te),$()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>H(!0),className:Ee.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})},Y=Ct.findIndex(v,function(Ee){return(Ee==null?void 0:Ee.rowId)===(e==null?void 0:e.uuid)}),me=()=>{var we,Te,ve;const Ee=Ct.cloneDeep(A);((Te=(we=v[Y])==null?void 0:we.repeatableFieldsData)==null?void 0:Te.length)>=(e==null?void 0:e.minimumEntries)?Ee[e==null?void 0:e.uuid]=(ve=v[Y])==null?void 0:ve.repeatableFields:delete Ee[e==null?void 0:e.uuid];const Oe=Object.keys(Ee).length;S(Ee),C(Oe)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(Ee=>{var Oe;return{fieldUuid:Ee==null?void 0:Ee.uuid,field:Ee==null?void 0:Ee.uuid,header:(Oe=Ee==null?void 0:Ee.label)==null?void 0:Oe.english}}),ie=ee==null?void 0:ee.map(Ee=>o.jsx(dr,{field:Ee.field,header:Ee.header,body:Oe=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Oe[Ee==null?void 0:Ee.field]}})})},Ee.field)),K=()=>{var Te;const Ee=[...v],Oe=[];let we=!0;e:for(const[,ve]of e.children.entries()){for(const[,M]of ve.children.entries())if(console.log("field.isValid",M.isValid),M!=null&&M.isPostField&&M.isValid!==1){const R={fieldId:M.uuid,rowIndex:a};console.log("inValidData",R),Oe.push(R),Kt.emit("OnInvalidFieldCatch",R),we=!1;break e}we=!0}we&&(Oe==null?void 0:Oe.length)===0&&(w(e==null?void 0:e.uuid,(Te=Ee[Y])==null?void 0:Te.repeatableFields),Kt.emit("clearRepeatableFields",e==null?void 0:e.uuid),me())},ae=Ee=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{T(e==null?void 0:e.uuid,Ee==null?void 0:Ee.rowIndex),setTimeout(()=>{me()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...vSe,opacity:Z,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.top}px`,marginBottom:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.bottom}px`,marginLeft:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.left}px`,marginRight:`${(_e=e==null?void 0:e.margin)==null?void 0:_e.right}px`},className:D?"row container-row":"draggable row container-row",children:[k&&o.jsx(Ig,{renderType:L,visibilty:k,setVisibility:H,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:$},"row_settings_"+r+i+a),E===!1?o.jsx(o.Fragment,{children:V===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:Ee=>re(Ee,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(ne=e==null?void 0:e.children)==null?void 0:ne.map((Ee,Oe)=>{const we=`${n}-${Oe}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:V,data:{path:we,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag"}),W(Ee,we,r,i,a,Oe)]},we)}),o.jsx(Tr,{isAdvanceView:V,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:V?"form-builder-columns":"",style:V?{overflowX:"auto"}:{},children:(q=e==null?void 0:e.children)==null?void 0:q.map((Ee,Oe)=>{const we=`${n}-${Oe}`;return o.jsx(N.Fragment,{children:W(Ee,we,r,i,a,Oe)},we)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&x===_)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(te=e==null?void 0:e.heading)==null?void 0:te[m==null?void 0:m.type]}),o.jsx("span",{children:(Q=e==null?void 0:e.subHeadingText)==null?void 0:Q[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Ee,Oe)=>{const we=`${n}-${Oe}`;return o.jsx(N.Fragment,{children:W(Ee,we,r,i,a,Oe)},we)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&x!==_&&o.jsx(Pt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>K(),label:(de=e.addToListButtonLabel)==null?void 0:de[m==null?void 0:m.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(zs,{value:(v==null?void 0:v.length)>0?(Ce=v[Y])==null?void 0:Ce.repeatableFieldsData:[],children:[ie,x!==_&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(Ee,Oe)=>ae(Oe)})]}),F&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},ySe=t=>{var i,a;const{language:e,onHandleChange:n,stateSection:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Heading"}),o.jsx(gn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Description"}),o.jsx(_s,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},Dh=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=N.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=sn(),{emitSocketData:h}=Qt(),{updateGlobalToast:m}=Qt(),g=(S,C,w)=>{l(T=>Object.assign({},T,{[S]:Object.assign({},T[S],{[C==null?void 0:C.type]:w})}))},v=(S,C)=>{l(w=>({...w,[S]:C}))},A=()=>{const S={...s,children:r==null?void 0:r.children};u(i,a,S),h(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Section Updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Section Settings - ",r==null?void 0:r.heading[d==null?void 0:d.type]," "]})," "]}),!f&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(Pt,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(fr,{header:"Text",children:o.jsx(io,{activeIndex:0,children:c!=null&&c.length?c.map((S,C)=>o.jsx(ro,{tabIndex:C,header:S==null?void 0:S.language,children:o.jsx(ySe,{language:S,stateSection:s,onHandleChange:g,...t})},C)):""})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:S=>v("showSectionHeader",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section header?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:S=>v("showSectionTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Or,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:S=>v("showSectionSubTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show Section Sub Title?"})]})]})})]})]})})},Oh=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Qt(),a=L7({initialValues:{builder_element_title:"",builder_element_description:""},validate:c=>{const u={};return c.builder_element_title||(u.builder_element_title="Title is required."),c.builder_element_description||(u.builder_element_description="Description is required."),u},onSubmit:c=>{const u={...c,reusable_template_schema:e==null?void 0:e.reusable_template_schema};i(u,()=>{a.resetForm(),r(!1)})}}),s=c=>!!(a.touched[c]&&a.errors[c]),l=()=>o.jsx("div",{children:o.jsx(Pt,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(Is,{header:"Save Custom Element",visible:n,style:{width:"20vw"},footer:l(),onHide:()=>r(!1),children:[o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element title"]}),o.jsx(gn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${S3({invalid:s("builder_element_title")})} w-full`})]}),o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element description"]}),o.jsx(_s,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${S3({invalid:s("builder_element_title")})} w-full`})]})]})},ASe=t=>{var he,Z,W,re,Y,me,ee,ie;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=sn(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Qt(),[S,C]=N.useState(!1),[w,T]=N.useState(!1),[x,_]=N.useState(null),[E,D]=N.useState(!1),V=N.useRef(null),L=(K,ae)=>{_(fe=>({...fe,[K]:ae}))},[{isDragging:F},$]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:K=>({isDragging:K.isDragging()})}),k=F?.25:1;$(V);const H=(K,ae,fe,be,ye)=>o.jsx(bSe,{page:s,section:a,data:K,path:ae,pageIndex:fe,sectionIndex:be,rowIndex:ye},`row-${n}-${K.uuid}`),pe=(K,ae,fe)=>{var _e,ne;const be=K.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ye=`${K.className} justify-content-space-between panel-tab-section`,Ae=`${K.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:ye,children:[o.jsxs("span",{ref:m===!1?V:null,children:[o.jsx("button",{className:K.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:K.togglerClassName,onClick:K.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Wt,{})]}),o.jsxs("span",{className:Ae,children:[fe+1," ",(_e=e==null?void 0:e.heading)==null?void 0:_e[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".del-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-section-tool"}),o.jsx(nn,{target:".save-tool"}),o.jsx(nn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{c(ae),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ne=d[ae])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{l(ae,fe),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{L("reusable_template_schema",e),T(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{u(e,ae,fe),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>C(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:x,setSaveBuilderElementModalData:_,saveElementModal:w,setSaveElementModal:T}),S===!0&&o.jsx(Dh,{renderType:v,visibilty:S,setVisibility:C,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsx(o.Fragment,{children:g===!0?o.jsxs(li,{header:(he=e==null?void 0:e.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:K=>pe(K,r,i),onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[((Z=e==null?void 0:e.subHeadingText)==null?void 0:Z[f==null?void 0:f.type])&&o.jsx("p",{children:(W=e==null?void 0:e.subHeadingText)==null?void 0:W[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((K,ae)=>{const fe=`${n}-${ae}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:fe,childrenCount:e.children.length},onDrop:h}),H(K,fe,r,i,ae)]},fe)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),E&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{c(r),A()},children:o.jsx(Wt,{})})}),((re=d[r])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{l(r,i),A()},children:o.jsx(Wt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=e==null?void 0:e.subHeadingText)==null?void 0:Y[f==null?void 0:f.type])&&o.jsx("p",{children:(me=e==null?void 0:e.subHeadingText)==null?void 0:me[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((K,ae)=>{const fe=`${n}-${ae}`;return o.jsx(N.Fragment,{children:H(K,fe,r,i,ae)},fe)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ee=e==null?void 0:e.heading)==null?void 0:ee[f==null?void 0:f.type]}),o.jsx("p",{children:(ie=e==null?void 0:e.subHeadingText)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((K,ae)=>{const fe=`${n}-${ae}`;return o.jsx(N.Fragment,{children:o.jsx("div",{className:"",children:H(K,fe,r,i,ae)},fe)},fe)})]})})]})},wSe={position:"relative"},SSe=t=>{var T,x,_;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=N.useRef(null),{handleDrop:h}=sn(),{isRenderView:m,isAdvanceView:g,isPreview:v}=Qt(),[{isDragging:A},S]=Ji({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:E=>({isDragging:E.isDragging()})}),C=A&&!m?.25:1;S(f);const w=(E,D,V,L,F,$,k)=>o.jsx(qc,{page:d,section:c,row:u,column:n,field:E,pageIndex:V,sectionIndex:L,rowIndex:F,columnIndex:$,fieldIndex:k,type:"field",data:E,path:D},`component-${r}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:g?{...wSe,opacity:C}:{},className:m?"":"draggable column container-column",children:v===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((T=e==null?void 0:e.children)==null?void 0:T.length)>0?(x=e==null?void 0:e.children)==null?void 0:x.map((E,D)=>{const V=`${r}-${D}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,fieldDropArea:!0,data:{path:V,childrenCount:e.children.length,droppedField:e},onDrop:h}),w(E,V,i,a,s,l,D)]},V)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:g,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${r}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]})}):o.jsx(o.Fragment,{children:(_=e==null?void 0:e.children)==null?void 0:_.map((E,D)=>{const V=`${r}-${D}`;return o.jsx(N.Fragment,{children:w(E,V,i,a,s,l,D)},V)})})})},xSe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(SSe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(N.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},CSe=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=sn(),u=N.useRef(null),[d,f]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})});f(u);const h=(m,g,v,A)=>o.jsx(ASe,{data:m,page:e,section:m,path:g,pageIndex:v,sectionIndex:A},`section_${v}_${A}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:i===!1?o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsxs(N.Fragment,{children:[s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:v,childrenCount:e.children.length},onDrop:c}),h(m,v,r,g)]},`section-${g}-${m.uuid}`)}),s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(xSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsx(N.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(m,v,r,g)})}):((m==null?void 0:m.isHidden)===!1||!i)&&h(m,v,r,g)},`section-${g}-${m.uuid}`)})})})})},TSe=()=>{const{isPreview:t,isAdvanceView:e}=Qt(),[n,r]=N.useState(!1),[i,a]=N.useState(!1),[s,l]=N.useState(0),{formBuilderFormLayout:c,formBuilderFormSchema:u}=sn(),{emitSocketData:d}=Qt();console.log("state",u);const f=(h,m,g)=>o.jsx(CSe,{data:h,path:m,pageIndex:g},`page-${h.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===L9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((h,m)=>{const g=`${m}`;return o.jsx("div",{children:f(h,g,m)},`${h.uuid}-${m}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Ya,{activeIndex:s,onTabChange:h=>l(h.index),children:(c==null?void 0:c.length)&&c.map((h,m)=>{const g=`${m}`;return o.jsxs(fr,{disabled:!((h==null?void 0:h.isHidden)===!1||!t),header:"Page",headerTemplate:v=>o.jsx(l7,{options:v,pageIndex:m,setTabSidebarSetting:r,setPageActiveIndex:l,page:h,pages:c}),children:[t===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:m}),o.jsx(Y0,{setVisibility:r,visibilty:n,pageIndex:m,page:h,emitSocketData:d}),f(h,g,m)]},`${h.uuid}-${m}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((h,m)=>{const g=`${m}`;return o.jsxs(N.Fragment,{children:[t===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:m}),o.jsx(Y0,{setVisibility:r,visibilty:n,pageIndex:m,page:h,emitSocketData:d}),f(h,g,m)]},`${h.uuid}-${m}`)}))})})})},ESe={position:"relative"},ISe=t=>{var V,L,F,$,k;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Qt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=N.useRef(null),{removeColumn:v,addColumn:A,cloneColumn:S,formBuilderFormLayout:C,handleDrop:w}=sn(),[{isDragging:T},x]=Ji({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:H=>({isDragging:H.isDragging()})}),_=T&&!i?.25:1;x(g);const E=(H,pe,he,Z,W,re,Y)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:H,data:H,path:pe,pageIndex:he,sectionIndex:Z,rowIndex:W,columnIndex:re,fieldIndex:Y},`component-${s}-${H==null?void 0:H.uuid}`),D=(H,pe,he,Z,W)=>{var ee,ie,K,ae;const re=H.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${H.className} justify-content-space-between`,me=`${H.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:n===!1?g:null,children:[o.jsx("button",{className:H.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:H.togglerClassName,onClick:H.onTogglerClick,children:[o.jsx("span",{className:re}),o.jsx(Wt,{})]}),o.jsx("span",{className:me,children:"Column"})]}),n===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:H.togglerClassName,onClick:()=>{A(pe,he,Z),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ae=(K=(ie=(ee=C[pe])==null?void 0:ee.children[he])==null?void 0:ie.children[Z])==null?void 0:K.children)==null?void 0:ae.length)>1&&o.jsxs("button",{className:H.togglerClassName,onClick:()=>{v(pe,he,Z,W),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:H.togglerClassName,onClick:()=>{S(a,pe,he,Z,W),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsx("div",{style:e?{...ESe,opacity:_}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:H=>D(H,l,c,u,d),children:[((V=a==null?void 0:a.children)==null?void 0:V.length)>0?(L=a==null?void 0:a.children)==null?void 0:L.map((H,pe)=>{const he=`${s}-${pe}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:w}),E(H,he,l,c,u,d,pe)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:w,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((F=a==null?void 0:a.children)==null?void 0:F.length)>0?($=a==null?void 0:a.children)==null?void 0:$.map((H,pe)=>{const he=`${s}-${pe}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:w}),E(H,he,l,c,u,d,pe)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:w,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(k=a==null?void 0:a.children)==null?void 0:k.map((H,pe)=>{const he=`${s}-${pe}`;return o.jsx(N.Fragment,{children:E(H,he,l,c,u,d,pe)},he)})})})},_Se={},DSe=t=>{var fe,be,ye,Ae,_e,ne,q,te,Q,de,Ce,Ee,Oe,we,Te,ve;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isPreview:f,emitSocketData:h,renderType:m}=Qt(),g=N.useRef(null),{removeRow:v,addRow:A,cloneRow:S,formBuilderFormLayout:C,userSelectedLanguage:w,handleDrop:T}=sn(),{userTaskSubmitFormData:x,taskRegisterData:_,updateTaskRegisterData:E,updateTaskProgressValue:D,addUserDataFormSectionRepeatableData:V,removeUserDataFormSectionRepeatableData:L,task_status:F,TASK_PUBLISHED:$}=mr(),[k,H]=N.useState(!1),[{isDragging:pe},he]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:M=>({isDragging:M.isDragging()})}),Z=pe?.25:1;he(g);const W=(M,R,se,ge,le,oe)=>o.jsx(ISe,{page:l,row:e,section:s,data:M,path:R,pageIndex:se,sectionIndex:ge,rowIndex:le,columnIndex:oe,isAdmin:d,emitSocketData:h},`column-${n}-${M.uuid}`),re=(M,R,se,ge)=>{var Ne,Ke,vt,wt;const le=M.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",oe=`${M.className} justify-content-space-between`,Fe=`${M.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-row-tool"}),o.jsxs("div",{className:oe,children:[o.jsxs("span",{ref:f===!1?g:null,children:[o.jsx("button",{className:M.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:M.togglerClassName,onClick:M.onTogglerClick,children:[o.jsx("span",{className:le}),o.jsx(Wt,{})]}),o.jsxs("span",{className:Fe,children:["Row:"," ",((Ne=e==null?void 0:e.heading)==null?void 0:Ne[w==null?void 0:w.type])!==""?(Ke=e==null?void 0:e.heading)==null?void 0:Ke[w==null?void 0:w.type]:"Untitled"]})]}),f===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:M.togglerClassName,onClick:()=>{A(R,se),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((wt=(vt=C[R])==null?void 0:vt.children[se])==null?void 0:wt.children.length)>1&&o.jsxs("button",{className:M.togglerClassName,onClick:()=>{v(R,se,ge),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:M.togglerClassName,onClick:()=>{S(e,R,se,ge),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>H(!0),className:M.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})},Y=Ct.findIndex(x,function(M){return(M==null?void 0:M.rowId)===(e==null?void 0:e.uuid)}),me=()=>{var se,ge,le;const M=Ct.cloneDeep(_);((ge=(se=x[Y])==null?void 0:se.repeatableFieldsData)==null?void 0:ge.length)>=(e==null?void 0:e.minimumEntries)?M[e==null?void 0:e.uuid]=(le=x[Y])==null?void 0:le.repeatableFields:delete M[e==null?void 0:e.uuid];const R=Object.keys(M).length;E(M),D(R)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(M=>{var R;return{fieldUuid:M==null?void 0:M.uuid,field:M==null?void 0:M.uuid,header:(R=M==null?void 0:M.label)==null?void 0:R.english}}),ie=ee==null?void 0:ee.map(M=>o.jsx(dr,{field:M.field,header:M.header,body:R=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:R[M==null?void 0:M.field]}})})},M.field)),K=()=>{var ge;const M=[...x],R=[];let se=!0;e:for(const[,le]of e.children.entries()){for(const[,oe]of le.children.entries())if(console.log("field.isValid",oe.isValid),oe!=null&&oe.isPostField&&oe.isValid!==1){const Fe={fieldId:oe.uuid,rowIndex:a};console.log("inValidData",Fe),R.push(Fe),Kt.emit("OnInvalidFieldCatch",Fe),se=!1;break e}se=!0}se&&(R==null?void 0:R.length)===0&&(V(e==null?void 0:e.uuid,(ge=M[Y])==null?void 0:ge.repeatableFields),Kt.emit("clearRepeatableFields",e==null?void 0:e.uuid),me())},ae=M=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{L(e==null?void 0:e.uuid,M==null?void 0:M.rowIndex),setTimeout(()=>{me()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{..._Se,opacity:Z,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.top}px`,marginBottom:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.bottom}px`,marginLeft:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.left}px`,marginRight:`${(_e=e==null?void 0:e.margin)==null?void 0:_e.right}px`},className:c?"row container-row":"draggable row container-row",children:[k&&o.jsx(Ig,{renderType:m,visibilty:k,setVisibility:H,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),m===pm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((M,R)=>{const se=`${n}-${R}`;return o.jsxs(N.Fragment,{children:[m===K1&&o.jsx(Tr,{isAdvanceView:u,data:{path:se,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),W(M,se,r,i,a,R)]},se)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag",isLast:!0})]}),(m===H1||m===P0||m===hm||m===M9||m===ep)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:M=>re(M,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(ne=e==null?void 0:e.children)==null?void 0:ne.map((M,R)=>{const se=`${n}-${R}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:u,data:{path:se,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),W(M,se,r,i,a,R)]},se)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:(q=e==null?void 0:e.children)==null?void 0:q.map((M,R)=>{const se=`${n}-${R}`;return o.jsx(N.Fragment,{children:W(M,se,r,i,a,R)},se)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&F===$)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(te=e==null?void 0:e.heading)==null?void 0:te[w==null?void 0:w.type]}),o.jsx("span",{children:(Q=e==null?void 0:e.subHeadingText)==null?void 0:Q[w==null?void 0:w.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((M,R)=>{const se=`${n}-${R}`;return o.jsx(N.Fragment,{children:W(M,se,r,i,a,R)},se)})})]})})),m===Y1&&(f===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{A(r,i),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]}),((Ce=(de=C[r])==null?void 0:de.children[i])==null?void 0:Ce.children.length)>1&&o.jsxs("button",{onClick:()=>{v(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsxs("button",{onClick:()=>{S(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]}),o.jsxs("button",{onClick:()=>H(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Ee=e==null?void 0:e.children)==null?void 0:Ee.map((M,R)=>{const se=`${n}-${R}`;return o.jsx(N.Fragment,{children:W(M,se,r,i,a,R)},se)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&F===$)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Oe=e==null?void 0:e.heading)==null?void 0:Oe[w==null?void 0:w.type]}),o.jsx("span",{children:(we=e==null?void 0:e.subHeadingText)==null?void 0:we[w==null?void 0:w.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((M,R)=>{const se=`${n}-${R}`;return o.jsx(N.Fragment,{children:W(M,se,r,i,a,R)},se)})})]})})),m===K1&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((M,R)=>{const se=`${n}-${R}`;return o.jsx(N.Fragment,{children:W(M,se,r,i,a,R)},se)})}),(e==null?void 0:e.rowIsRepeatable)&&F!==$&&o.jsx(Pt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>K(),label:(Te=e.addToListButtonLabel)==null?void 0:Te[w==null?void 0:w.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(zs,{value:(x==null?void 0:x.length)>0?(ve=x[Y])==null?void 0:ve.repeatableFieldsData:[],children:[ie,F!==$&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:M=>ae(M)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},OSe=t=>{var he,Z,W,re,Y,me,ee,ie;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=sn(),[S,C]=N.useState(!1),[w,T]=N.useState(!1),[x,_]=N.useState({reusable_template_schema:""}),[E,D]=N.useState(!1),V=N.useRef(null),L=(K,ae)=>{_(fe=>({...fe,[K]:ae}))},[{isDragging:F},$]=Ji({type:Qi,item:{type:Qi,uuid:s.uuid,children:s.children,path:l},collect:K=>({isDragging:K.isDragging()})}),k=F?.25:1;$(V);const H=(K,ae,fe,be,ye)=>o.jsx(DSe,{page:f,section:d,data:K,path:ae,pageIndex:fe,sectionIndex:be,rowIndex:ye},`row-${l}-${K.uuid}`),pe=(K,ae,fe)=>{var _e,ne;const be=K.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ye=`${K.className} justify-content-space-between panel-tab-section`,Ae=`${K.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:ye,children:[o.jsxs("span",{ref:n===!1?V:null,children:[o.jsx("button",{className:K.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:K.togglerClassName,onClick:K.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Wt,{})]}),o.jsxs("span",{className:Ae,children:[fe+1," ",(_e=s==null?void 0:s.heading)==null?void 0:_e[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".del-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-section-tool"}),o.jsx(nn,{target:".save-tool"}),o.jsx(nn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{m(ae),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ne=v[ae])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{h(ae,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{L("reusable_template_schema",s),T(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{g(s,ae,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>C(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:x,setSaveBuilderElementModalData:_,saveElementModal:w,setSaveElementModal:T}),S===!0&&o.jsx(Dh,{renderType:r,visibilty:S,setVisibility:C,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:K=>pe(K,c,u),onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(W=s==null?void 0:s.subHeadingText)==null?void 0:W[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),H(K,fe,c,u,ae)]},fe)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),E&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Wt,{})})}),((re=v[c])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Wt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(me=s==null?void 0:s.subHeadingText)==null?void 0:me[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsx(N.Fragment,{children:H(K,fe,c,u,ae)},fe)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsx(N.Fragment,{children:o.jsx("div",{className:"",children:H(K,fe,c,u,ae)},fe)},fe)})]})})]})},NSe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=N.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(ow,{ref:a,modules:[fV,wve],spaceBetween:50,slidesPerView:1,navigation:{prevEl:".prev",nextEl:".next"},pagination:{clickable:!1},scrollbar:{el:".swiper-scrollbar",draggable:!1},onSwiper:l=>console.log(l),onSlideChange:()=>console.log("slide change"),children:[(s=e==null?void 0:e.children)==null?void 0:s.map((l,c)=>{var u;return(u=l==null?void 0:l.children)==null?void 0:u.map((d,f)=>{var h;return(h=d==null?void 0:d.children)==null?void 0:h.map((m,g)=>{var v;return(v=m==null?void 0:m.children)==null?void 0:v.map((A,S)=>{const C=`${n}-${c}-${f}-${g}-${S}`;return o.jsx(lw,{children:o.jsx("div",{className:"",children:o.jsx(qc,{page:i,column:m,type:"field",row:d,section:l,field:A,data:A,path:C,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:g,fieldIndex:S},`component-${C}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${C}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(Pt,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(Pt,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},FSe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=sn(),u=N.useRef(null),[{},d]=Ji({type:Qi,item:{type:Qi,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(OSe,{data:h,section:h,path:m,page:a,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n?"":"draggable page-css p-3 pb-4"}`,"data-image-src":a==null?void 0:a.bgImage,"data-bg-color":`#${a==null?void 0:a.bgColor}`,children:r===!1?o.jsxs(o.Fragment,{children:[a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:g,childrenCount:a.children.length},onDrop:i}),f(h,g,l,m)]},`section-${m}-${h.uuid}`)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:(c==null?void 0:c.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(NSe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsx(N.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,g,l,m)},`section-${m}-${h.uuid}`)})})})})},PSe=()=>{const[t,e]=N.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Qt(),[a,s]=N.useState(!1),[l,c]=N.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:m}=sn(),g=(v,A,S)=>o.jsx(FSe,{data:v,path:A,pageIndex:S},`page-${v.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===L9&&r===!0?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((v,A)=>{const S=`${A}`;return o.jsx("div",{children:g(v,S,A)},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!0?o.jsx(Ya,{activeIndex:l,onTabChange:v=>c(v.index),children:(h==null?void 0:h.length)&&h.map((v,A)=>{const S=`${A}`;return o.jsxs(fr,{disabled:!((v==null?void 0:v.isHidden)===!1||!r),header:"Page",headerTemplate:C=>o.jsx(l7,{options:C,pageIndex:A,page:v,isPreview:r,setTabSidebarSetting:s,clonePage:m,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(Y0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,S,A)]},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((v,A)=>{const S=`${A}`;return o.jsxs(N.Fragment,{children:[r===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(Y0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,S,A)]},`${v.uuid}-${A}`)}))})})})})},kSe={position:"relative"},MSe=t=>{var w,T,x;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=N.useRef(null),{handleDrop:f}=sn(),{isPreview:h,isRenderView:m,isAdvanceView:g}=Qt(),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),S=v&&!m?.25:1;A(d);const C=(_,E,D,V,L,F,$)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:_,data:_,path:E,pageIndex:D,sectionIndex:V,rowIndex:L,columnIndex:F,fieldIndex:$},`component-${n}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:g?{...kSe,opacity:S}:{},className:m?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((w=e==null?void 0:e.children)==null?void 0:w.length)>0?(T=e==null?void 0:e.children)==null?void 0:T.map((_,E)=>{const D=`${n}-${E}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:D,childrenCount:e.children.length,droppedField:e},onDrop:f}),C(_,D,r,i,a,s,E)]},D)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},isLast:!0,onDrop:f})]}):o.jsx(o.Fragment,{children:(x=e==null?void 0:e.children)==null?void 0:x.map((_,E)=>{const D=`${n}-${E}`;return o.jsx(N.Fragment,{children:C(_,D,r,i,a,s,E)},D)})})})},LSe={},BSe=t=>{var D,V,L,F,$,k,H,pe,he;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=N.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m}=sn(),{isPreview:g,isRenderView:v}=Qt(),{task_status:A,TASK_PUBLISHED:S}=mr(),[C,w]=N.useState(!1),[{isDragging:T},x]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Z=>({isDragging:Z.isDragging()})}),_=T?.25:1;x(c);const E=(Z,W,re,Y,me,ee)=>o.jsx(MSe,{page:l,row:e,section:s,data:Z,path:W,pageIndex:re,sectionIndex:Y,rowIndex:me,columnIndex:ee},`column-${n}-${Z.uuid}`);return o.jsxs("div",{style:{...LSe,opacity:_,marginTop:`${(D=e==null?void 0:e.margin)==null?void 0:D.top}px`,marginBottom:`${(V=e==null?void 0:e.margin)==null?void 0:V.bottom}px`,marginLeft:`${(L=e==null?void 0:e.margin)==null?void 0:L.left}px`,marginRight:`${(F=e==null?void 0:e.margin)==null?void 0:F.right}px`},className:v?"row container-row":"draggable row container-row",children:[C&&o.jsx(Ig,{visibilty:C,setVisibility:w,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),g===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{d(r,i)},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]}),((k=($=h[r])==null?void 0:$.children[i])==null?void 0:k.children.length)>1&&o.jsxs("button",{onClick:()=>{u(r,i,a)},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]}),o.jsxs("button",{onClick:()=>w(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(H=e==null?void 0:e.children)==null?void 0:H.map((Z,W)=>{const re=`${n}-${W}`;return o.jsx(N.Fragment,{children:E(Z,re,r,i,a,W)},re)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===S)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(pe=e==null?void 0:e.heading)==null?void 0:pe[m==null?void 0:m.type]}),o.jsx("span",{children:(he=e==null?void 0:e.subHeadingText)==null?void 0:he[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Z,W)=>{const re=`${n}-${W}`;return o.jsx(N.Fragment,{children:E(Z,re,r,i,a,W)},re)})})]})})]})},VSe=t=>{var x,_,E;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=sn(),{isPreview:c,isAdvanceView:u}=Qt(),[d,f]=N.useState(!1),[h,m]=N.useState(!1),[g,v]=N.useState(null),A=N.useRef(null),[{isDragging:S},C]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:D=>({isDragging:D.isDragging()})}),w=S?.25:1;C(A);const T=(D,V,L,F,$)=>o.jsx(BSe,{page:s,section:a,data:D,path:V,pageIndex:L,sectionIndex:F,rowIndex:$},`row-${n}-${D.uuid}`);return o.jsxs("div",{style:{opacity:w,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(Oh,{saveBuilderElementModalData:g,setSaveBuilderElementModalData:v,saveElementModal:h,setSaveElementModal:m}),d===!0&&o.jsx(Dh,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),c===!1?o.jsx("div",{children:o.jsx("div",{children:e.children.map((D,V)=>{const L=`${n}-${V}`;return o.jsx(N.Fragment,{children:T(D,L,r,i,V)},L)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(x=e==null?void 0:e.heading)==null?void 0:x[l==null?void 0:l.type]}),((_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type])&&o.jsx("p",{children:(E=e==null?void 0:e.subHeadingText)==null?void 0:E[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((D,V)=>{const L=`${n}-${V}`;return o.jsx(N.Fragment,{children:o.jsx("div",{className:"",children:T(D,L,r,i,V)},L)},L)})]})})]})},D5={},O5={height:"1280px",width:"100%"},USe=t=>{var f,h,m,g;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Qt(),s=N.useRef(null),[{isDragging:l},c]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:v=>({isDragging:v.isDragging()})}),u=l?0:1;c(s);const d=(v,A,S,C)=>o.jsx(VSe,{data:v,section:v,path:A,page:e,pageIndex:S,sectionIndex:C},`section_${S}_${C}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"pdf flex justify-content-center",children:i===!1?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{...D5,...O5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...D5,...O5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:((e==null?void 0:e.isCoverPage)===!1||(e==null?void 0:e.isCoverPage)===void 0)&&o.jsx(o.Fragment,{children:e.children.map((v,A)=>{const S=`${n}-${A}`;return o.jsx(N.Fragment,{children:d(v,S,r,A)},`section-${A}-${v.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...D5,...O5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...D5,...O5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(f=e==null?void 0:e.margin)==null?void 0:f.top}px`,marginBottom:`${(h=e==null?void 0:e.margin)==null?void 0:h.bottom}px`,marginLeft:`${(m=e==null?void 0:e.margin)==null?void 0:m.left}px`,marginRight:`${(g=e==null?void 0:e.margin)==null?void 0:g.right}px`},children:e.children.map((v,A)=>{const S=`${n}-${A}`;return o.jsx(N.Fragment,{children:((v==null?void 0:v.isHidden)===!1||!i)&&d(v,S,r,A)},`section-${A}-${v.uuid}`)})})})})})})},qSe=()=>{const{isPreview:t}=Qt(),[e,n]=N.useState(!1),[r,i]=N.useState(0),[a,s]=N.useState(!1),{formBuilderFormLayout:l}=sn(),c=(u,d,f)=>o.jsx(USe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===L9&&t===!0?o.jsx(o.Fragment,{children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;return o.jsx("div",{className:"scroll-height-400",children:c(u,f,d)},`${u.uuid}-${d}`)})}):o.jsx(o.Fragment,{children:t===!1?o.jsx(Ya,{activeIndex:r,onTabChange:u=>i(u.index),children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs(fr,{header:"Page",headerTemplate:h=>o.jsx(l7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(Y0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})}):o.jsx("div",{className:"",children:(l==null?void 0:l.length)&&l.map((u,d)=>{var h;const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs("section",{id:u==null?void 0:u.uuid,"data-nav-title":(h=u==null?void 0:u.title)==null?void 0:h.english,"data-scrollspy":!0,children:[t===!1&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(Y0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},$Se=t=>{var S,C,w,T;const e=N.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=sn(),{isPreview:s,emitSocketData:l}=Qt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:m}=t,g=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",v=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".add-column-tool"}),o.jsxs("div",{className:v,children:[o.jsxs("span",{ref:s===!1?e:null,children:[o.jsx("button",{className:c.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:c.togglerClassName,onClick:c.onTogglerClick,children:[o.jsx("span",{className:g}),o.jsx(Wt,{})]}),o.jsx("span",{className:A,children:"Column"})]}),s===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{r(u,d,f),l()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((T=(w=(C=(S=a[u])==null?void 0:S.children[d])==null?void 0:C.children[f])==null?void 0:w.children)==null?void 0:T.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(m,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})})]})]})]})},jSe={position:"relative"},zSe=t=>{var w,T,x,_,E;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=N.useRef(null),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:D=>({isDragging:D.isDragging()})}),S=v&&!n?.25:1;A(g);const C=(D,V,L,F,$,k,H)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:D,data:D,path:V,pageIndex:L,sectionIndex:F,rowIndex:$,columnIndex:k,fieldIndex:H},`component-${s}-${D==null?void 0:D.uuid}`);return o.jsx("div",{style:e?{...jSe,opacity:S}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:D=>o.jsx($Se,{options:D,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((w=a==null?void 0:a.children)==null?void 0:w.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((D,V)=>{const L=`${s}-${V}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),C(D,L,l,c,u,d,V)]},L)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(_=a==null?void 0:a.children)==null?void 0:_.map((D,V)=>{const L=`${s}-${V}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),C(D,L,l,c,u,d,V)]},L)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(E=a==null?void 0:a.children)==null?void 0:E.map((D,V)=>{const L=`${s}-${V}`;return o.jsx(N.Fragment,{children:C(D,L,l,c,u,d,V)},L)})})})},HSe=t=>{var C,w,T,x;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=N.useState(!1),l=N.useRef(null),{isPreview:c,emitSocketData:u}=Qt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:m,userSelectedLanguage:g}=sn(),v=e!=null&&e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",A=`${e==null?void 0:e.className} justify-content-space-between`,S=`${e==null?void 0:e.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!1?l:null,children:[o.jsx("button",{className:e==null?void 0:e.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:e==null?void 0:e.onTogglerClick,children:[o.jsx("span",{className:v}),o.jsx(Wt,{})]}),o.jsxs("span",{className:S,children:["Row:"," ",((C=a==null?void 0:a.heading)==null?void 0:C[g==null?void 0:g.type])!==""?(w=a==null?void 0:a.heading)==null?void 0:w[g==null?void 0:g.type]:"Untitled"]})]}),c===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{f(n,r),u()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((x=(T=m[n])==null?void 0:T.children[r])==null?void 0:x.children.length)>1&&o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{d(n,r,i),u()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{h(a,n,r,i),u()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>s(!0),className:e==null?void 0:e.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})},YSe={},KSe=t=>{var me,ee,ie,K,ae,fe,be,ye,Ae,_e,ne;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Qt(),{handleDrop:l}=sn(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:m,page:g}=t,v=N.useRef(null),{userSelectedLanguage:A}=sn(),{userTaskSubmitFormData:S,taskRegisterData:C,updateTaskRegisterData:w,updateTaskProgressValue:T,addUserDataFormSectionRepeatableData:x,removeUserDataFormSectionRepeatableData:_,task_status:E,TASK_PUBLISHED:D}=mr(),[V,L]=N.useState(!1),[{isDragging:F},$]=Ji({type:bo,item:{type:bo,uuid:c.uuid,children:c.children,path:u,data:c},collect:q=>({isDragging:q.isDragging()})}),k=F?.25:1;$(v);const H=(q,te,Q,de,Ce,Ee)=>o.jsx(zSe,{page:g,row:c,section:m,data:q,path:te,pageIndex:Q,sectionIndex:de,rowIndex:Ce,columnIndex:Ee,emitSocketData:s},`column-${u}-${q.uuid}`),pe=Ct.findIndex(S,function(q){return(q==null?void 0:q.rowId)===(c==null?void 0:c.uuid)}),he=()=>{var Q,de,Ce;const q=Ct.cloneDeep(C);((de=(Q=S[pe])==null?void 0:Q.repeatableFieldsData)==null?void 0:de.length)>=(c==null?void 0:c.minimumEntries)?q[c==null?void 0:c.uuid]=(Ce=S[pe])==null?void 0:Ce.repeatableFields:delete q[c==null?void 0:c.uuid];const te=Object.keys(q).length;w(q),T(te)},Z=(me=c==null?void 0:c.repeatableFields)==null?void 0:me.map(q=>{var te;return{fieldUuid:q==null?void 0:q.uuid,field:q==null?void 0:q.uuid,header:(te=q==null?void 0:q.label)==null?void 0:te.english}}),W=Z==null?void 0:Z.map(q=>o.jsx(dr,{field:q.field,header:q.header,body:te=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:te[q==null?void 0:q.field]}})})},q.field)),re=()=>{var de;const q=[...S],te=[];let Q=!0;e:for(const[,Ce]of c.children.entries()){for(const[,Ee]of Ce.children.entries())if(console.log("field.isValid",Ee.isValid),Ee!=null&&Ee.isPostField&&Ee.isValid!==1){const Oe={fieldId:Ee.uuid,rowIndex:h};console.log("inValidData",Oe),te.push(Oe),Kt.emit("OnInvalidFieldCatch",Oe),Q=!1;break e}Q=!0}Q&&(te==null?void 0:te.length)===0&&(x(c==null?void 0:c.uuid,(de=q[pe])==null?void 0:de.repeatableFields),Kt.emit("clearRepeatableFields",c==null?void 0:c.uuid),he())},Y=q=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{_(c==null?void 0:c.uuid,q==null?void 0:q.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...YSe,opacity:k,marginTop:`${(ee=c==null?void 0:c.margin)==null?void 0:ee.top}px`,marginBottom:`${(ie=c==null?void 0:c.margin)==null?void 0:ie.bottom}px`,marginLeft:`${(K=c==null?void 0:c.margin)==null?void 0:K.left}px`,marginRight:`${(ae=c==null?void 0:c.margin)==null?void 0:ae.right}px`},className:n?"row container-row":"draggable row container-row",children:[V&&o.jsx(Ig,{renderType:a,visibilty:V,setVisibility:L,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:q=>o.jsx(HSe,{options:q,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(fe=c==null?void 0:c.children)==null?void 0:fe.map((q,te)=>{const Q=`${u}-${te}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:Q,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),H(q,Q,d,f,h,te)]},Q)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${u}-${c.children.length}`,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"form-builder-columns":"",style:e?{overflowX:"auto"}:{},children:(be=c==null?void 0:c.children)==null?void 0:be.map((q,te)=>{const Q=`${u}-${te}`;return o.jsx(N.Fragment,{children:H(q,Q,d,f,h,te)},Q)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&E===D)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ye=c==null?void 0:c.heading)==null?void 0:ye[A==null?void 0:A.type]}),o.jsx("span",{children:(Ae=c==null?void 0:c.subHeadingText)==null?void 0:Ae[A==null?void 0:A.type]}),o.jsx("div",{className:"form-builder-columns",children:c.children.map((q,te)=>{const Q=`${u}-${te}`;return o.jsx(N.Fragment,{children:H(q,Q,d,f,h,te)},Q)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&E!==D&&o.jsx(Pt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>re(),label:(_e=c.addToListButtonLabel)==null?void 0:_e[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(zs,{value:(S==null?void 0:S.length)>0?(ne=S[pe])==null?void 0:ne.repeatableFieldsData:[],children:[W,E!==D&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:q=>Y(q)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},XSe=t=>{var he,Z,W,re,Y,me,ee,ie;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=sn(),[S,C]=N.useState(!1),[w,T]=N.useState(!1),[x,_]=N.useState({reusable_template_schema:""}),[E,D]=N.useState(!1),V=N.useRef(null),L=(K,ae)=>{_(fe=>({...fe,[K]:ae}))},[{isDragging:F},$]=Ji({type:Qi,item:{type:Qi,uuid:s.uuid,children:s.children,path:l},collect:K=>({isDragging:K.isDragging()})}),k=F?.25:1;$(V);const H=(K,ae,fe,be,ye)=>o.jsx(KSe,{page:f,section:d,data:K,path:ae,pageIndex:fe,sectionIndex:be,rowIndex:ye,emitSocketData:i},`row-${l}-${K.uuid}`),pe=(K,ae,fe)=>{var _e,ne;const be=K.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ye=`${K.className} justify-content-space-between panel-tab-section`,Ae=`${K.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:ye,children:[o.jsxs("span",{ref:n===!1?V:null,children:[o.jsx("button",{className:K.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:K.togglerClassName,onClick:K.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Wt,{})]}),o.jsxs("span",{className:Ae,children:[fe+1," ",(_e=s==null?void 0:s.heading)==null?void 0:_e[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".del-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-section-tool"}),o.jsx(nn,{target:".save-tool"}),o.jsx(nn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{m(ae),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ne=v[ae])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{h(ae,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{L("reusable_template_schema",s),T(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>{g(s,ae,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:K.togglerClassName,onClick:()=>C(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:x,setSaveBuilderElementModalData:_,saveElementModal:w,setSaveElementModal:T}),S===!0&&o.jsx(Dh,{renderType:r,visibilty:S,setVisibility:C,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:K=>pe(K,c,u),onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(W=s==null?void 0:s.subHeadingText)==null?void 0:W[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),H(K,fe,c,u,ae)]},fe)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),E&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Wt,{})})}),((re=v[c])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Wt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(me=s==null?void 0:s.subHeadingText)==null?void 0:me[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsx(N.Fragment,{children:H(K,fe,c,u,ae)},fe)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((K,ae)=>{const fe=`${l}-${ae}`;return o.jsx(N.Fragment,{children:o.jsx("div",{className:"",children:H(K,fe,c,u,ae)},fe)},fe)})]})})]})},GSe={position:"relative"},RSe=t=>{var w,T,x;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=N.useRef(null),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:_=>({isDragging:_.isDragging()})}),S=v&&!n?.25:1;A(g);const C=(_,E,D,V,L,F,$)=>o.jsx(qc,{page:m,type:"field",row:h,column:a,section:f,field:_,data:_,path:E,pageIndex:D,sectionIndex:V,rowIndex:L,columnIndex:F,fieldIndex:$},`component-${s}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:e?{...GSe,opacity:S}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((w=a==null?void 0:a.children)==null?void 0:w.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((_,E)=>{const D=`${s}-${E}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:D,childrenCount:a.children.length,droppedField:a},onDrop:i}),C(_,D,l,c,u,d,E)]},D)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})}):o.jsx(o.Fragment,{children:(x=a==null?void 0:a.children)==null?void 0:x.map((_,E)=>{const D=`${s}-${E}`;return o.jsx(N.Fragment,{children:C(_,D,l,c,u,d,E)},D)})})})},WSe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(RSe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(N.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},QSe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=sn(),u=N.useRef(null),[{},d]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(XSe,{data:h,section:h,path:m,page:e,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:s===!1?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsxs(N.Fragment,{children:[i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:g,childrenCount:e.children.length},onDrop:c}),f(h,g,r,m)]},`section-${m}-${h.uuid}`)}),i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(WSe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsx(N.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,g,r,m)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,g,r,m)},`section-${m}-${h.uuid}`)})})})})},JSe=()=>{const[t,e]=N.useState(!1),{formBuilderFormLayout:n}=sn(),{isPreview:r}=Qt(),i=()=>{},a=(s,l,c)=>o.jsx(QSe,{data:s,path:l,pageIndex:c},`page-${s.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:o.jsx("div",{children:(n==null?void 0:n.length)&&n.map((s,l)=>{const c=`${l}`;if((s==null?void 0:s.isHidden)===!1||!r)return o.jsxs("div",{children:[o.jsx(Y0,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},ZSe={position:"relative"},exe=t=>{var w;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Qt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,m=N.useRef(null),{handleDrop:g}=sn(),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:T=>({isDragging:T.isDragging()})}),S=v&&!n?.25:1;A(m);const C=(T,x,_,E,D,V,L)=>o.jsx(qc,{page:h,type:"field",row:f,section:d,field:T,data:T,path:x,pageIndex:_,sectionIndex:E,rowIndex:D,columnIndex:V,fieldIndex:L},`component-${a}-${T==null?void 0:T.uuid}`);return o.jsx("div",{style:r?{...ZSe,opacity:S}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(w=i==null?void 0:i.children)==null?void 0:w.map((T,x)=>{const _=`${a}-${x}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:_,childrenCount:i.children.length,droppedField:i},onDrop:g}),C(T,_,s,l,c,u,x)]},_)}),i.children.length===0&&o.jsx("p",{className:"text-center",children:"Add element by dragging and dropping element from the sidebar into the dropzone area"}),o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:g,isLast:!0})]})})},txe={},nxe=t=>{var Y,me,ee,ie,K,ae,fe;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=N.useRef(null),{userSelectedLanguage:u,handleDrop:d}=sn(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:m,updateTaskProgressValue:g,addUserDataFormSectionRepeatableData:v,removeUserDataFormSectionRepeatableData:A,task_status:S,TASK_PUBLISHED:C}=mr(),{isRenderView:w,isAdmin:T,isAdvanceView:x,emitSocketData:_,renderType:E}=Qt(),[D,V]=N.useState(!1),[{isDragging:L},F]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),$=L?.25:1;F(c);const k=(be,ye,Ae,_e,ne,q)=>o.jsx(exe,{page:l,row:e,section:s,data:be,path:ye,pageIndex:Ae,sectionIndex:_e,rowIndex:ne,columnIndex:q},`column-${n}-${be.uuid}`),H=Ct.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var Ae,_e,ne;const be=Ct.cloneDeep(h);((_e=(Ae=f[H])==null?void 0:Ae.repeatableFieldsData)==null?void 0:_e.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[H])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const ye=Object.keys(be).length;m(be),g(ye)},he=(Y=e==null?void 0:e.repeatableFields)==null?void 0:Y.map(be=>{var ye;return{fieldUuid:be==null?void 0:be.uuid,field:be==null?void 0:be.uuid,header:(ye=be==null?void 0:be.label)==null?void 0:ye.english}}),Z=he==null?void 0:he.map(be=>o.jsx(dr,{field:be.field,header:be.header,body:ye=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ye[be==null?void 0:be.field]}})})},be.field)),W=()=>{var _e;const be=[...f],ye=[];let Ae=!0;e:for(const[,ne]of e.children.entries()){for(const[,q]of ne.children.entries())if(console.log("field.isValid",q.isValid),q!=null&&q.isPostField&&q.isValid!==1){const te={fieldId:q.uuid,rowIndex:a};console.log("inValidData",te),ye.push(te),Kt.emit("OnInvalidFieldCatch",te),Ae=!1;break e}Ae=!0}Ae&&(ye==null?void 0:ye.length)===0&&(v(e==null?void 0:e.uuid,(_e=be[H])==null?void 0:_e.repeatableFields),Kt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},re=be=>o.jsx(o.Fragment,{children:o.jsx(Pt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...txe,opacity:$,marginTop:`${(me=e==null?void 0:e.margin)==null?void 0:me.top}px`,marginBottom:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.bottom}px`,marginLeft:`${(ie=e==null?void 0:e.margin)==null?void 0:ie.left}px`,marginRight:`${(K=e==null?void 0:e.margin)==null?void 0:K.right}px`},className:w?"row container-row":"draggable row container-row",children:[D&&o.jsx(Ig,{renderType:E,visibilty:D,setVisibility:V,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:_},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,ye)=>{const Ae=`${n}-${ye}`;return o.jsxs(N.Fragment,{children:[E===K1&&o.jsx(Tr,{isAdvanceView:x,data:{path:Ae,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),k(be,Ae,r,i,a,ye)]},Ae)}),o.jsx(Tr,{isAdvanceView:x,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&S!==C&&o.jsx(Pt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>W(),label:(ae=e.addToListButtonLabel)==null?void 0:ae[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(zs,{value:(f==null?void 0:f.length)>0?(fe=f[H])==null?void 0:fe.repeatableFieldsData:[],children:[Z,S!==C&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>re(be)})]}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},rxe=t=>{var H,pe;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=sn(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Qt(),[S,C]=N.useState(!1),[w,T]=N.useState(!1),[x,_]=N.useState({reusable_template_schema:""}),E=N.useRef(null),D=(he,Z)=>{_(W=>({...W,[he]:Z}))},[{isDragging:V},L]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:he=>({isDragging:he.isDragging()})}),F=V?.25:1;L(E);const $=(he,Z,W,re,Y)=>o.jsx(nxe,{page:s,section:a,data:he,path:Z,pageIndex:W,sectionIndex:re,rowIndex:Y},`row-${n}-${he.uuid}`),k=(he,Z,W)=>{var ee,ie;const re=he.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${he.className} justify-content-space-between panel-tab-section`,me=`${he.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:m===!1?E:null,children:[o.jsx("button",{className:he.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:he.togglerClassName,onClick:he.onTogglerClick,children:[o.jsx("span",{className:re}),o.jsx(Wt,{})]}),o.jsxs("span",{className:me,children:[W+1," ",(ee=e==null?void 0:e.heading)==null?void 0:ee[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(nn,{target:".clone-tool"}),o.jsx(nn,{target:".del-tool"}),o.jsx(nn,{target:".setting-tool"}),o.jsx(nn,{target:".add-section-tool"}),o.jsx(nn,{target:".save-tool"}),o.jsx(nn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{c(Z),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Wt,{})]})}),((ie=d[Z])==null?void 0:ie.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{l(Z,W),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{D("reusable_template_schema",e),T(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{u(e,Z,W),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Wt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>C(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Wt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:F,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:x,setSaveBuilderElementModalData:_,saveElementModal:w,setSaveElementModal:T}),S===!0&&o.jsx(Dh,{renderType:v,visibilty:S,setVisibility:C,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsxs(li,{className:"mb-5",header:(H=e==null?void 0:e.heading)==null?void 0:H.english,toggleable:!0,headerTemplate:he=>k(he,r,i),children:[o.jsx("p",{children:(pe=e==null?void 0:e.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((he,Z)=>{const W=`${n}-${Z}`;return o.jsx(N.Fragment,{children:$(he,W,r,i,Z)},W)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},ixe=t=>{const{isRenderView:e,isPreview:n}=Qt(),{data:r,path:i,pageIndex:a}=t,s=N.useRef(null),[,l]=Ji({type:Qi,item:{type:Qi,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(rxe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${e?"":"draggable page-css p-3 pb-4"}`,"data-image-src":r==null?void 0:r.bgImage,"data-bg-color":`#${r==null?void 0:r.bgColor}`,children:n?o.jsx(o.Fragment,{}):o.jsx("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(N.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},N5=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=N.useState(!1),{userTrainingSaveData:u}=mr(),d=h=>{var m,g;if(u!==null&&h){const v=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(m=u[v])!=null&&m.isSeen?(g=u[v])==null?void 0:g.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const g=u.findIndex(v=>(v==null?void 0:v.fieldId)===(i==null?void 0:i.uuid));h=u[g].logs}else h=[];return h==null?void 0:h.map((g,v)=>o.jsxs("li",{className:"flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-4",children:[o.jsxs("div",{className:"mr-8 md:mr-8",children:[o.jsxs("span",{className:"inline-block text-900 font-medium mr-2 mb-1 md:mb-0",children:[g==null?void 0:g.action," on ",((g==null?void 0:g.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:On(g==null?void 0:g.timeState).format("Do, MMMM, YYYY HH:ss")})]}),o.jsxs("div",{className:"mt-2 md:mt-0 ml-0 md:ml-8 flex align-items-center",children:[o.jsx("div",{className:"surface-300 border-round overflow-hidden",style:{height:"8px",width:"200px"},children:o.jsx("div",{className:(g==null?void 0:g.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100),"%"]})]})]},`logs_${v}`))};return o.jsxs("ul",{className:"list-none p-0 m-0 cursor-pointer",onClick:()=>{e(i)},children:[o.jsxs("li",{className:" flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-3",style:{borderRadius:"10px"},children:[o.jsx("div",{children:o.jsxs("div",{children:[d(i)?o.jsx(Pt,{text:!0,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Pt,{text:!0,icon:"pi pi-dot",className:"p-button-rounded p-button-secondary mr-2 p-button-outlined","aria-label":"Search"}),(i==null?void 0:i.uuid)===(r==null?void 0:r.uuid)?o.jsxs("span",{children:[o.jsx(Pt,{text:!0,icon:n,className:"p-button-rounded p-button-primary mr-2 inline-flex justify-content-center align-items-center w-2rem h-2rem","aria-label":"Search"}),o.jsxs("span",{className:"inline-flex justify-content-center align-items-center h-2rem",style:{color:"#0f8bfd"},children:[a+1," - ",s]})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"inline-flex justify-content-center align-items-center w-2rem h-2rem border-circle border-1",children:o.jsx("i",{className:n})}),o.jsxs("span",{className:"font-medium text-500 ml-2 hoverSelect",children:[a+1," - ",s]})]})]})}),o.jsxs("div",{className:"flex align-items-center justify-content-between md:justify-content-end mt-3 md:mt-0",children:[o.jsx("div",{className:"text-right mr-3",children:o.jsxs("span",{className:" font-bold",children:[" ",i==null?void 0:i.videoDuration]})}),o.jsx(Pt,{text:!0,onClick:()=>c(!l),icon:"pi pi-eye",className:"p-button-rounded p-button-secondary mr-2 ","aria-label":"Search"})]})]}),l&&o.jsxs("div",{className:"surface-card shadow-2 border-round p-4",children:[o.jsx("div",{className:"flex justify-content-between align-items-center mb-5",children:o.jsx("span",{className:"text-xl text-900 font-medium",children:"Logs"})}),o.jsx("ul",{className:"list-none p-0 m-0",children:f()})]})]},`ul-list-${a}`)},axe=t=>{var w,T,x,_,E,D;const{field:e,fieldIndex:n,currentItem:r,setCurrentItem:i,setCurrentSection:a,setvideoJsOptions:s,section:l,setImage:c,setDocuments:u}=t,{taskOptions:d,userTrainingSaveData:f,updateUserTraining:h}=mr(),m=(w=d==null?void 0:d.training)!=null&&w.getAssessmentSelectedQuiz?(T=d==null?void 0:d.training)==null?void 0:T.getAssessmentSelectedQuiz:()=>{},g=V=>{if(f!==null){const L=[...f],F=L.findIndex($=>($==null?void 0:$.fieldId)===(V==null?void 0:V.uuid));F>=0&&(L[F]={...L[F],isSeen:!0}),h([...L])}},v=V=>{var L;i(V),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(L=V==null?void 0:V.media_url)==null?void 0:L.english}]})},A=V=>{var L;g(V),i(V),c((L=V==null?void 0:V.media_url)==null?void 0:L.english),a(l)},S=V=>{g(V),i(V),u(V==null?void 0:V.documents),a(l)},C=V=>{var L,F;(L=V==null?void 0:V.quizSchema)!=null&&L.assessment_id&&(m((F=V==null?void 0:V.quizSchema)==null?void 0:F.assessment_id),a(l),i(V))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(N5,{title:(x=e==null?void 0:e.title)==null?void 0:x.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:v,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(N5,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"image",icon:"pi pi-image",handleSelectCourseItem:A,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"document":return o.jsx(N5,{title:(E=e==null?void 0:e.title)==null?void 0:E.english,type:"document",icon:"pi pi-image",handleSelectCourseItem:S,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"quiz":return o.jsx(N5,{title:(D=e==null?void 0:e.quizSchema)==null?void 0:D.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:C,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},sxe=t=>{const{fields:e,setImage:n,setvideoJsOptions:r,setDocuments:i,setQuizSchema:a,setCurrentItem:s,currentItem:l,setCurrentSection:c,section:u,updateTrainingProgress:d}=t;return o.jsx(o.Fragment,{children:o.jsx("div",{className:"surface-card border-round p-4 ",children:e==null?void 0:e.map((f,h)=>o.jsxs("div",{children:[o.jsx(axe,{field:f,fieldIndex:h,currentItem:l,setCurrentItem:s,setCurrentSection:c,setvideoJsOptions:r,section:u,setImage:n,setDocuments:i,setQuizSchema:a,updateTrainingProgress:d},`${h}-list-sidebar`)," ",o.jsx("hr",{})," "]},`sidebar-item-card-${h}`))})})},oxe=t=>{var g,v,A,S,C,w,T,x,_,E;const{setSelectedOption:e,quiz:n,userSelectedLanguage:r,onSetAnswer:i,setIsOptionSelected:a,index:s,eleIndex:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f}=t,{media:h}=Qt(),m=(g=h==null?void 0:h.image)!=null&&g.MediaImage?(v=h==null?void 0:h.image)==null?void 0:v.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:D=>{e(V=>{var L;return(L=n==null?void 0:n.answersText)==null?void 0:L[r==null?void 0:r.type]}),i(D,s,l,n,c),a(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:(d==null?void 0:d.text)===((A=n.answersText)==null?void 0:A[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((S=n.answersText)==null?void 0:S[r==null?void 0:r.type])===f?{backgroundColor:"#0F8BFD",color:"#fff"}:{},children:[o.jsx(Zi,{inputId:s,value:n.answersText,checked:((C=n.answersText)==null?void 0:C[r==null?void 0:r.type])===f,onChange:D=>{u({isCorrect:null,text:null}),e(V=>{var L;return(L=D.target.value)==null?void 0:L[r==null?void 0:r.type]}),i(D,s,l,n,c),a(!0)}}),((w=n.answersTextImage)==null?void 0:w[r==null?void 0:r.type])&&((T=n.answersTextImage)==null?void 0:T[r==null?void 0:r.type])!==""&&o.jsx(m,{mediaId:(x=n.answersTextImage)==null?void 0:x[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(_=n.answersText)==null?void 0:_[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((E=n.answersText)==null?void 0:E[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?o.jsxs("span",{style:{color:"green"},children:[" ","Correct Answer"]}):o.jsxs("span",{style:{color:"red"},children:[" ","Wrong Answer"]}):""})]},s)},lxe=t=>{var m,g,v,A,S,C,w;const{media:e}=Qt(),n=(m=e==null?void 0:e.image)!=null&&m.MediaImage?(g=e==null?void 0:e.image)==null?void 0:g.MediaImage:o.jsx(o.Fragment,{}),{setSelectedOption:r,quiz:i,userSelectedLanguage:a,setIsOptionSelected:s,index:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f,onChangeCheckbox:h}=t;return N.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var T;h(!(f!=null&&f.some(x=>{var _;return x===((_=i.answersText)==null?void 0:_[a==null?void 0:a.type])})),(T=i==null?void 0:i.answersText)==null?void 0:T[a==null?void 0:a.type]),s(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:d!=null&&d.length&&(d!=null&&d.some(T=>{var x;return(T==null?void 0:T.text)===((x=i.answersText)==null?void 0:x[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var x;return(T==null?void 0:T.text)===((x=i.answersText)==null?void 0:x[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((v=i.answersText)==null?void 0:v[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Or,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(T=>{var x;return T===((x=i.answersText)==null?void 0:x[a==null?void 0:a.type])}),onChange:T=>{var x;h(T.checked,(x=T.target.value)==null?void 0:x[a==null?void 0:a.type],i,c),s(!0)}}),((A=i.answersTextImage)==null?void 0:A[a==null?void 0:a.type])&&((S=i.answersTextImage)==null?void 0:S[a==null?void 0:a.type])!==""&&o.jsx(n,{mediaId:(C=i.answersTextImage)==null?void 0:C[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(w=i.answersText)==null?void 0:w[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(T=>{var x;return(T==null?void 0:T.text)===((x=i.answersText)==null?void 0:x[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var x;return(T==null?void 0:T.text)===((x=i.answersText)==null?void 0:x[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function ij(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sj(t,e,n){return e&&aj(t.prototype,e),n&&aj(t,n),t}function oj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&IS(t,e)}function F5(t){return F5=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},F5(t)}function IS(t,e){return IS=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},IS(t,e)}function cxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function uxe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dxe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:uxe(t)}function lj(t){var e=cxe();return function(){var r=F5(t),i;if(e){var a=F5(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return dxe(this,i)}}function fxe(t){return hxe(t)||pxe(t)||gxe(t)||mxe()}function hxe(t){if(Array.isArray(t))return _S(t)}function pxe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function gxe(t,e){if(t){if(typeof t=="string")return _S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _S(t,e)}}function _S(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4163
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _g(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=String(t);if(e===0)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",a=r?r[3]:"",s=r?r[2]:n,l=s.length>=e?s:(fxe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var cj={daysInHours:!1,zeroPadTime:2};function vxe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.now,r=n===void 0?Date.now:n,i=e.precision,a=i===void 0?0:i,s=e.controlled,l=e.offsetTime,c=l===void 0?0:l,u=e.overtime,d;typeof t=="string"?d=new Date(t).getTime():t instanceof Date?d=t.getTime():d=t,s||(d+=c);var f=s?d:d-r(),h=Math.min(20,Math.max(0,a)),m=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(h))*1e3),g=Math.abs(m)/1e3;return{total:m,days:Math.floor(g/(3600*24)),hours:Math.floor(g/3600%24),minutes:Math.floor(g/60%60),seconds:Math.floor(g%60),milliseconds:Number((g%1*1e3).toFixed()),completed:m<=0}}function bxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},cj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?_g(r+n*24,c):_g(r,f);return{days:l?"":_g(n,d),hours:h,minutes:_g(i,f),seconds:_g(a,f)}}var uj=function(t){oj(n,t);var e=lj(n);function n(){var r;return ij(this,n),r=e.apply(this,arguments),r.state={count:r.props.count||3},r.startCountdown=function(){r.interval=window.setInterval(function(){var i=r.state.count-1;i===0?(r.stopCountdown(),r.props.onComplete&&r.props.onComplete()):r.setState(function(a){return{count:a.count-1}})},1e3)},r.stopCountdown=function(){clearInterval(r.interval)},r.addTime=function(i){r.stopCountdown(),r.setState(function(a){return{count:a.count+i}},r.startCountdown)},r}return sj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?N.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(N.Component);uj.propTypes={count:ra.number,children:ra.element,onComplete:ra.func};var Dg=function(t){oj(n,t);var e=lj(n);function n(r){var i;if(ij(this,n),i=e.call(this,r),i.mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=null,i.tick=function(){var s=i.calcTimeDelta(),l=s.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(s,void 0,l)},i.setLegacyCountdownRef=function(s){i.legacyCountdownRef=s},i.start=function(){if(!i.isStarted()){var s=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=s?i.calcOffsetStartTimestamp()-s:0;var l=i.calcTimeDelta();i.setTimeDeltaState(l,"STARTED",i.props.onStart),!i.props.controlled&&(!l.completed||i.props.overtime)&&(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},r.date){var a=i.calcTimeDelta();i.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return sj(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(i){this.legacyMode||this.props.date!==i.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var i=this.props,a=i.date,s=i.now,l=i.precision,c=i.controlled,u=i.overtime;return vxe(a,{now:s,precision:l,controlled:c,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(i){this.legacyCountdownRef.addTime(i)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(i){return this.state.status===i}},{key:"setTimeDeltaState",value:function(i,a,s){var l=this;if(this.mounted){var c=i.completed&&!this.state.timeDelta.completed,u=i.completed&&a==="STARTED";c&&!this.props.overtime&&this.clearTimer();var d=function(){s&&s(l.state.timeDelta),l.props.onComplete&&(c||u)&&l.props.onComplete(i,u)};return this.setState(function(f){var h=a||f.status;return i.completed&&!l.props.overtime?h="COMPLETED":!a&&h==="COMPLETED"&&(h="STOPPED"),{timeDelta:i,status:h}},d)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var i=this.props,a=i.daysInHours,s=i.zeroPadTime,l=i.zeroPadDays,c=this.state.timeDelta;return Object.assign(Object.assign({},c),{api:this.getApi(),props:this.props,formatted:bxe(c,{daysInHours:a,zeroPadTime:s,zeroPadDays:l})})}},{key:"render",value:function(){if(this.legacyMode){var i=this.props,a=i.count,s=i.children,l=i.onComplete;return N.createElement(uj,{ref:this.setLegacyCountdownRef,count:a,onComplete:l},s)}var c=this.props,u=c.className,d=c.overtime,f=c.children,h=c.renderer,m=this.getRenderProps();if(h)return h(m);if(f&&this.state.timeDelta.completed&&!d)return N.cloneElement(f,{countdown:m});var g=m.formatted,v=g.days,A=g.hours,S=g.minutes,C=g.seconds;return N.createElement("span",{className:u},m.total<0?"-":"",v,v?":":"",A,":",S,":",C)}}]),n}(N.Component);Dg.defaultProps=Object.assign(Object.assign({},cj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),Dg.propTypes={date:ra.oneOfType([ra.instanceOf(Date),ra.string,ra.number]),daysInHours:ra.bool,zeroPadTime:ra.number,zeroPadDays:ra.number,controlled:ra.bool,intervalDelay:ra.number,precision:ra.number,autoStart:ra.bool,overtime:ra.bool,className:ra.string,children:ra.element,renderer:ra.func,now:ra.func,onMount:ra.func,onStart:ra.func,onPause:ra.func,onStop:ra.func,onTick:ra.func,onComplete:ra.func};const yxe=({assessmentData:t,setDisplaySummary:e})=>{var r,i,a,s;const n=l=>{if(l.seconds<10&&(l.seconds="0"+l.seconds),l.minutes===0&&(l.minutes="0"+l.minutes),l.completed)e(!0);else return o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:l.minutes===0?{color:"black"}:{color:"black"},children:[l.minutes,":",l.seconds]})]})};return o.jsx(o.Fragment,{children:t&&((i=(r=t==null?void 0:t.time_limit)==null?void 0:r.type)==null?void 0:i.key)==="PerExam"&&o.jsx(Dg,{renderer:n,date:Date.now()+parseInt((s=(a=t==null?void 0:t.time_limit)==null?void 0:a.time_limit_info)==null?void 0:s.num_of_mins)*60*1e3})})},Axe=N.memo(yxe),wxe=t=>{var d,f,h,m;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=N.useState(Date.now()),[s,l]=N.useState(!1),c=N.useCallback(()=>{a(Date.now()),l(!1)},[r]);N.useEffect(()=>{c()},[r,c]);const u=g=>(g.seconds<10&&(g.seconds="0"+g.seconds),g.minutes===0&&(g.minutes="0"+g.minutes),g.completed&&!s?(l(!0),setTimeout(()=>{n()},500),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:{color:"black"},children:[g.minutes,":",g.seconds]})]}));return o.jsx(o.Fragment,{children:((f=(d=e==null?void 0:e.time_limit)==null?void 0:d.type)==null?void 0:f.key)==="PerQuestion"&&o.jsx(Dg,{renderer:u,date:i+parseInt((m=(h=e==null?void 0:e.time_limit)==null?void 0:h.time_limit_info)==null?void 0:m.time_per_question)*1e3,intervalDelay:0},i)})},Sxe=()=>{const t=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound4.mp3");i(a)},e=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound2.mp3");i(a)},n=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound8.mp3");i(a)},r=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound6.mp3");i(a)},i=a=>{a.play().then(()=>{console.info("Played")}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},xxe="1",dj=t=>{var Oe,we,Te,ve,M,R,se,ge;const e=le=>{const[oe,Fe]=N.useState(le),Ne=N.useRef(oe);return N.useEffect(()=>{Ne.current=oe},[oe]),[oe,Ne,Fe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=mr(),[s,l]=N.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:m,setAssessmentModal:g=()=>{},saveNewQuizData:v}=t,{quizStartAlert:A}=Sxe(),{userSelectedLanguage:S}=sn(),[C,,w]=e(0),{media:T}=Qt(),x=(Oe=T==null?void 0:T.image)!=null&&Oe.MediaImage?(we=T==null?void 0:T.image)==null?void 0:we.MediaImage:o.jsx(o.Fragment,{}),[_,E,D]=e(null),[V,L]=N.useState(!1),[F,,$]=e([]),[k,H]=N.useState(!1),[pe,he]=N.useState(!1),[Z,W]=N.useState(0),[re,Y]=N.useState(0),[me,ee]=N.useState(0),[ie,K]=N.useState(!1),[ae,fe]=N.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},N.useEffect(()=>{k||H(!0)},[F,V,k]),N.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{Y(u.quizConfiguration.quizPassMark)},ye=N.useCallback((le,oe,Fe,Ne,Ke)=>{const vt=[...F];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const wt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},nt=F.findIndex(Xe=>(Xe==null?void 0:Xe.uuid)===Ke.uuid);nt>=0?(vt[nt]={...vt[nt],...wt},$(vt)):$([...F,wt])}},[_]),Ae=le=>{var oe;if(C!==0){const Fe=[...F],Ne=C-1;D((oe=Fe[Ne])==null?void 0:oe.selectedAnswer[S==null?void 0:S.type]),L(!0),w(Ne),_e(0)}},_e=le=>{for(const oe of F)if(oe.questionIndex===C+le){D(oe.selectedAnswerEnglish);break}},ne=(le,oe,Fe,Ne)=>{var wt;const Ke=[..._];if(le)Ke.push(oe);else{const nt=Ke.findIndex(Xe=>Xe===oe);nt>=0&&Ke.splice(nt,1)}D(Ke);const vt=[...F];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let nt=!1;for(const[,ot]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(ot.isCorrect===!0)if(Ct.includes(Ke,(wt=ot==null?void 0:ot.answersText)==null?void 0:wt[S==null?void 0:S.type]))nt=!0;else{nt=!1;break}const Xe={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:nt,selectedAnswer:Fe.answersText,viewed:!0},Nt=F.findIndex(ot=>(ot==null?void 0:ot.uuid)===Ne.uuid);Nt>=0?(vt[Nt]={...vt[Nt],...Xe},$(vt)):$([...F,Xe])}},q=N.useCallback(()=>{var vt,wt,nt,Xe,Nt,ot,Re,Tt,Gt,An,Sn,xn;const le=E.current,oe=Ct.findIndex((vt=u==null?void 0:u.quizElements[C])==null?void 0:vt.answerOptions,function(In){return In.isCorrect===!0}),Fe=u==null?void 0:u.quizElements[C],Ne=(nt=(wt=Fe==null?void 0:Fe.answerOptions[oe])==null?void 0:wt.answersText)!=null&&nt[S==null?void 0:S.type]?(Nt=(Xe=Fe==null?void 0:Fe.answerOptions[oe])==null?void 0:Xe.answersText)==null?void 0:Nt[S==null?void 0:S.type]:"",Ke=(ot=F[C])!=null&&ot.isCorrect?1:0;if(u!=null&&u.quizElements&&C+1!==(u==null?void 0:u.quizElements.length)){const In={assessment_user_attempt_id:(Tt=i==null?void 0:i.assesment_user_attempts[((Re=i==null?void 0:i.assesment_user_attempts)==null?void 0:Re.length)-1])==null?void 0:Tt.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(Gt=Fe.questionText)==null?void 0:Gt[S==null?void 0:S.type],question_uid:Fe==null?void 0:Fe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(In),D(null),w(C+1),l(new Date),_e(2)}else if((u==null?void 0:u.quizElements.length)===C+1){const In={assessment_user_attempt_id:(Sn=i==null?void 0:i.assesment_user_attempts[((An=i==null?void 0:i.assesment_user_attempts)==null?void 0:An.length)-1])==null?void 0:Sn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Fe==null?void 0:Fe.uuid,question:(xn=Fe.questionText)==null?void 0:xn[S==null?void 0:S.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(In),te(),de()}L(!1)},[C,F]),te=()=>{he(!0)},Q=()=>{Ee?(console.log("Restart"),m(o3),v(),H(!0),A(),be(),w(0),D(null),L(!1),$([]),he(!1),W(0),ee(0),K(!1),fe({isCorrect:null,text:null})):(m(Ip),g(!1))},de=()=>{var Ke,vt;let le=0,oe=0,Fe=!1;for(const wt of F)wt!=null&&wt.isCorrect&&le++;W(le),oe=le/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,oe=Math.round(oe),ee(oe),Fe=oe>=re,K(Fe);const Ne={...u,...i,result:oe,status:Fe,selectedAnswers:F};d(Ne),n({session_id:c,is_pass:Fe?1:0,score:le,out_of:(vt=u==null?void 0:u.quizElements)==null?void 0:vt.length,finish_time:new Date,status:1})},Ce=()=>{var le,oe,Fe,Ne,Ke,vt,wt;if(((le=u==null?void 0:u.quizElements[C])==null?void 0:le.answerInputType)==="radio"){const nt=Ct.findIndex((oe=u==null?void 0:u.quizElements[C])==null?void 0:oe.answerOptions,function(Xe){return Xe.isCorrect===!0});_===((Ke=(Ne=(Fe=u==null?void 0:u.quizElements[C])==null?void 0:Fe.answerOptions[nt])==null?void 0:Ne.answersText)==null?void 0:Ke[S==null?void 0:S.type])?fe({isCorrect:!0,text:_}):fe({isCorrect:!1,text:_})}if(((vt=u==null?void 0:u.quizElements[C])==null?void 0:vt.answerInputType)==="checkbox"){const nt=(wt=u==null?void 0:u.quizElements[C])==null?void 0:wt.answerOptions.filter(Xe=>Xe.isCorrect===!0);if(_!=null&&_.length){const Xe=_==null?void 0:_.map(Nt=>({isCorrect:nt==null?void 0:nt.some(ot=>{var Re;return((Re=ot==null?void 0:ot.answersText)==null?void 0:Re[S==null?void 0:S.type])===Nt}),text:Nt}));fe(Xe)}}},Ee=(i==null?void 0:i.noOfAttempts)-((Te=i==null?void 0:i.assesment_user_attempts)==null?void 0:Te.length)>0&&!ie;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[pe&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"card text-center",children:[o.jsxs("h5",{children:["Assessment Result for"," ",(ve=a==null?void 0:a.assessment)==null?void 0:ve.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(M=u==null?void 0:u.quizElements)==null?void 0:M.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",me,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",re,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ie?o.jsx(xc,{severity:"success",value:"Passed"}):o.jsx(xc,{severity:"danger",value:"Failed"})]}),ie&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:pe&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Pt,{label:Ee?"Restart":"End",onClick:()=>Q()})})})]})]})})}),pe&&((R=i==null?void 0:i.assessment_type)==null?void 0:R.key)===xxe&&o.jsxs("div",{children:[o.jsx("h5",{className:"text-center",children:"Summary "}),o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:F==null?void 0:F.map((le,oe)=>{var Fe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Fe=le==null?void 0:le.question)==null?void 0:Fe[S==null?void 0:S.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(Ne=le==null?void 0:le.selectedAnswer)==null?void 0:Ne[S==null?void 0:S.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),le!=null&&le.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(v4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(v4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},oe)})})})]}),f!==VD?o.jsx(o.Fragment,{children:pe&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Pt,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{m(Ip)}})})}):o.jsx(o.Fragment,{}),k&&!pe&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-6 col-offset-3",children:[o.jsx("h5",{className:"text-center",children:o.jsxs("span",{children:[o.jsx(Axe,{assessmentData:i,setDisplaySummary:he}),o.jsx(wxe,{currentQuestionIndex:C,assessmentData:i,onNextQuestion:q})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(se=u==null?void 0:u.quizElements)==null?void 0:se.map((le,oe)=>{var Fe,Ne,Ke,vt,wt;return o.jsxs("div",{className:"quiz-card-box",children:[C===oe&&((Fe=le==null?void 0:le.questionTextImage)==null?void 0:Fe[S==null?void 0:S.type])&&((Ne=le==null?void 0:le.questionTextImage)==null?void 0:Ne[S==null?void 0:S.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(x,{mediaId:(Ke=le==null?void 0:le.questionTextImage)==null?void 0:Ke[S==null?void 0:S.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:C===oe&&((vt=le==null?void 0:le.questionText)==null?void 0:vt[S==null?void 0:S.type])}),C===oe&&((wt=le==null?void 0:le.answerOptions)==null?void 0:wt.map((nt,Xe)=>(le==null?void 0:le.answerInputType)==="checkbox"?o.jsx(N.Fragment,{children:o.jsx(lxe,{onChangeCheckbox:ne,setSelectedOption:D,quiz:nt,userSelectedLanguage:S,onSetAnswer:ye,setIsOptionSelected:L,index:Xe,eleIndex:oe,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:ae,selectedOption:_})},`checkbox-question-${Xe}`):o.jsx(N.Fragment,{children:o.jsx(oxe,{setSelectedOption:D,quiz:nt,userSelectedLanguage:S,onSetAnswer:ye,setIsOptionSelected:L,index:Xe,eleIndex:oe,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:ae,selectedOption:_})},`radio-question-${Xe}`)))]},oe)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",C+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),C>0&&o.jsx(Pt,{size:"large",className:"mx-2",label:"Previous",onClick:le=>Ae()}),((i==null?void 0:i.skippable)===!0||V===!0)&&o.jsx(Pt,{size:"large",label:(u==null?void 0:u.quizElements.length)===C+1?"Finish":V===!0?"Next":"Skip",onClick:q}),V===!0&&((ge=i==null?void 0:i.assessment_type)==null?void 0:ge.key)==="1"&&o.jsx(Pt,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ce()})]})]})]})})},Cxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=mr();N.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var m,g,v,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(v=(g=(m=d==null?void 0:d.layout[0])==null?void 0:m.children[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=dm.shuffle(h).map((S,C)=>({...S}))),f!=null&&f.randomiseAnswers&&(h=h.map((S,C)=>({...S,answerOptions:dm.shuffle(S==null?void 0:S.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(m=>(m==null?void 0:m.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(dj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},Txe=t=>{var v,A;const{currentItem:e,videoJsOptions:n}=t,r=N.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=mr(),{media:l}=Qt(),c=(v=l==null?void 0:l.video)!=null&&v.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=S=>{r.current=S,S.on("waiting",()=>{Ot.log("player is waiting")}),S.on("dispose",()=>{Ot.log("player will dispose")})},d=S=>{if(i!==null){const C=[...i],w=C==null?void 0:C.findIndex(T=>(T==null?void 0:T.fieldId)===(e==null?void 0:e.uuid));w>=0&&(C[w].seenTime=S==null?void 0:S.target.currentTime)}},f=S=>{const C=[...i],w=C==null?void 0:C.findIndex(T=>(T==null?void 0:T.fieldId)===(S==null?void 0:S.uuid));w>=0&&(i[w]={...i[w],isSeen:!0},a(C),h("Ended"))},h=S=>{const C=r.current,w=i!==null?i==null?void 0:i.findIndex(T=>(T==null?void 0:T.fieldId)===(e==null?void 0:e.uuid)):-1;w>=0&&i[w].logs.push({action:S,videoTime:i[w].seenTime,totalTime:C.duration,timeState:new Date})},m=S=>{const{mediaId:C}=S,[w,T]=N.useState(!1);return N.useEffect(()=>{if(!w&&i!==null){const x=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(x>=0){T(!0);const _=r.current;_.currentTime=i[x].seenTime}T(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:C,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},g=N.useCallback(S=>o.jsx(m,{mediaId:S}),[e==null?void 0:e.media_file_id]);return o.jsx("div",{children:(e==null?void 0:e.isExternalSource)===!1&&(e==null?void 0:e.media_file_id)!==void 0&&(e==null?void 0:e.media_file_id)!==null?o.jsx(o.Fragment,{children:g(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(LB,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},P5=t=>{var _,E,D,V,L,F;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=mr(),[a]=N.useState(!1),[,s]=N.useState(qb),[l,c]=N.useState([]),[u,d]=N.useState(null),{userSelectedLanguage:f}=sn(),[h,m]=N.useState(null),[g,v]=N.useState(null),A=(_=i==null?void 0:i.training)!=null&&_.getAssessmentByIdFromStore?(E=i==null?void 0:i.training)==null?void 0:E.getAssessmentByIdFromStore:()=>{},S=(D=i==null?void 0:i.training)!=null&&D.TrainingOverView?(V=i==null?void 0:i.training)==null?void 0:V.TrainingOverView:()=>o.jsx(o.Fragment,{}),[C,w]=N.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});N.useEffect(()=>{a||T()},[a]);const T=()=>{var $,k,H,pe,he,Z,W,re,Y,me,ee,ie,K,ae,fe,be,ye,Ae,_e,ne,q;switch(m((H=(k=($=e[0])==null?void 0:$.children[0])==null?void 0:k.children[0])==null?void 0:H.children[0]),v(e[0]),(W=(Z=(he=(pe=e[0])==null?void 0:pe.children[0])==null?void 0:he.children[0])==null?void 0:Z.children[0])==null?void 0:W.componentType){case"video":w({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(ie=(ee=(me=(Y=(re=e[0])==null?void 0:re.children[0])==null?void 0:Y.children[0])==null?void 0:me.children[0])==null?void 0:ee.media_url)==null?void 0:ie.english}]});break;case"image":s((ye=(be=(fe=(ae=(K=e[0])==null?void 0:K.children[0])==null?void 0:ae.children[0])==null?void 0:fe.children[0])==null?void 0:be.media_url)==null?void 0:ye.english);break;case"document":c((q=(ne=(_e=(Ae=e[0])==null?void 0:Ae.children[0])==null?void 0:_e.children[0])==null?void 0:ne.children[0])==null?void 0:q.documents);break}},x=$=>{switch(console.log("currentItem",$==null?void 0:$.componentType),$==null?void 0:$.componentType){case"video":return o.jsx("div",{children:o.jsx(Txe,{videoJsOptions:C,currentItem:$},$==null?void 0:$.uuid)});case"image":return o.jsx(XF,{field:$,isPreview:!0});case"document":return o.jsxs("div",{children:[o.jsx("h6",{children:"Documents"}),o.jsx("ul",{children:(l==null?void 0:l.length)>0&&l.map((k,H)=>o.jsx("li",{children:o.jsx("a",{href:k==null?void 0:k.url,children:k==null?void 0:k.url})},`document-item-${H}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Cxe,{renderIn:VD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:$}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(L=g==null?void 0:g.heading)==null?void 0:L[f==null?void 0:f.type]," -"," ",(F=h==null?void 0:h.title)==null?void 0:F[f==null?void 0:f.type]," "]}),x(h),n&&o.jsx(S,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map(($,k)=>{var H,pe;return o.jsxs(li,{className:"mb-5",header:(H=$==null?void 0:$.heading)==null?void 0:H.english,toggleable:!0,children:[o.jsx("p",{children:(pe=$==null?void 0:$.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),$.children.map((he,Z)=>{const W=`${Z}`;return o.jsx("div",{children:he.children.map((re,Y)=>{const me=`${Z}-${W}`;return o.jsx(sxe,{setCurrentSection:v,section:$,setCurrentItem:m,currentItem:h,path:me,fields:re.children,setvideoJsOptions:w,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${Y}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${k}`)})})]})};P5.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},P5.propTypes={showInfoPanel:vn.bool,sections:vn.array,updateTrainingProgress:vn.func};const Exe=()=>{var r,i;const{formBuilderFormLayout:t}=sn(),{isPreview:e}=Qt(),n=(a,s,l)=>o.jsx(ixe,{data:a,path:s,pageIndex:l},`page-${a.uuid}`);return e?(console.log("pages[0]?.children",(r=t[0])==null?void 0:r.children),o.jsx(P5,{sections:((i=t[0])==null?void 0:i.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}})):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((a,s)=>{const l=`${s}`;return o.jsx("div",{children:n(a,l,s)},`exam-page-${s}`)})})})},Ixe=t=>{var _,E,D,V,L;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=sn(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=N.useState(),[u,d]=N.useState([]),{media:f}=Qt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(E=f==null?void 0:f.image)==null?void 0:E.MediaImage:o.jsx(o.Fragment,{}),m={assessment_id:"abc123",name:`${n==null?void 0:n.name} - ${r}`,label:"Quiz 1",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},quizElements:(s==null?void 0:s.length)>0?s:a},[g,v]=N.useState(0),[A,S]=N.useState(!1);function C(F,$){return(F==null?void 0:F.length)<=$?F:(F==null?void 0:F.slice(0,$))+"..."}N.useEffect(()=>{S(!0)},[]);const w=()=>{g!==0&&v(g-1)},T=()=>{if(m!=null&&m.quizElements&&g+1!==(m==null?void 0:m.quizElements.length))v(g+1);else if((m==null?void 0:m.quizElements.length)===g+1)return},x=(F,$)=>{let k=[...u];F.checked?k.push($):k=k.filter(H=>(H==null?void 0:H[e==null?void 0:e.type])!==($==null?void 0:$[e==null?void 0:e.type])),d(k)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[m==null?void 0:m.name," "]}),(D=m==null?void 0:m.quizElements)==null?void 0:D.map((F,$)=>{var k,H,pe,he,Z,W,re,Y,me;return(F==null?void 0:F.answerInputType)==="radio"?o.jsxs("div",{className:g===$?"card":" flex align-items-center p-field-radiobutton",children:[((k=F==null?void 0:F.questionTextImage)==null?void 0:k[e==null?void 0:e.type])&&((H=F==null?void 0:F.questionTextImage)==null?void 0:H[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(pe=F==null?void 0:F.questionTextImage)==null?void 0:pe[e==null?void 0:e.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:g===$&&((he=F==null?void 0:F.questionText)==null?void 0:he[e==null?void 0:e.type])}),g===$&&((Z=F==null?void 0:F.answerOptions)==null?void 0:Z.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Zi,{inputId:`${ie}-preview`,value:ee==null?void 0:ee.answersText,checked:l===ie,onChange:()=>{c(ie)}}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${ie}-preview`,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$):(F==null?void 0:F.answerInputType)==="checkbox"?o.jsxs("div",{className:g===$?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:g===$&&((W=F==null?void 0:F.questionText)==null?void 0:W[e==null?void 0:e.type])}),g===$&&((re=F==null?void 0:F.answerOptions)==null?void 0:re.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Or,{inputId:ie,value:ee==null?void 0:ee.answersText,onChange:ye=>{x(ye,ee==null?void 0:ee.answersText)},checked:u.some(ye=>{var Ae;return(ye==null?void 0:ye[e==null?void 0:e.type])===((Ae=ee==null?void 0:ee.answersText)==null?void 0:Ae[e==null?void 0:e.type])})}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ie,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$):o.jsxs("div",{className:g===$?"card":"",children:[o.jsx("h3",{className:"mb-5",children:g===$&&((Y=F==null?void 0:F.questionText)==null?void 0:Y[e==null?void 0:e.type])}),g===$&&((me=F==null?void 0:F.answerOptions)==null?void 0:me.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Zi,{inputId:ie,value:ee==null?void 0:ee.answersText,onChange:()=>{}}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ie,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",g+1+"/"+(m==null?void 0:m.quizElements.length)]}),o.jsx("br",{}),g>0&&o.jsx(Pt,{text:!0,className:"mx-2",label:"Previous",onClick:()=>w()}),o.jsx(Pt,{text:!0,label:(m==null?void 0:m.quizElements.length)===g+1?"Finish":"Next",onClick:()=>T()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(V=m==null?void 0:m.quizElements)==null?void 0:V.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Has Maximum Number of questions:"}),o.jsxs("div",{className:"text-900 w-full md:w-9 line-height-3",children:[i==null?void 0:i.noOfAssessmentQuestions," "]})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Answers Randomly"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:i!=null&&i.randomiseAnswers?o.jsx(xc,{className:"mr-2",severity:"success",value:"True"}):o.jsx(xc,{className:"mr-2",severity:"warning",value:"False"})})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Question Time Limit"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"0.45 seconds"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Exam Time Limit:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"2 mins"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Questions Randomly:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:o.jsx("div",{className:"grid mt-0 mr-0",children:(L=m==null?void 0:m.quizElements)==null?void 0:L.map((F,$)=>{var k;return o.jsx("div",{className:"col-12 md:col-6",children:o.jsx("div",{className:"p-3 border-1 surface-border border-round surface-card",children:o.jsx("div",{className:"text-700",children:C(((k=F==null?void 0:F.questionText)==null?void 0:k[e==null?void 0:e.type])||"",30)})})},`preview-question-${$}`)})})})]})]})]})]})},_xe=t=>{var T;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=N.useRef(null),{handleDrop:f}=sn(),{isRenderView:h,isAdvanceView:m,isPreview:g}=Qt(),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:x=>({isDragging:x.isDragging()})}),C={position:"relative",opacity:v&&!h?.25:1};A(d);const w=(x,_,E,D,V,L,F)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:x,data:x,path:_,pageIndex:E,sectionIndex:D,rowIndex:V,columnIndex:L,fieldIndex:F},`component-${n}-${x==null?void 0:x.uuid}`);return o.jsx("div",{style:m?C:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:g===!1?o.jsxs("div",{children:[e.children.length>0&&((T=e==null?void 0:e.children)==null?void 0:T.map((x,_)=>{const E=`${n}-${_}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:m,fieldDropArea:!0,data:{path:E,childrenCount:e.children.length,droppedField:e},onDrop:f}),w(x,E,r,i,a,s,_)]},E)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Tr,{isAdvanceView:m,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:f,isLast:!0})]}):o.jsx(o.Fragment,{children:e.children.length>0?o.jsx(Ixe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},Dxe={},Oxe=t=>{var g,v,A,S;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=N.useRef(null),{isRenderView:u}=Qt(),[{isDragging:d},f]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:C=>({isDragging:C.isDragging()})}),h=d?.25:1;f(c);const m=(C,w,T,x,_,E)=>o.jsx(_xe,{page:l,row:e,section:s,data:C,path:w,pageIndex:T,sectionIndex:x,rowIndex:_,columnIndex:E},`column-${n}-${C.uuid}`);return o.jsx("div",{style:{...Dxe,opacity:h,marginTop:`${(g=e==null?void 0:e.margin)==null?void 0:g.top}px`,marginBottom:`${(v=e==null?void 0:e.margin)==null?void 0:v.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(S=e==null?void 0:e.margin)==null?void 0:S.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((C,w)=>{const T=`${n}-${w}`;return o.jsx(N.Fragment,{children:m(C,T,r,i,a,w)},T)})})})},Nxe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Qt(),[f,h]=N.useState(!1),[m,g]=N.useState(!1),[v,A]=N.useState(null),S=N.useRef(null),[{isDragging:C},w]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),T=C?.25:1;w(S);const x=(_,E,D,V,L)=>o.jsx(Oxe,{page:s,section:a,data:_,path:E,pageIndex:D,sectionIndex:V,rowIndex:L},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:T,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(Oh,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:A,saveElementModal:m,setSaveElementModal:g}),f===!0&&o.jsx(Dh,{renderType:l,visibilty:f,setVisibility:h,section:e,pageIndex:r,sectionIndex:i,emitSocketData:c},"section_settings_"+r+i),o.jsx("div",{className:"",children:e.children.map((_,E)=>{const D=`${n}-${E}`;return o.jsx(N.Fragment,{children:x(_,D,r,i,E)},D)})})]})},Fxe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Qt(),a=N.useRef(null),[{},s]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(Nxe,{data:c,section:c,path:u,page:e,pageIndex:d,sectionIndex:f},`section_${d}_${f}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${i?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"",children:e.children.map((c,u)=>{const d=`${n}-${u}`;return o.jsx(N.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},Pxe=()=>{const{formBuilderFormLayout:t}=sn(),e=(n,r,i)=>o.jsx(Fxe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},k5=()=>{const{renderType:t}=Qt();switch(t){case P0:return o.jsx(TSe,{});case H1:return o.jsx(PSe,{});case Y1:return o.jsx(qSe,{});case hm:return o.jsx(JSe,{});case pm:return o.jsx(Exe,{});case K1:return o.jsx(Pxe,{})}},kxe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=mr();return N.useEffect(()=>{const c=setTimeout(()=>{const u=i==null?void 0:i.filter(d=>(d==null?void 0:d.isSeen)===!0).length;s(u),a(i,n,r==null?void 0:r.submitFormData)},1e3);return()=>clearTimeout(c)},[i]),o.jsx("div",{children:e!==null&&o.jsx(P5,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},Mxe=({taskId:t,onStart:e})=>{var S,C,w,T,x,_,E,D,V,L,F,$,k,H,pe,he,Z,W,re;const[n,r]=N.useState(Ip),[i,a]=N.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=mr();N.useEffect(()=>{var Y,me,ee,ie,K;if(((Y=c==null?void 0:c.formType)==null?void 0:Y.key)==="exam"){let ae=[...((ie=(ee=(me=c==null?void 0:c.layout[0])==null?void 0:me.children[0])==null?void 0:ee.children[0])==null?void 0:ie.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(ae=dm.shuffle(ae).map(fe=>({...fe}))),l!=null&&l.randomiseAnswers&&(ae=ae.map(fe=>({...fe,answerOptions:dm.shuffle(fe==null?void 0:fe.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(ae=ae.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(K=u==null?void 0:u.assessment)==null?void 0:K.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:ae})}},[c]);const f=o.jsxs("div",{children:[o.jsx(Pt,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>r(Ip)}),o.jsx(Pt,{label:"Start Immediately",onClick:()=>{m(),r(o3)}})]}),h=Y=>Y.completed?(m(),r(o3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",Y.seconds," seconds"]}),m=()=>{const Y={task_id:t,session_id:it(),start_time:new Date,finish_time:new Date};console.log("saveNewQuizData formData",Y),a(me=>({...me,...Y})),d(Y,a)},g=()=>{r(q8),m()},v=((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.length)>0?(C=l==null?void 0:l.assesment_user_attempts)==null?void 0:C.some(Y=>(Y==null?void 0:Y.is_pass)===1):!1;function A(){var be;const Y=l==null?void 0:l.assesment_user_attempts[0],me=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],ee=Y==null?void 0:Y.start_time,ie=me==null?void 0:me.finish_time;if(!me||!ee||!ie)return"";const K=On.utc(ee),fe=On.utc(ie).diff(K,"seconds");return fe<60?fe+" seconds":Math.floor(fe/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===q8&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"card surface-section flex justify-content-center align-items-center",style:{minHeight:"100vh"},children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsx(Dg,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===Ip&&o.jsx("div",{className:" fadein animation-duration-500 animation-iteration-1 surface-section px-4 py-5 md:px-6 lg:px-8 scroll-height-150",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(w=u==null?void 0:u.assessment)==null?void 0:w.assessment_title}),o.jsxs("div",{className:"card",children:[o.jsx("h3",{children:"Overview"}),o.jsx("div",{dangerouslySetInnerHTML:{__html:c==null?void 0:c.intro}})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Guidance"}),o.jsxs("div",{className:"text-500 mb-5",children:["You have a total of ",l==null?void 0:l.noOfAttempts," ","attempts for the entire Quiz"," "]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Expires on:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:On(u==null?void 0:u.task_due_date).format("Do MMM YYYY ")})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:l==null?void 0:l.noOfAttempts})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Attempts made:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(T=l==null?void 0:l.assesment_user_attempts)==null?void 0:T.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Remaining attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(l==null?void 0:l.noOfAttempts)-((x=l==null?void 0:l.assesment_user_attempts)==null?void 0:x.length)})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Number of questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(_=i==null?void 0:i.quizElements)==null?void 0:_.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Exam time:"}),o.jsxs("div",{className:"text-900 w-full md:w-9",children:[" ",l&&((D=(E=l==null?void 0:l.time_limit)==null?void 0:E.type)==null?void 0:D.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((L=(V=l==null?void 0:l.time_limit)==null?void 0:V.time_limit_info)==null?void 0:L.num_of_mins)," ","mins"]}),l&&(($=(F=l==null?void 0:l.time_limit)==null?void 0:F.type)==null?void 0:$.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((H=(k=l==null?void 0:l.time_limit)==null?void 0:k.time_limit_info)==null?void 0:H.time_per_question)*((pe=i==null?void 0:i.quizElements)==null?void 0:pe.length)/60)," ","mins"]}),l&&((Z=(he=l==null?void 0:l.time_limit)==null?void 0:he.type)==null?void 0:Z.key)==="NoTimeLimit"&&o.jsx(o.Fragment,{children:"No Time Limit"})]})]}),((W=l==null?void 0:l.assesment_user_attempts)==null?void 0:W.length)>0&&o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Time Taken:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:A()})]})]})]})]}),o.jsx("div",{className:"my-5",children:(l==null?void 0:l.noOfAttempts)-((re=l==null?void 0:l.assesment_user_attempts)==null?void 0:re.length)>0?o.jsx(o.Fragment,{children:o.jsx(Pt,{size:"large",label:v===!0?"Passed":"Start now",disabled:v,className:"p-button-info",onClick:()=>{r(q8),e&&e()}})}):o.jsx(i7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===o3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(dj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:g,saveNewQuizData:m,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},Lxe=t=>{var ae,fe,be,ye,Ae,_e,ne,q,te,Q,de,Ce;const[e,n]=N.useState(!1),r=N.useRef(!1),{taskId:i,endPoints:a,isRenderView:s,showFieldsAfterSubmit:l,messageWhileSubmittingForm:c,enableFormScroll:u,formScrollHeight:d="scroll-height-225",onStart:f,setAssessmentModal:h=()=>{}}=t,{setLayout:m}=sn(),{taskProgressValue:g,taskRegisterData:v,task_status:A,assessmentData:S,taskProgressLoading:C,taskSchema:w,taskData:T,updateTaskFormData:x,submitTaskFormData:_,TasksLoading:E,userTaskSubmitFormData:D,TasksHTTPRequest:V,TasksSubmitLoading:L,clearTaskSchema:F,TASK_PUBLISHED:$,saveProgressDataHook:k,taskOptions:H}=mr(),pe=H!=null&&H.successMessage?H==null?void 0:H.successMessage:"Submitted Successfully";N.useEffect(()=>{if(w!==null&&m((w==null?void 0:w.layout)||[]),i){const Oe={viewed_at:new Date().toISOString()};x(D,i,a==null?void 0:a.updateFormData,s3,()=>{},Oe)}return()=>{F()}},[i]);const he=(Ee="One or more field is required")=>{r.current.show({severity:"error",summary:"Alert",detail:Ee,life:3e3})},Z=()=>{Kt.emit("onSubmitUserForm","complete"),ee()},W=()=>{_(D,i,a==null?void 0:a.submitFormData),n(!1)},re=Ee=>{x(Ee,i,a==null?void 0:a.updateFormData,s3,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})},Y=Ee=>{_(Ee,i,a==null?void 0:a.submitFormData,hD,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};N.useEffect(()=>{const Ee=setTimeout(()=>{var Oe;D!==null&&((w==null?void 0:w.enableAutoSave)===!0||((Oe=w==null?void 0:w.formType)==null?void 0:Oe.key)===r7)&&k(D,i,a==null?void 0:a.updateFormData)},2e3);return()=>clearTimeout(Ee)},[v,g]);const me=(Ee,Oe,we,Te)=>{var R,se;let ve=Te;const M={fieldId:Ee.uuid};if(we!=null&&we[Ee==null?void 0:Ee.uuid]){if((Oe==null?void 0:Oe.length)>0){e:for(const[,ge]of Oe.entries())if(((R=ge==null?void 0:ge.children)==null?void 0:R.length)>0&&(ge==null?void 0:ge.enableConditionalField)===!0){for(const[,le]of(ge==null?void 0:ge.children.entries())||[])if((se=le==null?void 0:le.attributes)!=null&&se.required&&(ve=me(le,le==null?void 0:le.options,we,ve),ve===!1))break e}}}else Kt.emit("OnInvalidFieldCatch",M),ve=!1,he();return ve},ee=N.useCallback(()=>{var Oe,we,Te,ve,M,R,se,ge,le,oe,Fe,Ne,Ke,vt,wt,nt,Xe,Nt,ot,Re,Tt;let Ee=!1;e:for(const[Gt,An]of w.layout.entries())if((An==null?void 0:An.isHidden)===!1)for(const[Sn,xn]of An.children.entries())for(const[,In]of xn.children.entries())if(In!=null&&In.rowIsRepeatable){const sr=D.findIndex(bn=>(bn==null?void 0:bn.rowId)===In.uuid);if(sr>=0){if(((Oe=D[sr].repeatableFieldsData)==null?void 0:Oe.length)<(In==null?void 0:In.minimumEntries)){he(`Need minimun ${In==null?void 0:In.minimumEntries} entries`),Ee=!1;break e}Ee=!0}}else for(const[,sr]of In.children.entries())for(const[,bn]of sr.children.entries()){if(bn.isValid===0&&bn.isPostField===!0&&(bn==null?void 0:bn.componentType)!=="hidden-field"){const un={pageIndex:Gt,fieldId:bn.uuid,sectionIndex:Sn},Ye=D.findIndex(tt=>(tt==null?void 0:tt.fieldId)===bn.uuid);if(!(Ye===-1||(we=D[Ye])!=null&&we.postData[0]&&(((ve=(Te=D[Ye])==null?void 0:Te.postData[0].postValue)==null?void 0:ve.length)>0||((M=D[Ye])==null?void 0:M.postData[0].postValue)>0))){console.log("inValidData",un),Kt.emit("OnInvalidFieldCatch",un),Ee=!1,he();break e}}if((bn==null?void 0:bn.componentType)==="radio-hierarchal"){const un=D.findIndex(Ye=>(Ye==null?void 0:Ye.fieldId)===bn.uuid);if(un>=0&&(Ee=me(bn,bn==null?void 0:bn.options,(R=D[un])==null?void 0:R.postData[0].postValue,!0),!Ee))break e}if(((se=bn==null?void 0:bn.children)==null?void 0:se.length)>0)for(const[,un]of bn.children.entries()){const Ye=Object.keys(un);if(Ye[0]){const tt=un[Ye[0]],dt={fieldId:tt.uuid,sectionIndex:Sn},Lt=D.findIndex(Cn=>(Cn==null?void 0:Cn.fieldId)===tt.uuid);if(!((ge=D[Lt])!=null&&ge.postData[0]&&(((oe=(le=D[Lt])==null?void 0:le.postData[0].postValue)==null?void 0:oe.length)>0||((Fe=D[Lt])==null?void 0:Fe.postData[0].postValue)>0||((vt=(Ke=(Ne=D[Lt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:vt.addressOne)!==""))){Kt.emit("OnInvalidFieldCatch",dt),Ee=!1,he();break e}}}if(bn!=null&&bn.inlineConditionalRules&&((nt=(wt=bn==null?void 0:bn.inlineConditionalRules)==null?void 0:wt.rules)==null?void 0:nt.length)>0){for(const[,un]of((Xe=bn==null?void 0:bn.inlineConditionalRules)==null?void 0:Xe.rules.entries())||[])for(const[,Ye]of(un==null?void 0:un.conditions.entries())||[])for(const[,tt]of(Ye==null?void 0:Ye.children.entries())||[])if(tt.isValid===0){const dt={fieldId:tt.uuid,sectionIndex:Sn},Lt=D.findIndex(Cn=>(Cn==null?void 0:Cn.fieldId)===tt.uuid);if(Lt>=0&&!((Nt=D[Lt])!=null&&Nt.postData[0]&&(((Re=(ot=D[Lt])==null?void 0:ot.postData[0].postValue)==null?void 0:Re.length)>0||((Tt=D[Lt])==null?void 0:Tt.postData[0].postValue)>0))){Kt.emit("OnInvalidFieldCatch",dt),Ee=!1,he();break e}}}Ee=!0}Ee&&n(!0)},[D]),ie=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-5"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"})]})}),K=()=>o.jsxs("div",{children:[o.jsx(Pt,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(Pt,{label:"Yes",icon:"pi pi-check",onClick:()=>W(),autoFocus:!0})]});return o.jsxs("div",{children:[o.jsx(Is,{header:()=>o.jsx(o.Fragment,{}),visible:e,style:{width:"30vw"},footer:K,onHide:()=>n(!1),children:o.jsx("p",{className:"text-center",children:c})}),E||L||V?o.jsx("div",{className:"w-full",children:o.jsx(ie,{})}):o.jsxs(o.Fragment,{children:[(((ae=w==null?void 0:w.formType)==null?void 0:ae.key)===n7||((fe=w==null?void 0:w.formType)==null?void 0:fe.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${s===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:T==null?void 0:T.task_title}),o.jsx("div",{className:"ml-4 ",children:(T==null?void 0:T.task_status)===hD&&o.jsx(i7,{classes:"",value:"COMPLETED",level:"success"})})]}),l===!1&&A===$?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:pe})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[E&&o.jsx(ie,{}),!E&&o.jsxs(o.Fragment,{children:[o.jsx(Xte,{}),o.jsx("div",{className:`${u===!0?d:" "} mt-2 mb-2`,children:o.jsx(cf,{backend:df,children:w!==null&&((be=w==null?void 0:w.layout)==null?void 0:be.length)&&o.jsx(k5,{})})}),o.jsx(c3,{ref:r}),((ye=w==null?void 0:w.formType)==null?void 0:ye.key)!==""&&(A===s3||A===null)&&o.jsx("span",{children:ll.createPortal(o.jsx("div",{style:{zIndex:9999999},className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(Pt,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>re(D),loading:C,disabled:L}),o.jsx(Pt,{label:"Submit",onClick:()=>Y(D),disabled:C,loading:L})]})}),document.body)})]})]})})]})}),((Ae=w==null?void 0:w.formType)==null?void 0:Ae.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsxs("div",{className:"invoice-header",children:[o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[T==null?void 0:T.task_title," "]})}),o.jsxs("div",{className:"ml-2",children:[o.jsx("div",{className:"customer-id",children:"Customer ID: C1613"}),o.jsx("div",{className:"invoice-address",children:"9137 3rd Lane California City CA 93504, U.S.A."})]})]}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(cf,{backend:df,children:w!==null&&((_e=w==null?void 0:w.layout)==null?void 0:_e.length)&&o.jsx(k5,{})})}),((ne=w==null?void 0:w.formType)==null?void 0:ne.key)!==""&&(A===1||A===null)&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Pt,{className:"p-button-primary",label:"Accept",onClick:()=>Z(),loading:C})})})]})})})})})}),(((q=w==null?void 0:w.formType)==null?void 0:q.key)==="page"||((te=w==null?void 0:w.formType)==null?void 0:te.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(cf,{backend:df,children:w!==null&&((Q=w==null?void 0:w.layout)==null?void 0:Q.length)&&o.jsx(k5,{})})})})})}),((de=w==null?void 0:w.formType)==null?void 0:de.key)==="training"&&o.jsx(kxe,{renderIn:Ute,taskSchema:w,taskId:i,endPoints:a}),((Ce=w==null?void 0:w.formType)==null?void 0:Ce.key)==="exam"&&o.jsx(Mxe,{taskId:i,endPoints:a,onStart:f})]})]})};/**
|
|
4163
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _g(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=String(t);if(e===0)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",a=r?r[3]:"",s=r?r[2]:n,l=s.length>=e?s:(fxe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var cj={daysInHours:!1,zeroPadTime:2};function vxe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.now,r=n===void 0?Date.now:n,i=e.precision,a=i===void 0?0:i,s=e.controlled,l=e.offsetTime,c=l===void 0?0:l,u=e.overtime,d;typeof t=="string"?d=new Date(t).getTime():t instanceof Date?d=t.getTime():d=t,s||(d+=c);var f=s?d:d-r(),h=Math.min(20,Math.max(0,a)),m=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(h))*1e3),g=Math.abs(m)/1e3;return{total:m,days:Math.floor(g/(3600*24)),hours:Math.floor(g/3600%24),minutes:Math.floor(g/60%60),seconds:Math.floor(g%60),milliseconds:Number((g%1*1e3).toFixed()),completed:m<=0}}function bxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},cj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?_g(r+n*24,c):_g(r,f);return{days:l?"":_g(n,d),hours:h,minutes:_g(i,f),seconds:_g(a,f)}}var uj=function(t){oj(n,t);var e=lj(n);function n(){var r;return ij(this,n),r=e.apply(this,arguments),r.state={count:r.props.count||3},r.startCountdown=function(){r.interval=window.setInterval(function(){var i=r.state.count-1;i===0?(r.stopCountdown(),r.props.onComplete&&r.props.onComplete()):r.setState(function(a){return{count:a.count-1}})},1e3)},r.stopCountdown=function(){clearInterval(r.interval)},r.addTime=function(i){r.stopCountdown(),r.setState(function(a){return{count:a.count+i}},r.startCountdown)},r}return sj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?N.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(N.Component);uj.propTypes={count:ra.number,children:ra.element,onComplete:ra.func};var Dg=function(t){oj(n,t);var e=lj(n);function n(r){var i;if(ij(this,n),i=e.call(this,r),i.mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=null,i.tick=function(){var s=i.calcTimeDelta(),l=s.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(s,void 0,l)},i.setLegacyCountdownRef=function(s){i.legacyCountdownRef=s},i.start=function(){if(!i.isStarted()){var s=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=s?i.calcOffsetStartTimestamp()-s:0;var l=i.calcTimeDelta();i.setTimeDeltaState(l,"STARTED",i.props.onStart),!i.props.controlled&&(!l.completed||i.props.overtime)&&(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},r.date){var a=i.calcTimeDelta();i.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return sj(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(i){this.legacyMode||this.props.date!==i.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var i=this.props,a=i.date,s=i.now,l=i.precision,c=i.controlled,u=i.overtime;return vxe(a,{now:s,precision:l,controlled:c,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(i){this.legacyCountdownRef.addTime(i)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(i){return this.state.status===i}},{key:"setTimeDeltaState",value:function(i,a,s){var l=this;if(this.mounted){var c=i.completed&&!this.state.timeDelta.completed,u=i.completed&&a==="STARTED";c&&!this.props.overtime&&this.clearTimer();var d=function(){s&&s(l.state.timeDelta),l.props.onComplete&&(c||u)&&l.props.onComplete(i,u)};return this.setState(function(f){var h=a||f.status;return i.completed&&!l.props.overtime?h="COMPLETED":!a&&h==="COMPLETED"&&(h="STOPPED"),{timeDelta:i,status:h}},d)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var i=this.props,a=i.daysInHours,s=i.zeroPadTime,l=i.zeroPadDays,c=this.state.timeDelta;return Object.assign(Object.assign({},c),{api:this.getApi(),props:this.props,formatted:bxe(c,{daysInHours:a,zeroPadTime:s,zeroPadDays:l})})}},{key:"render",value:function(){if(this.legacyMode){var i=this.props,a=i.count,s=i.children,l=i.onComplete;return N.createElement(uj,{ref:this.setLegacyCountdownRef,count:a,onComplete:l},s)}var c=this.props,u=c.className,d=c.overtime,f=c.children,h=c.renderer,m=this.getRenderProps();if(h)return h(m);if(f&&this.state.timeDelta.completed&&!d)return N.cloneElement(f,{countdown:m});var g=m.formatted,v=g.days,A=g.hours,S=g.minutes,C=g.seconds;return N.createElement("span",{className:u},m.total<0?"-":"",v,v?":":"",A,":",S,":",C)}}]),n}(N.Component);Dg.defaultProps=Object.assign(Object.assign({},cj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),Dg.propTypes={date:ra.oneOfType([ra.instanceOf(Date),ra.string,ra.number]),daysInHours:ra.bool,zeroPadTime:ra.number,zeroPadDays:ra.number,controlled:ra.bool,intervalDelay:ra.number,precision:ra.number,autoStart:ra.bool,overtime:ra.bool,className:ra.string,children:ra.element,renderer:ra.func,now:ra.func,onMount:ra.func,onStart:ra.func,onPause:ra.func,onStop:ra.func,onTick:ra.func,onComplete:ra.func};const yxe=({assessmentData:t,setDisplaySummary:e})=>{var r,i,a,s;const n=l=>{if(l.seconds<10&&(l.seconds="0"+l.seconds),l.minutes===0&&(l.minutes="0"+l.minutes),l.completed)e(!0);else return o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:l.minutes===0?{color:"black"}:{color:"black"},children:[l.minutes,":",l.seconds]})]})};return o.jsx(o.Fragment,{children:t&&((i=(r=t==null?void 0:t.time_limit)==null?void 0:r.type)==null?void 0:i.key)==="PerExam"&&o.jsx(Dg,{renderer:n,date:Date.now()+parseInt((s=(a=t==null?void 0:t.time_limit)==null?void 0:a.time_limit_info)==null?void 0:s.num_of_mins)*60*1e3})})},Axe=N.memo(yxe),wxe=t=>{var d,f,h,m;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=N.useState(Date.now()),[s,l]=N.useState(!1),c=N.useCallback(()=>{a(Date.now()),l(!1)},[r]);N.useEffect(()=>{c()},[r,c]);const u=g=>(g.seconds<10&&(g.seconds="0"+g.seconds),g.minutes===0&&(g.minutes="0"+g.minutes),g.completed&&!s?(l(!0),setTimeout(()=>{n()},500),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:{color:"black"},children:[g.minutes,":",g.seconds]})]}));return o.jsx(o.Fragment,{children:((f=(d=e==null?void 0:e.time_limit)==null?void 0:d.type)==null?void 0:f.key)==="PerQuestion"&&o.jsx(Dg,{renderer:u,date:i+parseInt((m=(h=e==null?void 0:e.time_limit)==null?void 0:h.time_limit_info)==null?void 0:m.time_per_question)*1e3,intervalDelay:0},i)})},Sxe=()=>{const t=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound4.mp3");i(a)},e=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound2.mp3");i(a)},n=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound8.mp3");i(a)},r=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound6.mp3");i(a)},i=a=>{a.play().then(()=>{console.info("Played")}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},xxe="1",dj=t=>{var Oe,we,Te,ve,M,R,se,ge;const e=le=>{const[oe,Fe]=N.useState(le),Ne=N.useRef(oe);return N.useEffect(()=>{Ne.current=oe},[oe]),[oe,Ne,Fe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=mr(),[s,l]=N.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:m,setAssessmentModal:g=()=>{},saveNewQuizData:v}=t,{quizStartAlert:A}=Sxe(),{userSelectedLanguage:S}=sn(),[C,,w]=e(0),{media:T}=Qt(),x=(Oe=T==null?void 0:T.image)!=null&&Oe.MediaImage?(we=T==null?void 0:T.image)==null?void 0:we.MediaImage:o.jsx(o.Fragment,{}),[_,E,D]=e(null),[V,L]=N.useState(!1),[F,,$]=e([]),[k,H]=N.useState(!1),[pe,he]=N.useState(!1),[Z,W]=N.useState(0),[re,Y]=N.useState(0),[me,ee]=N.useState(0),[ie,K]=N.useState(!1),[ae,fe]=N.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},N.useEffect(()=>{k||H(!0)},[F,V,k]),N.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{Y(u.quizConfiguration.quizPassMark)},ye=N.useCallback((le,oe,Fe,Ne,Ke)=>{const vt=[...F];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const wt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},nt=F.findIndex(Xe=>(Xe==null?void 0:Xe.uuid)===Ke.uuid);nt>=0?(vt[nt]={...vt[nt],...wt},$(vt)):$([...F,wt])}},[_]),Ae=le=>{var oe;if(C!==0){const Fe=[...F],Ne=C-1;D((oe=Fe[Ne])==null?void 0:oe.selectedAnswer[S==null?void 0:S.type]),L(!0),w(Ne),_e(0)}},_e=le=>{for(const oe of F)if(oe.questionIndex===C+le){D(oe.selectedAnswerEnglish);break}},ne=(le,oe,Fe,Ne)=>{var wt;const Ke=[..._];if(le)Ke.push(oe);else{const nt=Ke.findIndex(Xe=>Xe===oe);nt>=0&&Ke.splice(nt,1)}D(Ke);const vt=[...F];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let nt=!1;for(const[,ot]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(ot.isCorrect===!0)if(Ct.includes(Ke,(wt=ot==null?void 0:ot.answersText)==null?void 0:wt[S==null?void 0:S.type]))nt=!0;else{nt=!1;break}const Xe={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:nt,selectedAnswer:Fe.answersText,viewed:!0},Nt=F.findIndex(ot=>(ot==null?void 0:ot.uuid)===Ne.uuid);Nt>=0?(vt[Nt]={...vt[Nt],...Xe},$(vt)):$([...F,Xe])}},q=N.useCallback(()=>{var vt,wt,nt,Xe,Nt,ot,Re,Tt,Gt,An,Sn,xn;const le=E.current,oe=Ct.findIndex((vt=u==null?void 0:u.quizElements[C])==null?void 0:vt.answerOptions,function(In){return In.isCorrect===!0}),Fe=u==null?void 0:u.quizElements[C],Ne=(nt=(wt=Fe==null?void 0:Fe.answerOptions[oe])==null?void 0:wt.answersText)!=null&&nt[S==null?void 0:S.type]?(Nt=(Xe=Fe==null?void 0:Fe.answerOptions[oe])==null?void 0:Xe.answersText)==null?void 0:Nt[S==null?void 0:S.type]:"",Ke=(ot=F[C])!=null&&ot.isCorrect?1:0;if(u!=null&&u.quizElements&&C+1!==(u==null?void 0:u.quizElements.length)){const In={assessment_user_attempt_id:(Tt=i==null?void 0:i.assesment_user_attempts[((Re=i==null?void 0:i.assesment_user_attempts)==null?void 0:Re.length)-1])==null?void 0:Tt.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(Gt=Fe.questionText)==null?void 0:Gt[S==null?void 0:S.type],question_uid:Fe==null?void 0:Fe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(In),D(null),w(C+1),l(new Date),_e(2)}else if((u==null?void 0:u.quizElements.length)===C+1){const In={assessment_user_attempt_id:(Sn=i==null?void 0:i.assesment_user_attempts[((An=i==null?void 0:i.assesment_user_attempts)==null?void 0:An.length)-1])==null?void 0:Sn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Fe==null?void 0:Fe.uuid,question:(xn=Fe.questionText)==null?void 0:xn[S==null?void 0:S.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(In),te(),de()}L(!1)},[C,F]),te=()=>{he(!0)},Q=()=>{Ee?(console.log("Restart"),m(o3),v(),H(!0),A(),be(),w(0),D(null),L(!1),$([]),he(!1),W(0),ee(0),K(!1),fe({isCorrect:null,text:null})):(m(Ip),g(!1))},de=()=>{var Ke,vt;let le=0,oe=0,Fe=!1;for(const wt of F)wt!=null&&wt.isCorrect&&le++;W(le),oe=le/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,oe=Math.round(oe),ee(oe),Fe=oe>=re,K(Fe);const Ne={...u,...i,result:oe,status:Fe,selectedAnswers:F};d(Ne),n({session_id:c,is_pass:Fe?1:0,score:le,out_of:(vt=u==null?void 0:u.quizElements)==null?void 0:vt.length,finish_time:new Date,status:1})},Ce=()=>{var le,oe,Fe,Ne,Ke,vt,wt;if(((le=u==null?void 0:u.quizElements[C])==null?void 0:le.answerInputType)==="radio"){const nt=Ct.findIndex((oe=u==null?void 0:u.quizElements[C])==null?void 0:oe.answerOptions,function(Xe){return Xe.isCorrect===!0});_===((Ke=(Ne=(Fe=u==null?void 0:u.quizElements[C])==null?void 0:Fe.answerOptions[nt])==null?void 0:Ne.answersText)==null?void 0:Ke[S==null?void 0:S.type])?fe({isCorrect:!0,text:_}):fe({isCorrect:!1,text:_})}if(((vt=u==null?void 0:u.quizElements[C])==null?void 0:vt.answerInputType)==="checkbox"){const nt=(wt=u==null?void 0:u.quizElements[C])==null?void 0:wt.answerOptions.filter(Xe=>Xe.isCorrect===!0);if(_!=null&&_.length){const Xe=_==null?void 0:_.map(Nt=>({isCorrect:nt==null?void 0:nt.some(ot=>{var Re;return((Re=ot==null?void 0:ot.answersText)==null?void 0:Re[S==null?void 0:S.type])===Nt}),text:Nt}));fe(Xe)}}},Ee=(i==null?void 0:i.noOfAttempts)-((Te=i==null?void 0:i.assesment_user_attempts)==null?void 0:Te.length)>0&&!ie;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[pe&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"card text-center",children:[o.jsxs("h5",{children:["Assessment Result for"," ",(ve=a==null?void 0:a.assessment)==null?void 0:ve.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(M=u==null?void 0:u.quizElements)==null?void 0:M.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",me,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",re,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ie?o.jsx(xc,{severity:"success",value:"Passed"}):o.jsx(xc,{severity:"danger",value:"Failed"})]}),ie&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:pe&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Pt,{label:Ee?"Restart":"End",onClick:()=>Q()})})})]})]})})}),pe&&((R=i==null?void 0:i.assessment_type)==null?void 0:R.key)===xxe&&o.jsxs("div",{children:[o.jsx("h5",{className:"text-center",children:"Summary "}),o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:F==null?void 0:F.map((le,oe)=>{var Fe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Fe=le==null?void 0:le.question)==null?void 0:Fe[S==null?void 0:S.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(Ne=le==null?void 0:le.selectedAnswer)==null?void 0:Ne[S==null?void 0:S.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),le!=null&&le.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(v4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(v4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},oe)})})})]}),f!==VD?o.jsx(o.Fragment,{children:pe&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Pt,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{m(Ip)}})})}):o.jsx(o.Fragment,{}),k&&!pe&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-6 col-offset-3",children:[o.jsx("h5",{className:"text-center",children:o.jsxs("span",{children:[o.jsx(Axe,{assessmentData:i,setDisplaySummary:he}),o.jsx(wxe,{currentQuestionIndex:C,assessmentData:i,onNextQuestion:q})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(se=u==null?void 0:u.quizElements)==null?void 0:se.map((le,oe)=>{var Fe,Ne,Ke,vt,wt;return o.jsxs("div",{className:"quiz-card-box",children:[C===oe&&((Fe=le==null?void 0:le.questionTextImage)==null?void 0:Fe[S==null?void 0:S.type])&&((Ne=le==null?void 0:le.questionTextImage)==null?void 0:Ne[S==null?void 0:S.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(x,{mediaId:(Ke=le==null?void 0:le.questionTextImage)==null?void 0:Ke[S==null?void 0:S.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:C===oe&&((vt=le==null?void 0:le.questionText)==null?void 0:vt[S==null?void 0:S.type])}),C===oe&&((wt=le==null?void 0:le.answerOptions)==null?void 0:wt.map((nt,Xe)=>(le==null?void 0:le.answerInputType)==="checkbox"?o.jsx(N.Fragment,{children:o.jsx(lxe,{onChangeCheckbox:ne,setSelectedOption:D,quiz:nt,userSelectedLanguage:S,onSetAnswer:ye,setIsOptionSelected:L,index:Xe,eleIndex:oe,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:ae,selectedOption:_})},`checkbox-question-${Xe}`):o.jsx(N.Fragment,{children:o.jsx(oxe,{setSelectedOption:D,quiz:nt,userSelectedLanguage:S,onSetAnswer:ye,setIsOptionSelected:L,index:Xe,eleIndex:oe,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:ae,selectedOption:_})},`radio-question-${Xe}`)))]},oe)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",C+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),C>0&&o.jsx(Pt,{size:"large",className:"mx-2",label:"Previous",onClick:le=>Ae()}),((i==null?void 0:i.skippable)===!0||V===!0)&&o.jsx(Pt,{size:"large",label:(u==null?void 0:u.quizElements.length)===C+1?"Finish":V===!0?"Next":"Skip",onClick:q}),V===!0&&((ge=i==null?void 0:i.assessment_type)==null?void 0:ge.key)==="1"&&o.jsx(Pt,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ce()})]})]})]})})},Cxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=mr();N.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var m,g,v,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(v=(g=(m=d==null?void 0:d.layout[0])==null?void 0:m.children[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=dm.shuffle(h).map((S,C)=>({...S}))),f!=null&&f.randomiseAnswers&&(h=h.map((S,C)=>({...S,answerOptions:dm.shuffle(S==null?void 0:S.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(m=>(m==null?void 0:m.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(dj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},Txe=t=>{var v,A;const{currentItem:e,videoJsOptions:n}=t,r=N.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=mr(),{media:l}=Qt(),c=(v=l==null?void 0:l.video)!=null&&v.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=S=>{r.current=S,S.on("waiting",()=>{Ot.log("player is waiting")}),S.on("dispose",()=>{Ot.log("player will dispose")})},d=S=>{if(i!==null){const C=[...i],w=C==null?void 0:C.findIndex(T=>(T==null?void 0:T.fieldId)===(e==null?void 0:e.uuid));w>=0&&(C[w].seenTime=S==null?void 0:S.target.currentTime)}},f=S=>{const C=[...i],w=C==null?void 0:C.findIndex(T=>(T==null?void 0:T.fieldId)===(S==null?void 0:S.uuid));w>=0&&(i[w]={...i[w],isSeen:!0},a(C),h("Ended"))},h=S=>{const C=r.current,w=i!==null?i==null?void 0:i.findIndex(T=>(T==null?void 0:T.fieldId)===(e==null?void 0:e.uuid)):-1;w>=0&&i[w].logs.push({action:S,videoTime:i[w].seenTime,totalTime:C.duration,timeState:new Date})},m=S=>{const{mediaId:C}=S,[w,T]=N.useState(!1);return N.useEffect(()=>{if(!w&&i!==null){const x=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(x>=0){T(!0);const _=r.current;_.currentTime=i[x].seenTime}T(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:C,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},g=N.useCallback(S=>o.jsx(m,{mediaId:S}),[e==null?void 0:e.media_file_id]);return o.jsx("div",{children:(e==null?void 0:e.isExternalSource)===!1&&(e==null?void 0:e.media_file_id)!==void 0&&(e==null?void 0:e.media_file_id)!==null?o.jsx(o.Fragment,{children:g(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(LB,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},P5=t=>{var _,E,D,V,L,F;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=mr(),[a]=N.useState(!1),[,s]=N.useState(qb),[l,c]=N.useState([]),[u,d]=N.useState(null),{userSelectedLanguage:f}=sn(),[h,m]=N.useState(null),[g,v]=N.useState(null),A=(_=i==null?void 0:i.training)!=null&&_.getAssessmentByIdFromStore?(E=i==null?void 0:i.training)==null?void 0:E.getAssessmentByIdFromStore:()=>{},S=(D=i==null?void 0:i.training)!=null&&D.TrainingOverView?(V=i==null?void 0:i.training)==null?void 0:V.TrainingOverView:()=>o.jsx(o.Fragment,{}),[C,w]=N.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});N.useEffect(()=>{a||T()},[a]);const T=()=>{var $,k,H,pe,he,Z,W,re,Y,me,ee,ie,K,ae,fe,be,ye,Ae,_e,ne,q;switch(m((H=(k=($=e[0])==null?void 0:$.children[0])==null?void 0:k.children[0])==null?void 0:H.children[0]),v(e[0]),(W=(Z=(he=(pe=e[0])==null?void 0:pe.children[0])==null?void 0:he.children[0])==null?void 0:Z.children[0])==null?void 0:W.componentType){case"video":w({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(ie=(ee=(me=(Y=(re=e[0])==null?void 0:re.children[0])==null?void 0:Y.children[0])==null?void 0:me.children[0])==null?void 0:ee.media_url)==null?void 0:ie.english}]});break;case"image":s((ye=(be=(fe=(ae=(K=e[0])==null?void 0:K.children[0])==null?void 0:ae.children[0])==null?void 0:fe.children[0])==null?void 0:be.media_url)==null?void 0:ye.english);break;case"document":c((q=(ne=(_e=(Ae=e[0])==null?void 0:Ae.children[0])==null?void 0:_e.children[0])==null?void 0:ne.children[0])==null?void 0:q.documents);break}},x=$=>{switch(console.log("currentItem",$==null?void 0:$.componentType),$==null?void 0:$.componentType){case"video":return o.jsx("div",{children:o.jsx(Txe,{videoJsOptions:C,currentItem:$},$==null?void 0:$.uuid)});case"image":return o.jsx(XF,{field:$,isPreview:!0});case"document":return o.jsxs("div",{children:[o.jsx("h6",{children:"Documents"}),o.jsx("ul",{children:(l==null?void 0:l.length)>0&&l.map((k,H)=>o.jsx("li",{children:o.jsx("a",{href:k==null?void 0:k.url,children:k==null?void 0:k.url})},`document-item-${H}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Cxe,{renderIn:VD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:$}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(L=g==null?void 0:g.heading)==null?void 0:L[f==null?void 0:f.type]," -"," ",(F=h==null?void 0:h.title)==null?void 0:F[f==null?void 0:f.type]," "]}),x(h),n&&o.jsx(S,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map(($,k)=>{var H,pe;return o.jsxs(li,{className:"mb-5",header:(H=$==null?void 0:$.heading)==null?void 0:H.english,toggleable:!0,children:[o.jsx("p",{children:(pe=$==null?void 0:$.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),$.children.map((he,Z)=>{const W=`${Z}`;return o.jsx("div",{children:he.children.map((re,Y)=>{const me=`${Z}-${W}`;return o.jsx(sxe,{setCurrentSection:v,section:$,setCurrentItem:m,currentItem:h,path:me,fields:re.children,setvideoJsOptions:w,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${Y}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${k}`)})})]})};P5.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},P5.propTypes={showInfoPanel:vn.bool,sections:vn.array,updateTrainingProgress:vn.func};const Exe=()=>{var r,i;const{formBuilderFormLayout:t}=sn(),{isPreview:e}=Qt(),n=(a,s,l)=>o.jsx(ixe,{data:a,path:s,pageIndex:l},`page-${a.uuid}`);return e?(console.log("pages[0]?.children",(r=t[0])==null?void 0:r.children),o.jsx(P5,{sections:((i=t[0])==null?void 0:i.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}})):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((a,s)=>{const l=`${s}`;return o.jsx("div",{children:n(a,l,s)},`exam-page-${s}`)})})})},Ixe=t=>{var _,E,D,V,L;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=sn(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=N.useState(),[u,d]=N.useState([]),{media:f}=Qt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(E=f==null?void 0:f.image)==null?void 0:E.MediaImage:o.jsx(o.Fragment,{}),m={assessment_id:"abc123",name:`${n==null?void 0:n.name} - ${r}`,label:"Quiz 1",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},quizElements:(s==null?void 0:s.length)>0?s:a},[g,v]=N.useState(0),[A,S]=N.useState(!1);function C(F,$){return(F==null?void 0:F.length)<=$?F:(F==null?void 0:F.slice(0,$))+"..."}N.useEffect(()=>{S(!0)},[]);const w=()=>{g!==0&&v(g-1)},T=()=>{if(m!=null&&m.quizElements&&g+1!==(m==null?void 0:m.quizElements.length))v(g+1);else if((m==null?void 0:m.quizElements.length)===g+1)return},x=(F,$)=>{let k=[...u];F.checked?k.push($):k=k.filter(H=>(H==null?void 0:H[e==null?void 0:e.type])!==($==null?void 0:$[e==null?void 0:e.type])),d(k)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[m==null?void 0:m.name," "]}),(D=m==null?void 0:m.quizElements)==null?void 0:D.map((F,$)=>{var k,H,pe,he,Z,W,re,Y,me;return(F==null?void 0:F.answerInputType)==="radio"?o.jsxs("div",{className:g===$?"card":" flex align-items-center p-field-radiobutton",children:[((k=F==null?void 0:F.questionTextImage)==null?void 0:k[e==null?void 0:e.type])&&((H=F==null?void 0:F.questionTextImage)==null?void 0:H[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(pe=F==null?void 0:F.questionTextImage)==null?void 0:pe[e==null?void 0:e.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:g===$&&((he=F==null?void 0:F.questionText)==null?void 0:he[e==null?void 0:e.type])}),g===$&&((Z=F==null?void 0:F.answerOptions)==null?void 0:Z.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Zi,{inputId:`${ie}-preview`,value:ee==null?void 0:ee.answersText,checked:l===ie,onChange:()=>{c(ie)}}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${ie}-preview`,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$):(F==null?void 0:F.answerInputType)==="checkbox"?o.jsxs("div",{className:g===$?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:g===$&&((W=F==null?void 0:F.questionText)==null?void 0:W[e==null?void 0:e.type])}),g===$&&((re=F==null?void 0:F.answerOptions)==null?void 0:re.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Or,{inputId:ie,value:ee==null?void 0:ee.answersText,onChange:ye=>{x(ye,ee==null?void 0:ee.answersText)},checked:u.some(ye=>{var Ae;return(ye==null?void 0:ye[e==null?void 0:e.type])===((Ae=ee==null?void 0:ee.answersText)==null?void 0:Ae[e==null?void 0:e.type])})}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ie,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$):o.jsxs("div",{className:g===$?"card":"",children:[o.jsx("h3",{className:"mb-5",children:g===$&&((Y=F==null?void 0:F.questionText)==null?void 0:Y[e==null?void 0:e.type])}),g===$&&((me=F==null?void 0:F.answerOptions)==null?void 0:me.map((ee,ie)=>{var K,ae,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Zi,{inputId:ie,value:ee==null?void 0:ee.answersText,onChange:()=>{}}),((K=ee.answersTextImage)==null?void 0:K[e==null?void 0:e.type])&&((ae=ee.answersTextImage)==null?void 0:ae[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ie,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ie)}))]},$)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",g+1+"/"+(m==null?void 0:m.quizElements.length)]}),o.jsx("br",{}),g>0&&o.jsx(Pt,{text:!0,className:"mx-2",label:"Previous",onClick:()=>w()}),o.jsx(Pt,{text:!0,label:(m==null?void 0:m.quizElements.length)===g+1?"Finish":"Next",onClick:()=>T()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(V=m==null?void 0:m.quizElements)==null?void 0:V.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Has Maximum Number of questions:"}),o.jsxs("div",{className:"text-900 w-full md:w-9 line-height-3",children:[i==null?void 0:i.noOfAssessmentQuestions," "]})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Answers Randomly"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:i!=null&&i.randomiseAnswers?o.jsx(xc,{className:"mr-2",severity:"success",value:"True"}):o.jsx(xc,{className:"mr-2",severity:"warning",value:"False"})})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Question Time Limit"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"0.45 seconds"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Exam Time Limit:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"2 mins"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Questions Randomly:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:o.jsx("div",{className:"grid mt-0 mr-0",children:(L=m==null?void 0:m.quizElements)==null?void 0:L.map((F,$)=>{var k;return o.jsx("div",{className:"col-12 md:col-6",children:o.jsx("div",{className:"p-3 border-1 surface-border border-round surface-card",children:o.jsx("div",{className:"text-700",children:C(((k=F==null?void 0:F.questionText)==null?void 0:k[e==null?void 0:e.type])||"",30)})})},`preview-question-${$}`)})})})]})]})]})]})},_xe=t=>{var T;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=N.useRef(null),{handleDrop:f}=sn(),{isRenderView:h,isAdvanceView:m,isPreview:g}=Qt(),[{isDragging:v},A]=Ji({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:x=>({isDragging:x.isDragging()})}),C={position:"relative",opacity:v&&!h?.25:1};A(d);const w=(x,_,E,D,V,L,F)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:x,data:x,path:_,pageIndex:E,sectionIndex:D,rowIndex:V,columnIndex:L,fieldIndex:F},`component-${n}-${x==null?void 0:x.uuid}`);return o.jsx("div",{style:m?C:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:g===!1?o.jsxs("div",{children:[e.children.length>0&&((T=e==null?void 0:e.children)==null?void 0:T.map((x,_)=>{const E=`${n}-${_}`;return o.jsxs(N.Fragment,{children:[o.jsx(Tr,{isAdvanceView:m,fieldDropArea:!0,data:{path:E,childrenCount:e.children.length,droppedField:e},onDrop:f}),w(x,E,r,i,a,s,_)]},E)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Tr,{isAdvanceView:m,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:f,isLast:!0})]}):o.jsx(o.Fragment,{children:e.children.length>0?o.jsx(Ixe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},Dxe={},Oxe=t=>{var g,v,A,S;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=N.useRef(null),{isRenderView:u}=Qt(),[{isDragging:d},f]=Ji({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:C=>({isDragging:C.isDragging()})}),h=d?.25:1;f(c);const m=(C,w,T,x,_,E)=>o.jsx(_xe,{page:l,row:e,section:s,data:C,path:w,pageIndex:T,sectionIndex:x,rowIndex:_,columnIndex:E},`column-${n}-${C.uuid}`);return o.jsx("div",{style:{...Dxe,opacity:h,marginTop:`${(g=e==null?void 0:e.margin)==null?void 0:g.top}px`,marginBottom:`${(v=e==null?void 0:e.margin)==null?void 0:v.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(S=e==null?void 0:e.margin)==null?void 0:S.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((C,w)=>{const T=`${n}-${w}`;return o.jsx(N.Fragment,{children:m(C,T,r,i,a,w)},T)})})})},Nxe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Qt(),[f,h]=N.useState(!1),[m,g]=N.useState(!1),[v,A]=N.useState(null),S=N.useRef(null),[{isDragging:C},w]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),T=C?.25:1;w(S);const x=(_,E,D,V,L)=>o.jsx(Oxe,{page:s,section:a,data:_,path:E,pageIndex:D,sectionIndex:V,rowIndex:L},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:T,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(Oh,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:A,saveElementModal:m,setSaveElementModal:g}),f===!0&&o.jsx(Dh,{renderType:l,visibilty:f,setVisibility:h,section:e,pageIndex:r,sectionIndex:i,emitSocketData:c},"section_settings_"+r+i),o.jsx("div",{className:"",children:e.children.map((_,E)=>{const D=`${n}-${E}`;return o.jsx(N.Fragment,{children:x(_,D,r,i,E)},D)})})]})},Fxe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Qt(),a=N.useRef(null),[{},s]=Ji({type:Qi,item:{type:Qi,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(Nxe,{data:c,section:c,path:u,page:e,pageIndex:d,sectionIndex:f},`section_${d}_${f}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${i?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"",children:e.children.map((c,u)=>{const d=`${n}-${u}`;return o.jsx(N.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},Pxe=()=>{const{formBuilderFormLayout:t}=sn(),e=(n,r,i)=>o.jsx(Fxe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},k5=()=>{const{renderType:t}=Qt();switch(t){case P0:return o.jsx(TSe,{});case H1:return o.jsx(PSe,{});case Y1:return o.jsx(qSe,{});case hm:return o.jsx(JSe,{});case pm:return o.jsx(Exe,{});case K1:return o.jsx(Pxe,{})}},kxe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=mr();return N.useEffect(()=>{const c=setTimeout(()=>{const u=i==null?void 0:i.filter(d=>(d==null?void 0:d.isSeen)===!0).length;s(u),a(i,n,r==null?void 0:r.submitFormData)},1e3);return()=>clearTimeout(c)},[i]),o.jsx("div",{children:e!==null&&o.jsx(P5,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},Mxe=({taskId:t,onStart:e})=>{var S,C,w,T,x,_,E,D,V,L,F,$,k,H,pe,he,Z,W,re;const[n,r]=N.useState(Ip),[i,a]=N.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=mr();N.useEffect(()=>{var Y,me,ee,ie,K;if(((Y=c==null?void 0:c.formType)==null?void 0:Y.key)==="exam"){let ae=[...((ie=(ee=(me=c==null?void 0:c.layout[0])==null?void 0:me.children[0])==null?void 0:ee.children[0])==null?void 0:ie.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(ae=dm.shuffle(ae).map(fe=>({...fe}))),l!=null&&l.randomiseAnswers&&(ae=ae.map(fe=>({...fe,answerOptions:dm.shuffle(fe==null?void 0:fe.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(ae=ae.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(K=u==null?void 0:u.assessment)==null?void 0:K.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:ae})}},[c]);const f=o.jsxs("div",{children:[o.jsx(Pt,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>r(Ip)}),o.jsx(Pt,{label:"Start Immediately",onClick:()=>{m(),r(o3)}})]}),h=Y=>Y.completed?(m(),r(o3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",Y.seconds," seconds"]}),m=()=>{const Y={task_id:t,session_id:it(),start_time:new Date,finish_time:new Date};console.log("saveNewQuizData formData",Y),a(me=>({...me,...Y})),d(Y,a)},g=()=>{r(q8),m()},v=((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.length)>0?(C=l==null?void 0:l.assesment_user_attempts)==null?void 0:C.some(Y=>(Y==null?void 0:Y.is_pass)===1):!1;function A(){var be;const Y=l==null?void 0:l.assesment_user_attempts[0],me=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],ee=Y==null?void 0:Y.start_time,ie=me==null?void 0:me.finish_time;if(!me||!ee||!ie)return"";const K=On.utc(ee),fe=On.utc(ie).diff(K,"seconds");return fe<60?fe+" seconds":Math.floor(fe/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===q8&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"card surface-section flex justify-content-center align-items-center",style:{minHeight:"100vh"},children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsx(Dg,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===Ip&&o.jsx("div",{className:" fadein animation-duration-500 animation-iteration-1 surface-section px-4 py-5 md:px-6 lg:px-8 scroll-height-150",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(w=u==null?void 0:u.assessment)==null?void 0:w.assessment_title}),o.jsxs("div",{className:"card",children:[o.jsx("h3",{children:"Overview"}),o.jsx("div",{dangerouslySetInnerHTML:{__html:c==null?void 0:c.intro}})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Guidance"}),o.jsxs("div",{className:"text-500 mb-5",children:["You have a total of ",l==null?void 0:l.noOfAttempts," ","attempts for the entire Quiz"," "]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Expires on:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:On(u==null?void 0:u.task_due_date).format("Do MMM YYYY ")})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:l==null?void 0:l.noOfAttempts})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Attempts made:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(T=l==null?void 0:l.assesment_user_attempts)==null?void 0:T.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Remaining attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(l==null?void 0:l.noOfAttempts)-((x=l==null?void 0:l.assesment_user_attempts)==null?void 0:x.length)})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Number of questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(_=i==null?void 0:i.quizElements)==null?void 0:_.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Exam time:"}),o.jsxs("div",{className:"text-900 w-full md:w-9",children:[" ",l&&((D=(E=l==null?void 0:l.time_limit)==null?void 0:E.type)==null?void 0:D.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((L=(V=l==null?void 0:l.time_limit)==null?void 0:V.time_limit_info)==null?void 0:L.num_of_mins)," ","mins"]}),l&&(($=(F=l==null?void 0:l.time_limit)==null?void 0:F.type)==null?void 0:$.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((H=(k=l==null?void 0:l.time_limit)==null?void 0:k.time_limit_info)==null?void 0:H.time_per_question)*((pe=i==null?void 0:i.quizElements)==null?void 0:pe.length)/60)," ","mins"]}),l&&((Z=(he=l==null?void 0:l.time_limit)==null?void 0:he.type)==null?void 0:Z.key)==="NoTimeLimit"&&o.jsx(o.Fragment,{children:"No Time Limit"})]})]}),((W=l==null?void 0:l.assesment_user_attempts)==null?void 0:W.length)>0&&o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Time Taken:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:A()})]})]})]})]}),o.jsx("div",{className:"my-5",children:(l==null?void 0:l.noOfAttempts)-((re=l==null?void 0:l.assesment_user_attempts)==null?void 0:re.length)>0?o.jsx(o.Fragment,{children:o.jsx(Pt,{size:"large",label:v===!0?"Passed":"Start now",disabled:v,className:"p-button-info",onClick:()=>{r(q8),e&&e()}})}):o.jsx(i7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===o3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(dj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:g,saveNewQuizData:m,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},Lxe=t=>{var ae,fe,be,ye,Ae,_e,ne,q,te,Q,de,Ce;const[e,n]=N.useState(!1),r=N.useRef(!1),{taskId:i,endPoints:a,isRenderView:s,showFieldsAfterSubmit:l,messageWhileSubmittingForm:c,enableFormScroll:u,formScrollHeight:d="scroll-height-225",onStart:f,setAssessmentModal:h=()=>{}}=t,{setLayout:m}=sn(),{taskProgressValue:g,taskRegisterData:v,task_status:A,assessmentData:S,taskProgressLoading:C,taskSchema:w,taskData:T,updateTaskFormData:x,submitTaskFormData:_,TasksLoading:E,userTaskSubmitFormData:D,TasksHTTPRequest:V,TasksSubmitLoading:L,clearTaskSchema:F,TASK_PUBLISHED:$,saveProgressDataHook:k,taskOptions:H}=mr(),pe=H!=null&&H.successMessage?H==null?void 0:H.successMessage:"Submitted Successfully";N.useEffect(()=>{if(w!==null&&m((w==null?void 0:w.layout)||[]),i){const Oe={viewed_at:new Date().toISOString()};x(D,i,a==null?void 0:a.updateFormData,s3,()=>{},Oe)}return()=>{F()}},[i]);const he=(Ee="One or more field is required")=>{r.current.show({severity:"error",summary:"Alert",detail:Ee,life:3e3})},Z=()=>{Kt.emit("onSubmitUserForm","complete"),ee()},W=()=>{_(D,i,a==null?void 0:a.submitFormData),n(!1)},re=Ee=>{x(Ee,i,a==null?void 0:a.updateFormData,s3,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})},Y=Ee=>{_(Ee,i,a==null?void 0:a.submitFormData,hD,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};N.useEffect(()=>{const Ee=setTimeout(()=>{var Oe;D!==null&&((w==null?void 0:w.enableAutoSave)===!0||((Oe=w==null?void 0:w.formType)==null?void 0:Oe.key)===r7)&&k(D,i,a==null?void 0:a.updateFormData)},2e3);return()=>clearTimeout(Ee)},[v,g]);const me=(Ee,Oe,we,Te)=>{var R,se;let ve=Te;const M={fieldId:Ee.uuid};if(we!=null&&we[Ee==null?void 0:Ee.uuid]){if((Oe==null?void 0:Oe.length)>0){e:for(const[,ge]of Oe.entries())if(((R=ge==null?void 0:ge.children)==null?void 0:R.length)>0&&(ge==null?void 0:ge.enableConditionalField)===!0){for(const[,le]of(ge==null?void 0:ge.children.entries())||[])if((se=le==null?void 0:le.attributes)!=null&&se.required&&(ve=me(le,le==null?void 0:le.options,we,ve),ve===!1))break e}}}else Kt.emit("OnInvalidFieldCatch",M),ve=!1,he();return ve},ee=N.useCallback(()=>{var Oe,we,Te,ve,M,R,se,ge,le,oe,Fe,Ne,Ke,vt,wt,nt,Xe,Nt,ot,Re,Tt;let Ee=!1;e:for(const[Gt,An]of w.layout.entries())if((An==null?void 0:An.isHidden)===!1)for(const[Sn,xn]of An.children.entries())for(const[,In]of xn.children.entries())if(In!=null&&In.rowIsRepeatable){const sr=D.findIndex(bn=>(bn==null?void 0:bn.rowId)===In.uuid);if(sr>=0){if(((Oe=D[sr].repeatableFieldsData)==null?void 0:Oe.length)<(In==null?void 0:In.minimumEntries)){he(`Need minimun ${In==null?void 0:In.minimumEntries} entries`),Ee=!1;break e}Ee=!0}}else for(const[,sr]of In.children.entries())for(const[,bn]of sr.children.entries()){if(bn.isValid===0&&bn.isPostField===!0&&(bn==null?void 0:bn.componentType)!=="hidden-field"){const un={pageIndex:Gt,fieldId:bn.uuid,sectionIndex:Sn},Ye=D.findIndex(tt=>(tt==null?void 0:tt.fieldId)===bn.uuid);if(!(Ye===-1||(we=D[Ye])!=null&&we.postData[0]&&(((ve=(Te=D[Ye])==null?void 0:Te.postData[0].postValue)==null?void 0:ve.length)>0||((M=D[Ye])==null?void 0:M.postData[0].postValue)>0))){console.log("inValidData",un),Kt.emit("OnInvalidFieldCatch",un),Ee=!1,he();break e}}if((bn==null?void 0:bn.componentType)==="radio-hierarchal"){const un=D.findIndex(Ye=>(Ye==null?void 0:Ye.fieldId)===bn.uuid);if(un>=0&&(Ee=me(bn,bn==null?void 0:bn.options,(R=D[un])==null?void 0:R.postData[0].postValue,!0),!Ee))break e}if(((se=bn==null?void 0:bn.children)==null?void 0:se.length)>0)for(const[,un]of bn.children.entries()){const Ye=Object.keys(un);if(Ye[0]){const tt=un[Ye[0]],dt={fieldId:tt.uuid,sectionIndex:Sn},Lt=D.findIndex(Cn=>(Cn==null?void 0:Cn.fieldId)===tt.uuid);if(!((ge=D[Lt])!=null&&ge.postData[0]&&(((oe=(le=D[Lt])==null?void 0:le.postData[0].postValue)==null?void 0:oe.length)>0||((Fe=D[Lt])==null?void 0:Fe.postData[0].postValue)>0||((vt=(Ke=(Ne=D[Lt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:vt.addressOne)!==""))){Kt.emit("OnInvalidFieldCatch",dt),Ee=!1,he();break e}}}if(bn!=null&&bn.inlineConditionalRules&&((nt=(wt=bn==null?void 0:bn.inlineConditionalRules)==null?void 0:wt.rules)==null?void 0:nt.length)>0){for(const[,un]of((Xe=bn==null?void 0:bn.inlineConditionalRules)==null?void 0:Xe.rules.entries())||[])for(const[,Ye]of(un==null?void 0:un.conditions.entries())||[])for(const[,tt]of(Ye==null?void 0:Ye.children.entries())||[])if(tt.isValid===0){const dt={fieldId:tt.uuid,sectionIndex:Sn},Lt=D.findIndex(Cn=>(Cn==null?void 0:Cn.fieldId)===tt.uuid);if(Lt>=0&&!((Nt=D[Lt])!=null&&Nt.postData[0]&&(((Re=(ot=D[Lt])==null?void 0:ot.postData[0].postValue)==null?void 0:Re.length)>0||((Tt=D[Lt])==null?void 0:Tt.postData[0].postValue)>0))){Kt.emit("OnInvalidFieldCatch",dt),Ee=!1,he();break e}}}Ee=!0}Ee&&n(!0)},[D]),ie=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-5"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"})]})}),K=()=>o.jsxs("div",{children:[o.jsx(Pt,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(Pt,{label:"Yes",icon:"pi pi-check",onClick:()=>W(),autoFocus:!0})]});return console.log("task_status",A),console.log("showFieldsAfterSubmit",l),console.log("taskData?.task_status",T==null?void 0:T.task_status),console.log("taskData",T),o.jsxs("div",{children:[o.jsx(Is,{header:()=>o.jsx(o.Fragment,{}),visible:e,style:{width:"30vw"},footer:K,onHide:()=>n(!1),children:o.jsx("p",{className:"text-center",children:c})}),E||L||V?o.jsx("div",{className:"w-full",children:o.jsx(ie,{})}):o.jsxs(o.Fragment,{children:[(((ae=w==null?void 0:w.formType)==null?void 0:ae.key)===n7||((fe=w==null?void 0:w.formType)==null?void 0:fe.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${s===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:T==null?void 0:T.task_title}),o.jsx("div",{className:"ml-4 ",children:(T==null?void 0:T.task_status)===hD&&o.jsx(i7,{classes:"",value:"COMPLETED",level:"success"})})]}),l===!1&&A===$?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:pe})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[E&&o.jsx(ie,{}),!E&&o.jsxs(o.Fragment,{children:[o.jsx(Xte,{}),o.jsx("div",{className:`${u===!0?d:" "} mt-2 mb-2`,children:o.jsx(cf,{backend:df,children:w!==null&&((be=w==null?void 0:w.layout)==null?void 0:be.length)&&o.jsx(k5,{})})}),o.jsx(c3,{ref:r}),((ye=w==null?void 0:w.formType)==null?void 0:ye.key)!==""&&(A===s3||A===null)&&o.jsx("span",{children:ll.createPortal(o.jsx("div",{style:{zIndex:9999999},className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(Pt,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>re(D),loading:C,disabled:L}),o.jsx(Pt,{label:"Submit",onClick:()=>Y(D),disabled:C,loading:L})]})}),document.body)})]})]})})]})}),((Ae=w==null?void 0:w.formType)==null?void 0:Ae.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsxs("div",{className:"invoice-header",children:[o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[T==null?void 0:T.task_title," "]})}),o.jsxs("div",{className:"ml-2",children:[o.jsx("div",{className:"customer-id",children:"Customer ID: C1613"}),o.jsx("div",{className:"invoice-address",children:"9137 3rd Lane California City CA 93504, U.S.A."})]})]}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(cf,{backend:df,children:w!==null&&((_e=w==null?void 0:w.layout)==null?void 0:_e.length)&&o.jsx(k5,{})})}),((ne=w==null?void 0:w.formType)==null?void 0:ne.key)!==""&&(A===1||A===null)&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Pt,{className:"p-button-primary",label:"Accept",onClick:()=>Z(),loading:C})})})]})})})})})}),(((q=w==null?void 0:w.formType)==null?void 0:q.key)==="page"||((te=w==null?void 0:w.formType)==null?void 0:te.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(cf,{backend:df,children:w!==null&&((Q=w==null?void 0:w.layout)==null?void 0:Q.length)&&o.jsx(k5,{})})})})})}),((de=w==null?void 0:w.formType)==null?void 0:de.key)==="training"&&o.jsx(kxe,{renderIn:Ute,taskSchema:w,taskId:i,endPoints:a}),((Ce=w==null?void 0:w.formType)==null?void 0:Ce.key)==="exam"&&o.jsx(Mxe,{taskId:i,endPoints:a,onStart:f})]})]})};/**
|
|
4164
4164
|
* React Router v6.23.1
|
|
4165
4165
|
*
|
|
4166
4166
|
* Copyright (c) Remix Software Inc.
|
|
@@ -58585,7 +58585,7 @@ var Kue = function() {
|
|
|
58585
58585
|
theme: i.theme,
|
|
58586
58586
|
formats: i.formats
|
|
58587
58587
|
};
|
|
58588
|
-
Kue ? C(new Quill(d.current, F)) : import("./quill-
|
|
58588
|
+
Kue ? C(new Quill(d.current, F)) : import("./quill-BfPNbFdK.js").then(function(U) {
|
|
58589
58589
|
if (U && Ie.isExist(d.current)) {
|
|
58590
58590
|
var k;
|
|
58591
58591
|
U.default ? k = new U.default(d.current, F) : k = new U(d.current, F), C(k);
|
|
@@ -128595,35 +128595,35 @@ const HTe = () => {
|
|
|
128595
128595
|
/* @__PURE__ */ c(Hi, { className: "mb-2" }),
|
|
128596
128596
|
/* @__PURE__ */ c(Hi, { className: "mb-2" }),
|
|
128597
128597
|
/* @__PURE__ */ c(Hi, { className: "mb-2" })
|
|
128598
|
-
] }) })
|
|
128599
|
-
|
|
128598
|
+
] }) }), H = () => /* @__PURE__ */ E("div", { children: [
|
|
128599
|
+
/* @__PURE__ */ c(
|
|
128600
|
+
Pt,
|
|
128601
|
+
{
|
|
128602
|
+
text: !0,
|
|
128603
|
+
label: "No",
|
|
128604
|
+
icon: "pi pi-times",
|
|
128605
|
+
onClick: () => n(!1),
|
|
128606
|
+
className: "p-button-danger"
|
|
128607
|
+
}
|
|
128608
|
+
),
|
|
128609
|
+
/* @__PURE__ */ c(
|
|
128610
|
+
Pt,
|
|
128611
|
+
{
|
|
128612
|
+
label: "Yes",
|
|
128613
|
+
icon: "pi pi-check",
|
|
128614
|
+
onClick: () => W(),
|
|
128615
|
+
autoFocus: !0
|
|
128616
|
+
}
|
|
128617
|
+
)
|
|
128618
|
+
] });
|
|
128619
|
+
return console.log("task_status", x), console.log("showFieldsAfterSubmit", o), console.log("taskData?.task_status", T == null ? void 0 : T.task_status), console.log("taskData", T), /* @__PURE__ */ E("div", { children: [
|
|
128600
128620
|
/* @__PURE__ */ c(
|
|
128601
128621
|
gs,
|
|
128602
128622
|
{
|
|
128603
128623
|
header: () => /* @__PURE__ */ c(Se, {}),
|
|
128604
128624
|
visible: e,
|
|
128605
128625
|
style: { width: "30vw" },
|
|
128606
|
-
footer:
|
|
128607
|
-
/* @__PURE__ */ c(
|
|
128608
|
-
Pt,
|
|
128609
|
-
{
|
|
128610
|
-
text: !0,
|
|
128611
|
-
label: "No",
|
|
128612
|
-
icon: "pi pi-times",
|
|
128613
|
-
onClick: () => n(!1),
|
|
128614
|
-
className: "p-button-danger"
|
|
128615
|
-
}
|
|
128616
|
-
),
|
|
128617
|
-
/* @__PURE__ */ c(
|
|
128618
|
-
Pt,
|
|
128619
|
-
{
|
|
128620
|
-
label: "Yes",
|
|
128621
|
-
icon: "pi pi-check",
|
|
128622
|
-
onClick: () => W(),
|
|
128623
|
-
autoFocus: !0
|
|
128624
|
-
}
|
|
128625
|
-
)
|
|
128626
|
-
] }),
|
|
128626
|
+
footer: H,
|
|
128627
128627
|
onHide: () => n(!1),
|
|
128628
128628
|
children: /* @__PURE__ */ c("p", { className: "text-center", children: l })
|
|
128629
128629
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ml = Object.defineProperty;
|
|
2
2
|
var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-BR-BL88C.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|