cft-builder 0.2.60 → 0.2.61

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.
@@ -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-DFB-BF6R.js";
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-B97ijl8U.js";
2
2
  export {
3
3
  s as BuilderItems,
4
4
  o as BuilderItemsRender,
@@ -4285,7 +4285,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4285
4285
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fwe(t,e){if(t){if(typeof t=="string")return aj(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 aj(t,e)}}function aj(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 hwe(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 pwe(t){if(Array.isArray(t))return t}function gwe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mwe(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 vwe(t,e,n){return e&&mwe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var bwe="["+I0+Jg+"]+",ywe=new RegExp("^"+bwe+"$","i"),Awe="(?:["+Mye+"]["+I0+Jg+"]*|["+I0+Jg+"]+)",wwe=new RegExp("[^"+I0+Jg+"]+.*$"),Swe=/[^\d\[\]]/,xwe=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,a=e.onNationalSignificantNumberChange;gwe(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return vwe(t,[{key:"input",value:function(n,r){var i=Ewe(n),a=ij(i,2),s=a[0],l=a[1],c=J1(s),u;return l&&(r.digits||(r.startInternationalNumber(),c||(u=!0))),c&&this.inputDigits(c,r),{digits:c,justLeadingPlus:u}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=EAe("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&Swe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=FS(n,this.metadata),a=i.nationalPrefix,s=i.nationalNumber,l=i.carrierCode;if(s!==n)return this.onExtractedNationalNumber(a,l,s,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=FS(n,this.metadata),s=a.nationalPrefix,l=a.nationalNumber,c=a.carrierCode;if(l!==r)return this.onExtractedNationalNumber(s,c,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,s){var l,c,u=a.lastIndexOf(i);if(u>=0&&u===a.length-i.length){c=!0;var d=a.slice(0,u);d!==n&&(l=d)}s({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var s=Y$(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==a)return n.update({IDDPrefix:a.slice(0,a.length-s.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=X$(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t}();function Cwe(t){var e=t.search(Awe);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(wwe,""),n&&(t="+"+t),t}}function Twe(t){var e=Cwe(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function Ewe(t){var e=Twe(t),n=ij(e,2),r=n[0],i=n[1];return ywe.test(r)||(r=""),[r,i]}function Iwe(t,e){return Owe(t)||Nwe(t,e)||Dwe(t,e)||_we()}function _we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4286
4286
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dwe(t,e){if(t){if(typeof t=="string")return sj(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 sj(t,e)}}function sj(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 Nwe(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 Owe(t){if(Array.isArray(t))return t}function Fwe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kwe(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 Pwe(t,e,n){return e&&kwe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var o6=function(){function t(e,n){Fwe(this,t),this.metadata=new Ao(n);var r=this.getCountryAndCallingCode(e),i=Iwe(r,2),a=i[0],s=i[1];this.defaultCountry=a,this.defaultCallingCode=s,this.reset()}return Pwe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(t6(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 kAe({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 uwe({state:this.state,metadata:this.metadata}),this.parser=new xwe({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,eu)}},{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(DAe(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 Ao(this.metadata.metadata);l.selectNumberingPlan(s);var c=l.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(c);if(u.length>1){var d=G$(r,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(s=d)}}var f=new AAe(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 Mwe(t,e,n){return n||(n=e,e=void 0),new o6(e,n).input(t)}function oj(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Q1(n,r)):""}function l6(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function Lwe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return P$(t,e,r)}}function lj(t){var e=t.onKeyDown,n=t.inputFormat;return M.useCallback(function(r){if(r.keyCode===Vwe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&Bwe(r.target)===Uwe.length){r.preventDefault();return}e&&e(r)},[e,n])}function Bwe(t){return t.selectionStart}var Vwe=8,Uwe="+",qwe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function BS(){return BS=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},BS.apply(this,arguments)}function $we(t,e){if(t==null)return{};var n=jwe(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 jwe(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 zwe(t){function e(n,r){var i=n.onKeyDown,a=n.country,s=n.inputFormat,l=n.metadata,c=l===void 0?t:l;n.international,n.withCountryCallingCode;var u=$we(n,qwe),d=M.useCallback(function(h){var g=new o6(a,c),v=oj({inputFormat:s,country:a,metadata:c}),m=g.input(v+h),A=g.getTemplate();return v&&(m=l6(m,v),A&&(A=l6(A,v))),{text:m,template:A}},[a,c]),f=lj({onKeyDown:i,inputFormat:s});return M.createElement(Qg,BS({},u,{ref:r,parse:Lwe,format:d,onKeyDown:f}))}return e=M.forwardRef(e),e.propTypes={value:Cn.string.isRequired,onChange:Cn.func.isRequired,onKeyDown:Cn.func,country:Cn.string,inputFormat:Cn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Cn.object},e}const Hwe=zwe();var Ywe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function VS(){return VS=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},VS.apply(this,arguments)}function Kwe(t,e){if(t==null)return{};var n=Xwe(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 Xwe(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 Rwe(t){function e(n,r){var i=n.value,a=n.onChange,s=n.onKeyDown,l=n.country,c=n.inputFormat,u=n.metadata,d=u===void 0?t:u,f=n.inputComponent,h=f===void 0?"input":f;n.international,n.withCountryCallingCode;var g=Kwe(n,Ywe),v=oj({inputFormat:c,country:l,metadata:d}),m=M.useCallback(function(w){var T=Qye(w.target.value);if(T===i){var x=cj(v,T,l,d);x.indexOf(w.target.value)===0&&(T=T.slice(0,-1))}a(T)},[v,i,a,l,d]),A=lj({onKeyDown:s,inputFormat:c});return M.createElement(h,VS({},g,{ref:r,value:cj(v,i,l,d),onChange:m,onKeyDown:A}))}return e=M.forwardRef(e),e.propTypes={value:Cn.string.isRequired,onChange:Cn.func.isRequired,onKeyDown:Cn.func,country:Cn.string,inputFormat:Cn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Cn.object,inputComponent:Cn.elementType},e}const Gwe=Rwe();function cj(t,e,n,r){return l6(Mwe(t+e,n,r),t)}function Wwe(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e<t.length;){var n=t.charCodeAt(e);if(!(n>=48&&n<=57))return!1;e++}return!0}function Qwe(t){Wwe(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}var Jwe=Cn.shape({country_calling_codes:Cn.object.isRequired,countries:Cn.object.isRequired});Cn.objectOf(Cn.string);function US(t,e){var n="+"+Q1(t,e);return n}function Zg(t,e){return nSe(t)||tSe(t,e)||eSe(t,e)||Zwe()}function Zwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4287
4287
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eSe(t,e){if(t){if(typeof t=="string")return uj(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 uj(t,e)}}function uj(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 tSe(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)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 nSe(t){if(Array.isArray(t))return t}function rSe(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;typeof l=="boolean"&&!(i&&s)&&console.error("[react-phone-number-input] `withCountryCallingCode` property can only be used together with `country` and `international` properties"),i&&a&&console.error("[react-phone-number-input] When `country` property is passed, `defaultCountry` property has no effect and therefore shouldn't be passed"),typeof s=="boolean"&&!i&&console.error("[react-phone-number-input] `international` property can only be used together with `country` property");var d=aSe({international:s,country:i,defaultCountry:a,withCountryCallingCode:l}),f=M.useRef(),h=function(pe,te,ee){console.error("[react-phone-number-input] Expected phone number ".concat(pe," to correspond to country ").concat(te," but ").concat(ee?"in reality it corresponds to country "+ee:"it doesn't",".")),f.current=!0},g=function(pe){return n&&Qwe(n),iSe(n,i,a,d,c,u,function(){pe&&pe.onCountryMismatch&&pe.onCountryMismatch();for(var te=arguments.length,ee=new Array(te),Y=0;Y<te;Y++)ee[Y]=arguments[Y];h.apply(e,ee)})},v=M.useState(i),m=Zg(v,2),A=m[0],w=m[1],T=M.useState(a),x=Zg(T,2),E=x[0],S=x[1],I=M.useState(g()),_=Zg(I,2),O=_[0],P=_[1],B=M.useState(n),V=Zg(B,2),z=V[0],k=V[1],j=M.useState(),le=Zg(j,2);le[0];var fe=le[1],Z=M.useCallback(function(){return fe({})},[fe]);function W(K){if(K){d==="NATIONAL_PART_OF_INTERNATIONAL"&&(K="+".concat(Q1(i,u)).concat(K));var pe=new o6(i||a,u);return pe.input(K),pe.getNumberValue()}}M.useEffect(function(){n!==z&&(k(n),P(g()))},[n]),M.useEffect(function(){if(i!==A){w(i);var K,pe=g({onCountryMismatch:function(){K=!0}});P(pe),K&&k(W(pe))}},[i]),M.useEffect(function(){a!==E&&(S(a),P(g()))},[a]),M.useEffect(function(){z!==n&&r(z)},[z]);var ce=M.useCallback(function(K){var pe;if(i)if(d==="INTERNATIONAL"){var te=US(i,u);if(K.indexOf(te)!==0){if(K&&K[0]!=="+")K=te+K;else if(!f.current)return P(te),k(void 0),Z()}}else K&&K[0]==="+"&&(K=K.slice(1));else a||K&&K[0]!=="+"&&(K="+"+K);K&&(pe=W(K)),P(K),k(pe)},[i,d,a,u,P,k,Z,f]);return{phoneDigits:O,setPhoneDigits:ce,inputFormat:d}}function iSe(t,e,n,r,i,a,s){if(e&&r==="INTERNATIONAL"){var l=US(e,a);return t?(t.indexOf(l)!==0&&s(t,e),t):l}if(!t)return"";if(!e&&!n)return t;var c=new o6(void 0,a);c.input(t);var u=c.getNumber();if(u)if(e)switch(u.country&&u.country!==e?s(t,e,u.country):u.countryCallingCode!==Q1(e,a)&&s(t,e),r){case"NATIONAL":return J1(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return J1(l6(u.formatInternational(),US(e,a)));case"INTERNATIONAL":throw new Error('`inputFormat: "INTERNATIONAL"` case should\'ve already been handled earlier in the code');case"INTERNATIONAL_OR_NATIONAL":throw new Error('`inputFormat: "INTERNATIONAL_OR_NATIONAL"` is not possible when `country` is fixed');default:throw new Error("Unknown `inputFormat`: ".concat(r))}else return u.countryCallingCode&&u.countryCallingCode===Q1(n,a)&&i?J1(u.formatNational()):t;else return""}function aSe(t){var e=t.international,n=t.country,r=t.defaultCountry,i=t.withCountryCallingCode;return n?e?i?"INTERNATIONAL":"NATIONAL_PART_OF_INTERNATIONAL":"NATIONAL":r?"INTERNATIONAL_OR_NATIONAL":"INTERNATIONAL"}var sSe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function qS(){return qS=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},qS.apply(this,arguments)}function oSe(t,e){if(t==null)return{};var n=lSe(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 lSe(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 c6(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=oSe(t,sSe),g=rSe({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),v=g.phoneDigits,m=g.setPhoneDigits,A=g.inputFormat;return M.createElement(n,qS({},h,{ref:e,metadata:u,inputFormat:A,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:m}))}c6=M.forwardRef(c6),c6.propTypes={value:Cn.string,onChange:Cn.func.isRequired,country:Cn.string,defaultCountry:Cn.string,international:Cn.bool,withCountryCallingCode:Cn.bool,Component:Cn.elementType.isRequired,useNationalFormatForDefaultCountryValue:Cn.bool,metadata:Jwe};var cSe=["type","autoComplete","smartCaret","metadata"];function $S(){return $S=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},$S.apply(this,arguments)}function uSe(t,e){if(t==null)return{};var n=dSe(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 dSe(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 dj(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=uSe(n,cSe);return M.createElement(c6,$S({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?Hwe:Gwe}))}return e=M.forwardRef(e),e.propTypes={type:Cn.string,autoComplete:Cn.string,smartCaret:Cn.bool,metadata:Cn.object},e}dj();const fSe=dj(aye),hSe=t=>{var Y,J,he,be,Ee,ye,Ae,ne,U,re,G;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=cn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isAdmin:T,isRenderView:x,isPreview:E}=Jt(),[S,I]=M.useState(!1),[_,O]=M.useState(""),[P,B]=M.useState(0),[V,z]=M.useState(!1),[k,j]=M.useState(!1),le=()=>{j(!0)},fe=()=>{j(!1)},Z=()=>{var de,Ie,Te;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?O(ve[me].fieldData):O("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){O((Te=me==null?void 0:me.postData[0])==null?void 0:Te.postValue);break}}}z(!0)};M.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(O(""),B(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Te=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?B(1):B(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(q=>(q==null?void 0:q.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Te.remove(),ve.remove(),de.remove()}});const W=de=>{I(de)},ce=()=>{I(!1)},K=(de,Ie)=>{const Te=a,ve=It.cloneDeep(e);if(ve[d==null?void 0:d.uuid]=de,(Te==null?void 0:Te.length)>0)for(const me of Te)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:de});if(!(v!=null&&v.rowIsRepeatable)){n(ve);const me=Object.keys(ve).length;r(me)}},pe=(de,Ie)=>{var Te;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Te=a[me])==null?void 0:Te.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}O(Ie),Ie!==""?de.isValid=1:de.isValid=0},te=de=>{v!=null&&v.rowIsRepeatable?pe(d,de):K(de)},ee=o.jsxs("div",{onMouseOver:le,onMouseOut:fe,children:[!x&&!E&&k&&o.jsx(Xr,{handleFieldSettingsSidebar:W,...t}),o.jsxs("div",{className:`field ${E?" ":" 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:E?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Y=d==null?void 0:d.headerText)==null?void 0:Y[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(da,{...t}),((J=d==null?void 0:d.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(o.Fragment,{children:(he=d==null?void 0:d.label)==null?void 0:he[c==null?void 0:c.type]}):o.jsx(sa,{...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-"+((ye=(Ee=d==null?void 0:d.icon)==null?void 0:Ee.properties)==null?void 0:ye.name)}),o.jsx(fSe,{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:_,onFocus:()=>B(1),onChange:te,international:!0,className:`${P===1&&((ne=d==null?void 0:d.attributes)!=null&&ne.required)?_?"valid":"invalid":"valid'"} p-inputtext`,readOnly:w})]}),o.jsx("div",{children:((U=d==null?void 0:d.attributes)==null?void 0:U.required)&&o.jsx("small",{className:"error",children:P===1&&!_?(re=d==null?void 0:d.validationMesssage)==null?void 0:re.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(G=d==null?void 0:d.helperText)==null?void 0:G[c==null?void 0:c.type]})})]})]})}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:ee})]})},pSe=t=>{var K,pe,te,ee,Y,J,he,be,Ee,ye,Ae;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isPreview:l,isAdmin:c,isRenderView:u}=Jt(),{task_status:d,taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:g,updateUserFormDataSubmit:v,userTaskSubmitFormData:m,TASK_PUBLISHED:A}=yr(),{userSelectedLanguage:w}=cn(),[T,x]=M.useState(!1),[E,S]=M.useState(""),[I,_]=M.useState(0),[O,P]=M.useState(!1),B=()=>{P(!0)},V=()=>{P(!1)};M.useEffect(()=>{T||fe();const ne=Zt.addListener("clearRepeatableFields",re=>{re===(a==null?void 0:a.uuid)&&(S(""),_(0),e.isValid=0)}),U=Zt.addListener("onSubmitUserForm",()=>{var re;(re=e==null?void 0:e.attributes)!=null&&re.required?E!==""&&xu.test(E)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{U.remove(),ne.remove()}});const[z,k]=M.useState(!1),j=ne=>{k(ne)},le=()=>{k(!1)},fe=()=>{var ne,U,re;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const G=[...a.repeatableFields],de=It.findIndex(G,function(Ie){return Ie.uuid===(e==null?void 0:e.uuid)});de>=0&&G[de].fieldData?S(G[de].fieldData):S("")}}else{const G=m;if(G!=null&&G.length){for(const de of G)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&((U=de==null?void 0:de.postData[0])!=null&&U.postValue)){S((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue),x(!0);break}}}x(!0)},Z=ne=>{S(ne);const U=m,re=It.cloneDeep(f);if(ne!==""&&xu.test(ne)===!0){if(re[e==null?void 0:e.uuid]=ne,(U==null?void 0:U.length)>0)for(const G of U)G.fieldId===t.field.uuid&&(G.postData[0]={postValue:ne})}else if(delete re[e==null?void 0:e.uuid],(U==null?void 0:U.length)>0)for(const G of U)G.fieldId===t.field.uuid&&(G.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){h(re);const G=Object.keys(re).length;g(G)}},W=(ne,U)=>{var ve;const re=[...m],G=It.findIndex(re,function(me){return me.rowId===(a==null?void 0:a.uuid)});let de=(ve=m[G])==null?void 0:ve.repeatableFields;const Ie=ne,Te=Ie==null?void 0:Ie.uuid;de={...de,[Te]:U},re[G]={...re[G],repeatableFields:de},v(re),S(U),U!==""&&xu.test(U)===!0?e.isValid=1:e.isValid=0},ce=o.jsxs("div",{onMouseOver:B,onMouseOut:V,children:[!u&&!l&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:j,...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:(K=e==null?void 0:e.headerText)==null?void 0:K[w==null?void 0:w.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(da,{...t}),((pe=e==null?void 0:e.attributes)==null?void 0:pe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(te=e==null?void 0:e.label)==null?void 0:te[w==null?void 0:w.type]}):o.jsx(sa,{...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[w==null?void 0:w.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-"+((J=(Y=e==null?void 0:e.icon)==null?void 0:Y.properties)==null?void 0:J.name)}),o.jsx(bn,{id:e==null?void 0:e.uuid,placeholder:(he=e==null?void 0:e.placeholder)==null?void 0:he[w==null?void 0:w.type],value:E,onFocus:()=>_(1),onChange:ne=>{a!=null&&a.rowIsRepeatable?W(r,i):Z(ne.target.value)},className:I===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?E?"valid":"invalid":"valid'",readOnly:s})]}),((Ee=e==null?void 0:e.attributes)==null?void 0:Ee.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:I===1&&!E?(ye=e==null?void 0:e.validationMesssage)==null?void 0:ye[w==null?void 0:w.type]:""})}),E!==""&&I===1&&xu.test(E)===!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:(Ae=e==null?void 0:e.helperText)==null?void 0:Ae[w==null?void 0:w.type]})})]}),c&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[z===!0&&o.jsx(Wi,{visibilty:z,closeSettingFieldSidebar:le,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:ce})]})},gSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxfuTKxcePGg6IoOsjMDlUUHeJBcJBJh8n9YHc/2MwOdelgSfMl7VfnkeyUtMWke1y606R73f1uBcFdFkX3Kgjudve7giC4d9GiRfdaf3+BswgAKAAAUDM2HXfcARNtbYcH0mFeKHRYEBxu0mEeRR1m1uHSQklNJFW0zZJGJI2YdKdLd5g04tKdhSC4o2t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zKP5Q5QNxaAfnuSX0IhDrrcSfDWaPG+WM4DucNI6p9YzgPR4n0EbwXuzJ0H2MIvfRBQv1kA+izWMg58L2OELcCVLGZZNCv2UhFJMxJN/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==",bSe=t=>{var ce,K,pe,te,ee,Y,J,he,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isPreview:l,isRenderView:c}=Jt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=cn(),[w,T]=M.useState(!1),[x,E]=M.useState(""),[S,I]=M.useState(0),[_,O]=M.useState(!1),P=()=>{O(!0)},B=()=>{O(!1)};M.useEffect(()=>{w||le();const Ee=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(E(""),I(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Ee.remove()}});const[V,z]=M.useState(!1),k=Ee=>{z(Ee)},j=()=>{z(!1)},le=()=>{var Ee,ye,Ae;if(i!=null&&i.rowIsRepeatable){const ne=[...(i==null?void 0:i.repeatableFields)||[]],U=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});U>=0&&ne[U].fieldData?E(ne[U].fieldData):E("")}else{const ne=v;if(ne!=null&&ne.length){for(const U of ne)if(U.fieldId===t.field.uuid&&((Ee=U==null?void 0:U.postData[0])==null?void 0:Ee.postValue)!==""&&((ye=U==null?void 0:U.postData[0])!=null&&ye.postValue)){E((Ae=U==null?void 0:U.postData[0])==null?void 0:Ae.postValue),T(!0);break}}}T(!0)},fe=(Ee,ye)=>{E(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const U of Ae)U.fieldId===t.field.uuid&&(U.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const U of Ae)U.fieldId===t.field.uuid&&(U.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const U=Object.keys(ne).length;h(U)}},Z=(Ee,ye,Ae,ne)=>{var de;const U=[...v],re=It.findIndex(U,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let G=(de=v[re])==null?void 0:de.repeatableFields;G={...G,[Ae==null?void 0:Ae.uuid]:ne},U[re]={...U[re],repeatableFields:G},g(U),E(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},W=o.jsxs("div",{onMouseOver:P,onMouseOut:B,children:[!c&&!l&&_&&o.jsx(Xr,{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:(ce=e==null?void 0:e.headerText)==null?void 0:ce[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(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(pe=e==null?void 0:e.label)==null?void 0:pe[A==null?void 0:A.type]}):o.jsx(sa,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(te=e==null?void 0:e.toolTip)==null?void 0:te[A==null?void 0:A.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(u8,{cancelIcon:o.jsx("img",{src:gSe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:mSe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:vSe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(ee=e==null?void 0:e.placeholder)==null?void 0:ee[A==null?void 0:A.type],value:x,onFocus:()=>I(1),onChange:Ee=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Ee.value):fe(Ee,Ee.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a})}),((J=e==null?void 0:e.attributes)==null?void 0:J.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(he=e==null?void 0:e.validationMesssage)==null?void 0:he[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:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:j,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:W})]})},ySe=t=>{var ce,K,pe,te,ee,Y,J,he,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Jt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=cn(),[w,T]=M.useState(!1),[x,E]=M.useState(""),[S,I]=M.useState(0),[_,O]=M.useState(!1),P=()=>{O(!0)},B=()=>{O(!1)};M.useEffect(()=>{w||le();const Ee=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(E(""),I(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Ee.remove()}});const[V,z]=M.useState(!1),k=Ee=>{z(Ee)},j=()=>{z(!1)},le=()=>{var Ee,ye,Ae;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const ne=[...i.repeatableFields],U=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});U>=0&&ne[U].fieldData?E(ne[U].fieldData):E("")}}else{const ne=v;if(ne!=null&&ne.length){for(const U of ne)if(U.fieldId===t.field.uuid&&((Ee=U==null?void 0:U.postData[0])==null?void 0:Ee.postValue)!==""&&((ye=U==null?void 0:U.postData[0])!=null&&ye.postValue)){E((Ae=U==null?void 0:U.postData[0])==null?void 0:Ae.postValue),T(!0);break}}}T(!0)},fe=(Ee,ye)=>{E(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const U of Ae)U.fieldId===t.field.uuid&&(U.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const U of Ae)U.fieldId===t.field.uuid&&(U.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const U=Object.keys(ne).length;h(U)}},Z=(Ee,ye,Ae,ne)=>{var de;const U=[...v],re=It.findIndex(U,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let G=(de=v[re])==null?void 0:de.repeatableFields;G={...G,[Ae==null?void 0:Ae.uuid]:ne},U[re]={...U[re],repeatableFields:G},g(U),E(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},W=o.jsxs("div",{onMouseOver:P,onMouseOut:B,children:[!c&&!s&&_&&o.jsx(Xr,{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:(ce=e==null?void 0:e.headerText)==null?void 0:ce[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(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(pe=e==null?void 0:e.label)==null?void 0:pe[A==null?void 0:A.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(te=e==null?void 0:e.toolTip)==null?void 0:te[A==null?void 0:A.type],position:"right"})})]}),o.jsx(h8,{id:e==null?void 0:e.uuid,placeholder:(ee=e==null?void 0:e.placeholder)==null?void 0:ee[A==null?void 0:A.type],value:x,onFocus:()=>I(1),onChange:Ee=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Ee.value):fe(Ee,Ee.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a}),((J=e==null?void 0:e.attributes)==null?void 0:J.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(he=e==null?void 0:e.validationMesssage)==null?void 0:he[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:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:j,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:W})]})},ASe=t=>{var W,ce,K,pe,te,ee;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Jt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=yr(),{userSelectedLanguage:m}=cn(),[A,w]=M.useState(!1),[T,x]=M.useState(""),[E,S]=M.useState(0),[I,_]=M.useState(!1),O=()=>{_(!0)},P=()=>{_(!1)};M.useEffect(()=>{A||j();const Y=Zt.addListener("clearRepeatableFields",he=>{he===(i==null?void 0:i.uuid)&&(x(""),S(0),e.isValid=0)}),J=Zt.addListener("onSubmitUserForm",()=>{var he;(he=e==null?void 0:e.attributes)!=null&&he.required&&(T!==""&&xu.test(T)===!0?e.isValid=1:e.isValid=0)});return()=>{J.remove(),Y.remove()}});const[B,V]=M.useState(!1),z=Y=>{V(Y)},k=()=>{V(!1)},j=()=>{var Y,J,he;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const be=[...i.repeatableFields],Ee=It.findIndex(be,function(ye){return ye.uuid===(e==null?void 0:e.uuid)});Ee>=0&&be[Ee].fieldData?x(be[Ee].fieldData):x("")}}else{const be=g;if(be!=null&&be.length){for(const Ee of be)if(Ee.fieldId===t.field.uuid&&((Y=Ee==null?void 0:Ee.postData[0])==null?void 0:Y.postValue)!==""&&((J=Ee==null?void 0:Ee.postData[0])!=null&&J.postValue)){x((he=Ee==null?void 0:Ee.postData[0])==null?void 0:he.postValue),w(!0);break}}}w(!0)},le=(Y,J)=>{x(J);const he=g,be=It.cloneDeep(u);if(J){if(be[e==null?void 0:e.uuid]=J,(he==null?void 0:he.length)>0)for(const Ee of he)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:J})}else if(delete be[e==null?void 0:e.uuid],(he==null?void 0:he.length)>0)for(const Ee of he)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(be);const Ee=Object.keys(be).length;f(Ee)}},fe=(Y,J,he,be)=>{var ne;const Ee=[...g],ye=It.findIndex(Ee,function(U){return U.rowId===(i==null?void 0:i.uuid)});let Ae=(ne=g[ye])==null?void 0:ne.repeatableFields;Ae={...Ae,[he==null?void 0:he.uuid]:be},Ee[ye]={...Ee[ye],repeatableFields:Ae},h(Ee),x(be),be!==""&&xu.test(be)===!0?e.isValid=1:e.isValid=0},Z=o.jsxs("div",{onMouseOver:O,onMouseOut:P,children:[!l&&!a&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:z,...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(bn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(W=e==null?void 0:e.placeholder)==null?void 0:W[m==null?void 0:m.type],value:(ce=e==null?void 0:e.defaultValue)==null?void 0:ce[m==null?void 0:m.type],onFocus:()=>S(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?fe(n,r,e,e==null?void 0:e.defaultValue):le("",e==null?void 0:e.defaultValue)},className:E===1&&((K=e==null?void 0:e.attributes)!=null&&K.required)?T?"valid":"invalid":"valid'",readOnly:c===v}),((pe=e==null?void 0:e.attributes)==null?void 0:pe.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!T?(te=e==null?void 0:e.validationMesssage)==null?void 0:te[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ee=e==null?void 0:e.helperText)==null?void 0:ee[m==null?void 0:m.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Wi,{visibilty:B,closeSettingFieldSidebar:k,...t}),o.jsx(Si,{...t,fieldWrap:Z})]})},fj=t=>{var E;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=M.useState(e),{isPreview:f}=Jt();M.useEffect(()=>{var S;return T((S=e[c])==null?void 0:S[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:g,fieldSettingUpdateInlineConditional:v,gridComponentFieldSettingUpdate:m}=cn(),A=(S,I,_)=>{d(O=>({...O,[S]:{...O[S],[I==null?void 0:I.type]:_}}))},[w,T]=M.useState((E=e[c])==null?void 0:E[h==null?void 0:h.type]);M.useEffect(()=>(x(),()=>{}),[u]);const x=()=>{const S=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?v(S[ma],S[va],S[xa],S[Ca],S[Ta],S[Na],S[Zo],S[Fo],u):(S==null?void 0:S.length)>Na&&(S==null?void 0:S.length)===tc+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?m(S[ma],S[va],S[xa],S[Ca],S[Ta],S[5],S[6],S[7],u):g(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(p4,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:f,onChange:S=>{var I;T(b4.sanitize((I=S==null?void 0:S.target)==null?void 0:I.value))},onBlur:S=>{var _;const I=b4.sanitize((_=S==null?void 0:S.target)==null?void 0:_.innerText);T(I),A(c,h,I)},tagName:"article"})})},wSe=t=>{var ee,Y,J,he,be,Ee,ye;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=cn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v,isDisabled:m}=t,{isPreview:A,isAdmin:w,isRenderView:T}=Jt(),[x,E]=M.useState(!1),[S,I]=M.useState(""),[_,O]=M.useState(0),[P,B]=M.useState(!1),[V,z]=M.useState(!1),k=()=>{z(!0)},j=()=>{z(!1)},le=()=>{var Ae,ne,U;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const re=[...h.repeatableFields],G=It.findIndex(re,function(de){return de.uuid===(c==null?void 0:c.uuid)});G>=0&&re[G].fieldData?I(re[G].fieldData):I("")}}else{const re=a;if(re!=null&&re.length){for(const G of re)if(G.fieldId===t.field.uuid&&((Ae=G==null?void 0:G.postData[0])==null?void 0:Ae.postValue)!==""&&((ne=G==null?void 0:G.postData[0])!=null&&ne.postValue)){I((U=G==null?void 0:G.postData[0])==null?void 0:U.postValue);break}}}B(!0)};M.useEffect(()=>{P||le();const Ae=Zt.addListener("clearRepeatableFields",G=>{G===(h==null?void 0:h.uuid)&&(I(""),O(0),c.isValid=0,l(f,d,g,v,u,c))}),ne=Zt.addListener("onSubmitUserForm",()=>{var G;(G=c==null?void 0:c.attributes)!=null&&G.required?S?c.isValid=1:c.isValid=0:c.isValid=1}),U=Zt.addListener("OnInvalidFieldCatch",G=>{c.uuid===(G==null?void 0:G.fieldId)?O(1):O(0)}),re=Zt.addListener("OnGetFieldValue",G=>{var Ie;const de=(Ie=G==null?void 0:G.repeatableColumn)==null?void 0:Ie.filter(Te=>(Te==null?void 0:Te.fieldUuid)===(c==null?void 0:c.uuid));de!=null&&de.length});return()=>{ne.remove(),U.remove(),re.remove(),Ae.remove()}});const fe=Ae=>{E(Ae)},Z=()=>{E(!1)},W=Ae=>{var re,G;I(Ae.target.value);const ne=a,U=It.cloneDeep(e);if(ne!==null){if((re=Ae==null?void 0:Ae.target)!=null&&re.value){if(U[c==null?void 0:c.uuid]=(G=Ae==null?void 0:Ae.target)==null?void 0:G.value,(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:Ae.target.value})}else if(delete U[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(U);const de=Object.keys(U).length;r(de)}},ce=(Ae,ne,U,re)=>{var G;if(a){const de=[...a],Ie=It.findIndex(de,function(ve){return ve.rowId===(h==null?void 0:h.uuid)});let Te=(G=a[Ie])==null?void 0:G.repeatableFields;Te={...Te,[U==null?void 0:U.uuid]:re},de[Ie]={...de[Ie],repeatableFields:Te},i(de)}I(re),re!==""?U.isValid=1:U.isValid=0},K=10,pe=()=>{const Ae=[];for(let ne=0;ne<=K;ne++)Ae.push(o.jsxs("label",{children:[o.jsx("input",{onChange:U=>{h!=null&&h.rowIsRepeatable?ce(f,d,c,U.target.value):W(U)},checked:parseInt(S)===ne,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne,disabled:m}),o.jsx("span",{children:ne})]},`field-${c==null?void 0:c.uuid}-likertScale-${ne} ${parseInt(S)===ne?"scale-selected":""}`));return Ae},te=o.jsxs("div",{onMouseOver:k,onMouseOut:j,children:[!T&&!A&&V&&o.jsx(Xr,{handleFieldSettingsSidebar:fe,...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:(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:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((Y=c==null?void 0:c.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(o.Fragment,{children:(J=c==null?void 0:c.label)==null?void 0:J[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(he=c==null?void 0:c.toolTip)==null?void 0:he[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(fj,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(fj,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:pe()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:_===1&&!S?(Ee=c==null?void 0:c.validationMesssage)==null?void 0:Ee.language:""})}),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]})})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:Z,...t}),o.jsx(Si,{...t,fieldWrap:te})]})},SSe=t=>{var ee,Y,J,he,be,Ee,ye,Ae,ne,U,re,G;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=cn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isPreview:T,isAdmin:x,isRenderView:E}=Jt(),[S,I]=M.useState(!1),[_,O]=M.useState(""),[P,B]=M.useState(0),[V,z]=M.useState(!1),[k,j]=M.useState(!1),le=()=>{j(!0)},fe=()=>{j(!1)},Z=()=>{var de,Ie,Te;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?O(ve[me].fieldData):O("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){O((Te=me==null?void 0:me.postData[0])==null?void 0:Te.postValue);break}}}z(!0)};M.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(O(""),B(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Te=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?B(1):B(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(q=>(q==null?void 0:q.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Te.remove(),ve.remove(),de.remove()}});const W=de=>{I(de)},ce=()=>{I(!1)},K=de=>{var ve,me;O(de.target.value);const Ie=a,Te=It.cloneDeep(e);if(Ie!==null){if((ve=de==null?void 0:de.target)!=null&&ve.value){if(Te[d==null?void 0:d.uuid]=(me=de==null?void 0:de.target)==null?void 0:me.value,(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:de.target.value})}else if(delete Te[d==null?void 0:d.uuid],(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:""})}if(!(v!=null&&v.rowIsRepeatable)){n(Te);const Se=Object.keys(Te).length;r(Se)}},pe=(de,Ie)=>{var Te;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Te=a[me])==null?void 0:Te.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}O(Ie),Ie!==""?de.isValid=1:de.isValid=0},te=o.jsxs("div",{onMouseOver:le,onMouseOut:fe,children:[!E&&!T&&k&&o.jsx(Xr,{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:(ee=d==null?void 0:d.headerText)==null?void 0:ee[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(da,{...t}),((Y=d==null?void 0:d.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",T?o.jsx(o.Fragment,{children:(J=d==null?void 0:d.label)==null?void 0:J[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(he=d==null?void 0:d.toolTip)==null?void 0:he[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-"+((Ee=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Ee.name)}),o.jsx(bn,{id:d==null?void 0:d.uuid,placeholder:(ye=d==null?void 0:d.placeholder)==null?void 0:ye[c==null?void 0:c.type],value:_,onFocus:()=>B(1),onChange:de=>{v!=null&&v.rowIsRepeatable?pe(d,de.target.value):K(de)},className:P===1&&((Ae=d==null?void 0:d.attributes)!=null&&Ae.required)?_?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:w})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:P===1&&!_?(U=d==null?void 0:d.validationMesssage)==null?void 0:U.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(re=d==null?void 0:d.helperText)==null?void 0:re[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(G=d==null?void 0:d.fontStyle)==null?void 0:G.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:_})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:te})]})},xSe=t=>{var Ae,ne,U,re,G,de,Ie,Te,ve,me,Se,De,q,se,ge,ue,oe;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=yr(),{globalAlignment:l}=Jt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=cn(),{isRenderView:d,isAdmin:f,isPreview:h}=Jt(),g=ae=>{const Oe=ae.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ne=`${ae.className} justify-content-start`,Ke=`${ae.titleClassName} pl-1`;return o.jsxs("div",{className:Ne,children:[o.jsxs("button",{className:ae.togglerClassName,onClick:ae.onTogglerClick,children:[o.jsx("span",{className:Oe}),o.jsx(tn,{})]}),o.jsx("span",{className:Ke,children:Z})]})},{field:v,fieldIndex:m,sectionIndex:A,pageIndex:w,row:T,rowIndex:x,columnIndex:E,isDisabled:S}=t,[I,_]=M.useState(!1),[O,P]=M.useState(null),[B,V]=M.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}),[z,k]=M.useState(!1),j=()=>{k(!0)},le=()=>{k(!1)},fe=(ae,Oe)=>{let Ne={...B};Ne={...Ne,[ae]:Oe},V(Ne),(Ne==null?void 0:Ne.addressOne)!==""&&(Ne!=null&&Ne.addressTwo)&&(Ne!=null&&Ne.zipcode)&&Ee(Ne==null?void 0:Ne.zipcode)?(v.isValid=1,J(Ne,!0)):(v.isValid=0,J(null,!1))},[Z]=M.useState((Ae=v==null?void 0:v.label)==null?void 0:Ae[c==null?void 0:c.type]),[W,ce]=M.useState(0),[K,pe]=M.useState(!1),te=()=>{var ae,Oe;if(!(T!=null&&T.rowIsRepeatable)){const Ne=i;if(Ne!=null&&Ne.length){for(const Ke of Ne)if(Ke.fieldId===t.field.uuid&&((ae=Ke==null?void 0:Ke.postData[0])!=null&&ae.postValue)){V((Oe=Ke==null?void 0:Ke.postData[0])==null?void 0:Oe.postValue);break}}}pe(!0)};M.useEffect(()=>{K||te();const ae=Zt.addListener("clearRepeatableFields",pt=>{pt===(T==null?void 0:T.uuid)&&(ce(0),v.isValid=0,u(w,A,x,E,m,v))}),Oe=Zt.addListener("onSubmitUserForm",()=>{var pt;(pt=v==null?void 0:v.attributes)!=null&&pt.required?(B==null?void 0:B.addressOne)!==""&&(B==null?void 0:B.zipcode)!==""&&Ee(B==null?void 0:B.zipcode)?v.isValid=1:v.isValid=0:v.isValid=1}),Ne=Zt.addListener("OnInvalidFieldCatch",pt=>{v.uuid===(pt==null?void 0:pt.fieldId)?ce(1):ce(0)}),Ke=Zt.addListener("OnGetFieldValue",pt=>{var kt;const ft=(kt=pt==null?void 0:pt.repeatableColumn)==null?void 0:kt.filter(Sn=>(Sn==null?void 0:Sn.fieldUuid)===(v==null?void 0:v.uuid));ft!=null&&ft.length}),ut=Zt.addListener("formFieldAdded",pt=>{O===null&&P(pt.uuid)});return()=>{Oe.remove(),Ne.remove(),Ke.remove(),ae.remove(),ut.remove()}});const ee=ae=>{_(ae)},Y=()=>{_(!1)},J=(ae,Oe)=>{const Ne=i,Ke=It.cloneDeep(e);if(Oe){if(Ke[v==null?void 0:v.uuid]=ae,(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:ae})}else if(delete Ke[v==null?void 0:v.uuid],(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:ae});if(!(T!=null&&T.rowIsRepeatable)){n(Ke);const ut=Object.keys(Ke).length;r(ut)}},he=()=>{let ae="";return h||(ae=ae+" field-form-builder"),s===a&&f===!0&&(ae=ae+" card"),ae},be=()=>{let ae=!1;return B.addressOne!==""&&B.zipcode!==""&&Ee(B.zipcode)&&(ae=!0),ae};function Ee(ae){const Oe=/\d/.test(ae),Ne=/[a-zA-Z]/.test(ae);return Oe&&Ne?!0:!!Oe}M.useEffect(()=>(O!==null&&setTimeout(()=>{P(null)},1e3),()=>{}),[O]);const ye=o.jsxs("div",{onMouseOver:j,onMouseOut:le,children:[!d&&!h&&z&&o.jsx(Xr,{handleFieldSettingsSidebar:ee,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(v==null?void 0:v.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${O===(v==null?void 0:v.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(v==null?void 0:v.showHeaderText)&&o.jsx("h6",{children:(ne=v==null?void 0:v.headerText)==null?void 0:ne[c==null?void 0:c.type]}),(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((U=v==null?void 0:v.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(re=v==null?void 0:v.label)==null?void 0:re[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(G=v==null?void 0:v.toolTip)==null?void 0:G[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=v==null?void 0:v.addresslineFirstLabel)==null?void 0:de[c==null?void 0:c.type]})}),o.jsx(bn,{value:B.addressOne||"",onChange:ae=>fe("addressOne",ae.target.value),className:"my-2 ",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ie=v==null?void 0:v.addresslineSecondLabel)==null?void 0:Ie[c==null?void 0:c.type]})}),o.jsx(bn,{value:B.addressTwo||"",onChange:ae=>fe("addressTwo",ae.target.value),className:"my-2",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Te=v==null?void 0:v.postalcodeLabel)==null?void 0:Te[c==null?void 0:c.type]})}),o.jsx(bn,{value:B.zipcode||"",onChange:ae=>fe("zipcode",ae.target.value),className:"my-2",readOnly:S}),o.jsx("p",{children:!Ee(B.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((ve=v==null?void 0:v.attributes)==null?void 0:ve.required)&&!be()&&o.jsx("small",{className:"error",children:W===1?(me=v==null?void 0:v.validationMesssage)==null?void 0:me.language:""}),(v==null?void 0:v.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"binary",checked:B.isBillingAddressSame,onChange:ae=>{fe("isBillingAddressSame",ae.checked),ae.checked?V(Oe=>({...Oe,billingCountry:B.country,billingCity:B.city,billingState:B.state,billingAddressOne:B.addressOne,billingAddressTwo:B.addressTwo,billingZipcode:B.zipcode})):V(Oe=>({...Oe,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:S}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),B.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Se=v==null?void 0:v.attributes)==null?void 0:Se.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(De=v==null?void 0:v.billingLabel)==null?void 0:De[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(q=v==null?void 0:v.toolTip)==null?void 0:q[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(se=v==null?void 0:v.addresslineFirstLabel)==null?void 0:se[c==null?void 0:c.type]}),o.jsx(bn,{value:B.billingAddressOne||"",onChange:ae=>fe("billingAddressOne",ae.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(ge=v==null?void 0:v.addresslineSecondLabel)==null?void 0:ge[c==null?void 0:c.type]}),o.jsx(bn,{value:B.billingAddressTwo||"",onChange:ae=>fe("billingAddressTwo",ae.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(ue=v==null?void 0:v.postalcodeLabel)==null?void 0:ue[c==null?void 0:c.type]}),o.jsx(bn,{value:B.billingZipcode||"",onChange:ae=>fe("billingZipcode",ae.target.value),className:"my-2",readOnly:S}),!Ee(B.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(v==null?void 0:v.showHelperText)&&o.jsx("small",{children:(oe=v==null?void 0:v.helperText)==null?void 0:oe[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:[I===!0&&o.jsx(Wi,{visibilty:I,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:l?"ltr":"rtl",className:he(),children:s===a&&f===!0?o.jsx(ci,{headerTemplate:g,toggleable:!0,children:ye}):ye})]})},CSe=t=>{var x;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:g,columnIndex:v}=t,{handleDrop:m}=cn(),{isPreview:A,isAdvanceView:w}=Jt(),T=(E,S)=>{s(E,S)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((x=a.children)==null?void 0:x.length)>0&&a.children.map((E,S)=>{const I=E[`${n.rowIndex}-${n.columnIndex}`];return I?o.jsx("div",{children:o.jsx(tu,{type:"grid",showFieldIcons:!1,onChange:T,data:I,field:I,path:`${i}-${n.rowIndex}-${n.columnIndex}-${S}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:g,columnIndex:v,fieldIndex:S,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${S}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Fr,{isAdvanceView:w,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:m})})]})},hj=t=>{var V,z,k,j,le,fe,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:g,allFields:v,actionHeaderTemplate:m,actionBodyTemplate:A,isFocus:w,inputValue:T,handleFieldSettingsSidebar:x,isAdmin:E,emitSocketData:S,isRenderView:I}=t,[_,O]=M.useState(!1),P=()=>{O(!0)},B=()=>{O(!1)};return o.jsxs("div",{onMouseOver:P,onMouseOut:B,children:[!I&&!c&&_&&o.jsx(Xr,{handleFieldSettingsSidebar:x,...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:(V=e==null?void 0:e.headerText)==null?void 0:V[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(da,{...t}),((z=e==null?void 0:e.attributes)==null?void 0:z.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(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(j=e==null?void 0:e.toolTip)==null?void 0:j[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{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,ce)=>o.jsx(dr,{style:{minWidth:350},header:f(W,ce),body:(K,pe)=>o.jsx(CSe,{customColumn:W,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:K,indexes:pe,customColumnIndex:ce,onSetValuetoPostData:h,setAllFields:g,allFields:v,emitSocketData:S,field:e,...t})},W==null?void 0:W.uuid)),!c&&o.jsx(dr,{frozen:!0,header:W=>m(W),body:(W,ce)=>A(W,ce),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((le=e==null?void 0:e.attributes)==null?void 0:le.required)&&o.jsx("small",{className:"error",children:w===1&&!T?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe.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]})})]})]})}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},pj=t=>{var Ae;const{globalAlignment:e}=Jt(),n=ne=>{const U=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",re=`${ne.className} justify-content-start`,G=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:re,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:U}),o.jsx(tn,{})]}),o.jsx("span",{className:G,children:S})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=cn(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:g,rowIndex:v,columnIndex:m,isAdmin:A}=t,[w,T]=M.useState(!1),[x,E]=M.useState(""),[S]=M.useState((Ae=u==null?void 0:u.label)==null?void 0:Ae[s==null?void 0:s.type]),[I,_]=M.useState(0),[O,P]=M.useState(!1),[B,V]=M.useState(null),[z,k]=M.useState([]),j=()=>{var ne,U,re;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const G=[...g.repeatableFields],de=It.findIndex(G,function(Ie){return Ie.uuid===(u==null?void 0:u.uuid)});de>=0&&G[de].fieldData?E(G[de].fieldData):E("")}}else{const G=r;if(G!=null&&G.length){for(const de of G)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&((U=de==null?void 0:de.postData[0])!=null&&U.postValue)){E((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue);break}}}P(!0)},le=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:tt()}],ye(ne)},[fe,Z]=M.useState(!1),W=(ne,U)=>{var re;return o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.options)==null?void 0:re.length)>1&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>pe(ne==null?void 0:ne.uuid,U==null?void 0:U.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>be(),"aria-label":"Add Row",size:"small"})]})},ce=(ne,U)=>{var re;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.customColumnsForOptions)==null?void 0:re.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>te(ne==null?void 0:ne.uuid,U)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ne),Z(!0)}})]})]})},K=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,icon:"pi pi-plus",onClick:()=>le(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),pe=(ne,U)=>{var Te,ve;const re=(Te=u==null?void 0:u.customColumnsForOptions)==null?void 0:Te.length,G=[...(u==null?void 0:u.children)||[]];(ve=u==null?void 0:u.children)==null||ve.map(me=>{for(let Se=0;Se<re;Se++)if(me[`${U}-${Se}`]!==void 0){const De=It.findIndex(G,function(q){return q[`${U}-${Se}`]!==void 0});G.splice(De,1)}});for(let me=0;me<(G==null?void 0:G.length);me++){const Se=G[me],q=Object.keys(Se)[0].split("-");parseInt(q[0])>U&&(G[me]={[`${parseInt(q[0])-1}-${q[1]}`]:G[me][`${parseInt(q[0])}-${q[1]}`]})}const de=u==null?void 0:u.options.filter(function(me){return(me==null?void 0:me.uuid)!==ne}),Ie={...u,children:[...G]};Ie.options=de,ye(Ie)},te=(ne,U)=>{var ve,me;const re=It.findIndex(u==null?void 0:u.customColumnsForOptions,Se=>Se.uuid===ne),G=u==null?void 0:u.customColumnsForOptions.filter(function(Se,De){return De!==re}),de=(ve=u==null?void 0:u.options)==null?void 0:ve.length,Ie=[...(u==null?void 0:u.children)||[]];(me=u==null?void 0:u.children)==null||me.map(Se=>{for(let De=0;De<de;De++)if(Se[`${De}-${U}`]!==void 0){const q=It.findIndex(Ie,function(se){return se[`${De}-${U}`]!==void 0});Ie.splice(q,1)}});for(let Se=0;Se<(Ie==null?void 0:Ie.length);Se++){const De=Ie[Se],se=Object.keys(De)[0].split("-");parseInt(se[1])>U&&(Ie[Se]={[`${parseInt(se[0])}-${parseInt(se[1])-1}`]:Ie[Se][`${parseInt(se[0])}-${se[1]}`]})}const Te={...u,children:[...Ie]};Te.customColumnsForOptions=G,ye(Te)};M.useEffect(()=>{O||j();const ne=Zt.addListener("clearRepeatableFields",de=>{de===(g==null?void 0:g.uuid)&&(E(""),_(0),u.isValid=0,l(h,f,v,m,d,u))}),U=Zt.addListener("onSubmitUserForm",()=>{var de;(de=u==null?void 0:u.attributes)!=null&&de.required&&(u.isValid=1)}),re=Zt.addListener("OnInvalidFieldCatch",de=>{u.uuid===(de==null?void 0:de.fieldId)?_(1):_(0)}),G=Zt.addListener("OnGetFieldValue",de=>{var Te;const Ie=(Te=de==null?void 0:de.repeatableColumn)==null?void 0:Te.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(u==null?void 0:u.uuid));Ie!=null&&Ie.length});return()=>{U.remove(),re.remove(),G.remove(),ne.remove()}});const ee=ne=>{T(ne)},Y=()=>{T(!1)},J=(ne,U)=>{var G;const re=r;if((re==null?void 0:re.length)>0)for(const de of re)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:{...(G=de.postData[0])==null?void 0:G.postValue,[ne]:U}})},he=()=>{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:tt(),custom_values:{}}],ye(ne)},Ee=(ne,U)=>{V(Ie=>Ie===null?{customKey:U,uuid:""}:{...Ie,customKey:U});const re=u.customColumnsForOptions,G=re.findIndex(Ie=>Ie.uuid===ne.uuid);re[G]={...re[G],customKey:U};const de=u;de.customColumnsForOptions=re,ye(de)},ye=ne=>{l(h,f,v,m,d,ne)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:fe,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>Z(!1)}),onHide:()=>Z(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(B==null?void 0:B.customKey)||"",onChange:ne=>Ee(B,ne.target.value)})})}),o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:e,className:he(),children:a===i&&A===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(hj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:J,setAllFields:ne=>k(ne),allFields:z,actionHeaderTemplate:K,actionBodyTemplate:W,addOption:be,isFocus:I,inputValue:x,handleFieldSettingsSidebar:ee,isAdmin:A})}):o.jsx(hj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:J,setAllFields:ne=>k(ne),allFields:z,actionHeaderTemplate:K,actionBodyTemplate:W,addOption:be,isFocus:I,inputValue:x,handleFieldSettingsSidebar:ee,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(Oa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},gj=t=>{var E,S,I,_,O,P,B;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:g,isAdmin:v,isRenderView:m}=t,[A,w]=M.useState(!1),T=()=>{w(!0)},x=()=>{w(!1)};return o.jsxs("div",{onMouseOver:T,onMouseOut:x,children:[!m&&!n&&A&&o.jsx(Xr,{handleFieldSettingsSidebar:g,...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:(E=e==null?void 0:e.headerText)==null?void 0:E[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(da,{...t}),((S=e==null?void 0:e.attributes)==null?void 0:S.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(I=e==null?void 0:e.label)==null?void 0:I[r==null?void 0:r.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(_=e==null?void 0:e.toolTip)==null?void 0:_[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{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:V=>s(V)}),e==null?void 0:e.customColumns.map((V,z)=>o.jsx(dr,{header:a(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(k,j)=>o.jsx(TSe,{customColumn:V,e:k,indexes:j,customColumnIndex:z,setAllFields:l,allFields:c,...t})},V==null?void 0:V.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:V=>u(V),body:V=>d(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((O=e==null?void 0:e.attributes)==null?void 0:O.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(P=e==null?void 0:e.validationMesssage)==null?void 0:P.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(B=e==null?void 0:e.helperText)==null?void 0:B[r==null?void 0:r.type]})})]})]})}),v&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},ESe=(t,e)=>{var Se,De;const n=q=>{const se=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ge=`${q.className} justify-content-start`,ue=`${q.titleClassName} pl-1`;return o.jsxs("div",{className:ge,children:[o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:se}),o.jsx(tn,{})]}),o.jsx("span",{className:ue,children:I})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{globalAlignment:s,isPreview:l,isAdmin:c}=Jt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=cn(),{field:f,fieldIndex:h,sectionIndex:g,pageIndex:v,row:m,rowIndex:A,columnIndex:w}=t,[T,x]=M.useState(!1),[E,S]=M.useState(""),[I]=M.useState((Se=f==null?void 0:f.label)==null?void 0:Se[u==null?void 0:u.type]),[_,O]=M.useState(0),[P,B]=M.useState(!1),[V,z]=M.useState(null),[k,j]=M.useState(null),[le,fe]=M.useState({}),Z=()=>{var q,se,ge;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const ue=[...m.repeatableFields],oe=It.findIndex(ue,function(ae){return ae.uuid===(f==null?void 0:f.uuid)});oe>=0&&ue[oe].fieldData?S(ue[oe].fieldData):S("")}}else{const ue=r;if(ue!=null&&ue.length){for(const oe of ue)if(oe.fieldId===t.field.uuid&&((q=oe==null?void 0:oe.postData[0])==null?void 0:q.postValue)!==""&&((se=oe==null?void 0:oe.postData[0])!=null&&se.postValue)){S((ge=oe==null?void 0:oe.postData[0])==null?void 0:ge.postValue);break}}}B(!0)},W=()=>{const q=f;q.customColumns=[...q.customColumns,{customKey:"Column",uuid:tt(),options:[]}],de(q)},[ce,K]=M.useState(!1),[pe,te]=M.useState(!1),ee=q=>{var se;return o.jsxs(o.Fragment,{children:[((se=f==null?void 0:f.rows)==null?void 0:se.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(q==null?void 0:q.uuid),"aria-label":"Add Row"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>U(),"aria-label":"Add Row"})]})},Y=q=>{var se;return o.jsxs(o.Fragment,{children:[q==null?void 0:q.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((se=f==null?void 0:f.customColumns)==null?void 0:se.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Ee(q==null?void 0:q.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(q),K(!0)}})]})]})},J=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>W(),"aria-label":"Add Column"})}),he=q=>o.jsxs(o.Fragment,{children:[q==null?void 0:q.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{j(q),te(!0)}})})]}),be=q=>{const se=f==null?void 0:f.rows.filter(function(ue){return(ue==null?void 0:ue.uuid)!==q}),ge=f;ge.rows=se,de(ge)},Ee=q=>{const se=It.findIndex(f==null?void 0:f.customColumns,oe=>oe.uuid===q),ge=f==null?void 0:f.customColumns.filter(function(oe,ae){return ae!==se}),ue=f;ue.customColumns=ge,de(ue)};M.useEffect(()=>{P||Z();const q=Zt.addListener("clearRepeatableFields",ue=>{ue===(m==null?void 0:m.uuid)&&(S(""),O(0),f.isValid=0,d(v,g,A,w,h,f))}),se=Zt.addListener("OnInvalidFieldCatch",ue=>{f.uuid===(ue==null?void 0:ue.fieldId)?O(1):O(0)}),ge=Zt.addListener("OnGetFieldValue",ue=>{var ae;const oe=(ae=ue==null?void 0:ue.repeatableColumn)==null?void 0:ae.filter(Oe=>(Oe==null?void 0:Oe.fieldUuid)===(f==null?void 0:f.uuid));oe!=null&&oe.length});return()=>{se.remove(),ge.remove(),q.remove()}});const ye=q=>{x(q)},Ae=()=>{x(!1)},ne=()=>{let q="";return l||(q=q+" field-form-builder"),a===i&&c===!0&&(q=q+" card"),q},U=()=>{const q=f;q.rows=[...q.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],de(q)},re=(q,se)=>{z(ae=>ae===null?{customKey:se,uuid:""}:{...ae,customKey:se});const ge=f.customColumns,ue=ge.findIndex(ae=>ae.uuid===q.uuid);ge[ue]={...ge[ue],customKey:se};const oe=f;oe.customColumns=ge,de(oe)},G=(q,se)=>{j(ae=>ae===null?{uuid:"",rowHeading:se}:{...ae,rowHeading:se});const ge=f.rows,ue=ge.findIndex(ae=>ae.uuid===q.uuid);ge[ue]={...ge[ue],rowHeading:se};const oe=f;oe.rows=ge,de(oe)},de=q=>{d(v,g,A,w,h,q)};function Ie(q){return q.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Te=(q,se,ge)=>{const ue=f.customColumns,oe=ue.findIndex(Oe=>V&&Oe.uuid===V.uuid);ue[oe].options[ge][se]=q,ue[oe].options[ge].value=Ie(q);const ae=f;ae.customColumns=ue,de(ae)},ve=()=>{const q=f.customColumns,se=q.findIndex(ue=>V&&ue.uuid===V.uuid);q[se].options.push({label:"",value:"",uuid:tt()});const ge=f;ge.customColumns=q,de(ge)},me=q=>{const se=f.customColumns,ge=se.findIndex(oe=>V&&oe.uuid===V.uuid);if(ge===-1){console.error("Custom column not found");return}se[ge].options=se[ge].options.filter(oe=>oe.uuid!==q);const ue=f;ue.customColumns=se,de(ue)};return o.jsxs(o.Fragment,{children:[o.jsxs(Fs,{maximizable:!0,header:"Update column title",visible:ce,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(Ft,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>ve()}),o.jsx(Ft,{text:!0,label:"Save",onClick:()=>K(!1)})]}),onHide:()=>K(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(V==null?void 0:V.customKey)||"",onChange:q=>re(V,q.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(V==null?void 0:V.options)&&((De=V==null?void 0:V.options)==null?void 0:De.length)>0&&(V==null?void 0:V.options.map((q,se)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:se+1}),o.jsx(bn,{value:(q==null?void 0:q.label)||"",className:"ml-2",onChange:ge=>Te(ge.target.value,"label",se)}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>me(q.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${se}`)))]}),o.jsx(Fs,{maximizable:!0,header:"Update Row Title",visible:pe,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>te(!1)}),onHide:()=>te(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(k==null?void 0:k.rowHeading)||"",onChange:q=>G(k,q.target.value)})})}),o.jsx(Wi,{visibilty:T,closeSettingFieldSidebar:Ae,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&c===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(gj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:he,setAllFields:fe,allFields:le,actionHeaderTemplate:J,actionBodyTemplate:ee,isFocus:_,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})}):o.jsx(gj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:he,setAllFields:fe,allFields:le,actionHeaderTemplate:J,actionBodyTemplate:ee,isFocus:_,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})})]})},ISe=t=>{const{indexes:e,customColumnIndex:n,setAllFields:r,allFields:i}=t,a=s=>{const l={...i};l[`${e==null?void 0:e.rowIndex}-${n}`]=s,r(l)};return o.jsx("div",{children:o.jsx(bn,{value:i[`${e==null?void 0:e.rowIndex}-${n}`]||"",onChange:s=>a(s.target.value)})})},mj=t=>{var g,v,m,A,w,T,x;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:(g=e==null?void 0:e.headerText)==null?void 0:g[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(da,{...t}),((v=e==null?void 0:e.attributes)==null?void 0:v.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(m=e==null?void 0:e.label)==null?void 0:m[r==null?void 0:r.type]}):o.jsx(sa,{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(Ks,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((E,S)=>o.jsx(dr,{header:a(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(I,_)=>o.jsx(ISe,{customColumn:E,e:I,indexes:_,customColumnIndex:S,setAllFields:s,allFields:l,...t})},E==null?void 0:E.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:E=>c(E),body:E=>u(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((w=e==null?void 0:e.attributes)==null?void 0:w.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(T=e==null?void 0:e.validationMesssage)==null?void 0:T.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(x=e==null?void 0:e.helperText)==null?void 0:x[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},_Se=({showAddNewRow:t,setShowAddNewRow:e,customRowEditModalData:n,onHandleChangeCustomRowSetting:r})=>{const[i,a]=M.useState((n==null?void 0:n.rowHeading)||"");return o.jsx(Fs,{maximizable:!0,header:"Update Row Title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>{e(!1),r(n,i)}}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:i||"",onChange:s=>a(s.target.value)})})})},DSe=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const i=d4({initialValues:{columnValue:(n==null?void 0:n.customKey)||""},validate:a=>{const s={};return a.columnValue||(s.columnValue="Column value is required"),s},onSubmit:a=>{e(!1),r(n,a.columnValue)}});return o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>i.handleSubmit()}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",children:[o.jsx("label",{htmlFor:"columnValue",children:"Column Title"}),o.jsx(bn,{id:"columnValue",name:"columnValue",value:i.values.columnValue,onChange:i.handleChange,onBlur:i.handleBlur,className:i.touched.columnValue&&i.errors.columnValue?"p-invalid":""}),i.touched.columnValue&&i.errors.columnValue?o.jsx("small",{className:"p-error",children:i.errors.columnValue}):null]})})})},NSe=t=>{var Te;const e=ve=>{const me=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${ve.className} justify-content-start`,De=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:Se,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:me}),o.jsx(tn,{})]}),o.jsx("span",{className:De,children:S})]})},{TASK_PUBLISHED:n,task_status:r}=yr(),{userSelectedLanguage:i,fieldSettingUpdate:a}=cn(),{globalAlignment:s,isPreview:l,isAdmin:c,isRenderView:u}=Jt(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A}=t,[w,T]=M.useState(!1),[x,E]=M.useState(""),[S]=M.useState((Te=d==null?void 0:d.label)==null?void 0:Te[i==null?void 0:i.type]),[I,_]=M.useState(0),[O,P]=M.useState(null),[B,V]=M.useState(null),[z,k]=M.useState((d==null?void 0:d.allFields)||{}),[j,le]=M.useState(!1),fe=()=>{const ve=d;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:tt(),options:[]}],G(ve)},[Z,W]=M.useState(!1),[ce,K]=M.useState(!1),pe=M.useCallback(It.debounce(ve=>{const me=d;me.allFields={...ve},G(me)},1e3),[]);M.useEffect(()=>{pe(z)},[z,pe]);const te=ve=>{var me;return o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.options)==null?void 0:me.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>he(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ne(),"aria-label":"Add Row",size:"small"})]})},ee=ve=>{var me;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.customColumns)==null?void 0:me.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>be(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{P(ve),W(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>fe(),"aria-label":"Add Column"})}),J=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ve),K(!0)}})})]}),he=ve=>{const me=d==null?void 0:d.rows.filter(function(De){return(De==null?void 0:De.uuid)!==ve}),Se=d;Se.rows=me,G(Se)},be=ve=>{const me=It.findIndex(d==null?void 0:d.customColumns,q=>q.uuid===ve),Se=d==null?void 0:d.customColumns.filter(function(q,se){return se!==me}),De=d;De.customColumns=Se,G(De)},Ee=ve=>{T(ve)},ye=()=>{T(!1)},Ae=()=>{let ve="";return l||(ve=ve+" field-form-builder"),r===n&&c===!0&&(ve=ve+" card"),ve},ne=()=>{const ve=d;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],G(ve)},U=(ve,me)=>{P(se=>se===null?{customKey:me,uuid:""}:{...se,customKey:me});const Se=d.customColumns,De=Se.findIndex(se=>se.uuid===ve.uuid);Se[De]={...Se[De],customKey:me};const q=d;q.customColumns=Se,G(q)},re=(ve,me)=>{V(se=>se===null?{uuid:"",rowHeading:me}:{...se,rowHeading:me});const Se=d.rows,De=Se.findIndex(se=>se.uuid===ve.uuid);Se[De]={...Se[De],rowHeading:me};const q=d;q.rows=Se,G(q)},G=ve=>{a(g,h,m,A,f,ve)},de=()=>{le(!0)},Ie=()=>{le(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:Z,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,label:"Save",onClick:()=>W(!1)})}),onHide:()=>W(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(O==null?void 0:O.customKey)||"",onChange:ve=>U(O,ve.target.value)})})}),ce&&o.jsx(_Se,{showAddNewRow:ce,setShowAddNewRow:K,customRowEditModalData:B,onHandleChangeCustomRowSetting:re}),Z&&o.jsx(DSe,{showAddNewColumn:Z,setShowAddNewColumn:W,customColumnEditModalData:O,onHandleChangeCustomColumnSetting:U}),o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:ye,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:de,onMouseOut:Ie,children:[!u&&!l&&j&&o.jsx(Xr,{handleFieldSettingsSidebar:Ee,...t}),o.jsx("div",{dir:s,className:Ae(),children:r===n&&c===!0?o.jsx(ci,{headerTemplate:e,toggleable:!0,children:o.jsx(mj,{...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:ee,customColumnRowBodyTemplate:J,setAllFields:k,allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:te,isFocus:I,inputValue:x,handleFieldSettingsSidebar:Ee,isAdmin:c})}):o.jsx(mj,{...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:ee,customColumnRowBodyTemplate:J,setAllFields:k,allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:te,isFocus:I,inputValue:x,handleFieldSettingsSidebar:Ee,isAdmin:c})})]})})]})},OSe=t=>{var ne,U,re,G,de,Ie,Te,ve,me,Se,De;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=yr(),[s,l]=M.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,path:w,update:T,value:x,isDisabled:E}=t,{isRenderView:S,isAdmin:I,isPreview:_}=Jt(),{userSelectedLanguage:O}=cn(),[P,B]=M.useState(!1),[V,z]=M.useState(""),[k,j]=M.useState(0),[le,fe]=M.useState(!1),[Z,W]=M.useState(!1),ce=()=>{W(!0)},K=()=>{W(!1)},pe=q=>{B(q)},te=()=>{B(!1)};M.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const ee=()=>{var se,ge,ue,oe;let q=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const ae=[...d.repeatableFields],Oe=It.findIndex(ae,function(Ne){return Ne.uuid===(c==null?void 0:c.uuid)});Oe>=0&&ae[Oe].fieldData?(q=ae[Oe].fieldData,z(ae[Oe].fieldData)):(c.isValid=0,z(""))}}else{const ae=i,Oe=It.cloneDeep(e);if(ae!=null&&ae.length){for(const Ne of ae)if(Ne.fieldId===t.field.uuid&&((se=Ne==null?void 0:Ne.postData)!=null&&se.length)){q=(ge=Ne==null?void 0:Ne.postData[0])==null?void 0:ge.postValue,z((ue=Ne==null?void 0:Ne.postData[0])==null?void 0:ue.postValue),Oe[c==null?void 0:c.uuid]=(oe=Ne==null?void 0:Ne.postData[0])==null?void 0:oe.postValue;const Ke=Object.keys(Oe).length;r(Ke);break}}}z(q),setTimeout(()=>{fe(!0)},2e3)};M.useEffect(()=>{!le&&(i==null?void 0:i.length)>0&&ee();const q=Zt.addListener("clearRepeatableFields",ue=>{ue===(d==null?void 0:d.uuid)&&(z(""),j(0),c.isValid=1)}),se=Zt.addListener("onSubmitUserForm",()=>{var ue;(ue=c==null?void 0:c.attributes)!=null&&ue.required?V?c.isValid=1:c.isValid=0:c.isValid=1}),ge=Zt.addListener("OnInvalidFieldCatch",ue=>{c.uuid===(ue==null?void 0:ue.fieldId)?j(1):j(0)});return()=>{se.remove(),ge.remove(),q.remove()}});const Y=(q,se)=>{var ge;if(i){const ue=[...i],oe=It.findIndex(ue,function(Oe){return Oe.rowId===(d==null?void 0:d.uuid)});let ae=(ge=i[oe])==null?void 0:ge.repeatableFields;ae={...ae,[q==null?void 0:q.uuid]:se},ue[oe]={...ue[oe],repeatableFields:ae},a(ue)}z(se),se?q.isValid=1:q.isValid=0},J=q=>{var se;z(q.target.value),d!=null&&d.rowIsRepeatable?Y(c,(se=q==null?void 0:q.target)==null?void 0:se.value):ye(q.target.value)},he=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${O.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${O.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",Ee=()=>{var q,se,ge;if(((q=c==null?void 0:c.fieldType)==null?void 0:q.type)==="radio"){const ue=[];return s.map((oe,ae)=>{var Ne,Ke,ut,pt;const Oe=V;ue.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{J({value:oe,target:{value:oe}})},style:(Oe==null?void 0:Oe.uuid)===(oe==null?void 0:oe.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(aa,{onFocus:()=>j(1),inputId:`radio-option-${ae}-${oe==null?void 0:oe.uuid}-${_?"preview":"builder-radio"}`,onChange:ft=>{J(ft)},value:oe,name:`radio-option-${ae}-${oe==null?void 0:oe.uuid}-${_?"preview":"builder"}`,checked:(Oe==null?void 0:Oe.uuid)===(oe==null?void 0:oe.uuid),disabled:E}),((Ne=oe==null?void 0:oe.hyperlinkText)==null?void 0:Ne[O==null?void 0:O.type])===""?o.jsx("label",{htmlFor:`radio-option-${ae}-${oe==null?void 0:oe.uuid}-${_?"preview":"builder"}`,children:(Ke=oe==null?void 0:oe.optionText)==null?void 0:Ke[O==null?void 0:O.type]}):o.jsx("label",{children:o.jsx("a",{href:(ut=oe==null?void 0:oe.hyperlinkText)==null?void 0:ut[O==null?void 0:O.type],target:"_blank",rel:"noreferrer",children:(pt=oe==null?void 0:oe.optionText)==null?void 0:pt[O==null?void 0:O.type]})})]},ae))}),ue}if(((se=c==null?void 0:c.fieldType)==null?void 0:se.type)==="dropdown")return o.jsx(Oa,{onFocus:()=>j(1),onChange:ue=>{d!=null&&d.rowIsRepeatable?Y(c,ue.target.value):ye(ue.target.value)},options:s,optionLabel:be(),optionValue:he(),value:V,placeholder:(ge=c==null?void 0:c.placeholder)==null?void 0:ge[O==null?void 0:O.type],disabled:E})},ye=q=>{var ue,oe;z(q.target.value);const se=i,ge=It.cloneDeep(e);if(se!==null){if((ue=q==null?void 0:q.target)!=null&&ue.value){if(ge[c==null?void 0:c.uuid]=(oe=q==null?void 0:q.target)==null?void 0:oe.value,(se==null?void 0:se.length)>0)for(const ae of se)ae.fieldId===t.field.uuid&&(ae.postData[0]={postValue:q.target.value})}else if(delete ge[c==null?void 0:c.uuid],(se==null?void 0:se.length)>0)for(const ae of se)ae.fieldId===t.field.uuid&&(ae.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(ge);const ae=Object.keys(ge).length;r(ae)}},Ae=o.jsxs("div",{onMouseOver:ce,onMouseOut:K,children:[!S&&!_&&Z&&o.jsx(Xr,{handleFieldSettingsSidebar:pe,...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[O==null?void 0:O.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(da,{sectionIndex:h,fieldIndex:u,field:c,update:T,value:x}),((U=c==null?void 0:c.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",_?o.jsx(o.Fragment,{children:(re=c==null?void 0:c.label)==null?void 0:re[O==null?void 0:O.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Mi,{message:(G=c==null?void 0:c.toolTip)==null?void 0:G[O==null?void 0:O.type],position:"right"})}):""})]}),Ee(),o.jsx("div",{children:((de=c==null?void 0:c.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:k===1&&!V?(Ie=c==null?void 0:c.validationMesssage)==null?void 0:Ie.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[O==null?void 0:O.type]})}),((ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules.length)>0&&_===!1&&o.jsx("p",{children:"Inline conditional rules"}),le===!0&&((Se=(me=c==null?void 0:c.inlineConditionalRules)==null?void 0:me.rules)==null?void 0:Se.length)>0&&((De=c==null?void 0:c.inlineConditionalRules)==null?void 0:De.rules.map((q,se)=>{const ge=V;return _===!0?o.jsx("div",{children:q==null?void 0:q.conditions.map((ue,oe)=>o.jsx(M.Fragment,{children:o.jsx(c0,{isConditionTrue:(ge==null?void 0:ge.value)==ue.value||!_,inputValue:V,condition:ue,ruleIndex:se,conditionIndex:oe,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${se}-`+oe))},`rule-${se}`):o.jsx(ci,{className:"mt-4",header:`Rule ${se+1}`,children:o.jsx("div",{children:q==null?void 0:q.conditions.map((ue,oe)=>o.jsx(M.Fragment,{children:o.jsx(c0,{isConditionTrue:(ge==null?void 0:ge.value)===ue.value||!_,inputValue:V,condition:ue,ruleIndex:se,conditionIndex:oe,isPreview:_,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${se}-`+oe))},`rule-${se}`)},se)}))]}),I&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[P===!0&&o.jsx(Wi,{visibilty:P,closeSettingFieldSidebar:te,...t},c==null?void 0:c.uuid),o.jsx(Si,{...t,fieldWrap:Ae})]})},FSe=t=>{var le,fe,Z,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=yr(),{field:a,row:s,isDisabled:l}=t,{isPreview:c,isRenderView:u,isAdmin:d}=Jt(),{userSelectedLanguage:f}=cn(),[h,g]=M.useState(!1),[v,m]=M.useState(""),[A,w]=M.useState(0),[T,x]=M.useState(!1),[E,S]=M.useState(!1),I=()=>{S(!0)},_=()=>{S(!1)},O=ce=>{g(ce)},P=()=>{g(!1)},B=()=>{var K,pe,te,ee;let ce=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const Y=[...s.repeatableFields],J=It.findIndex(Y,function(he){return he.uuid===(a==null?void 0:a.uuid)});J>=0&&Y[J].fieldData?(ce=Y[J].fieldData,m(Y[J].fieldData)):(a.isValid=0,m(""))}}else{const Y=i,J=It.cloneDeep(e);if(Y!=null&&Y.length){for(const he of Y)if(he.fieldId===t.field.uuid&&((K=he==null?void 0:he.postData)!=null&&K.length)){ce=(pe=he==null?void 0:he.postData[0])==null?void 0:pe.postValue,m((te=he==null?void 0:he.postData[0])==null?void 0:te.postValue),J[a==null?void 0:a.uuid]=(ee=he==null?void 0:he.postData[0])==null?void 0:ee.postValue;const be=Object.keys(J).length;r(be);break}}}m(ce),setTimeout(()=>{x(!0)},2e3)};M.useEffect(()=>{T||B();const ce=Zt.addListener("clearRepeatableFields",te=>{te===(s==null?void 0:s.uuid)&&(m(""),w(0),a.isValid=1)}),K=Zt.addListener("onSubmitUserForm",()=>{var te;if((te=a==null?void 0:a.attributes)!=null&&te.required){const ee=v;ee!=null&&ee[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),pe=Zt.addListener("OnInvalidFieldCatch",te=>{a.uuid===(te==null?void 0:te.fieldId)?w(1):w(0)});return()=>{K.remove(),pe.remove(),ce.remove()}});const V=(ce,K,pe,te,ee)=>te==null?void 0:te.map(Y=>{var J,he;return{...Y,children:Y!=null&&Y.children&&((J=Y==null?void 0:Y.children)==null?void 0:J.length)>0?[...((he=Y==null?void 0:Y.children)==null?void 0:he.map(be=>K===(Y==null?void 0:Y.uuid)||ee===!0?(pe!=null&&pe[be==null?void 0:be.uuid]&&delete pe[be==null?void 0:be.uuid],{...be,options:V(ce,K,pe,(be==null?void 0:be.options)||[],!0)}):{...be,options:V(ce,K,pe,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),z=(ce,K)=>{const pe={...v};V(ce,K,pe,a==null?void 0:a.options,!1),pe[ce]=K,m(pe),s!=null&&s.rowIsRepeatable||k(pe)},k=ce=>{const K=i,pe=It.cloneDeep(e);if(K!==null){if(ce){if(pe[a==null?void 0:a.uuid]=ce,(K==null?void 0:K.length)>0)for(const te of K)te.fieldId===t.field.uuid&&(te.postData[0]={postValue:ce})}else if(delete pe[a==null?void 0:a.uuid],(K==null?void 0:K.length)>0)for(const te of K)te.fieldId===t.field.uuid&&(te.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(pe);const te=Object.keys(pe).length;r(te)}},j=o.jsxs("div",{onMouseOver:I,onMouseOut:_,children:[!u&&!c&&E&&o.jsx(Xr,{handleFieldSettingsSidebar:O,...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:(le=a==null?void 0:a.headerText)==null?void 0:le[f==null?void 0:f.type]}),o.jsx(mb,{...t,isDisabled:l,isFirst:!0,isPreview:c,schema:a,field:a,value:v,update:(ce,K)=>{z(ce,K)}}),o.jsx("div",{children:((fe=a==null?void 0:a.attributes)==null?void 0:fe.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(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(Wi,{visibilty:h,closeSettingFieldSidebar:P,...t},a==null?void 0:a.uuid),o.jsx(Si,{...t,fieldWrap:j})]})},kSe=t=>{var J,he,be,Ee,ye,Ae,ne,U,re,G;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isPreview:f}=Jt(),{taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:T}=yr(),[x,E]=M.useState(!1),{userSelectedLanguage:S,fieldSettingUpdate:I}=cn(),[_,O]=M.useState(!1),[P,B]=M.useState(0),[V,z]=M.useState(),[k,j]=M.useState(!1),le=()=>{j(!0)},fe=()=>{j(!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})}),ce=()=>{var de,Ie,Te;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ve=[...a.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(e==null?void 0:e.uuid)});me>=0&&ve[me].fieldData?z(ve[me].fieldData):z("")}}else{const ve=A;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){z((Te=me==null?void 0:me.postData[0])==null?void 0:Te.postValue);break}}}O(!0)};M.useEffect(()=>{_||ce();const de=Zt.addListener("clearRepeatableFields",me=>{me===(a==null?void 0:a.uuid)&&(z(""),B(0),e.isValid=0,I(i,r,s,l,n,e))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?V?e.isValid=1:e.isValid=0:e.isValid=1}),Te=Zt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?B(1):B(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter((q,se)=>(q==null?void 0:q.fieldUuid)===(e==null?void 0:e.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Te.remove(),ve.remove(),de.remove()}});const K=de=>{z(de.value);const Ie=A,Te=It.cloneDeep(h);if(Ie!==null){if(de!=null&&de.value){if(Te[e==null?void 0:e.uuid]=de==null?void 0:de.value,(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:de.value})}else if(delete Te[e==null?void 0:e.uuid],(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(Te);const ve=Object.keys(Te).length;v(ve)}},pe=(de,Ie)=>{var Te;if(A){const ve=[...A],me=It.findIndex(ve,function(De){return De.rowId===(a==null?void 0:a.uuid)});let Se=(Te=A[me])==null?void 0:Te.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},m(ve)}z(Ie),Ie!==""?de.isValid=1:de.isValid=0},te=de=>{E(de)},ee=()=>{E(!1)},Y=o.jsxs("div",{onMouseOver:le,onMouseOut:fe,children:[!u&&!f&&k&&o.jsx(Xr,{handleFieldSettingsSidebar:te,...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:(J=e==null?void 0:e.headerText)==null?void 0:J[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(da,{...t}),((he=e==null?void 0:e.attributes)==null?void 0:he.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[S==null?void 0:S.type]}):o.jsx(sa,{...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[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=(ye=e==null?void 0:e.icon)==null?void 0:ye.properties)==null?void 0:Ae.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(i1,{value:V,onChange:de=>{z(de.value),a!=null&&a.rowIsRepeatable?pe(e,de.value):K(de)},itemTemplate:W,optionLabel:"value",onFocus:()=>B(1),options:Z,readOnly:c,className:P===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?V?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((U=e==null?void 0:e.attributes)==null?void 0:U.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:P===1&&!V?(re=e==null?void 0:e.validationMesssage)==null?void 0:re.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(G=e==null?void 0:e.helperText)==null?void 0:G[S==null?void 0:S.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:ee,...t}),o.jsx(Si,{...t,fieldWrap:Y})]})},PSe=t=>{var te,ee,Y,J,he,be,Ee;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=cn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v}=t,{isRenderView:m,isAdmin:A,isPreview:w}=Jt(),[T,x]=M.useState(!1),[E,S]=M.useState(""),[I,_]=M.useState(0),[O,P]=M.useState(!1),[B,V]=M.useState(!1),z=()=>{V(!0)},k=()=>{V(!1)},j=()=>{var ye,Ae,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],re=It.findIndex(U,function(G){return G.uuid===(c==null?void 0:c.uuid)});re>=0&&U[re].fieldData?S(U[re].fieldData):S("")}}else{const U=a;if(U!=null&&U.length){for(const re of U)if(re.fieldId===t.field.uuid&&((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=re==null?void 0:re.postData[0])!=null&&Ae.postValue)){S((ne=re==null?void 0:re.postData[0])==null?void 0:ne.postValue);break}}}P(!0)};M.useEffect(()=>{O||j();const ye=Zt.addListener("clearRepeatableFields",re=>{re===(h==null?void 0:h.uuid)&&(S(""),_(0),c.isValid=0,l(f,d,g,v,u,c))}),Ae=Zt.addListener("onSubmitUserForm",()=>{var re;(re=c==null?void 0:c.attributes)!=null&&re.required?E?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Zt.addListener("OnInvalidFieldCatch",re=>{c.uuid===(re==null?void 0:re.fieldId)?_(1):_(0)}),U=Zt.addListener("OnGetFieldValue",re=>{var de;const G=(de=re==null?void 0:re.repeatableColumn)==null?void 0:de.filter(Ie=>(Ie==null?void 0:Ie.fieldUuid)===(c==null?void 0:c.uuid));G!=null&&G.length});return()=>{Ae.remove(),ne.remove(),U.remove(),ye.remove()}});const le=ye=>{x(ye)},fe=()=>{x(!1)},Z=ye=>{var U,re;S(ye.target.value);const Ae=a,ne=It.cloneDeep(e);if(Ae!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(ne[c==null?void 0:c.uuid]=(re=ye==null?void 0:ye.target)==null?void 0:re.value,(Ae==null?void 0:Ae.length)>0)for(const G of Ae)G.fieldId===t.field.uuid&&(G.postData[0]={postValue:ye.target.value})}else if(delete ne[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const G of Ae)G.fieldId===t.field.uuid&&(G.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const G=Object.keys(ne).length;r(G)}},W=(ye,Ae,ne,U)=>{var re;if(a){const G=[...a],de=It.findIndex(G,function(Te){return Te.rowId===(h==null?void 0:h.uuid)});let Ie=(re=a[de])==null?void 0:re.repeatableFields;Ie={...Ie,[ne==null?void 0:ne.uuid]:U},G[de]={...G[de],repeatableFields:Ie},i(G)}S(U),U!==""?ne.isValid=1:ne.isValid=0},ce=5,K=()=>{const ye=[],Ae=[QE,WE,JE,RE,GE],ne=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let U=0;U<ce;U++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:re=>{h!=null&&h.rowIsRepeatable?W(f,d,c,re.target.value):Z(re)},checked:parseInt(E)===U,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:U}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:Ae[U]})}),o.jsx("div",{children:ne[U]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${U} ${parseInt(E)===U?"scale-selected":""}`));return ye},pe=o.jsxs("div",{onMouseOver:z,onMouseOut:k,children:[!m&&!w&&B&&o.jsx(Xr,{handleFieldSettingsSidebar:le,...t}),o.jsxs("div",{className:`field ${w?" ":" 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:(te=c==null?void 0:c.headerText)==null?void 0:te[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(da,{...t}),((ee=c==null?void 0:c.attributes)==null?void 0:ee.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Y=c==null?void 0:c.label)==null?void 0:Y[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(J=c==null?void 0:c.toolTip)==null?void 0:J[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:K()})}),o.jsx("div",{children:((he=c==null?void 0:c.attributes)==null?void 0:he.required)&&o.jsx("small",{className:"error",children:I===1&&!E?(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:(Ee=c==null?void 0:c.helperText)==null?void 0:Ee[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(Wi,{visibilty:T,closeSettingFieldSidebar:fe,...t}),o.jsx(Si,{...t,fieldWrap:pe})]})},MSe=t=>{var j,le,fe,Z,W,ce,K,pe,te,ee,Y;const{userTaskSubmitFormData:e}=yr(),{userSelectedLanguage:n,fieldSettingUpdate:r}=cn(),{isPreview:i,isAdmin:a,isRenderView:s}=Jt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:g}=t,[v,m]=M.useState(!1),[A,w]=M.useState(""),[T,x]=M.useState(0),[E,S]=M.useState(!1),[I,_]=M.useState(!1),O=()=>{_(!0)},P=()=>{_(!1)},B=()=>{var J,he,be;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const Ee=[...f.repeatableFields],ye=It.findIndex(Ee,function(Ae){return Ae.uuid===(l==null?void 0:l.uuid)});ye>=0&&Ee[ye].fieldData?w(Ee[ye].fieldData):w("")}}else{const Ee=e;if(Ee!=null&&Ee.length){for(const ye of Ee)if(ye.fieldId===t.field.uuid&&((J=ye==null?void 0:ye.postData[0])==null?void 0:J.postValue)!==""&&((he=ye==null?void 0:ye.postData[0])!=null&&he.postValue)){w((be=ye==null?void 0:ye.postData[0])==null?void 0:be.postValue);break}}}S(!0)};M.useEffect(()=>{E||B();const J=Zt.addListener("clearRepeatableFields",ye=>{ye===(f==null?void 0:f.uuid)&&(w(""),x(0),l.isValid=0,r(d,u,h,g,c,l))}),he=Zt.addListener("onSubmitUserForm",()=>{var ye,Ae;(ye=l==null?void 0:l.attributes)!=null&&ye.required?A&&(A==null?void 0:A.length)<((Ae=l==null?void 0:l.attributes)==null?void 0:Ae.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),be=Zt.addListener("OnInvalidFieldCatch",ye=>{l.uuid===(ye==null?void 0:ye.fieldId)?x(1):x(0)}),Ee=Zt.addListener("OnGetFieldValue",ye=>{var ne;const Ae=(ne=ye==null?void 0:ye.repeatableColumn)==null?void 0:ne.filter(U=>(U==null?void 0:U.fieldUuid)===(l==null?void 0:l.uuid));Ae!=null&&Ae.length});return()=>{he.remove(),be.remove(),Ee.remove(),J.remove()}});const V=J=>{m(J)},z=()=>{m(!1)},k=o.jsxs("div",{onMouseOver:O,onMouseOut:P,children:[!s&&!i&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:V,...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:(j=l==null?void 0:l.headerText)==null?void 0:j[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(da,{...t}),((le=l==null?void 0:l.attributes)==null?void 0:le.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(fe=l==null?void 0:l.label)==null?void 0:fe[n==null?void 0:n.type]}):o.jsx(sa,{...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-"+((ce=(W=l==null?void 0:l.icon)==null?void 0:W.properties)==null?void 0:ce.name)})}),o.jsx("div",{children:((K=l==null?void 0:l.attributes)==null?void 0:K.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:T===1&&!A?(pe=l==null?void 0:l.validationMesssage)==null?void 0:pe.english:""}),o.jsx("small",{className:"error",children:T===1&&(A==null?void 0:A.length)<((te=l==null?void 0:l.attributes)==null?void 0:te.minLength)?`Mini length ${(ee=l==null?void 0:l.attributes)==null?void 0:ee.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(Y=l==null?void 0:l.helperText)==null?void 0:Y[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(Wi,{visibilty:v,closeSettingFieldSidebar:z,...t}),o.jsx(Si,{...t,fieldWrap:k})]})},LSe=t=>{var z,k,j,le,fe,Z,W;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Jt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=cn(),{userTaskSubmitFormData:f}=yr(),[h,g]=M.useState(!1),[v,m]=M.useState(""),[A,w]=M.useState(0),[T,x]=M.useState(!1),[E,S]=M.useState(!1),I=()=>{S(!0)},_=()=>{S(!1)},O=()=>{var K;const ce=f;if(ce.length){for(const pe of ce)if(pe.fieldId===t.field.uuid){m((K=pe==null?void 0:pe.postData[0])==null?void 0:K.postValue),x(!0);break}}};M.useEffect(()=>{T||O();const ce=Zt.addListener("onSubmitUserForm",()=>{var pe;(pe=e==null?void 0:e.attributes)!=null&&pe.required&&(v?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),K=Zt.addListener("OnInvalidFieldCatch",pe=>{e.uuid===(pe==null?void 0:pe.fieldId)?w(1):w(0)});return()=>{ce.remove(),K.remove()}});const P=ce=>{g(ce)},B=()=>{g(!1)},V=o.jsxs("div",{onMouseOver:I,onMouseOut:_,children:[!c&&E&&o.jsx(Xr,{handleFieldSettingsSidebar:P,...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:(z=e==null?void 0:e.headerText)==null?void 0:z[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," ",(j=e==null?void 0:e.label)==null?void 0:j[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(le=e==null?void 0:e.toolTip)==null?void 0:le[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:((fe=e==null?void 0:e.attributes)==null?void 0:fe.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(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(Wi,{visibilty:h,closeSettingFieldSidebar:B,...t}),o.jsx(Si,{...t,fieldWrap:V})]})},tu=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a,isAdmin:s}=Jt(),{task_status:l,TASK_PUBLISHED:c}=yr(),u=M.useRef(null),[d,f]=M.useState(!1),[{isDragging:h},g]=ia({item:{...e,type:pf,uuid:e==null?void 0:e.uuid,path:n},type:pf,collect:E=>({isDragging:E.isDragging()})}),v=h?.25:1;g(u);const m=l===c||s,A=E=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(kle,{typeName:"Text",field:r,...E});case"number":return o.jsx(Vle,{typeName:"Number",field:r,...E});case"email":return o.jsx(Ule,{typeName:"Email",field:r,...E});case"textarea":return o.jsx(qle,{typeName:"Text Area",field:r,...E});case"editor":return o.jsx(ace,{typeName:"Editor",field:r,...E});case"question":return o.jsx(Lce,{typeName:"Exam",field:r,...E});case"select":return o.jsx(Xle,{typeName:"Select",field:r,...E});case"multi-select":return o.jsx(Sce,{typeName:"Multi Select",field:r,...E});case"checkbox":return o.jsx(xce,{typeName:"Checkbox",field:r,...E});case"radio":return o.jsx(Tce,{typeName:"Radio",field:r,...E});case"radio-hierarchal":return o.jsx(FSe,{typeName:"Radio Progressive",field:r,...E});case"href":return o.jsx(Ble,{typeName:"Href",field:r,...E});case"heading":return o.jsx(Dce,{typeName:"Heading",field:r,...E});case"paragraph":return o.jsx(Gve,{typeName:"Paragraph",field:r,...E});case"image":return o.jsx(rk,{typeName:"Image",field:r,...E});case"video":return o.jsx(W3e,{typeName:"Video",field:r,...E});case"hr":return o.jsx(Q3e,{typeName:"Hr",field:r,...E});case"date-picker":return o.jsx(J3e,{typeName:"Date Picker",field:r,...E});case"signature":return o.jsx(Z3e,{typeName:"Signature",field:r,...E});case"file-upload":return o.jsx(Jbe,{typeName:"File Upload",field:r,...E});case"facebook-login":return o.jsx(MSe,{typeName:"Facebook Login",field:r,...E});case"anchor":return o.jsx(LSe,{ref:u,typeName:"Anchor Tag",field:r,...E});case"image-gallery":return o.jsx(Kve,{typeName:"Image Gallery",field:r,...E});case"quiz":return o.jsx(tye,{typeName:"Quiz",field:r,...E});case"document":return o.jsx(Zbe,{typeName:"Document",field:r,...E});case"list":return o.jsx(iye,{typeName:"List",field:r,...E});case"country":return o.jsx(Fle,{typeName:"Country",field:r,...E});case"phone":return o.jsx(hSe,{typeName:"Phone",field:r,...E});case"web-url":return o.jsx(pSe,{typeName:"Website Url",field:r,...E});case"rating":return o.jsx(bSe,{typeName:"Rating",field:r,...E});case"slider":return o.jsx(ySe,{typeName:"Rating",field:r,...E});case"hidden-field":return o.jsx(ASe,{typeName:"Hidden Field",field:r,...E});case"likert-scale":return o.jsx(wSe,{typeName:"Likert Scale Field",field:r,...E});case"type-signature":return o.jsx(SSe,{typeName:"Likert Scale Field",field:r,...E});case"address":return o.jsx(xSe,{typeName:"Address",field:r,...E});case"grid-component":return o.jsx(pj,{typeName:"Grid",field:r,...E});case"matrix-scale":return o.jsx(pj,{typeName:"Grid",field:r,...E});case"matrix-dropdown":return o.jsx(ESe,{typeName:"Grid",field:r,...E});case"thumbs":return o.jsx(kSe,{typeName:"Thumbs Up and Down",field:r,...E});case"likert-emoji-scale":return o.jsx(PSe,{typeName:"Thumbs Up and Down",field:r,...E});case"table":return o.jsx(NSe,{typeName:"Grid",field:r,...E});case"dynamic-listing":return o.jsx(OSe,{typeName:"Grid",field:r,...E});default:return o.jsx(o.Fragment,{children:"Empty"})}},w=()=>{f(!0)},T=()=>{f(!1)},x=()=>{let E="";return a?(E=E+" component ",i===mf?E=E+" ":E=E+" px-2 "):(E=E+" component draggable field-form-builder-not-preview",i===mf?E=E+" pdf-component":E=E+" px-2 pdf-component"),E};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:v},className:x(),onMouseOver:w,onMouseOut:T,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:m})]})})},BSe={position:"relative"},VSe=t=>{var P,B,V,z,k;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=M.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:g,formBuilderFormLayout:v,handleDrop:m}=cn(),{isPreview:A,isRenderView:w,isAdvanceView:T,emitSocketData:x}=Jt(),[{isDragging:E},S]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:j=>({isDragging:j.isDragging()})}),I=E&&!w?.25:1;S(d);const _=(j,le,fe,Z,W,ce,K)=>o.jsx(tu,{page:u,type:"field",row:c,column:e,section:l,field:j,data:j,path:le,pageIndex:fe,sectionIndex:Z,rowIndex:W,columnIndex:ce,fieldIndex:K},`component-${n}-${j==null?void 0:j.uuid}`),O=(j,le,fe,Z,W)=>{var te,ee,Y,J;const ce=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:pe,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:j.togglerClassName,onClick:()=>{h(le,fe,Z),x()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((J=(Y=(ee=(te=v[le])==null?void 0:te.children[fe])==null?void 0:ee.children[Z])==null?void 0:Y.children)==null?void 0:J.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{f(le,fe,Z,W),x()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{g(e,le,fe,Z,W),x()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:T?{...BSe,opacity:I}:{},className:w?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:T===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>O(j,r,i,a,s),children:[((P=e==null?void 0:e.children)==null?void 0:P.length)>0?(B=e==null?void 0:e.children)==null?void 0:B.map((j,le)=>{const fe=`${n}-${le}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:T,fieldDropArea:!0,data:{path:fe,childrenCount:e.children.length,droppedField:e},onDrop:m}),_(j,fe,r,i,a,s,le)]},fe)}):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(Fr,{isAdvanceView:T,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=e==null?void 0:e.children)==null?void 0:V.length)>0?(z=e==null?void 0:e.children)==null?void 0:z.map((j,le)=>{const fe=`${n}-${le}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:T,fieldDropArea:!0,data:{path:fe,childrenCount:e.children.length,droppedField:e},onDrop:m}),_(j,fe,r,i,a,s,le)]},fe)}):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(Fr,{isAdvanceView:T,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(k=e==null?void 0:e.children)==null?void 0:k.map((j,le)=>{const fe=`${n}-${le}`;return o.jsx(M.Fragment,{children:_(j,fe,r,i,a,s,le)},fe)})})})},USe=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(bn,{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(ks,{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(bn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},qSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Jt();return o.jsxs("div",{className:"p-fluid",children:[r===W0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Ba,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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."," "]})]})]})},$Se=t=>{var f,h,g,v;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new dy,[,a]=M.useState("");M.useEffect(()=>{},[]);const[s]=M.useState(null),l=()=>{},c=m=>{e("bgImage",m==null?void 0:m.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=m=>o.jsx("i",{className:m.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(Ba,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:m=>{r("left",m.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(Ba,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:m=>{r("right",m.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(Ba,{value:(g=n==null?void 0:n.margin)==null?void 0:g.top,onChange:m=>{r("top",m.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(Ba,{value:(v=n==null?void 0:n.margin)==null?void 0:v.bottom,onChange:m=>{r("bottom",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx(i1,{value:n==null?void 0:n.bgType,options:u,onChange:m=>e("bgType",m.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(s0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.value)})}),o.jsx(s0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.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(bn,{value:(n==null?void 0:n.bgImage)||"",onChange:m=>e("bgImage",m.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(bn,{placeholder:"Keyword",onChange:m=>a(m.target.value)}),o.jsx(Ft,{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:m=>m.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:Fn(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(Ft,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},jSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=M.useState(""),[a,s]=M.useState([""]),[l,c]=M.useState(!1),[u,d]=M.useState(0),[f,h]=M.useState(!1),{updateGlobalToast:g}=Jt(),v=()=>{h(!0)},m=()=>{var j;const z=((j=e==null?void 0:e.reviewerChecklist)==null?void 0:j.length)>=0?[...e.reviewerChecklist]:[];z.push({uuid:tt(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const k={...e,reviewerChecklist:z};n(k),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},w=z=>{const k=[...e.reviewerChecklist];k.splice(z,1);const j={...e,reviewerChecklist:k};n(j)},T=(z,k)=>{c(!0);const{checklist:j,action:le}=z;h(!0),d(k),setTimeout(()=>{i(j),s(le)},1e3)},x=(z,k)=>o.jsxs(o.Fragment,{children:[o.jsx(Ft,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>T(z,k==null?void 0:k.rowIndex),size:"small"}),o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>w(k==null?void 0:k.rowIndex),size:"small"})]}),E=z=>{var k;return o.jsx(o.Fragment,{children:(k=z==null?void 0:z.action)==null?void 0:k.length})},S=z=>{const k=[...a];k.splice(z,1),s(k)},I=()=>{const z=[...e.reviewerChecklist];z[u]={checklist:r,action:a};const k={...e,reviewerChecklist:z};n(k),h(!1),c(!1)},_=()=>o.jsx("div",{children:l?o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{I()}}):o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{m()}})}),O=z=>{n(k=>Object.assign({},k,{reviewerChecklist:z==null?void 0:z.value}))},P=z=>{navigator.clipboard.writeText(JSON.stringify(z)),g({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function B(z){try{JSON.parse(z)}catch{return!1}return!0}const V=async()=>{var j;const z=await navigator.clipboard.readText();let k="";if(B(z)){const le=JSON.parse(z);if((j=le[0])!=null&&j.checklist){const fe={...It.cloneDeep(e),reviewerChecklist:le};n(fe),g({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else k=" Empty or Invalid Schema"}else k="Invalid Schema";g({showToast:!0,toastMessage:k,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(Fs,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:_(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(ks,{rows:2,cols:50,value:r,onChange:z=>{var k;i((k=z==null?void 0:z.target)==null?void 0:k.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map((z,k)=>o.jsxs("div",{children:[k+1,"."," ",o.jsx(ks,{value:z,onChange:j=>{var fe;const le=[...a];le[k]=(fe=j==null?void 0:j.target)==null?void 0:fe.value,s(le)},rows:2,cols:50})," ",o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>S(k)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${k}`)),o.jsx(Ft,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(Ft,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{v()}}),o.jsx(Ft,{text:!0,label:"Copy Schema ",onClick:()=>{P([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(Ft,{text:!0,label:"Paste Checklist ",onClick:()=>{V()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(Ks,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:O,children:[o.jsx(dr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(dr,{field:"checklist",header:"Checklist"}),o.jsx(dr,{field:"actions",header:"Actions",body:z=>E(z)}),o.jsx(dr,{header:"",body:(z,k)=>x(z,k)})]})})]})},em=t=>{var E;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=cn(),[f,h]=M.useState(r),{updateGlobalToast:g,emitSocketData:v}=Jt(),m=(S,I,_)=>{h(O=>{const P=O[S];return Object.assign({},O,{[S]:Object.assign({},P,{[I==null?void 0:I.type]:_})})})},A=(S,I)=>{h(_=>({..._,[S]:I}))},w=()=>{const S={...f,children:r==null?void 0:r.children};c(i,a,s,S),v(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Row Updated",toastType:"success"})},T=(S,I)=>{let _=f;_={..._,margin:{..._.margin,[S]:I}},h(_)},x=(S,I)=>{h(_=>({..._,[S]:I}))};return o.jsx(o.Fragment,{children:o.jsxs(Vo,{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 - ",(E=r==null?void 0:r.heading)==null?void 0:E[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(Ft,{className:"mt-3",label:"Update",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:l!=null&&l.length?l.map((S,I)=>o.jsx(uo,{tabIndex:I,header:S==null?void 0:S.language,children:o.jsx(USe,{language:S,stateRow:f,onHandleChange:m,...t})},I)):""})}),o.jsx(fr,{header:"Advance",children:o.jsx(qSe,{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(Br,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:S=>A("showRowTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:S=>A("showRowSubTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})}),o.jsx(fr,{header:"Styling",children:o.jsx($Se,{stateRow:f,onHandleChange:x,onHandleChangePageMargin:T,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(fr,{header:"Admin",children:o.jsx(jSe,{stateRow:f,setStateRow:h})})]})]})})},zSe={},HSe=t=>{var he,be,Ee,ye,Ae,ne,U,re,G,de,Ie;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=M.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g,handleDrop:v}=cn(),{userTaskSubmitFormData:m,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:T,addUserDataFormSectionRepeatableData:x,removeUserDataFormSectionRepeatableData:E,task_status:S,TASK_PUBLISHED:I}=yr(),{isPreview:_,isRenderView:O,isAdvanceView:P,renderType:B,isAdmin:V,emitSocketData:z}=Jt(),[k,j]=M.useState(!1),[{isDragging:le},fe]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Te=>({isDragging:Te.isDragging()})}),Z=le?.25:1;fe(c);const W=(Te,ve,me,Se,De,q)=>o.jsx(VSe,{page:l,row:e,section:s,data:Te,path:ve,pageIndex:me,sectionIndex:Se,rowIndex:De,columnIndex:q,isAdmin:V,emitSocketData:z},`column-${n}-${Te.uuid}`),ce=(Te,ve,me,Se)=>{var ge,ue,oe,ae;const De=Te.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",q=`${Te.className} justify-content-space-between`,se=`${Te.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:q,children:[o.jsxs("span",{ref:_===!1?c:null,children:[o.jsx("button",{className:Te.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Te.togglerClassName,onClick:Te.onTogglerClick,children:[o.jsx("span",{className:De}),o.jsx(tn,{})]}),o.jsxs("span",{className:se,children:["Row:"," ",((ge=e==null?void 0:e.heading)==null?void 0:ge[g==null?void 0:g.type])!==""?(ue=e==null?void 0:e.heading)==null?void 0:ue[g==null?void 0:g.type]:"Untitled"]})]}),_===!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:Te.togglerClassName,onClick:()=>{d(ve,me),z()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ae=(oe=h[ve])==null?void 0:oe.children[me])==null?void 0:ae.children.length)>1&&o.jsxs("button",{className:Te.togglerClassName,onClick:()=>{u(ve,me,Se),z()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Te.togglerClassName,onClick:()=>{f(e,ve,me,Se),z()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:Te.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(m,function(Te){return(Te==null?void 0:Te.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var me,Se,De;const Te=It.cloneDeep(A);((Se=(me=m[K])==null?void 0:me.repeatableFieldsData)==null?void 0:Se.length)>=(e==null?void 0:e.minimumEntries)?Te[e==null?void 0:e.uuid]=(De=m[K])==null?void 0:De.repeatableFields:delete Te[e==null?void 0:e.uuid];const ve=Object.keys(Te).length;w(Te),T(ve)},te=(he=e==null?void 0:e.repeatableFields)==null?void 0:he.map(Te=>{var ve;return{fieldUuid:Te==null?void 0:Te.uuid,field:Te==null?void 0:Te.uuid,header:(ve=Te==null?void 0:Te.label)==null?void 0:ve.english}}),ee=te==null?void 0:te.map(Te=>o.jsx(dr,{field:Te.field,header:Te.header,body:ve=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ve[Te==null?void 0:Te.field]}})})},Te.field)),Y=()=>{var Se;const Te=[...m],ve=[];let me=!0;e:for(const[,De]of e.children.entries()){for(const[,q]of De.children.entries())if(q!=null&&q.isPostField&&q.isValid!==1){const se={fieldId:q.uuid,rowIndex:a};console.log("inValidData",se),ve.push(se),Zt.emit("OnInvalidFieldCatch",se),me=!1;break e}me=!0}me&&(ve==null?void 0:ve.length)===0&&(x(e==null?void 0:e.uuid,(Se=Te[K])==null?void 0:Se.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},J=Te=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{E(e==null?void 0:e.uuid,Te==null?void 0:Te.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...zSe,opacity:Z,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.top}px`,marginBottom:`${(Ee=e==null?void 0:e.margin)==null?void 0:Ee.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:O?"row container-row":"draggable row container-row",children:[k&&o.jsx(em,{renderType:B,visibilty:k,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:z},"row_settings_"+r+i+a),_===!1?o.jsx(o.Fragment,{children:P===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:Te=>ce(Te,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((Te,ve)=>{const me=`${n}-${ve}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:P,data:{path:me,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag"}),W(Te,me,r,i,a,ve)]},me)}),o.jsx(Fr,{isAdvanceView:P,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:P?"form-builder-columns":"",style:P?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((Te,ve)=>{const me=`${n}-${ve}`;return o.jsx(M.Fragment,{children:W(Te,me,r,i,a,ve)},me)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&S===I)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[g==null?void 0:g.type]}),o.jsx("span",{children:(G=e==null?void 0:e.subHeadingText)==null?void 0:G[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Te,ve)=>{const me=`${n}-${ve}`;return o.jsx(M.Fragment,{children:W(Te,me,r,i,a,ve)},me)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&S!==I&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(de=e.addToListButtonLabel)==null?void 0:de[g==null?void 0:g.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(m==null?void 0:m.length)>0?(Ie=m[K])==null?void 0:Ie.repeatableFieldsData:[],children:[ee,S!==I&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(Te,ve)=>J(ve)})]}),V&&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(bn,{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(ks,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},ip=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=M.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=cn(),{emitSocketData:h}=Jt(),{updateGlobalToast:g}=Jt(),v=(w,T,x)=>{l(E=>Object.assign({},E,{[w]:Object.assign({},E[w],{[T==null?void 0:T.type]:x})}))},m=(w,T)=>{l(x=>({...x,[w]:T}))},A=()=>{const w={...s,children:r==null?void 0:r.children};u(i,a,w),h(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Section Updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(Vo,{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(Ft,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:c!=null&&c.length?c.map((w,T)=>o.jsx(uo,{tabIndex:T,header:w==null?void 0:w.language,children:o.jsx(YSe,{language:w,stateSection:s,onHandleChange:v,...t})},T)):""})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:w=>m("showSectionHeader",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section header?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:w=>m("showSectionTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:w=>m("showSectionSubTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show Section Sub Title?"})]})]})})]})]})})},ap=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Jt(),a=d4({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(Ft,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(Fs,{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(bn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${J3({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(ks,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${J3({invalid:s("builder_element_title")})} w-full`})]})]})},KSe=t=>{var fe,Z,W,ce,K,pe,te,ee;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}=cn(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Jt(),[w,T]=M.useState(!1),[x,E]=M.useState(!1),[S,I]=M.useState(null),[_,O]=M.useState(!1),P=M.useRef(null),B=(Y,J)=>{I(he=>({...he,[Y]:J}))},[{isDragging:V},z]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:Y=>({isDragging:Y.isDragging()})}),k=V?.25:1;z(P);const j=(Y,J,he,be,Ee)=>o.jsx(HSe,{page:s,section:a,data:Y,path:J,pageIndex:he,sectionIndex:be,rowIndex:Ee},`row-${n}-${Y.uuid}`),le=(Y,J,he)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ee=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Ee,children:[o.jsxs("span",{ref:g===!1?P:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[he+1," ",(Ae=e==null?void 0:e.heading)==null?void 0:Ae[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{c(J),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=d[J])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{l(J,he),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{B("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{u(e,J,he),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>T(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:I,saveElementModal:x,setSaveElementModal:E}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:T,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsx(o.Fragment,{children:v===!0?o.jsxs(ci,{header:(fe=e==null?void 0:e.heading)==null?void 0:fe.english,toggleable:!0,headerTemplate:Y=>le(Y,r,i),onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!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((Y,J)=>{const he=`${n}-${J}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:he,childrenCount:e.children.length},onDrop:h}),j(Y,he,r,i,J)]},he)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),_&&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(tn,{})})}),((ce=d[r])==null?void 0:ce.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(tn,{})})})]})]}):o.jsxs(o.Fragment,{children:[((K=e==null?void 0:e.subHeadingText)==null?void 0:K[f==null?void 0:f.type])&&o.jsx("p",{children:(pe=e==null?void 0:e.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((Y,J)=>{const he=`${n}-${J}`;return o.jsx(M.Fragment,{children:j(Y,he,r,i,J)},he)})})]})}):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:(te=e==null?void 0:e.heading)==null?void 0:te[f==null?void 0:f.type]}),o.jsx("p",{children:(ee=e==null?void 0:e.subHeadingText)==null?void 0:ee[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((Y,J)=>{const he=`${n}-${J}`;return o.jsx(M.Fragment,{children:o.jsx("div",{className:"",children:j(Y,he,r,i,J)},he)},he)})]})})]})},XSe={position:"relative"},RSe=t=>{var E,S,I;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=M.useRef(null),{handleDrop:h}=cn(),{isRenderView:g,isAdvanceView:v,isPreview:m}=Jt(),[{isDragging:A},w]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:_=>({isDragging:_.isDragging()})}),T=A&&!g?.25:1;w(f);const x=(_,O,P,B,V,z,k)=>o.jsx(tu,{page:d,section:c,row:u,column:n,field:_,pageIndex:P,sectionIndex:B,rowIndex:V,columnIndex:z,fieldIndex:k,type:"field",data:_,path:O},`component-${r}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:v?{...XSe,opacity:T}:{},className:g?"":"draggable column container-column",children:m===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((E=e==null?void 0:e.children)==null?void 0:E.length)>0?(S=e==null?void 0:e.children)==null?void 0:S.map((_,O)=>{const P=`${r}-${O}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,fieldDropArea:!0,data:{path:P,childrenCount:e.children.length,droppedField:e},onDrop:h}),x(_,P,i,a,s,l,O)]},P)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{isAdvanceView:v,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:(I=e==null?void 0:e.children)==null?void 0:I.map((_,O)=>{const P=`${r}-${O}`;return o.jsx(M.Fragment,{children:x(_,P,i,a,s,l,O)},P)})})})},GSe=t=>{var l;const{isAdvanceView:e}=Jt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(RSe,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(M.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},WSe=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Jt(),{formBuilderFormSchema:l,handleDrop:c}=cn(),u=M.useRef(null),[d,f]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:g=>({isDragging:g.isDragging()})});f(u);const h=(g,v,m,A)=>o.jsx(KSe,{data:g,page:e,section:g,path:v,pageIndex:m,sectionIndex:A},`section_${m}_${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((g,v)=>{const m=`${n}-${v}`;return o.jsxs(M.Fragment,{children:[s===!0&&o.jsx(Fr,{isAdvanceView:s,data:{path:m,childrenCount:e.children.length},onDrop:c}),h(g,m,r,v)]},`section-${v}-${g.uuid}`)}),s===!0&&o.jsx(Fr,{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(GSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((g,v)=>{const m=`${n}-${v}`;return o.jsx(M.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(g,m,r,v)})}):((g==null?void 0:g.isHidden)===!1||!i)&&h(g,m,r,v)},`section-${v}-${g.uuid}`)})})})})},QSe=()=>{const{isPreview:t,isAdvanceView:e}=Jt(),[n,r]=M.useState(!1),[i,a]=M.useState(!1),[s,l]=M.useState(0),{formBuilderFormLayout:c,formBuilderFormSchema:u}=cn(),{emitSocketData:d}=Jt(),f=(h,g,v)=>o.jsx(WSe,{data:h,path:g,pageIndex:v},`page-${h.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===g9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsx("div",{children:f(h,v,g)},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Za,{activeIndex:s,onTabChange:h=>l(h.index),children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsxs(fr,{disabled:!((h==null?void 0:h.isHidden)===!1||!t),header:"Page",headerTemplate:m=>o.jsx(F7,{options:m,pageIndex:g,setTabSidebarSetting:r,setPageActiveIndex:l,page:h,pages:c}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(l1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((h,g)=>{const v=`${g}`;return o.jsxs(M.Fragment,{children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(l1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)}))})})})},JSe={position:"relative"},ZSe=t=>{var P,B,V,z,k;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Jt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=M.useRef(null),{removeColumn:m,addColumn:A,cloneColumn:w,formBuilderFormLayout:T,handleDrop:x}=cn(),[{isDragging:E},S]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:j=>({isDragging:j.isDragging()})}),I=E&&!i?.25:1;S(v);const _=(j,le,fe,Z,W,ce,K)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:j,data:j,path:le,pageIndex:fe,sectionIndex:Z,rowIndex:W,columnIndex:ce,fieldIndex:K},`component-${s}-${j==null?void 0:j.uuid}`),O=(j,le,fe,Z,W)=>{var te,ee,Y,J;const ce=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:n===!1?v:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:pe,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:j.togglerClassName,onClick:()=>{A(le,fe,Z),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((J=(Y=(ee=(te=T[le])==null?void 0:te.children[fe])==null?void 0:ee.children[Z])==null?void 0:Y.children)==null?void 0:J.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{m(le,fe,Z,W),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{w(a,le,fe,Z,W),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:e?{...JSe,opacity:I}:{},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(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>O(j,l,c,u,d),children:[((P=a==null?void 0:a.children)==null?void 0:P.length)>0?(B=a==null?void 0:a.children)==null?void 0:B.map((j,le)=>{const fe=`${s}-${le}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:fe,childrenCount:a.children.length,droppedField:a},onDrop:x}),_(j,fe,l,c,u,d,le)]},fe)}):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(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:x,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=a==null?void 0:a.children)==null?void 0:V.length)>0?(z=a==null?void 0:a.children)==null?void 0:z.map((j,le)=>{const fe=`${s}-${le}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:fe,childrenCount:a.children.length,droppedField:a},onDrop:x}),_(j,fe,l,c,u,d,le)]},fe)}):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(Fr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:x,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(k=a==null?void 0:a.children)==null?void 0:k.map((j,le)=>{const fe=`${s}-${le}`;return o.jsx(M.Fragment,{children:_(j,fe,l,c,u,d,le)},fe)})})})},exe={},txe=t=>{var he,be,Ee,ye,Ae,ne,U,re,G,de,Ie,Te,ve,me,Se,De;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:g}=Jt(),v=M.useRef(null),{removeRow:m,addRow:A,cloneRow:w,formBuilderFormLayout:T,userSelectedLanguage:x,handleDrop:E}=cn(),{userTaskSubmitFormData:S,taskRegisterData:I,updateTaskRegisterData:_,updateTaskProgressValue:O,addUserDataFormSectionRepeatableData:P,removeUserDataFormSectionRepeatableData:B,task_status:V,TASK_PUBLISHED:z}=yr(),[k,j]=M.useState(!1),[{isDragging:le},fe]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:q=>({isDragging:q.isDragging()})}),Z=le?.25:1;fe(v);const W=(q,se,ge,ue,oe,ae)=>o.jsx(ZSe,{page:l,row:e,section:s,data:q,path:se,pageIndex:ge,sectionIndex:ue,rowIndex:oe,columnIndex:ae,isAdmin:d,emitSocketData:h},`column-${n}-${q.uuid}`),ce=(q,se,ge,ue)=>{var Ne,Ke,ut,pt;const oe=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ae=`${q.className} justify-content-space-between`,Oe=`${q.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:ae,children:[o.jsxs("span",{ref:f===!1?v:null,children:[o.jsx("button",{className:q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:oe}),o.jsx(tn,{})]}),o.jsxs("span",{className:Oe,children:["Row:"," ",((Ne=e==null?void 0:e.heading)==null?void 0:Ne[x==null?void 0:x.type])!==""?(Ke=e==null?void 0:e.heading)==null?void 0:Ke[x==null?void 0:x.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:q.togglerClassName,onClick:()=>{A(se,ge),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((pt=(ut=T[se])==null?void 0:ut.children[ge])==null?void 0:pt.children.length)>1&&o.jsxs("button",{className:q.togglerClassName,onClick:()=>{m(se,ge,ue),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{w(e,se,ge,ue),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:q.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(S,function(q){return(q==null?void 0:q.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var ge,ue,oe;const q=It.cloneDeep(I);((ue=(ge=S[K])==null?void 0:ge.repeatableFieldsData)==null?void 0:ue.length)>=(e==null?void 0:e.minimumEntries)?q[e==null?void 0:e.uuid]=(oe=S[K])==null?void 0:oe.repeatableFields:delete q[e==null?void 0:e.uuid];const se=Object.keys(q).length;_(q),O(se)},te=(he=e==null?void 0:e.repeatableFields)==null?void 0:he.map(q=>{var se;return{fieldUuid:q==null?void 0:q.uuid,field:q==null?void 0:q.uuid,header:(se=q==null?void 0:q.label)==null?void 0:se.english}}),ee=te==null?void 0:te.map(q=>o.jsx(dr,{field:q.field,header:q.header,body:se=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:se[q==null?void 0:q.field]}})})},q.field)),Y=()=>{var ue;const q=[...S],se=[];let ge=!0;e:for(const[,oe]of e.children.entries()){for(const[,ae]of oe.children.entries())if(ae!=null&&ae.isPostField&&ae.isValid!==1){const Oe={fieldId:ae.uuid,rowIndex:a};se.push(Oe),Zt.emit("OnInvalidFieldCatch",Oe),ge=!1;break e}ge=!0}ge&&(se==null?void 0:se.length)===0&&(P(e==null?void 0:e.uuid,(ue=q[K])==null?void 0:ue.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},J=q=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{B(e==null?void 0:e.uuid,q==null?void 0:q.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...exe,opacity:Z,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.top}px`,marginBottom:`${(Ee=e==null?void 0:e.margin)==null?void 0:Ee.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:c?"row container-row":"draggable row container-row",children:[k&&o.jsx(em,{renderType:g,visibilty:k,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),g===jm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((q,se)=>{const ge=`${n}-${se}`;return o.jsxs(M.Fragment,{children:[g===vf&&o.jsx(Fr,{isAdvanceView:u,data:{path:ge,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),W(q,ge,r,i,a,se)]},ge)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]}),(g===gf||g===W0||g===$m||g===p9||g===Op)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:q=>ce(q,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((q,se)=>{const ge=`${n}-${se}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:u,data:{path:ge,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),W(q,ge,r,i,a,se)]},ge)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((q,se)=>{const ge=`${n}-${se}`;return o.jsx(M.Fragment,{children:W(q,ge,r,i,a,se)},ge)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[x==null?void 0:x.type]}),o.jsx("span",{children:(G=e==null?void 0:e.subHeadingText)==null?void 0:G[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((q,se)=>{const ge=`${n}-${se}`;return o.jsx(M.Fragment,{children:W(q,ge,r,i,a,se)},ge)})})]})})),g===mf&&(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(tn,{})]}),((Ie=(de=T[r])==null?void 0:de.children[i])==null?void 0:Ie.children.length)>1&&o.jsxs("button",{onClick:()=>{m(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>{w(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>j(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Te=e==null?void 0:e.children)==null?void 0:Te.map((q,se)=>{const ge=`${n}-${se}`;return o.jsx(M.Fragment,{children:W(q,ge,r,i,a,se)},ge)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ve=e==null?void 0:e.heading)==null?void 0:ve[x==null?void 0:x.type]}),o.jsx("span",{children:(me=e==null?void 0:e.subHeadingText)==null?void 0:me[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((q,se)=>{const ge=`${n}-${se}`;return o.jsx(M.Fragment,{children:W(q,ge,r,i,a,se)},ge)})})]})})),g===vf&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((q,se)=>{const ge=`${n}-${se}`;return o.jsx(M.Fragment,{children:W(q,ge,r,i,a,se)},ge)})}),(e==null?void 0:e.rowIsRepeatable)&&V!==z&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(Se=e.addToListButtonLabel)==null?void 0:Se[x==null?void 0:x.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(S==null?void 0:S.length)>0?(De=S[K])==null?void 0:De.repeatableFieldsData:[],children:[ee,V!==z&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:q=>J(q)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},nxe=t=>{var fe,Z,W,ce,K,pe,te,ee;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Jt(),{handleDrop:a}=cn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=cn(),[w,T]=M.useState(!1),[x,E]=M.useState(!1),[S,I]=M.useState({reusable_template_schema:""}),[_,O]=M.useState(!1),P=M.useRef(null),B=(Y,J)=>{I(he=>({...he,[Y]:J}))},[{isDragging:V},z]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),k=V?.25:1;z(P);const j=(Y,J,he,be,Ee)=>o.jsx(txe,{page:f,section:d,data:Y,path:J,pageIndex:he,sectionIndex:be,rowIndex:Ee},`row-${l}-${Y.uuid}`),le=(Y,J,he)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ee=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Ee,children:[o.jsxs("span",{ref:n===!1?P:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[he+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(J),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[J])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(J,he),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,J,he),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>T(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:I,saveElementModal:x,setSaveElementModal:E}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:T,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(fe=s==null?void 0:s.heading)==null?void 0:fe.english,toggleable:!0,headerTemplate:Y=>le(Y,c,u),onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!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((Y,J)=>{const he=`${l}-${J}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:he,childrenCount:s.children.length},onDrop:a}),j(Y,he,c,u,J)]},he)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):o.jsxs(o.Fragment,{children:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,J)=>{const he=`${l}-${J}`;return o.jsx(M.Fragment,{children:j(Y,he,c,u,J)},he)})})]})}):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:(te=s==null?void 0:s.heading)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("p",{children:(ee=s==null?void 0:s.subHeadingText)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,J)=>{const he=`${l}-${J}`;return o.jsx(M.Fragment,{children:o.jsx("div",{className:"",children:j(Y,he,c,u,J)},he)},he)})]})})]})},rxe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=M.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(_w,{ref:a,modules:[FV,zve],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((g,v)=>{var m;return(m=g==null?void 0:g.children)==null?void 0:m.map((A,w)=>{const T=`${n}-${c}-${f}-${v}-${w}`;return o.jsx(Dw,{children:o.jsx("div",{className:"",children:o.jsx(tu,{page:i,column:g,type:"field",row:d,section:l,field:A,data:A,path:T,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:v,fieldIndex:w},`component-${T}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${T}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(Ft,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(Ft,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},ixe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Jt(),{handleDrop:i}=cn(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=cn(),u=M.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(nxe,{data:h,section:h,path:g,page:a,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);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,g)=>{const v=`${s}-${g}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:v,childrenCount:a.children.length},onDrop:i}),f(h,v,l,g)]},`section-${g}-${h.uuid}`)}),o.jsx(Fr,{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(rxe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,g)=>{const v=`${s}-${g}`;return o.jsx(M.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,v,l,g)},`section-${g}-${h.uuid}`)})})})})},axe=()=>{const[t,e]=M.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Jt(),[a,s]=M.useState(!1),[l,c]=M.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:g}=cn(),v=(m,A,w)=>o.jsx(ixe,{data:m,path:A,pageIndex:w},`page-${m.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===g9&&r===!0?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsx("div",{children:v(m,w,A)},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!0?o.jsx(Za,{activeIndex:l,onTabChange:m=>c(m.index),children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsxs(fr,{disabled:!((m==null?void 0:m.isHidden)===!1||!r),header:"Page",headerTemplate:T=>o.jsx(F7,{options:T,pageIndex:A,page:m,isPreview:r,setTabSidebarSetting:s,clonePage:g,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(l1,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((m,A)=>{const w=`${A}`;return o.jsxs(M.Fragment,{children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(l1,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)}))})})})})},sxe={position:"relative"},oxe=t=>{var x,E,S;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=M.useRef(null),{handleDrop:f}=cn(),{isPreview:h,isRenderView:g,isAdvanceView:v}=Jt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:I=>({isDragging:I.isDragging()})}),w=m&&!g?.25:1;A(d);const T=(I,_,O,P,B,V,z)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:I,data:I,path:_,pageIndex:O,sectionIndex:P,rowIndex:B,columnIndex:V,fieldIndex:z},`component-${n}-${I==null?void 0:I.uuid}`);return o.jsx("div",{style:v?{...sxe,opacity:w}:{},className:g?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((x=e==null?void 0:e.children)==null?void 0:x.length)>0?(E=e==null?void 0:e.children)==null?void 0:E.map((I,_)=>{const O=`${n}-${_}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:O,childrenCount:e.children.length,droppedField:e},onDrop:f}),T(I,O,r,i,a,s,_)]},O)}):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(Fr,{isAdvanceView:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},isLast:!0,onDrop:f})]}):o.jsx(o.Fragment,{children:(S=e==null?void 0:e.children)==null?void 0:S.map((I,_)=>{const O=`${n}-${_}`;return o.jsx(M.Fragment,{children:T(I,O,r,i,a,s,_)},O)})})})},lxe={},cxe=t=>{var O,P,B,V,z,k,j,le,fe;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=M.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g}=cn(),{isPreview:v,isRenderView:m}=Jt(),{task_status:A,TASK_PUBLISHED:w}=yr(),[T,x]=M.useState(!1),[{isDragging:E},S]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Z=>({isDragging:Z.isDragging()})}),I=E?.25:1;S(c);const _=(Z,W,ce,K,pe,te)=>o.jsx(oxe,{page:l,row:e,section:s,data:Z,path:W,pageIndex:ce,sectionIndex:K,rowIndex:pe,columnIndex:te},`column-${n}-${Z.uuid}`);return o.jsxs("div",{style:{...lxe,opacity:I,marginTop:`${(O=e==null?void 0:e.margin)==null?void 0:O.top}px`,marginBottom:`${(P=e==null?void 0:e.margin)==null?void 0:P.bottom}px`,marginLeft:`${(B=e==null?void 0:e.margin)==null?void 0:B.left}px`,marginRight:`${(V=e==null?void 0:e.margin)==null?void 0:V.right}px`},className:m?"row container-row":"draggable row container-row",children:[T&&o.jsx(em,{visibilty:T,setVisibility:x,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),v===!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(tn,{})]}),((k=(z=h[r])==null?void 0:z.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(tn,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(j=e==null?void 0:e.children)==null?void 0:j.map((Z,W)=>{const ce=`${n}-${W}`;return o.jsx(M.Fragment,{children:_(Z,ce,r,i,a,W)},ce)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(le=e==null?void 0:e.heading)==null?void 0:le[g==null?void 0:g.type]}),o.jsx("span",{children:(fe=e==null?void 0:e.subHeadingText)==null?void 0:fe[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Z,W)=>{const ce=`${n}-${W}`;return o.jsx(M.Fragment,{children:_(Z,ce,r,i,a,W)},ce)})})]})})]})},uxe=t=>{var S,I,_;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=cn(),{isPreview:c,isAdvanceView:u}=Jt(),[d,f]=M.useState(!1),[h,g]=M.useState(!1),[v,m]=M.useState(null),A=M.useRef(null),[{isDragging:w},T]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:O=>({isDragging:O.isDragging()})}),x=w?.25:1;T(A);const E=(O,P,B,V,z)=>o.jsx(cxe,{page:s,section:a,data:O,path:P,pageIndex:B,sectionIndex:V,rowIndex:z},`row-${n}-${O.uuid}`);return o.jsxs("div",{style:{opacity:x,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(ap,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:m,saveElementModal:h,setSaveElementModal:g}),d===!0&&o.jsx(ip,{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((O,P)=>{const B=`${n}-${P}`;return o.jsx(M.Fragment,{children:E(O,B,r,i,P)},B)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(S=e==null?void 0:e.heading)==null?void 0:S[l==null?void 0:l.type]}),((I=e==null?void 0:e.subHeadingText)==null?void 0:I[l==null?void 0:l.type])&&o.jsx("p",{children:(_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((O,P)=>{const B=`${n}-${P}`;return o.jsx(M.Fragment,{children:o.jsx("div",{className:"",children:E(O,B,r,i,P)},B)},B)})]})})]})},u6={},d6={height:"1280px",width:"100%"},dxe=t=>{var f,h,g,v;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Jt(),s=M.useRef(null),[{isDragging:l},c]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})}),u=l?0:1;c(s);const d=(m,A,w,T)=>o.jsx(uxe,{data:m,section:m,path:A,page:e,pageIndex:w,sectionIndex:T},`section_${w}_${T}`);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"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...u6,...d6,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((m,A)=>{const w=`${n}-${A}`;return o.jsx(M.Fragment,{children:d(m,w,r,A)},`section-${A}-${m.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...u6,...d6,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:`${(g=e==null?void 0:e.margin)==null?void 0:g.left}px`,marginRight:`${(v=e==null?void 0:e.margin)==null?void 0:v.right}px`},children:e.children.map((m,A)=>{const w=`${n}-${A}`;return o.jsx(M.Fragment,{children:((m==null?void 0:m.isHidden)===!1||!i)&&d(m,w,r,A)},`section-${A}-${m.uuid}`)})})})})})})},fxe=()=>{const{isPreview:t}=Jt(),[e,n]=M.useState(!1),[r,i]=M.useState(0),[a,s]=M.useState(!1),{formBuilderFormLayout:l}=cn(),c=(u,d,f)=>o.jsx(dxe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===g9&&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(Za,{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(F7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(l1,{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(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(l1,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},hxe=t=>{var w,T,x,E;const e=M.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=cn(),{isPreview:s,emitSocketData:l}=Jt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:g}=t,v=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",m=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:m,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:v}),o.jsx(tn,{})]}),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(tn,{})]})}),((E=(x=(T=(w=a[u])==null?void 0:w.children[d])==null?void 0:T.children[f])==null?void 0:x.children)==null?void 0:E.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(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(g,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})},pxe={position:"relative"},gxe=t=>{var x,E,S,I,_;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Jt(),{handleDrop:i}=cn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=M.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:O=>({isDragging:O.isDragging()})}),w=m&&!n?.25:1;A(v);const T=(O,P,B,V,z,k,j)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:O,data:O,path:P,pageIndex:B,sectionIndex:V,rowIndex:z,columnIndex:k,fieldIndex:j},`component-${s}-${O==null?void 0:O.uuid}`);return o.jsx("div",{style:e?{...pxe,opacity:w}:{},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(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:O=>o.jsx(hxe,{options:O,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((O,P)=>{const B=`${s}-${P}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),T(O,B,l,c,u,d,P)]},B)}):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(Fr,{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:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(I=a==null?void 0:a.children)==null?void 0:I.map((O,P)=>{const B=`${s}-${P}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),T(O,B,l,c,u,d,P)]},B)}):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(Fr,{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:(_=a==null?void 0:a.children)==null?void 0:_.map((O,P)=>{const B=`${s}-${P}`;return o.jsx(M.Fragment,{children:T(O,B,l,c,u,d,P)},B)})})})},mxe=t=>{var T,x,E,S;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=M.useState(!1),l=M.useRef(null),{isPreview:c,emitSocketData:u}=Jt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:g,userSelectedLanguage:v}=cn(),m=e!=null&&e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",A=`${e==null?void 0:e.className} justify-content-space-between`,w=`${e==null?void 0:e.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{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:m}),o.jsx(tn,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((T=a==null?void 0:a.heading)==null?void 0:T[v==null?void 0:v.type])!==""?(x=a==null?void 0:a.heading)==null?void 0:x[v==null?void 0:v.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(tn,{})]})}),((S=(E=g[n])==null?void 0:E.children[r])==null?void 0:S.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(tn,{})]}),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(tn,{})]})}),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(tn,{})]})})]})]})]})},vxe={},bxe=t=>{var pe,te,ee,Y,J,he,be,Ee,ye,Ae,ne;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Jt(),{handleDrop:l}=cn(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:g,page:v}=t,m=M.useRef(null),{userSelectedLanguage:A}=cn(),{userTaskSubmitFormData:w,taskRegisterData:T,updateTaskRegisterData:x,updateTaskProgressValue:E,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:I,task_status:_,TASK_PUBLISHED:O}=yr(),[P,B]=M.useState(!1),[{isDragging:V},z]=ia({type:Oo,item:{type:Oo,uuid:c.uuid,children:c.children,path:u,data:c},collect:U=>({isDragging:U.isDragging()})}),k=V?.25:1;z(m);const j=(U,re,G,de,Ie,Te)=>o.jsx(gxe,{page:v,row:c,section:g,data:U,path:re,pageIndex:G,sectionIndex:de,rowIndex:Ie,columnIndex:Te,emitSocketData:s},`column-${u}-${U.uuid}`),le=It.findIndex(w,function(U){return(U==null?void 0:U.rowId)===(c==null?void 0:c.uuid)}),fe=()=>{var G,de,Ie;const U=It.cloneDeep(T);((de=(G=w[le])==null?void 0:G.repeatableFieldsData)==null?void 0:de.length)>=(c==null?void 0:c.minimumEntries)?U[c==null?void 0:c.uuid]=(Ie=w[le])==null?void 0:Ie.repeatableFields:delete U[c==null?void 0:c.uuid];const re=Object.keys(U).length;x(U),E(re)},Z=(pe=c==null?void 0:c.repeatableFields)==null?void 0:pe.map(U=>{var re;return{fieldUuid:U==null?void 0:U.uuid,field:U==null?void 0:U.uuid,header:(re=U==null?void 0:U.label)==null?void 0:re.english}}),W=Z==null?void 0:Z.map(U=>o.jsx(dr,{field:U.field,header:U.header,body:re=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:re[U==null?void 0:U.field]}})})},U.field)),ce=()=>{var de;const U=[...w],re=[];let G=!0;e:for(const[,Ie]of c.children.entries()){for(const[,Te]of Ie.children.entries())if(Te!=null&&Te.isPostField&&Te.isValid!==1){const ve={fieldId:Te.uuid,rowIndex:h};console.log("inValidData",ve),re.push(ve),Zt.emit("OnInvalidFieldCatch",ve),G=!1;break e}G=!0}G&&(re==null?void 0:re.length)===0&&(S(c==null?void 0:c.uuid,(de=U[le])==null?void 0:de.repeatableFields),Zt.emit("clearRepeatableFields",c==null?void 0:c.uuid),fe())},K=U=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{I(c==null?void 0:c.uuid,U==null?void 0:U.rowIndex),setTimeout(()=>{fe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...vxe,opacity:k,marginTop:`${(te=c==null?void 0:c.margin)==null?void 0:te.top}px`,marginBottom:`${(ee=c==null?void 0:c.margin)==null?void 0:ee.bottom}px`,marginLeft:`${(Y=c==null?void 0:c.margin)==null?void 0:Y.left}px`,marginRight:`${(J=c==null?void 0:c.margin)==null?void 0:J.right}px`},className:n?"row container-row":"draggable row container-row",children:[P&&o.jsx(em,{renderType:a,visibilty:P,setVisibility:B,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(ci,{header:"Row",toggleable:!0,headerTemplate:U=>o.jsx(mxe,{options:U,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(he=c==null?void 0:c.children)==null?void 0:he.map((U,re)=>{const G=`${u}-${re}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:G,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),j(U,G,d,f,h,re)]},G)}),o.jsx(Fr,{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((U,re)=>{const G=`${u}-${re}`;return o.jsx(M.Fragment,{children:j(U,G,d,f,h,re)},G)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&_===O)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Ee=c==null?void 0:c.heading)==null?void 0:Ee[A==null?void 0:A.type]}),o.jsx("span",{children:(ye=c==null?void 0:c.subHeadingText)==null?void 0:ye[A==null?void 0:A.type]}),o.jsx("div",{className:"form-builder-columns",children:c.children.map((U,re)=>{const G=`${u}-${re}`;return o.jsx(M.Fragment,{children:j(U,G,d,f,h,re)},G)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&_!==O&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>ce(),label:(Ae=c.addToListButtonLabel)==null?void 0:Ae[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(w==null?void 0:w.length)>0?(ne=w[le])==null?void 0:ne.repeatableFieldsData:[],children:[W,_!==O&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:U=>K(U)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},yxe=t=>{var fe,Z,W,ce,K,pe,te,ee;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Jt(),{handleDrop:a}=cn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=cn(),[w,T]=M.useState(!1),[x,E]=M.useState(!1),[S,I]=M.useState({reusable_template_schema:""}),[_,O]=M.useState(!1),P=M.useRef(null),B=(Y,J)=>{I(he=>({...he,[Y]:J}))},[{isDragging:V},z]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),k=V?.25:1;z(P);const j=(Y,J,he,be,Ee)=>o.jsx(bxe,{page:f,section:d,data:Y,path:J,pageIndex:he,sectionIndex:be,rowIndex:Ee,emitSocketData:i},`row-${l}-${Y.uuid}`),le=(Y,J,he)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ee=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Ee,children:[o.jsxs("span",{ref:n===!1?P:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[he+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(J),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[J])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(J,he),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,J,he),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>T(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:k,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:I,saveElementModal:x,setSaveElementModal:E}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:T,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(fe=s==null?void 0:s.heading)==null?void 0:fe.english,toggleable:!0,headerTemplate:Y=>le(Y,c,u),onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!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((Y,J)=>{const he=`${l}-${J}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:he,childrenCount:s.children.length},onDrop:a}),j(Y,he,c,u,J)]},he)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):o.jsxs(o.Fragment,{children:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,J)=>{const he=`${l}-${J}`;return o.jsx(M.Fragment,{children:j(Y,he,c,u,J)},he)})})]})}):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:(te=s==null?void 0:s.heading)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("p",{children:(ee=s==null?void 0:s.subHeadingText)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,J)=>{const he=`${l}-${J}`;return o.jsx(M.Fragment,{children:o.jsx("div",{className:"",children:j(Y,he,c,u,J)},he)},he)})]})})]})},Axe={position:"relative"},wxe=t=>{var x,E,S;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Jt(),{handleDrop:i}=cn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=M.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:I=>({isDragging:I.isDragging()})}),w=m&&!n?.25:1;A(v);const T=(I,_,O,P,B,V,z)=>o.jsx(tu,{page:g,type:"field",row:h,column:a,section:f,field:I,data:I,path:_,pageIndex:O,sectionIndex:P,rowIndex:B,columnIndex:V,fieldIndex:z},`component-${s}-${I==null?void 0:I.uuid}`);return o.jsx("div",{style:e?{...Axe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((I,_)=>{const O=`${s}-${_}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:O,childrenCount:a.children.length,droppedField:a},onDrop:i}),T(I,O,l,c,u,d,_)]},O)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{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:(S=a==null?void 0:a.children)==null?void 0:S.map((I,_)=>{const O=`${s}-${_}`;return o.jsx(M.Fragment,{children:T(I,O,l,c,u,d,_)},O)})})})},Sxe=t=>{var l;const{isAdvanceView:e}=Jt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(wxe,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(M.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},xxe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Jt(),{formBuilderFormSchema:l,handleDrop:c}=cn(),u=M.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(yxe,{data:h,section:h,path:g,page:e,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);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,g)=>{const v=`${n}-${g}`;return o.jsxs(M.Fragment,{children:[i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:v,childrenCount:e.children.length},onDrop:c}),f(h,v,r,g)]},`section-${g}-${h.uuid}`)}),i===!0&&o.jsx(Fr,{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(Sxe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsx(M.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,v,r,g)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,v,r,g)},`section-${g}-${h.uuid}`)})})})})},Cxe=()=>{const[t,e]=M.useState(!1),{formBuilderFormLayout:n}=cn(),{isPreview:r}=Jt(),i=()=>{},a=(s,l,c)=>o.jsx(xxe,{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(l1,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},Txe={position:"relative"},Exe=t=>{var x;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Jt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,g=M.useRef(null),{handleDrop:v}=cn(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:E=>({isDragging:E.isDragging()})}),w=m&&!n?.25:1;A(g);const T=(E,S,I,_,O,P,B)=>o.jsx(tu,{page:h,type:"field",row:f,section:d,field:E,data:E,path:S,pageIndex:I,sectionIndex:_,rowIndex:O,columnIndex:P,fieldIndex:B},`component-${a}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:r?{...Txe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(x=i==null?void 0:i.children)==null?void 0:x.map((E,S)=>{const I=`${a}-${S}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{fieldDropArea:!0,isAdvanceView:r,data:{path:I,childrenCount:i.children.length,droppedField:i},onDrop:v}),T(E,I,s,l,c,u,S)]},I)}),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(Fr,{fieldDropArea:!0,isAdvanceView:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:v,isLast:!0})]})})},Ixe={},_xe=t=>{var K,pe,te,ee,Y,J,he;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=M.useRef(null),{userSelectedLanguage:u,handleDrop:d}=cn(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,addUserDataFormSectionRepeatableData:m,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:T}=yr(),{isRenderView:x,isAdmin:E,isAdvanceView:S,emitSocketData:I,renderType:_}=Jt(),[O,P]=M.useState(!1),[{isDragging:B},V]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),z=B?.25:1;V(c);const k=(be,Ee,ye,Ae,ne,U)=>o.jsx(Exe,{page:l,row:e,section:s,data:be,path:Ee,pageIndex:ye,sectionIndex:Ae,rowIndex:ne,columnIndex:U},`column-${n}-${be.uuid}`),j=It.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),le=()=>{var ye,Ae,ne;const be=It.cloneDeep(h);((Ae=(ye=f[j])==null?void 0:ye.repeatableFieldsData)==null?void 0:Ae.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[j])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const Ee=Object.keys(be).length;g(be),v(Ee)},fe=(K=e==null?void 0:e.repeatableFields)==null?void 0:K.map(be=>{var Ee;return{fieldUuid:be==null?void 0:be.uuid,field:be==null?void 0:be.uuid,header:(Ee=be==null?void 0:be.label)==null?void 0:Ee.english}}),Z=fe==null?void 0:fe.map(be=>o.jsx(dr,{field:be.field,header:be.header,body:Ee=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Ee[be==null?void 0:be.field]}})})},be.field)),W=()=>{var Ae;const be=[...f],Ee=[];let ye=!0;e:for(const[,ne]of e.children.entries()){for(const[,U]of ne.children.entries())if(console.log("field.isValid",U.isValid),U!=null&&U.isPostField&&U.isValid!==1){const re={fieldId:U.uuid,rowIndex:a};console.log("inValidData",re),Ee.push(re),Zt.emit("OnInvalidFieldCatch",re),ye=!1;break e}ye=!0}ye&&(Ee==null?void 0:Ee.length)===0&&(m(e==null?void 0:e.uuid,(Ae=be[j])==null?void 0:Ae.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),le())},ce=be=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{le()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...Ixe,opacity:z,marginTop:`${(pe=e==null?void 0:e.margin)==null?void 0:pe.top}px`,marginBottom:`${(te=e==null?void 0:e.margin)==null?void 0:te.bottom}px`,marginLeft:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.left}px`,marginRight:`${(Y=e==null?void 0:e.margin)==null?void 0:Y.right}px`},className:x?"row container-row":"draggable row container-row",children:[O&&o.jsx(em,{renderType:_,visibilty:O,setVisibility:P,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:I},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,Ee)=>{const ye=`${n}-${Ee}`;return o.jsxs(M.Fragment,{children:[_===vf&&o.jsx(Fr,{isAdvanceView:S,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),k(be,ye,r,i,a,Ee)]},ye)}),o.jsx(Fr,{isAdvanceView:S,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&w!==T&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>W(),label:(J=e.addToListButtonLabel)==null?void 0:J[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(f==null?void 0:f.length)>0?(he=f[j])==null?void 0:he.repeatableFieldsData:[],children:[Z,w!==T&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>ce(be)})]}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},Dxe=t=>{var j,le;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}=cn(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Jt(),[w,T]=M.useState(!1),[x,E]=M.useState(!1),[S,I]=M.useState({reusable_template_schema:""}),_=M.useRef(null),O=(fe,Z)=>{I(W=>({...W,[fe]:Z}))},[{isDragging:P},B]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:fe=>({isDragging:fe.isDragging()})}),V=P?.25:1;B(_);const z=(fe,Z,W,ce,K)=>o.jsx(_xe,{page:s,section:a,data:fe,path:Z,pageIndex:W,sectionIndex:ce,rowIndex:K},`row-${n}-${fe.uuid}`),k=(fe,Z,W)=>{var te,ee;const ce=fe.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${fe.className} justify-content-space-between panel-tab-section`,pe=`${fe.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:g===!1?_:null,children:[o.jsx("button",{className:fe.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:fe.togglerClassName,onClick:fe.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsxs("span",{className:pe,children:[W+1," ",(te=e==null?void 0:e.heading)==null?void 0:te[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:fe.togglerClassName,onClick:()=>{c(Z),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ee=d[Z])==null?void 0:ee.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:fe.togglerClassName,onClick:()=>{l(Z,W),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:fe.togglerClassName,onClick:()=>{O("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:fe.togglerClassName,onClick:()=>{u(e,Z,W),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:fe.togglerClassName,onClick:()=>T(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:V,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:I,saveElementModal:x,setSaveElementModal:E}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:T,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsxs(ci,{className:"mb-5",header:(j=e==null?void 0:e.heading)==null?void 0:j.english,toggleable:!0,headerTemplate:fe=>k(fe,r,i),children:[o.jsx("p",{children:(le=e==null?void 0:e.subHeadingText)==null?void 0:le[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((fe,Z)=>{const W=`${n}-${Z}`;return o.jsx(M.Fragment,{children:z(fe,W,r,i,Z)},W)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},Nxe=t=>{const{isRenderView:e,isPreview:n}=Jt(),{data:r,path:i,pageIndex:a}=t,s=M.useRef(null),[,l]=ia({type:na,item:{type:na,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(Dxe,{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(M.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},f6=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=M.useState(!1),{userTrainingSaveData:u}=yr(),d=h=>{var g,v;if(u!==null&&h){const m=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(g=u[m])!=null&&g.isSeen?(v=u[m])==null?void 0:v.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const v=u.findIndex(m=>(m==null?void 0:m.fieldId)===(i==null?void 0:i.uuid));h=u[v].logs}else h=[];return h==null?void 0:h.map((v,m)=>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:[v==null?void 0:v.action," on ",((v==null?void 0:v.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:Fn(v==null?void 0:v.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:(v==null?void 0:v.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100),"%"]})]})]},`logs_${m}`))};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(Ft,{text:!0,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Ft,{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(Ft,{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(Ft,{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}`)},Oxe=t=>{var x,E,S,I,_,O;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}=yr(),g=(x=d==null?void 0:d.training)!=null&&x.getAssessmentSelectedQuiz?(E=d==null?void 0:d.training)==null?void 0:E.getAssessmentSelectedQuiz:()=>{},v=P=>{if(f!==null){const B=[...f],V=B.findIndex(z=>(z==null?void 0:z.fieldId)===(P==null?void 0:P.uuid));V>=0&&(B[V]={...B[V],isSeen:!0}),h([...B])}},m=P=>{var B;i(P),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(B=P==null?void 0:P.media_url)==null?void 0:B.english}]})},A=P=>{var B;v(P),i(P),c((B=P==null?void 0:P.media_url)==null?void 0:B.english),a(l)},w=P=>{v(P),i(P),u(P==null?void 0:P.documents),a(l)},T=P=>{var B,V;(B=P==null?void 0:P.quizSchema)!=null&&B.assessment_id&&(g((V=P==null?void 0:P.quizSchema)==null?void 0:V.assessment_id),a(l),i(P))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(f6,{title:(S=e==null?void 0:e.title)==null?void 0:S.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:m,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(f6,{title:(I=e==null?void 0:e.title)==null?void 0:I.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(f6,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"document",icon:"pi pi-image",handleSelectCourseItem:w,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"quiz":return o.jsx(f6,{title:(O=e==null?void 0:e.quizSchema)==null?void 0:O.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:T,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},Fxe=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(Oxe,{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}`))})})},kxe=t=>{var v,m,A,w,T,x,E,S,I,_;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}=Jt(),g=(v=h==null?void 0:h.image)!=null&&v.MediaImage?(m=h==null?void 0:h.image)==null?void 0:m.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:O=>{e(P=>{var B;return(B=n==null?void 0:n.answersText)==null?void 0:B[r==null?void 0:r.type]}),i(O,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"}:((w=n.answersText)==null?void 0:w[r==null?void 0:r.type])===f?{backgroundColor:"#0F8BFD",color:"#fff"}:{},children:[o.jsx(aa,{inputId:s,value:n.answersText,checked:((T=n.answersText)==null?void 0:T[r==null?void 0:r.type])===f,onChange:O=>{u({isCorrect:null,text:null}),e(P=>{var B;return(B=O.target.value)==null?void 0:B[r==null?void 0:r.type]}),i(O,s,l,n,c),a(!0)}}),((x=n.answersTextImage)==null?void 0:x[r==null?void 0:r.type])&&((E=n.answersTextImage)==null?void 0:E[r==null?void 0:r.type])!==""&&o.jsx(g,{mediaId:(S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(I=n.answersText)==null?void 0:I[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((_=n.answersText)==null?void 0:_[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)},Pxe=t=>{var g,v,m,A,w,T,x;const{media:e}=Jt(),n=(g=e==null?void 0:e.image)!=null&&g.MediaImage?(v=e==null?void 0:e.image)==null?void 0:v.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 M.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var E;h(!(f!=null&&f.some(S=>{var I;return S===((I=i.answersText)==null?void 0:I[a==null?void 0:a.type])})),(E=i==null?void 0:i.answersText)==null?void 0:E[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(E=>{var S;return(E==null?void 0:E.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var S;return(E==null?void 0:E.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((m=i.answersText)==null?void 0:m[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Br,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(E=>{var S;return E===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}),onChange:E=>{var S;h(E.checked,(S=E.target.value)==null?void 0:S[a==null?void 0:a.type],i,c),s(!0)}}),((A=i.answersTextImage)==null?void 0:A[a==null?void 0:a.type])&&((w=i.answersTextImage)==null?void 0:w[a==null?void 0:a.type])!==""&&o.jsx(n,{mediaId:(T=i.answersTextImage)==null?void 0:T[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(x=i.answersText)==null?void 0:x[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(E=>{var S;return(E==null?void 0:E.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var S;return(E==null?void 0:E.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function vj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mxe(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 bj(t,e,n){return e&&Mxe(t.prototype,e),t}function yj(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&&jS(t,e)}function h6(t){return h6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h6(t)}function jS(t,e){return jS=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jS(t,e)}function Lxe(){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 Bxe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vxe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:Bxe(t)}function Aj(t){var e=Lxe();return function(){var r=h6(t),i;if(e){var a=h6(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Vxe(this,i)}}function Uxe(t){return qxe(t)||$xe(t)||jxe(t)||zxe()}function qxe(t){if(Array.isArray(t))return zS(t)}function $xe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function jxe(t,e){if(t){if(typeof t=="string")return zS(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 zS(t,e)}}function zS(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 zxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4288
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(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:(Uxe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var wj={daysInHours:!1,zeroPadTime:2};function Hxe(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)),g=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(h))*1e3),v=Math.abs(g)/1e3;return{total:g,days:Math.floor(v/(3600*24)),hours:Math.floor(v/3600%24),minutes:Math.floor(v/60%60),seconds:Math.floor(v%60),milliseconds:Number((v%1*1e3).toFixed()),completed:g<=0}}function Yxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},wj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?tm(r+n*24,c):tm(r,f);return{days:l?"":tm(n,d),hours:h,minutes:tm(i,f),seconds:tm(a,f)}}var Sj=function(t){yj(n,t);var e=Aj(n);function n(){var r;return vj(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 bj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?M.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(M.Component);Sj.propTypes={count:ua.number,children:ua.element,onComplete:ua.func};var nm=function(t){yj(n,t);var e=Aj(n);function n(r){var i;if(vj(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 bj(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 Hxe(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:Yxe(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 M.createElement(Sj,{ref:this.setLegacyCountdownRef,count:a,onComplete:l},s)}var c=this.props,u=c.className,d=c.overtime,f=c.children,h=c.renderer,g=this.getRenderProps();if(h)return h(g);if(f&&this.state.timeDelta.completed&&!d)return M.cloneElement(f,{countdown:g});var v=g.formatted,m=v.days,A=v.hours,w=v.minutes,T=v.seconds;return M.createElement("span",{className:u},g.total<0?"-":"",m,m?":":"",A,":",w,":",T)}}]),n}(M.Component);nm.defaultProps=Object.assign(Object.assign({},wj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),nm.propTypes={date:ua.oneOfType([ua.instanceOf(Date),ua.string,ua.number]),daysInHours:ua.bool,zeroPadTime:ua.number,zeroPadDays:ua.number,controlled:ua.bool,intervalDelay:ua.number,precision:ua.number,autoStart:ua.bool,overtime:ua.bool,className:ua.string,children:ua.element,renderer:ua.func,now:ua.func,onMount:ua.func,onStart:ua.func,onPause:ua.func,onStop:ua.func,onTick:ua.func,onComplete:ua.func};const Kxe=({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(nm,{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})})},Xxe=M.memo(Kxe),Rxe=t=>{var d,f,h,g;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=M.useState(Date.now()),[s,l]=M.useState(!1),c=M.useCallback(()=>{a(Date.now()),l(!1)},[r]);M.useEffect(()=>{c()},[r,c]);const u=v=>(v.seconds<10&&(v.seconds="0"+v.seconds),v.minutes===0&&(v.minutes="0"+v.minutes),v.completed&&!s?(l(!0),setTimeout(()=>{n()},500),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:{color:"black"},children:[v.minutes,":",v.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(nm,{renderer:u,date:i+parseInt((g=(h=e==null?void 0:e.time_limit)==null?void 0:h.time_limit_info)==null?void 0:g.time_per_question)*1e3,intervalDelay:0},i)})},Gxe=()=>{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(()=>{}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},Wxe="1",xj=t=>{var ve,me,Se,De,q,se,ge,ue;const e=oe=>{const[ae,Oe]=M.useState(oe),Ne=M.useRef(ae);return M.useEffect(()=>{Ne.current=ae},[ae]),[ae,Ne,Oe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=yr(),[s,l]=M.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:g,setAssessmentModal:v=()=>{},saveNewQuizData:m}=t,{quizStartAlert:A}=Gxe(),{userSelectedLanguage:w}=cn(),[T,,x]=e(0),{media:E}=Jt(),S=(ve=E==null?void 0:E.image)!=null&&ve.MediaImage?(me=E==null?void 0:E.image)==null?void 0:me.MediaImage:o.jsx(o.Fragment,{}),[I,_,O]=e(null),[P,B]=M.useState(!1),[V,,z]=e([]),[k,j]=M.useState(!1),[le,fe]=M.useState(!1),[Z,W]=M.useState(0),[ce,K]=M.useState(0),[pe,te]=M.useState(0),[ee,Y]=M.useState(!1),[J,he]=M.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},M.useEffect(()=>{k||j(!0)},[V,P,k]),M.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{K(u.quizConfiguration.quizPassMark)},Ee=M.useCallback((oe,ae,Oe,Ne,Ke)=>{const ut=[...V];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const pt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},ft=V.findIndex(kt=>(kt==null?void 0:kt.uuid)===Ke.uuid);ft>=0?(ut[ft]={...ut[ft],...pt},z(ut)):z([...V,pt])}},[I]),ye=oe=>{var ae;if(T!==0){const Oe=[...V],Ne=T-1;O((ae=Oe[Ne])==null?void 0:ae.selectedAnswer[w==null?void 0:w.type]),B(!0),x(Ne),Ae(0)}},Ae=oe=>{for(const ae of V)if(ae.questionIndex===T+oe){O(ae.selectedAnswerEnglish);break}},ne=(oe,ae,Oe,Ne)=>{var pt;const Ke=[...I];if(oe)Ke.push(ae);else{const ft=Ke.findIndex(kt=>kt===ae);ft>=0&&Ke.splice(ft,1)}O(Ke);const ut=[...V];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let ft=!1;for(const[,Vt]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(Vt.isCorrect===!0)if(It.includes(Ke,(pt=Vt==null?void 0:Vt.answersText)==null?void 0:pt[w==null?void 0:w.type]))ft=!0;else{ft=!1;break}const kt={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:ft,selectedAnswer:Oe.answersText,viewed:!0},Sn=V.findIndex(Vt=>(Vt==null?void 0:Vt.uuid)===Ne.uuid);Sn>=0?(ut[Sn]={...ut[Sn],...kt},z(ut)):z([...V,kt])}},U=M.useCallback(()=>{var ut,pt,ft,kt,Sn,Vt,Nt,$e,yt,qt,dn,mn;const oe=_.current,ae=It.findIndex((ut=u==null?void 0:u.quizElements[T])==null?void 0:ut.answerOptions,function(En){return En.isCorrect===!0}),Oe=u==null?void 0:u.quizElements[T],Ne=(ft=(pt=Oe==null?void 0:Oe.answerOptions[ae])==null?void 0:pt.answersText)!=null&&ft[w==null?void 0:w.type]?(Sn=(kt=Oe==null?void 0:Oe.answerOptions[ae])==null?void 0:kt.answersText)==null?void 0:Sn[w==null?void 0:w.type]:"",Ke=(Vt=V[T])!=null&&Vt.isCorrect?1:0;if(u!=null&&u.quizElements&&T+1!==(u==null?void 0:u.quizElements.length)){const En={assessment_user_attempt_id:($e=i==null?void 0:i.assesment_user_attempts[((Nt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Nt.length)-1])==null?void 0:$e.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(yt=Oe.questionText)==null?void 0:yt[w==null?void 0:w.type],question_uid:Oe==null?void 0:Oe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(oe)?oe.toString():oe,is_correct_answer:Ke};r(En),O(null),x(T+1),l(new Date),Ae(2)}else if((u==null?void 0:u.quizElements.length)===T+1){const En={assessment_user_attempt_id:(dn=i==null?void 0:i.assesment_user_attempts[((qt=i==null?void 0:i.assesment_user_attempts)==null?void 0:qt.length)-1])==null?void 0:dn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Oe==null?void 0:Oe.uuid,question:(mn=Oe.questionText)==null?void 0:mn[w==null?void 0:w.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(oe)?oe.toString():oe,is_correct_answer:Ke};r(En),re(),de()}B(!1)},[T,V]),re=()=>{fe(!0)},G=()=>{Te?(console.log("Restart"),g(B3),m(),j(!0),A(),be(),x(0),O(null),B(!1),z([]),fe(!1),W(0),te(0),Y(!1),he({isCorrect:null,text:null})):(g(n2),v(!1))},de=()=>{var Ke,ut;let oe=0,ae=0,Oe=!1;for(const pt of V)pt!=null&&pt.isCorrect&&oe++;W(oe),ae=oe/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,ae=Math.round(ae),te(ae),Oe=ae>=ce,Y(Oe);const Ne={...u,...i,result:ae,status:Oe,selectedAnswers:V};d(Ne),n({session_id:c,is_pass:Oe?1:0,score:oe,out_of:(ut=u==null?void 0:u.quizElements)==null?void 0:ut.length,finish_time:new Date,status:1})},Ie=()=>{var oe,ae,Oe,Ne,Ke,ut,pt;if(((oe=u==null?void 0:u.quizElements[T])==null?void 0:oe.answerInputType)==="radio"){const ft=It.findIndex((ae=u==null?void 0:u.quizElements[T])==null?void 0:ae.answerOptions,function(kt){return kt.isCorrect===!0});I===((Ke=(Ne=(Oe=u==null?void 0:u.quizElements[T])==null?void 0:Oe.answerOptions[ft])==null?void 0:Ne.answersText)==null?void 0:Ke[w==null?void 0:w.type])?he({isCorrect:!0,text:I}):he({isCorrect:!1,text:I})}if(((ut=u==null?void 0:u.quizElements[T])==null?void 0:ut.answerInputType)==="checkbox"){const ft=(pt=u==null?void 0:u.quizElements[T])==null?void 0:pt.answerOptions.filter(kt=>kt.isCorrect===!0);if(I!=null&&I.length){const kt=I==null?void 0:I.map(Sn=>({isCorrect:ft==null?void 0:ft.some(Vt=>{var Nt;return((Nt=Vt==null?void 0:Vt.answersText)==null?void 0:Nt[w==null?void 0:w.type])===Sn}),text:Sn}));he(kt)}}},Te=(i==null?void 0:i.noOfAttempts)-((Se=i==null?void 0:i.assesment_user_attempts)==null?void 0:Se.length)>0&&!ee;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[le&&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"," ",(De=a==null?void 0:a.assessment)==null?void 0:De.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(q=u==null?void 0:u.quizElements)==null?void 0:q.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",pe,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",ce,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ee?o.jsx($c,{severity:"success",value:"Passed"}):o.jsx($c,{severity:"danger",value:"Failed"})]}),ee&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{label:Te?"Restart":"End",onClick:()=>G()})})})]})]})})}),le&&((se=i==null?void 0:i.assessment_type)==null?void 0:se.key)===Wxe&&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:V==null?void 0:V.map((oe,ae)=>{var Oe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Oe=oe==null?void 0:oe.question)==null?void 0:Oe[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(Ne=oe==null?void 0:oe.selectedAnswer)==null?void 0:Ne[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),oe!=null&&oe.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},ae)})})})]}),f!==UD?o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{g(n2)}})})}):o.jsx(o.Fragment,{}),k&&!le&&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(Xxe,{assessmentData:i,setDisplaySummary:fe}),o.jsx(Rxe,{currentQuestionIndex:T,assessmentData:i,onNextQuestion:U})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(ge=u==null?void 0:u.quizElements)==null?void 0:ge.map((oe,ae)=>{var Oe,Ne,Ke,ut,pt;return o.jsxs("div",{className:"quiz-card-box",children:[T===ae&&((Oe=oe==null?void 0:oe.questionTextImage)==null?void 0:Oe[w==null?void 0:w.type])&&((Ne=oe==null?void 0:oe.questionTextImage)==null?void 0:Ne[w==null?void 0:w.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(S,{mediaId:(Ke=oe==null?void 0:oe.questionTextImage)==null?void 0:Ke[w==null?void 0:w.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:T===ae&&((ut=oe==null?void 0:oe.questionText)==null?void 0:ut[w==null?void 0:w.type])}),T===ae&&((pt=oe==null?void 0:oe.answerOptions)==null?void 0:pt.map((ft,kt)=>(oe==null?void 0:oe.answerInputType)==="checkbox"?o.jsx(M.Fragment,{children:o.jsx(Pxe,{onChangeCheckbox:ne,setSelectedOption:O,quiz:ft,userSelectedLanguage:w,onSetAnswer:Ee,setIsOptionSelected:B,index:kt,eleIndex:ae,ele:oe,setCorrectAnswerCheck:he,correctAnswerCheck:J,selectedOption:I})},`checkbox-question-${kt}`):o.jsx(M.Fragment,{children:o.jsx(kxe,{setSelectedOption:O,quiz:ft,userSelectedLanguage:w,onSetAnswer:Ee,setIsOptionSelected:B,index:kt,eleIndex:ae,ele:oe,setCorrectAnswerCheck:he,correctAnswerCheck:J,selectedOption:I})},`radio-question-${kt}`)))]},ae)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",T+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),T>0&&o.jsx(Ft,{size:"large",className:"mx-2",label:"Previous",onClick:oe=>ye()}),((i==null?void 0:i.skippable)===!0||P===!0)&&o.jsx(Ft,{size:"large",label:(u==null?void 0:u.quizElements.length)===T+1?"Finish":P===!0?"Next":"Skip",onClick:U}),P===!0&&((ue=i==null?void 0:i.assessment_type)==null?void 0:ue.key)==="1"&&o.jsx(Ft,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ie()})]})]})]})})},Qxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=yr();M.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var g,v,m,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(m=(v=(g=d==null?void 0:d.layout[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:m.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=Um.shuffle(h).map((w,T)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,T)=>({...w,answerOptions:Um.shuffle(w==null?void 0:w.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(g=>(g==null?void 0:g.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(xj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},Jxe=t=>{var m,A;const{currentItem:e,videoJsOptions:n}=t,r=M.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=yr(),{media:l}=Jt(),c=(m=l==null?void 0:l.video)!=null&&m.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=w=>{r.current=w,w.on("waiting",()=>{_t.log("player is waiting")}),w.on("dispose",()=>{_t.log("player will dispose")})},d=w=>{if(i!==null){const T=[...i],x=T==null?void 0:T.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid));x>=0&&(T[x].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const T=[...i],x=T==null?void 0:T.findIndex(E=>(E==null?void 0:E.fieldId)===(w==null?void 0:w.uuid));x>=0&&(i[x]={...i[x],isSeen:!0},a(T),h("Ended"))},h=w=>{const T=r.current,x=i!==null?i==null?void 0:i.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid)):-1;x>=0&&i[x].logs.push({action:w,videoTime:i[x].seenTime,totalTime:T.duration,timeState:new Date})},g=w=>{const{mediaId:T}=w,[x,E]=M.useState(!1);return M.useEffect(()=>{if(!x&&i!==null){const S=i.findIndex(I=>(I==null?void 0:I.fieldId)===(e==null?void 0:e.uuid));if(S>=0){E(!0);const I=r.current;I.currentTime=i[S].seenTime}E(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:T,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},v=M.useCallback(w=>o.jsx(g,{mediaId:w}),[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:v(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(nV,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},p6=t=>{var I,_,O,P,B,V;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=yr(),[a]=M.useState(!1),[,s]=M.useState(fy),[l,c]=M.useState([]),[u,d]=M.useState(null),{userSelectedLanguage:f}=cn(),[h,g]=M.useState(null),[v,m]=M.useState(null),A=(I=i==null?void 0:i.training)!=null&&I.getAssessmentByIdFromStore?(_=i==null?void 0:i.training)==null?void 0:_.getAssessmentByIdFromStore:()=>{},w=(O=i==null?void 0:i.training)!=null&&O.TrainingOverView?(P=i==null?void 0:i.training)==null?void 0:P.TrainingOverView:()=>o.jsx(o.Fragment,{}),[T,x]=M.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});M.useEffect(()=>{a||E()},[a]);const E=()=>{var z,k,j,le,fe,Z,W,ce,K,pe,te,ee,Y,J,he,be,Ee,ye,Ae,ne,U;switch(g((j=(k=(z=e[0])==null?void 0:z.children[0])==null?void 0:k.children[0])==null?void 0:j.children[0]),m(e[0]),(W=(Z=(fe=(le=e[0])==null?void 0:le.children[0])==null?void 0:fe.children[0])==null?void 0:Z.children[0])==null?void 0:W.componentType){case"video":x({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(ee=(te=(pe=(K=(ce=e[0])==null?void 0:ce.children[0])==null?void 0:K.children[0])==null?void 0:pe.children[0])==null?void 0:te.media_url)==null?void 0:ee.english}]});break;case"image":s((Ee=(be=(he=(J=(Y=e[0])==null?void 0:Y.children[0])==null?void 0:J.children[0])==null?void 0:he.children[0])==null?void 0:be.media_url)==null?void 0:Ee.english);break;case"document":c((U=(ne=(Ae=(ye=e[0])==null?void 0:ye.children[0])==null?void 0:Ae.children[0])==null?void 0:ne.children[0])==null?void 0:U.documents);break}},S=z=>{switch(z==null?void 0:z.componentType){case"video":return o.jsx("div",{children:o.jsx(Jxe,{videoJsOptions:T,currentItem:z},z==null?void 0:z.uuid)});case"image":return o.jsx(rk,{field:z,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,j)=>o.jsx("li",{children:o.jsx("a",{href:k==null?void 0:k.url,children:k==null?void 0:k.url})},`document-item-${j}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Qxe,{renderIn:UD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:z}):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:[(B=v==null?void 0:v.heading)==null?void 0:B[f==null?void 0:f.type]," -"," ",(V=h==null?void 0:h.title)==null?void 0:V[f==null?void 0:f.type]," "]}),S(h),n&&o.jsx(w,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((z,k)=>{var j,le;return o.jsxs(ci,{className:"mb-5",header:(j=z==null?void 0:z.heading)==null?void 0:j.english,toggleable:!0,children:[o.jsx("p",{children:(le=z==null?void 0:z.subHeadingText)==null?void 0:le[f==null?void 0:f.type]}),z.children.map((fe,Z)=>{const W=`${Z}`;return o.jsx("div",{children:fe.children.map((ce,K)=>{const pe=`${Z}-${W}`;return o.jsx(Fxe,{setCurrentSection:m,section:z,setCurrentItem:g,currentItem:h,path:pe,fields:ce.children,setvideoJsOptions:x,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${K}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${k}`)})})]})};p6.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},p6.propTypes={showInfoPanel:Cn.bool,sections:Cn.array,updateTrainingProgress:Cn.func};const Zxe=()=>{var r;const{formBuilderFormLayout:t}=cn(),{isPreview:e}=Jt(),n=(i,a,s)=>o.jsx(Nxe,{data:i,path:a,pageIndex:s},`page-${i.uuid}`);return e?o.jsx(p6,{sections:((r=t[0])==null?void 0:r.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((i,a)=>{const s=`${a}`;return o.jsx("div",{children:n(i,s,a)},`exam-page-${a}`)})})})},eCe=t=>{var I,_,O,P,B;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=cn(),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]=M.useState(),[u,d]=M.useState([]),{media:f}=Jt(),h=(I=f==null?void 0:f.image)!=null&&I.MediaImage?(_=f==null?void 0:f.image)==null?void 0:_.MediaImage:o.jsx(o.Fragment,{}),g={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},[v,m]=M.useState(0),[A,w]=M.useState(!1);function T(V,z){return(V==null?void 0:V.length)<=z?V:(V==null?void 0:V.slice(0,z))+"..."}M.useEffect(()=>{w(!0)},[]);const x=()=>{v!==0&&m(v-1)},E=()=>{if(g!=null&&g.quizElements&&v+1!==(g==null?void 0:g.quizElements.length))m(v+1);else if((g==null?void 0:g.quizElements.length)===v+1)return},S=(V,z)=>{let k=[...u];V.checked?k.push(z):k=k.filter(j=>(j==null?void 0:j[e==null?void 0:e.type])!==(z==null?void 0:z[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:[g==null?void 0:g.name," "]}),(O=g==null?void 0:g.quizElements)==null?void 0:O.map((V,z)=>{var k,j,le,fe,Z,W,ce,K,pe;return(V==null?void 0:V.answerInputType)==="radio"?o.jsxs("div",{className:v===z?"card":" flex align-items-center p-field-radiobutton",children:[((k=V==null?void 0:V.questionTextImage)==null?void 0:k[e==null?void 0:e.type])&&((j=V==null?void 0:V.questionTextImage)==null?void 0:j[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(le=V==null?void 0:V.questionTextImage)==null?void 0:le[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:v===z&&((fe=V==null?void 0:V.questionText)==null?void 0:fe[e==null?void 0:e.type])}),v===z&&((Z=V==null?void 0:V.answerOptions)==null?void 0:Z.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:`${ee}-preview`,value:te==null?void 0:te.answersText,checked:l===ee,onChange:()=>{c(ee)}}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${ee}-preview`,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z):(V==null?void 0:V.answerInputType)==="checkbox"?o.jsxs("div",{className:v===z?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:v===z&&((W=V==null?void 0:V.questionText)==null?void 0:W[e==null?void 0:e.type])}),v===z&&((ce=V==null?void 0:V.answerOptions)==null?void 0:ce.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Br,{inputId:ee,value:te==null?void 0:te.answersText,onChange:Ee=>{S(Ee,te==null?void 0:te.answersText)},checked:u.some(Ee=>{var ye;return(Ee==null?void 0:Ee[e==null?void 0:e.type])===((ye=te==null?void 0:te.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ee,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z):o.jsxs("div",{className:v===z?"card":"",children:[o.jsx("h3",{className:"mb-5",children:v===z&&((K=V==null?void 0:V.questionText)==null?void 0:K[e==null?void 0:e.type])}),v===z&&((pe=V==null?void 0:V.answerOptions)==null?void 0:pe.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:ee,value:te==null?void 0:te.answersText,onChange:()=>{}}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ee,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",v+1+"/"+(g==null?void 0:g.quizElements.length)]}),o.jsx("br",{}),v>0&&o.jsx(Ft,{text:!0,className:"mx-2",label:"Previous",onClick:()=>x()}),o.jsx(Ft,{text:!0,label:(g==null?void 0:g.quizElements.length)===v+1?"Finish":"Next",onClick:()=>E()})]})]}),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:(P=g==null?void 0:g.quizElements)==null?void 0:P.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($c,{className:"mr-2",severity:"success",value:"True"}):o.jsx($c,{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:(B=g==null?void 0:g.quizElements)==null?void 0:B.map((V,z)=>{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:T(((k=V==null?void 0:V.questionText)==null?void 0:k[e==null?void 0:e.type])||"",30)})})},`preview-question-${z}`)})})})]})]})]})]})},tCe=t=>{var E;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=M.useRef(null),{handleDrop:f}=cn(),{isRenderView:h,isAdvanceView:g,isPreview:v}=Jt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:S=>({isDragging:S.isDragging()})}),T={position:"relative",opacity:m&&!h?.25:1};A(d);const x=(S,I,_,O,P,B,V)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:S,data:S,path:I,pageIndex:_,sectionIndex:O,rowIndex:P,columnIndex:B,fieldIndex:V},`component-${n}-${S==null?void 0:S.uuid}`);return o.jsx("div",{style:g?T:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!1?o.jsxs("div",{children:[e.children.length>0&&((E=e==null?void 0:e.children)==null?void 0:E.map((S,I)=>{const _=`${n}-${I}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:_,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(S,_,r,i,a,s,I)]},_)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Fr,{isAdvanceView:g,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(eCe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},nCe={},rCe=t=>{var v,m,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=M.useRef(null),{isRenderView:u}=Jt(),[{isDragging:d},f]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:T=>({isDragging:T.isDragging()})}),h=d?.25:1;f(c);const g=(T,x,E,S,I,_)=>o.jsx(tCe,{page:l,row:e,section:s,data:T,path:x,pageIndex:E,sectionIndex:S,rowIndex:I,columnIndex:_},`column-${n}-${T.uuid}`);return o.jsx("div",{style:{...nCe,opacity:h,marginTop:`${(v=e==null?void 0:e.margin)==null?void 0:v.top}px`,marginBottom:`${(m=e==null?void 0:e.margin)==null?void 0:m.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(w=e==null?void 0:e.margin)==null?void 0:w.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((T,x)=>{const E=`${n}-${x}`;return o.jsx(M.Fragment,{children:g(T,E,r,i,a,x)},E)})})})},iCe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Jt(),[f,h]=M.useState(!1),[g,v]=M.useState(!1),[m,A]=M.useState(null),w=M.useRef(null),[{isDragging:T},x]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:I=>({isDragging:I.isDragging()})}),E=T?.25:1;x(w);const S=(I,_,O,P,B)=>o.jsx(rCe,{page:s,section:a,data:I,path:_,pageIndex:O,sectionIndex:P,rowIndex:B},`row-${n}-${I.uuid}`);return o.jsxs("div",{style:{opacity:E,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(ap,{saveBuilderElementModalData:m,setSaveBuilderElementModalData:A,saveElementModal:g,setSaveElementModal:v}),f===!0&&o.jsx(ip,{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((I,_)=>{const O=`${n}-${_}`;return o.jsx(M.Fragment,{children:S(I,O,r,i,_)},O)})})]})},aCe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Jt(),a=M.useRef(null),[{},s]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(iCe,{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(M.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},sCe=()=>{const{formBuilderFormLayout:t}=cn(),e=(n,r,i)=>o.jsx(aCe,{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}`)})})})},g6=()=>{const{renderType:t}=Jt();switch(t){case W0:return o.jsx(QSe,{});case gf:return o.jsx(axe,{});case mf:return o.jsx(fxe,{});case $m:return o.jsx(Cxe,{});case jm:return o.jsx(Zxe,{});case vf:return o.jsx(sCe,{})}},oCe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=yr();return M.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(p6,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},lCe=({taskId:t,onStart:e})=>{var w,T,x,E,S,I,_,O,P,B,V,z,k,j,le,fe,Z,W,ce;const[n,r]=M.useState(n2),[i,a]=M.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=yr();M.useEffect(()=>{var K,pe,te,ee,Y;if(((K=c==null?void 0:c.formType)==null?void 0:K.key)==="exam"){let J=[...((ee=(te=(pe=c==null?void 0:c.layout[0])==null?void 0:pe.children[0])==null?void 0:te.children[0])==null?void 0:ee.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(J=Um.shuffle(J).map(he=>({...he}))),l!=null&&l.randomiseAnswers&&(J=J.map(he=>({...he,answerOptions:Um.shuffle(he==null?void 0:he.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(J=J.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(Y=u==null?void 0:u.assessment)==null?void 0:Y.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:J})}},[c]);const f=o.jsxs("div",{children:[o.jsx(Ft,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>r(n2)}),o.jsx(Ft,{label:"Start Immediately",onClick:()=>{g(),r(B3)}})]}),h=K=>K.completed?(g(),r(B3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",K.seconds," seconds"]}),g=()=>{const K={task_id:t,session_id:tt(),start_time:new Date,finish_time:new Date};a(pe=>({...pe,...K})),d(K,a)},v=()=>{r(m7),g()},m=((w=l==null?void 0:l.assesment_user_attempts)==null?void 0:w.length)>0?(T=l==null?void 0:l.assesment_user_attempts)==null?void 0:T.some(K=>(K==null?void 0:K.is_pass)===1):!1;function A(){var be;const K=l==null?void 0:l.assesment_user_attempts[0],pe=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],te=K==null?void 0:K.start_time,ee=pe==null?void 0:pe.finish_time;if(!pe||!te||!ee)return"";const Y=Fn.utc(te),he=Fn.utc(ee).diff(Y,"seconds");return he<60?he+" seconds":Math.floor(he/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===m7&&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(nm,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===n2&&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:(x=u==null?void 0:u.assessment)==null?void 0:x.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:Fn(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:(E=l==null?void 0:l.assesment_user_attempts)==null?void 0:E.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)-((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.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=i==null?void 0:i.quizElements)==null?void 0:I.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&&((O=(_=l==null?void 0:l.time_limit)==null?void 0:_.type)==null?void 0:O.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((B=(P=l==null?void 0:l.time_limit)==null?void 0:P.time_limit_info)==null?void 0:B.num_of_mins)," ","mins"]}),l&&((z=(V=l==null?void 0:l.time_limit)==null?void 0:V.type)==null?void 0:z.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((j=(k=l==null?void 0:l.time_limit)==null?void 0:k.time_limit_info)==null?void 0:j.time_per_question)*((le=i==null?void 0:i.quizElements)==null?void 0:le.length)/60)," ","mins"]}),l&&((Z=(fe=l==null?void 0:l.time_limit)==null?void 0:fe.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)-((ce=l==null?void 0:l.assesment_user_attempts)==null?void 0:ce.length)>0?o.jsx(o.Fragment,{children:o.jsx(Ft,{size:"large",label:m===!0?"Passed":"Start now",disabled:m,className:"p-button-info",onClick:()=>{r(m7),e&&e()}})}):o.jsx(_7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===B3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(xj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:v,saveNewQuizData:g,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},cCe=t=>{var J,he,be,Ee,ye,Ae,ne,U,re,G,de,Ie;const[e,n]=M.useState(!1),{isAdmin:r}=Jt(),i=M.useRef(!1),{taskId:a,endPoints:s,isRenderView:l,showFieldsAfterSubmit:c,messageWhileSubmittingForm:u,enableFormScroll:d,formScrollHeight:f="scroll-height-225",onStart:h,setAssessmentModal:g=()=>{}}=t,{setLayout:v}=cn(),{taskProgressValue:m,taskRegisterData:A,task_status:w,assessmentData:T,taskProgressLoading:x,taskSchema:E,taskData:S,updateTaskFormData:I,submitTaskFormData:_,TasksLoading:O,userTaskSubmitFormData:P,TasksHTTPRequest:B,TasksSubmitLoading:V,clearTaskSchema:z,TASK_PUBLISHED:k,saveProgressDataHook:j,taskOptions:le}=yr(),fe=le!=null&&le.successMessage?le==null?void 0:le.successMessage:"Submitted Successfully";M.useEffect(()=>{if(E!==null&&v((E==null?void 0:E.layout)||[]),a){const ve={viewed_at:new Date().toISOString()};I(P,a,s==null?void 0:s.updateFormData,L3,()=>{},ve)}return()=>{z()}},[a]);const Z=(Te="One or more field is required")=>{i.current.show({severity:"error",summary:"Alert",detail:Te,life:3e3})},W=()=>{Zt.emit("onSubmitUserForm","complete"),te()},ce=()=>{_(P,a,s==null?void 0:s.submitFormData),n(!1)},K=Te=>{I(Te,a,s==null?void 0:s.updateFormData,L3,()=>{var ve;(ve=i==null?void 0:i.current)==null||ve.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};M.useEffect(()=>{const Te=setTimeout(()=>{var ve;P!==null&&((E==null?void 0:E.enableAutoSave)===!0||((ve=E==null?void 0:E.formType)==null?void 0:ve.key)===I7)&&j(P,a,s==null?void 0:s.updateFormData)},2e3);return()=>clearTimeout(Te)},[A,m]);const pe=(Te,ve,me,Se)=>{var se,ge;let De=Se;const q={fieldId:Te.uuid};if(me!=null&&me[Te==null?void 0:Te.uuid]){if((ve==null?void 0:ve.length)>0){e:for(const[,ue]of ve.entries())if(((se=ue==null?void 0:ue.children)==null?void 0:se.length)>0&&(ue==null?void 0:ue.enableConditionalField)===!0){for(const[,oe]of(ue==null?void 0:ue.children.entries())||[])if((ge=oe==null?void 0:oe.attributes)!=null&&ge.required&&(De=pe(oe,oe==null?void 0:oe.options,me,De),De===!1))break e}}}else Zt.emit("OnInvalidFieldCatch",q),De=!1,Z();return De},te=M.useCallback(()=>{var ve,me,Se,De,q,se,ge,ue,oe,ae,Oe,Ne,Ke,ut,pt,ft,kt,Sn,Vt,Nt,$e;let Te=!1;e:for(const[yt,qt]of E.layout.entries())if((qt==null?void 0:qt.isHidden)===!1)for(const[dn,mn]of qt.children.entries())for(const[,En]of mn.children.entries())if(En!=null&&En.rowIsRepeatable){const Vn=P.findIndex(hn=>(hn==null?void 0:hn.rowId)===En.uuid);if(Vn>=0){if(((ve=P[Vn].repeatableFieldsData)==null?void 0:ve.length)<(En==null?void 0:En.minimumEntries)){Z(`Need minimun ${En==null?void 0:En.minimumEntries} entries`),Te=!1;break e}Te=!0}}else for(const[,Vn]of En.children.entries())for(const[,hn]of Vn.children.entries()){if(hn.isValid===0&&hn.isPostField===!0&&(hn==null?void 0:hn.componentType)!=="hidden-field"){const Qt={pageIndex:yt,fieldId:hn.uuid,sectionIndex:dn},Xe=P.findIndex(et=>(et==null?void 0:et.fieldId)===hn.uuid);if(!(Xe===-1||(me=P[Xe])!=null&&me.postData[0]&&(((De=(Se=P[Xe])==null?void 0:Se.postData[0].postValue)==null?void 0:De.length)>0||((q=P[Xe])==null?void 0:q.postData[0].postValue)>0))){console.log("inValidData",Qt),Zt.emit("OnInvalidFieldCatch",Qt),Te=!1,Z();break e}}if((hn==null?void 0:hn.componentType)==="radio-hierarchal"){const Qt=P.findIndex(Xe=>(Xe==null?void 0:Xe.fieldId)===hn.uuid);if(Qt>=0&&(Te=pe(hn,hn==null?void 0:hn.options,(se=P[Qt])==null?void 0:se.postData[0].postValue,!0),!Te))break e}if(((ge=hn==null?void 0:hn.children)==null?void 0:ge.length)>0)for(const[,Qt]of hn.children.entries()){const Xe=Object.keys(Qt);if(Xe[0]){const et=Qt[Xe[0]],ht={fieldId:et.uuid,sectionIndex:dn},jt=P.findIndex(yn=>(yn==null?void 0:yn.fieldId)===et.uuid);if(!((ue=P[jt])!=null&&ue.postData[0]&&(((ae=(oe=P[jt])==null?void 0:oe.postData[0].postValue)==null?void 0:ae.length)>0||((Oe=P[jt])==null?void 0:Oe.postData[0].postValue)>0||((ut=(Ke=(Ne=P[jt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:ut.addressOne)!==""))){Zt.emit("OnInvalidFieldCatch",ht),Te=!1,Z();break e}}}if(hn!=null&&hn.inlineConditionalRules&&((ft=(pt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:pt.rules)==null?void 0:ft.length)>0){for(const[,Qt]of((kt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:kt.rules.entries())||[])for(const[,Xe]of(Qt==null?void 0:Qt.conditions.entries())||[])for(const[,et]of(Xe==null?void 0:Xe.children.entries())||[])if(et.isValid===0){const ht={fieldId:et.uuid,sectionIndex:dn},jt=P.findIndex(yn=>(yn==null?void 0:yn.fieldId)===et.uuid);if(jt>=0&&!((Sn=P[jt])!=null&&Sn.postData[0]&&(((Nt=(Vt=P[jt])==null?void 0:Vt.postData[0].postValue)==null?void 0:Nt.length)>0||(($e=P[jt])==null?void 0:$e.postData[0].postValue)>0))){Zt.emit("OnInvalidFieldCatch",ht),Te=!1,Z();break e}}}Te=!0}Te&&n(!0)},[P]),ee=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-5"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"})]})}),Y=()=>o.jsxs("div",{className:"text-right",children:[o.jsx(Ft,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(Ft,{label:"Yes",icon:"pi pi-check",onClick:()=>ce(),autoFocus:!0})]});return o.jsxs("div",{style:{position:"relative"},children:[e&&o.jsxs("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"30vw",padding:"20px",backgroundColor:"white",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",borderRadius:"8px",zIndex:1e3},children:[o.jsx("p",{className:"text-center",children:u}),Y()]}),O||V||B?o.jsx("div",{className:"w-full",children:o.jsx(ee,{})}):o.jsxs(o.Fragment,{children:[(((J=E==null?void 0:E.formType)==null?void 0:J.key)===E7||((he=E==null?void 0:E.formType)==null?void 0:he.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${l===!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:S==null?void 0:S.task_title}),o.jsx("div",{className:"ml-4 ",children:w===Lee&&o.jsx(_7,{classes:"",value:"COMPLETED",level:"success"})})]}),c===!1&&w===k?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:fe})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[O&&o.jsx(ee,{}),!O&&o.jsxs(o.Fragment,{children:[o.jsx(Hte,{}),o.jsx("div",{className:`${d===!0?f:" "} mt-2 mb-2`,children:o.jsx(Lf,{backend:Vf,children:E!==null&&((be=E==null?void 0:E.layout)==null?void 0:be.length)&&o.jsx(g6,{})})}),o.jsx(U3,{ref:i}),((Ee=E==null?void 0:E.formType)==null?void 0:Ee.key)!==""&&(w===L3||w===null)&&o.jsx("span",{children:ec.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(Ft,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>K(P),loading:x,disabled:V}),o.jsx(Ft,{label:"Submit",onClick:()=>W(),disabled:x,loading:V})]})}),document.body)})]})]})})]})}),((ye=E==null?void 0:E.formType)==null?void 0:ye.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.jsx("div",{className:"invoice-header",children:o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[S==null?void 0:S.task_title," "]})})}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(Lf,{backend:Vf,children:E!==null&&((Ae=E==null?void 0:E.layout)==null?void 0:Ae.length)&&o.jsx(g6,{})})}),((ne=E==null?void 0:E.formType)==null?void 0:ne.key)!==""&&(w===1||w===null&&r===!1)&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Ft,{className:"p-button-primary",label:"Accept",onClick:()=>W(),loading:x})})})]})})})})})}),(((U=E==null?void 0:E.formType)==null?void 0:U.key)==="page"||((re=E==null?void 0:E.formType)==null?void 0:re.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(Lf,{backend:Vf,children:E!==null&&((G=E==null?void 0:E.layout)==null?void 0:G.length)&&o.jsx(g6,{})})})})})}),((de=E==null?void 0:E.formType)==null?void 0:de.key)==="training"&&o.jsx(oCe,{renderIn:Lte,taskSchema:E,taskId:a,endPoints:s}),((Ie=E==null?void 0:E.formType)==null?void 0:Ie.key)==="exam"&&o.jsx(lCe,{taskId:a,endPoints:s,onStart:h})]})]})};/**
4288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(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:(Uxe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var wj={daysInHours:!1,zeroPadTime:2};function Hxe(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)),g=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(h))*1e3),v=Math.abs(g)/1e3;return{total:g,days:Math.floor(v/(3600*24)),hours:Math.floor(v/3600%24),minutes:Math.floor(v/60%60),seconds:Math.floor(v%60),milliseconds:Number((v%1*1e3).toFixed()),completed:g<=0}}function Yxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},wj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?tm(r+n*24,c):tm(r,f);return{days:l?"":tm(n,d),hours:h,minutes:tm(i,f),seconds:tm(a,f)}}var Sj=function(t){yj(n,t);var e=Aj(n);function n(){var r;return vj(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 bj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?M.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(M.Component);Sj.propTypes={count:ua.number,children:ua.element,onComplete:ua.func};var nm=function(t){yj(n,t);var e=Aj(n);function n(r){var i;if(vj(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 bj(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 Hxe(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:Yxe(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 M.createElement(Sj,{ref:this.setLegacyCountdownRef,count:a,onComplete:l},s)}var c=this.props,u=c.className,d=c.overtime,f=c.children,h=c.renderer,g=this.getRenderProps();if(h)return h(g);if(f&&this.state.timeDelta.completed&&!d)return M.cloneElement(f,{countdown:g});var v=g.formatted,m=v.days,A=v.hours,w=v.minutes,T=v.seconds;return M.createElement("span",{className:u},g.total<0?"-":"",m,m?":":"",A,":",w,":",T)}}]),n}(M.Component);nm.defaultProps=Object.assign(Object.assign({},wj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),nm.propTypes={date:ua.oneOfType([ua.instanceOf(Date),ua.string,ua.number]),daysInHours:ua.bool,zeroPadTime:ua.number,zeroPadDays:ua.number,controlled:ua.bool,intervalDelay:ua.number,precision:ua.number,autoStart:ua.bool,overtime:ua.bool,className:ua.string,children:ua.element,renderer:ua.func,now:ua.func,onMount:ua.func,onStart:ua.func,onPause:ua.func,onStop:ua.func,onTick:ua.func,onComplete:ua.func};const Kxe=({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(nm,{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})})},Xxe=M.memo(Kxe),Rxe=t=>{var d,f,h,g;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=M.useState(Date.now()),[s,l]=M.useState(!1),c=M.useCallback(()=>{a(Date.now()),l(!1)},[r]);M.useEffect(()=>{c()},[r,c]);const u=v=>(v.seconds<10&&(v.seconds="0"+v.seconds),v.minutes===0&&(v.minutes="0"+v.minutes),v.completed&&!s?(l(!0),setTimeout(()=>{n()},500),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:{color:"black"},children:[v.minutes,":",v.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(nm,{renderer:u,date:i+parseInt((g=(h=e==null?void 0:e.time_limit)==null?void 0:h.time_limit_info)==null?void 0:g.time_per_question)*1e3,intervalDelay:0},i)})},Gxe=()=>{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(()=>{}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},Wxe="1",xj=t=>{var ve,me,Se,De,q,se,ge,ue;const e=oe=>{const[ae,Oe]=M.useState(oe),Ne=M.useRef(ae);return M.useEffect(()=>{Ne.current=ae},[ae]),[ae,Ne,Oe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=yr(),[s,l]=M.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:g,setAssessmentModal:v=()=>{},saveNewQuizData:m}=t,{quizStartAlert:A}=Gxe(),{userSelectedLanguage:w}=cn(),[T,,x]=e(0),{media:E}=Jt(),S=(ve=E==null?void 0:E.image)!=null&&ve.MediaImage?(me=E==null?void 0:E.image)==null?void 0:me.MediaImage:o.jsx(o.Fragment,{}),[I,_,O]=e(null),[P,B]=M.useState(!1),[V,,z]=e([]),[k,j]=M.useState(!1),[le,fe]=M.useState(!1),[Z,W]=M.useState(0),[ce,K]=M.useState(0),[pe,te]=M.useState(0),[ee,Y]=M.useState(!1),[J,he]=M.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},M.useEffect(()=>{k||j(!0)},[V,P,k]),M.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{K(u.quizConfiguration.quizPassMark)},Ee=M.useCallback((oe,ae,Oe,Ne,Ke)=>{const ut=[...V];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const pt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},ft=V.findIndex(kt=>(kt==null?void 0:kt.uuid)===Ke.uuid);ft>=0?(ut[ft]={...ut[ft],...pt},z(ut)):z([...V,pt])}},[I]),ye=oe=>{var ae;if(T!==0){const Oe=[...V],Ne=T-1;O((ae=Oe[Ne])==null?void 0:ae.selectedAnswer[w==null?void 0:w.type]),B(!0),x(Ne),Ae(0)}},Ae=oe=>{for(const ae of V)if(ae.questionIndex===T+oe){O(ae.selectedAnswerEnglish);break}},ne=(oe,ae,Oe,Ne)=>{var pt;const Ke=[...I];if(oe)Ke.push(ae);else{const ft=Ke.findIndex(kt=>kt===ae);ft>=0&&Ke.splice(ft,1)}O(Ke);const ut=[...V];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let ft=!1;for(const[,Vt]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(Vt.isCorrect===!0)if(It.includes(Ke,(pt=Vt==null?void 0:Vt.answersText)==null?void 0:pt[w==null?void 0:w.type]))ft=!0;else{ft=!1;break}const kt={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:ft,selectedAnswer:Oe.answersText,viewed:!0},Sn=V.findIndex(Vt=>(Vt==null?void 0:Vt.uuid)===Ne.uuid);Sn>=0?(ut[Sn]={...ut[Sn],...kt},z(ut)):z([...V,kt])}},U=M.useCallback(()=>{var ut,pt,ft,kt,Sn,Vt,Nt,$e,yt,qt,dn,mn;const oe=_.current,ae=It.findIndex((ut=u==null?void 0:u.quizElements[T])==null?void 0:ut.answerOptions,function(En){return En.isCorrect===!0}),Oe=u==null?void 0:u.quizElements[T],Ne=(ft=(pt=Oe==null?void 0:Oe.answerOptions[ae])==null?void 0:pt.answersText)!=null&&ft[w==null?void 0:w.type]?(Sn=(kt=Oe==null?void 0:Oe.answerOptions[ae])==null?void 0:kt.answersText)==null?void 0:Sn[w==null?void 0:w.type]:"",Ke=(Vt=V[T])!=null&&Vt.isCorrect?1:0;if(u!=null&&u.quizElements&&T+1!==(u==null?void 0:u.quizElements.length)){const En={assessment_user_attempt_id:($e=i==null?void 0:i.assesment_user_attempts[((Nt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Nt.length)-1])==null?void 0:$e.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(yt=Oe.questionText)==null?void 0:yt[w==null?void 0:w.type],question_uid:Oe==null?void 0:Oe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(oe)?oe.toString():oe,is_correct_answer:Ke};r(En),O(null),x(T+1),l(new Date),Ae(2)}else if((u==null?void 0:u.quizElements.length)===T+1){const En={assessment_user_attempt_id:(dn=i==null?void 0:i.assesment_user_attempts[((qt=i==null?void 0:i.assesment_user_attempts)==null?void 0:qt.length)-1])==null?void 0:dn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Oe==null?void 0:Oe.uuid,question:(mn=Oe.questionText)==null?void 0:mn[w==null?void 0:w.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(oe)?oe.toString():oe,is_correct_answer:Ke};r(En),re(),de()}B(!1)},[T,V]),re=()=>{fe(!0)},G=()=>{Te?(console.log("Restart"),g(B3),m(),j(!0),A(),be(),x(0),O(null),B(!1),z([]),fe(!1),W(0),te(0),Y(!1),he({isCorrect:null,text:null})):(g(n2),v(!1))},de=()=>{var Ke,ut;let oe=0,ae=0,Oe=!1;for(const pt of V)pt!=null&&pt.isCorrect&&oe++;W(oe),ae=oe/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,ae=Math.round(ae),te(ae),Oe=ae>=ce,Y(Oe);const Ne={...u,...i,result:ae,status:Oe,selectedAnswers:V};d(Ne),n({session_id:c,is_pass:Oe?1:0,score:oe,out_of:(ut=u==null?void 0:u.quizElements)==null?void 0:ut.length,finish_time:new Date,status:1})},Ie=()=>{var oe,ae,Oe,Ne,Ke,ut,pt;if(((oe=u==null?void 0:u.quizElements[T])==null?void 0:oe.answerInputType)==="radio"){const ft=It.findIndex((ae=u==null?void 0:u.quizElements[T])==null?void 0:ae.answerOptions,function(kt){return kt.isCorrect===!0});I===((Ke=(Ne=(Oe=u==null?void 0:u.quizElements[T])==null?void 0:Oe.answerOptions[ft])==null?void 0:Ne.answersText)==null?void 0:Ke[w==null?void 0:w.type])?he({isCorrect:!0,text:I}):he({isCorrect:!1,text:I})}if(((ut=u==null?void 0:u.quizElements[T])==null?void 0:ut.answerInputType)==="checkbox"){const ft=(pt=u==null?void 0:u.quizElements[T])==null?void 0:pt.answerOptions.filter(kt=>kt.isCorrect===!0);if(I!=null&&I.length){const kt=I==null?void 0:I.map(Sn=>({isCorrect:ft==null?void 0:ft.some(Vt=>{var Nt;return((Nt=Vt==null?void 0:Vt.answersText)==null?void 0:Nt[w==null?void 0:w.type])===Sn}),text:Sn}));he(kt)}}},Te=(i==null?void 0:i.noOfAttempts)-((Se=i==null?void 0:i.assesment_user_attempts)==null?void 0:Se.length)>0&&!ee;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[le&&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"," ",(De=a==null?void 0:a.assessment)==null?void 0:De.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(q=u==null?void 0:u.quizElements)==null?void 0:q.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",pe,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",ce,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ee?o.jsx($c,{severity:"success",value:"Passed"}):o.jsx($c,{severity:"danger",value:"Failed"})]}),ee&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{label:Te?"Restart":"End",onClick:()=>G()})})})]})]})})}),le&&((se=i==null?void 0:i.assessment_type)==null?void 0:se.key)===Wxe&&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:V==null?void 0:V.map((oe,ae)=>{var Oe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Oe=oe==null?void 0:oe.question)==null?void 0:Oe[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(Ne=oe==null?void 0:oe.selectedAnswer)==null?void 0:Ne[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),oe!=null&&oe.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},ae)})})})]}),f!==UD?o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{g(n2)}})})}):o.jsx(o.Fragment,{}),k&&!le&&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(Xxe,{assessmentData:i,setDisplaySummary:fe}),o.jsx(Rxe,{currentQuestionIndex:T,assessmentData:i,onNextQuestion:U})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(ge=u==null?void 0:u.quizElements)==null?void 0:ge.map((oe,ae)=>{var Oe,Ne,Ke,ut,pt;return o.jsxs("div",{className:"quiz-card-box",children:[T===ae&&((Oe=oe==null?void 0:oe.questionTextImage)==null?void 0:Oe[w==null?void 0:w.type])&&((Ne=oe==null?void 0:oe.questionTextImage)==null?void 0:Ne[w==null?void 0:w.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(S,{mediaId:(Ke=oe==null?void 0:oe.questionTextImage)==null?void 0:Ke[w==null?void 0:w.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:T===ae&&((ut=oe==null?void 0:oe.questionText)==null?void 0:ut[w==null?void 0:w.type])}),T===ae&&((pt=oe==null?void 0:oe.answerOptions)==null?void 0:pt.map((ft,kt)=>(oe==null?void 0:oe.answerInputType)==="checkbox"?o.jsx(M.Fragment,{children:o.jsx(Pxe,{onChangeCheckbox:ne,setSelectedOption:O,quiz:ft,userSelectedLanguage:w,onSetAnswer:Ee,setIsOptionSelected:B,index:kt,eleIndex:ae,ele:oe,setCorrectAnswerCheck:he,correctAnswerCheck:J,selectedOption:I})},`checkbox-question-${kt}`):o.jsx(M.Fragment,{children:o.jsx(kxe,{setSelectedOption:O,quiz:ft,userSelectedLanguage:w,onSetAnswer:Ee,setIsOptionSelected:B,index:kt,eleIndex:ae,ele:oe,setCorrectAnswerCheck:he,correctAnswerCheck:J,selectedOption:I})},`radio-question-${kt}`)))]},ae)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",T+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),T>0&&o.jsx(Ft,{size:"large",className:"mx-2",label:"Previous",onClick:oe=>ye()}),((i==null?void 0:i.skippable)===!0||P===!0)&&o.jsx(Ft,{size:"large",label:(u==null?void 0:u.quizElements.length)===T+1?"Finish":P===!0?"Next":"Skip",onClick:U}),P===!0&&((ue=i==null?void 0:i.assessment_type)==null?void 0:ue.key)==="1"&&o.jsx(Ft,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ie()})]})]})]})})},Qxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=yr();M.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var g,v,m,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(m=(v=(g=d==null?void 0:d.layout[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:m.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=Um.shuffle(h).map((w,T)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,T)=>({...w,answerOptions:Um.shuffle(w==null?void 0:w.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(g=>(g==null?void 0:g.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(xj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},Jxe=t=>{var m,A;const{currentItem:e,videoJsOptions:n}=t,r=M.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=yr(),{media:l}=Jt(),c=(m=l==null?void 0:l.video)!=null&&m.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=w=>{r.current=w,w.on("waiting",()=>{_t.log("player is waiting")}),w.on("dispose",()=>{_t.log("player will dispose")})},d=w=>{if(i!==null){const T=[...i],x=T==null?void 0:T.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid));x>=0&&(T[x].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const T=[...i],x=T==null?void 0:T.findIndex(E=>(E==null?void 0:E.fieldId)===(w==null?void 0:w.uuid));x>=0&&(i[x]={...i[x],isSeen:!0},a(T),h("Ended"))},h=w=>{const T=r.current,x=i!==null?i==null?void 0:i.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid)):-1;x>=0&&i[x].logs.push({action:w,videoTime:i[x].seenTime,totalTime:T.duration,timeState:new Date})},g=w=>{const{mediaId:T}=w,[x,E]=M.useState(!1);return M.useEffect(()=>{if(!x&&i!==null){const S=i.findIndex(I=>(I==null?void 0:I.fieldId)===(e==null?void 0:e.uuid));if(S>=0){E(!0);const I=r.current;I.currentTime=i[S].seenTime}E(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:T,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},v=M.useCallback(w=>o.jsx(g,{mediaId:w}),[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:v(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(nV,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},p6=t=>{var I,_,O,P,B,V;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=yr(),[a]=M.useState(!1),[,s]=M.useState(fy),[l,c]=M.useState([]),[u,d]=M.useState(null),{userSelectedLanguage:f}=cn(),[h,g]=M.useState(null),[v,m]=M.useState(null),A=(I=i==null?void 0:i.training)!=null&&I.getAssessmentByIdFromStore?(_=i==null?void 0:i.training)==null?void 0:_.getAssessmentByIdFromStore:()=>{},w=(O=i==null?void 0:i.training)!=null&&O.TrainingOverView?(P=i==null?void 0:i.training)==null?void 0:P.TrainingOverView:()=>o.jsx(o.Fragment,{}),[T,x]=M.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});M.useEffect(()=>{a||E()},[a]);const E=()=>{var z,k,j,le,fe,Z,W,ce,K,pe,te,ee,Y,J,he,be,Ee,ye,Ae,ne,U;switch(g((j=(k=(z=e[0])==null?void 0:z.children[0])==null?void 0:k.children[0])==null?void 0:j.children[0]),m(e[0]),(W=(Z=(fe=(le=e[0])==null?void 0:le.children[0])==null?void 0:fe.children[0])==null?void 0:Z.children[0])==null?void 0:W.componentType){case"video":x({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(ee=(te=(pe=(K=(ce=e[0])==null?void 0:ce.children[0])==null?void 0:K.children[0])==null?void 0:pe.children[0])==null?void 0:te.media_url)==null?void 0:ee.english}]});break;case"image":s((Ee=(be=(he=(J=(Y=e[0])==null?void 0:Y.children[0])==null?void 0:J.children[0])==null?void 0:he.children[0])==null?void 0:be.media_url)==null?void 0:Ee.english);break;case"document":c((U=(ne=(Ae=(ye=e[0])==null?void 0:ye.children[0])==null?void 0:Ae.children[0])==null?void 0:ne.children[0])==null?void 0:U.documents);break}},S=z=>{switch(z==null?void 0:z.componentType){case"video":return o.jsx("div",{children:o.jsx(Jxe,{videoJsOptions:T,currentItem:z},z==null?void 0:z.uuid)});case"image":return o.jsx(rk,{field:z,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,j)=>o.jsx("li",{children:o.jsx("a",{href:k==null?void 0:k.url,children:k==null?void 0:k.url})},`document-item-${j}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Qxe,{renderIn:UD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:z}):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:[(B=v==null?void 0:v.heading)==null?void 0:B[f==null?void 0:f.type]," -"," ",(V=h==null?void 0:h.title)==null?void 0:V[f==null?void 0:f.type]," "]}),S(h),n&&o.jsx(w,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((z,k)=>{var j,le;return o.jsxs(ci,{className:"mb-5",header:(j=z==null?void 0:z.heading)==null?void 0:j.english,toggleable:!0,children:[o.jsx("p",{children:(le=z==null?void 0:z.subHeadingText)==null?void 0:le[f==null?void 0:f.type]}),z.children.map((fe,Z)=>{const W=`${Z}`;return o.jsx("div",{children:fe.children.map((ce,K)=>{const pe=`${Z}-${W}`;return o.jsx(Fxe,{setCurrentSection:m,section:z,setCurrentItem:g,currentItem:h,path:pe,fields:ce.children,setvideoJsOptions:x,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${K}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${k}`)})})]})};p6.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},p6.propTypes={showInfoPanel:Cn.bool,sections:Cn.array,updateTrainingProgress:Cn.func};const Zxe=()=>{var r;const{formBuilderFormLayout:t}=cn(),{isPreview:e}=Jt(),n=(i,a,s)=>o.jsx(Nxe,{data:i,path:a,pageIndex:s},`page-${i.uuid}`);return e?o.jsx(p6,{sections:((r=t[0])==null?void 0:r.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((i,a)=>{const s=`${a}`;return o.jsx("div",{children:n(i,s,a)},`exam-page-${a}`)})})})},eCe=t=>{var I,_,O,P,B;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=cn(),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]=M.useState(),[u,d]=M.useState([]),{media:f}=Jt(),h=(I=f==null?void 0:f.image)!=null&&I.MediaImage?(_=f==null?void 0:f.image)==null?void 0:_.MediaImage:o.jsx(o.Fragment,{}),g={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},[v,m]=M.useState(0),[A,w]=M.useState(!1);function T(V,z){return(V==null?void 0:V.length)<=z?V:(V==null?void 0:V.slice(0,z))+"..."}M.useEffect(()=>{w(!0)},[]);const x=()=>{v!==0&&m(v-1)},E=()=>{if(g!=null&&g.quizElements&&v+1!==(g==null?void 0:g.quizElements.length))m(v+1);else if((g==null?void 0:g.quizElements.length)===v+1)return},S=(V,z)=>{let k=[...u];V.checked?k.push(z):k=k.filter(j=>(j==null?void 0:j[e==null?void 0:e.type])!==(z==null?void 0:z[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:[g==null?void 0:g.name," "]}),(O=g==null?void 0:g.quizElements)==null?void 0:O.map((V,z)=>{var k,j,le,fe,Z,W,ce,K,pe;return(V==null?void 0:V.answerInputType)==="radio"?o.jsxs("div",{className:v===z?"card":" flex align-items-center p-field-radiobutton",children:[((k=V==null?void 0:V.questionTextImage)==null?void 0:k[e==null?void 0:e.type])&&((j=V==null?void 0:V.questionTextImage)==null?void 0:j[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(le=V==null?void 0:V.questionTextImage)==null?void 0:le[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:v===z&&((fe=V==null?void 0:V.questionText)==null?void 0:fe[e==null?void 0:e.type])}),v===z&&((Z=V==null?void 0:V.answerOptions)==null?void 0:Z.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:`${ee}-preview`,value:te==null?void 0:te.answersText,checked:l===ee,onChange:()=>{c(ee)}}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${ee}-preview`,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z):(V==null?void 0:V.answerInputType)==="checkbox"?o.jsxs("div",{className:v===z?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:v===z&&((W=V==null?void 0:V.questionText)==null?void 0:W[e==null?void 0:e.type])}),v===z&&((ce=V==null?void 0:V.answerOptions)==null?void 0:ce.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Br,{inputId:ee,value:te==null?void 0:te.answersText,onChange:Ee=>{S(Ee,te==null?void 0:te.answersText)},checked:u.some(Ee=>{var ye;return(Ee==null?void 0:Ee[e==null?void 0:e.type])===((ye=te==null?void 0:te.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ee,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z):o.jsxs("div",{className:v===z?"card":"",children:[o.jsx("h3",{className:"mb-5",children:v===z&&((K=V==null?void 0:V.questionText)==null?void 0:K[e==null?void 0:e.type])}),v===z&&((pe=V==null?void 0:V.answerOptions)==null?void 0:pe.map((te,ee)=>{var Y,J,he,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:ee,value:te==null?void 0:te.answersText,onChange:()=>{}}),((Y=te.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((J=te.answersTextImage)==null?void 0:J[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(he=te.answersTextImage)==null?void 0:he[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:ee,children:(be=te.answersText)==null?void 0:be[e==null?void 0:e.type]})]},ee)}))]},z)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",v+1+"/"+(g==null?void 0:g.quizElements.length)]}),o.jsx("br",{}),v>0&&o.jsx(Ft,{text:!0,className:"mx-2",label:"Previous",onClick:()=>x()}),o.jsx(Ft,{text:!0,label:(g==null?void 0:g.quizElements.length)===v+1?"Finish":"Next",onClick:()=>E()})]})]}),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:(P=g==null?void 0:g.quizElements)==null?void 0:P.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($c,{className:"mr-2",severity:"success",value:"True"}):o.jsx($c,{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:(B=g==null?void 0:g.quizElements)==null?void 0:B.map((V,z)=>{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:T(((k=V==null?void 0:V.questionText)==null?void 0:k[e==null?void 0:e.type])||"",30)})})},`preview-question-${z}`)})})})]})]})]})]})},tCe=t=>{var E;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=M.useRef(null),{handleDrop:f}=cn(),{isRenderView:h,isAdvanceView:g,isPreview:v}=Jt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:S=>({isDragging:S.isDragging()})}),T={position:"relative",opacity:m&&!h?.25:1};A(d);const x=(S,I,_,O,P,B,V)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:S,data:S,path:I,pageIndex:_,sectionIndex:O,rowIndex:P,columnIndex:B,fieldIndex:V},`component-${n}-${S==null?void 0:S.uuid}`);return o.jsx("div",{style:g?T:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!1?o.jsxs("div",{children:[e.children.length>0&&((E=e==null?void 0:e.children)==null?void 0:E.map((S,I)=>{const _=`${n}-${I}`;return o.jsxs(M.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:_,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(S,_,r,i,a,s,I)]},_)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Fr,{isAdvanceView:g,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(eCe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},nCe={},rCe=t=>{var v,m,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=M.useRef(null),{isRenderView:u}=Jt(),[{isDragging:d},f]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:T=>({isDragging:T.isDragging()})}),h=d?.25:1;f(c);const g=(T,x,E,S,I,_)=>o.jsx(tCe,{page:l,row:e,section:s,data:T,path:x,pageIndex:E,sectionIndex:S,rowIndex:I,columnIndex:_},`column-${n}-${T.uuid}`);return o.jsx("div",{style:{...nCe,opacity:h,marginTop:`${(v=e==null?void 0:e.margin)==null?void 0:v.top}px`,marginBottom:`${(m=e==null?void 0:e.margin)==null?void 0:m.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(w=e==null?void 0:e.margin)==null?void 0:w.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((T,x)=>{const E=`${n}-${x}`;return o.jsx(M.Fragment,{children:g(T,E,r,i,a,x)},E)})})})},iCe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Jt(),[f,h]=M.useState(!1),[g,v]=M.useState(!1),[m,A]=M.useState(null),w=M.useRef(null),[{isDragging:T},x]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:I=>({isDragging:I.isDragging()})}),E=T?.25:1;x(w);const S=(I,_,O,P,B)=>o.jsx(rCe,{page:s,section:a,data:I,path:_,pageIndex:O,sectionIndex:P,rowIndex:B},`row-${n}-${I.uuid}`);return o.jsxs("div",{style:{opacity:E,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(ap,{saveBuilderElementModalData:m,setSaveBuilderElementModalData:A,saveElementModal:g,setSaveElementModal:v}),f===!0&&o.jsx(ip,{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((I,_)=>{const O=`${n}-${_}`;return o.jsx(M.Fragment,{children:S(I,O,r,i,_)},O)})})]})},aCe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Jt(),a=M.useRef(null),[{},s]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(iCe,{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(M.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},sCe=()=>{const{formBuilderFormLayout:t}=cn(),e=(n,r,i)=>o.jsx(aCe,{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}`)})})})},g6=()=>{const{renderType:t}=Jt();switch(t){case W0:return o.jsx(QSe,{});case gf:return o.jsx(axe,{});case mf:return o.jsx(fxe,{});case $m:return o.jsx(Cxe,{});case jm:return o.jsx(Zxe,{});case vf:return o.jsx(sCe,{})}},oCe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=yr();return M.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(p6,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},lCe=({taskId:t,onStart:e})=>{var w,T,x,E,S,I,_,O,P,B,V,z,k,j,le,fe,Z,W,ce;const[n,r]=M.useState(n2),[i,a]=M.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=yr();M.useEffect(()=>{var K,pe,te,ee,Y;if(((K=c==null?void 0:c.formType)==null?void 0:K.key)==="exam"){let J=[...((ee=(te=(pe=c==null?void 0:c.layout[0])==null?void 0:pe.children[0])==null?void 0:te.children[0])==null?void 0:ee.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(J=Um.shuffle(J).map(he=>({...he}))),l!=null&&l.randomiseAnswers&&(J=J.map(he=>({...he,answerOptions:Um.shuffle(he==null?void 0:he.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(J=J.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(Y=u==null?void 0:u.assessment)==null?void 0:Y.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:J})}},[c]);const f=o.jsxs("div",{children:[o.jsx(Ft,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>r(n2)}),o.jsx(Ft,{label:"Start Immediately",onClick:()=>{g(),r(B3)}})]}),h=K=>K.completed?(g(),r(B3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",K.seconds," seconds"]}),g=()=>{const K={task_id:t,session_id:tt(),start_time:new Date,finish_time:new Date};a(pe=>({...pe,...K})),d(K,a)},v=()=>{r(m7),g()},m=((w=l==null?void 0:l.assesment_user_attempts)==null?void 0:w.length)>0?(T=l==null?void 0:l.assesment_user_attempts)==null?void 0:T.some(K=>(K==null?void 0:K.is_pass)===1):!1;function A(){var be;const K=l==null?void 0:l.assesment_user_attempts[0],pe=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],te=K==null?void 0:K.start_time,ee=pe==null?void 0:pe.finish_time;if(!pe||!te||!ee)return"";const Y=Fn.utc(te),he=Fn.utc(ee).diff(Y,"seconds");return he<60?he+" seconds":Math.floor(he/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===m7&&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(nm,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===n2&&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:(x=u==null?void 0:u.assessment)==null?void 0:x.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:Fn(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:(E=l==null?void 0:l.assesment_user_attempts)==null?void 0:E.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)-((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.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=i==null?void 0:i.quizElements)==null?void 0:I.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&&((O=(_=l==null?void 0:l.time_limit)==null?void 0:_.type)==null?void 0:O.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((B=(P=l==null?void 0:l.time_limit)==null?void 0:P.time_limit_info)==null?void 0:B.num_of_mins)," ","mins"]}),l&&((z=(V=l==null?void 0:l.time_limit)==null?void 0:V.type)==null?void 0:z.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((j=(k=l==null?void 0:l.time_limit)==null?void 0:k.time_limit_info)==null?void 0:j.time_per_question)*((le=i==null?void 0:i.quizElements)==null?void 0:le.length)/60)," ","mins"]}),l&&((Z=(fe=l==null?void 0:l.time_limit)==null?void 0:fe.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)-((ce=l==null?void 0:l.assesment_user_attempts)==null?void 0:ce.length)>0?o.jsx(o.Fragment,{children:o.jsx(Ft,{size:"large",label:m===!0?"Passed":"Start now",disabled:m,className:"p-button-info",onClick:()=>{r(m7),e&&e()}})}):o.jsx(_7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===B3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(xj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:v,saveNewQuizData:g,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},cCe=t=>{var J,he,be,Ee,ye,Ae,ne,U,re,G,de,Ie;const[e,n]=M.useState(!1),{isAdmin:r}=Jt(),i=M.useRef(!1),{taskId:a,endPoints:s,isRenderView:l,showFieldsAfterSubmit:c,messageWhileSubmittingForm:u,enableFormScroll:d,formScrollHeight:f="scroll-height-225",onStart:h,setAssessmentModal:g=()=>{}}=t,{setLayout:v}=cn(),{taskProgressValue:m,taskRegisterData:A,task_status:w,assessmentData:T,taskProgressLoading:x,taskSchema:E,taskData:S,updateTaskFormData:I,submitTaskFormData:_,TasksLoading:O,userTaskSubmitFormData:P,TasksHTTPRequest:B,TasksSubmitLoading:V,clearTaskSchema:z,TASK_PUBLISHED:k,saveProgressDataHook:j,taskOptions:le}=yr(),fe=le!=null&&le.successMessage?le==null?void 0:le.successMessage:"Submitted Successfully";M.useEffect(()=>{if(E!==null&&v((E==null?void 0:E.layout)||[]),a){const ve={viewed_at:new Date().toISOString()};I(P,a,s==null?void 0:s.updateFormData,L3,()=>{},ve)}return()=>{z()}},[a]);const Z=(Te="One or more field is required")=>{i.current.show({severity:"error",summary:"Alert",detail:Te,life:3e3})},W=()=>{Zt.emit("onSubmitUserForm","complete"),te()},ce=()=>{_(P,a,s==null?void 0:s.submitFormData),n(!1)},K=Te=>{I(Te,a,s==null?void 0:s.updateFormData,L3,()=>{var ve;(ve=i==null?void 0:i.current)==null||ve.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};M.useEffect(()=>{const Te=setTimeout(()=>{var ve;P!==null&&((E==null?void 0:E.enableAutoSave)===!0||((ve=E==null?void 0:E.formType)==null?void 0:ve.key)===I7)&&j(P,a,s==null?void 0:s.updateFormData)},2e3);return()=>clearTimeout(Te)},[A,m]);const pe=(Te,ve,me,Se)=>{var se,ge;let De=Se;const q={fieldId:Te.uuid};if(me!=null&&me[Te==null?void 0:Te.uuid]){if((ve==null?void 0:ve.length)>0){e:for(const[,ue]of ve.entries())if(((se=ue==null?void 0:ue.children)==null?void 0:se.length)>0&&(ue==null?void 0:ue.enableConditionalField)===!0){for(const[,oe]of(ue==null?void 0:ue.children.entries())||[])if((ge=oe==null?void 0:oe.attributes)!=null&&ge.required&&(De=pe(oe,oe==null?void 0:oe.options,me,De),De===!1))break e}}}else Zt.emit("OnInvalidFieldCatch",q),De=!1,Z();return De},te=M.useCallback(()=>{var ve,me,Se,De,q,se,ge,ue,oe,ae,Oe,Ne,Ke,ut,pt,ft,kt,Sn,Vt,Nt,$e;let Te=!1;e:for(const[yt,qt]of E.layout.entries())if((qt==null?void 0:qt.isHidden)===!1)for(const[dn,mn]of qt.children.entries())for(const[,En]of mn.children.entries())if(En!=null&&En.rowIsRepeatable){const Vn=P.findIndex(hn=>(hn==null?void 0:hn.rowId)===En.uuid);if(Vn>=0){if(((ve=P[Vn].repeatableFieldsData)==null?void 0:ve.length)<(En==null?void 0:En.minimumEntries)){Z(`Need minimun ${En==null?void 0:En.minimumEntries} entries`),Te=!1;break e}Te=!0}}else for(const[,Vn]of En.children.entries())for(const[,hn]of Vn.children.entries()){if(hn.isValid===0&&hn.isPostField===!0&&(hn==null?void 0:hn.componentType)!=="hidden-field"){const Qt={pageIndex:yt,fieldId:hn.uuid,sectionIndex:dn},Xe=P.findIndex(et=>(et==null?void 0:et.fieldId)===hn.uuid);if(!(Xe===-1||(me=P[Xe])!=null&&me.postData[0]&&(((De=(Se=P[Xe])==null?void 0:Se.postData[0].postValue)==null?void 0:De.length)>0||((q=P[Xe])==null?void 0:q.postData[0].postValue)>0))){console.log("inValidData",Qt),Zt.emit("OnInvalidFieldCatch",Qt),Te=!1,Z();break e}}if((hn==null?void 0:hn.componentType)==="radio-hierarchal"){const Qt=P.findIndex(Xe=>(Xe==null?void 0:Xe.fieldId)===hn.uuid);if(Qt>=0&&(Te=pe(hn,hn==null?void 0:hn.options,(se=P[Qt])==null?void 0:se.postData[0].postValue,!0),!Te))break e}if(((ge=hn==null?void 0:hn.children)==null?void 0:ge.length)>0)for(const[,Qt]of hn.children.entries()){const Xe=Object.keys(Qt);if(Xe[0]){const et=Qt[Xe[0]],ht={fieldId:et.uuid,sectionIndex:dn},jt=P.findIndex(yn=>(yn==null?void 0:yn.fieldId)===et.uuid);if(!((ue=P[jt])!=null&&ue.postData[0]&&(((ae=(oe=P[jt])==null?void 0:oe.postData[0].postValue)==null?void 0:ae.length)>0||((Oe=P[jt])==null?void 0:Oe.postData[0].postValue)>0||((ut=(Ke=(Ne=P[jt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:ut.addressOne)!==""))){Zt.emit("OnInvalidFieldCatch",ht),Te=!1,Z();break e}}}if(hn!=null&&hn.inlineConditionalRules&&((ft=(pt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:pt.rules)==null?void 0:ft.length)>0){for(const[,Qt]of((kt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:kt.rules.entries())||[])for(const[,Xe]of(Qt==null?void 0:Qt.conditions.entries())||[])for(const[,et]of(Xe==null?void 0:Xe.children.entries())||[])if(et.isValid===0){const ht={fieldId:et.uuid,sectionIndex:dn},jt=P.findIndex(yn=>(yn==null?void 0:yn.fieldId)===et.uuid);if(jt>=0&&!((Sn=P[jt])!=null&&Sn.postData[0]&&(((Nt=(Vt=P[jt])==null?void 0:Vt.postData[0].postValue)==null?void 0:Nt.length)>0||(($e=P[jt])==null?void 0:$e.postData[0].postValue)>0))){Zt.emit("OnInvalidFieldCatch",ht),Te=!1,Z();break e}}}Te=!0}Te&&n(!0)},[P]),ee=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-5"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"}),o.jsx(ya,{className:"mb-2"})]})}),Y=()=>o.jsxs("div",{className:"text-right",children:[o.jsx(Ft,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(Ft,{label:"Yes",icon:"pi pi-check",onClick:()=>ce(),autoFocus:!0})]});return o.jsxs("div",{style:{position:"relative"},children:[e&&o.jsxs("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"30vw",padding:"20px",backgroundColor:"white",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",borderRadius:"8px",zIndex:1e3},children:[o.jsx("p",{className:"text-center",children:u}),Y()]}),O||V||B?o.jsx("div",{className:"w-full",children:o.jsx(ee,{})}):o.jsxs(o.Fragment,{children:[(((J=E==null?void 0:E.formType)==null?void 0:J.key)===E7||((he=E==null?void 0:E.formType)==null?void 0:he.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${l===!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:S==null?void 0:S.task_title}),o.jsx("div",{className:"ml-4 ",children:w===Lee&&o.jsx(_7,{classes:"",value:"COMPLETED",level:"success"})})]}),c===!1&&w===k?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:fe})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[O&&o.jsx(ee,{}),!O&&o.jsxs(o.Fragment,{children:[o.jsx(Hte,{}),o.jsx("div",{className:`${d===!0?f:" "} mt-2 mb-2`,children:o.jsx(Lf,{backend:Vf,children:E!==null&&((be=E==null?void 0:E.layout)==null?void 0:be.length)&&o.jsx(g6,{})})}),o.jsx(U3,{ref:i}),((Ee=E==null?void 0:E.formType)==null?void 0:Ee.key)!==""&&(w===L3||w===null)&&o.jsx("span",{children:ec.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(Ft,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>K(P),loading:x,disabled:V}),o.jsx(Ft,{label:"Submit",onClick:()=>W(),disabled:x,loading:V})]})}),document.body)})]})]})})]})}),((ye=E==null?void 0:E.formType)==null?void 0:ye.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.jsx("div",{className:"invoice-header",children:o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[S==null?void 0:S.task_title," "]})})}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(Lf,{backend:Vf,children:E!==null&&((Ae=E==null?void 0:E.layout)==null?void 0:Ae.length)&&o.jsx(g6,{})})}),((ne=E==null?void 0:E.formType)==null?void 0:ne.key)!==""&&(w===1||w===null)&&r===!1&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Ft,{className:"p-button-primary",label:"Accept",onClick:()=>W(),loading:x})})})]})})})})})}),(((U=E==null?void 0:E.formType)==null?void 0:U.key)==="page"||((re=E==null?void 0:E.formType)==null?void 0:re.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(Lf,{backend:Vf,children:E!==null&&((G=E==null?void 0:E.layout)==null?void 0:G.length)&&o.jsx(g6,{})})})})})}),((de=E==null?void 0:E.formType)==null?void 0:de.key)==="training"&&o.jsx(oCe,{renderIn:Lte,taskSchema:E,taskId:a,endPoints:s}),((Ie=E==null?void 0:E.formType)==null?void 0:Ie.key)==="exam"&&o.jsx(lCe,{taskId:a,endPoints:s,onStart:h})]})]})};/**
4289
4289
  * React Router v6.28.0
4290
4290
  *
4291
4291
  * Copyright (c) Remix Software Inc.
@@ -58129,7 +58129,7 @@ var Uue = function() {
58129
58129
  theme: i.theme,
58130
58130
  formats: i.formats
58131
58131
  };
58132
- Uue ? A(new Quill(d.current, V)) : import("./quill-B3HaJ-Oc.js").then(function(q) {
58132
+ Uue ? A(new Quill(d.current, V)) : import("./quill-B7YsDC18.js").then(function(q) {
58133
58133
  if (q && Se.isExist(d.current)) {
58134
58134
  var P;
58135
58135
  q.default ? P = new q.default(d.current, V) : P = new q(d.current, V), A(P);
@@ -130128,7 +130128,7 @@ const ZTe = () => {
130128
130128
  " "
130129
130129
  ] }) }) }),
130130
130130
  /* @__PURE__ */ c("div", { className: "scroll-height-300 mt-2 mb-2", children: /* @__PURE__ */ c(bf, { backend: yf, children: T !== null && ((ye = T == null ? void 0 : T.layout) == null ? void 0 : ye.length) && /* @__PURE__ */ c(j3, {}) }) }),
130131
- ((Z = T == null ? void 0 : T.formType) == null ? void 0 : Z.key) !== "" && (C === 1 || C === null && r === !1) && /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c("div", { className: "flex justify-content-center", children: /* @__PURE__ */ c(
130131
+ ((Z = T == null ? void 0 : T.formType) == null ? void 0 : Z.key) !== "" && (C === 1 || C === null) && r === !1 && /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c("div", { className: "flex justify-content-center", children: /* @__PURE__ */ c(
130132
130132
  Nt,
130133
130133
  {
130134
130134
  className: "p-button-primary",
@@ -1,7 +1,7 @@
1
1
  var Bl = Object.defineProperty;
2
2
  var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, 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 Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-DFB-BF6R.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, 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 Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-B97ijl8U.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.60",
3
+ "version": "0.2.61",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [