@unvired/turboforms-embed-sdk 2.0.56 → 2.0.57

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.
@@ -127,7 +127,7 @@ var Ee=Object.create;var ie=Object.defineProperty;var Ae=Object.getOwnPropertyDe
127
127
 
128
128
  /* === STYLE_SEPARATOR === */
129
129
 
130
- .tf-embed-sdk .choices{margin-bottom:0!important;font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important;overflow:visible!important;z-index:1}.tf-embed-sdk .choices.is-open{z-index:10001!important}.tf-embed-sdk .formio-component:has(.choices.is-open),.tf-embed-sdk .formio-form-group:has(.choices.is-open){z-index:999!important}.tf-embed-sdk .formio-component-select,.tf-embed-sdk .formio-component-barcodeselect{position:relative!important;overflow:visible!important;margin-top:.25rem!important}.tf-embed-sdk .formio-component-select .choices,.tf-embed-sdk .formio-component-barcodeselect .choices,.tf-embed-sdk .formio-component-select .dropdown,.tf-embed-sdk .formio-component-barcodeselect .dropdown,.tf-embed-sdk .formio-component-select .form-control,.tf-embed-sdk .formio-component-barcodeselect .form-control{overflow:visible!important}.tf-embed-sdk .choices__inner{min-height:2.25rem!important;background-color:#fff!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.25rem .6rem!important;overflow:visible!important}.tf-embed-sdk .choices__input{font-size:var(--tf-app-font-size-base)!important;background-color:transparent!important}.tf-embed-sdk .choices__list--single{padding:0 0 0 4px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:calc(100% - 25px)!important}.tf-embed-sdk .choices__list--dropdown{z-index:10001!important;max-height:250px!important;overflow:visible!important;background-color:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d!important}.tf-embed-sdk .choices__list.choices__list--dropdown.is-active{z-index:1000000!important}.tf-embed-sdk .choices__list--dropdown .choices__list{max-height:250px!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;background-color:#fff!important}.tf-embed-sdk .choices__list--dropdown .choices__item{background-color:#fff!important;opacity:1!important}.tf-embed-sdk .choices__list--dropdown .choices__item--choice.is-highlighted{background-color:#f1f5f9!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar{width:2px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:10px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-track{background:transparent!important}.tf-embed-sdk .formio-form .choices{width:100%!important;max-width:100%!important;min-width:120px!important;overflow:visible!important}.tf-embed-sdk .choices__list--dropdown .choices__item{font-size:var(--tf-app-font-size-base)!important;padding:.4rem .75rem!important;text-align:left!important;transition:background-color .15s ease!important}.tf-embed-sdk .formio-component:not(.formio-component-label-hidden) .choices__placeholder{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-label-hidden .choices__placeholder{opacity:.7!important;visibility:visible!important}.tf-embed-sdk .formio-component:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component:has(.is-open) .choices__placeholder{opacity:1!important;visibility:visible!important;color:#94a3b8!important}.tf-embed-sdk .formio-select-autocomplete-input{display:none!important;visibility:hidden!important;height:0!important;padding:0!important;position:absolute!important}.tf-embed-sdk .choices__list--single .choices__item{font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important}.tf-embed-sdk .formio-component-select .choices__inner{width:100%!important;background:transparent!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.6rem 12px!important;display:flex!important;align-items:center!important;height:2.6rem!important;min-height:2.6rem!important}.tf-embed-sdk .formio-component-select .choices__list--single{display:flex!important;align-items:center!important;height:100%!important;text-align:left!important}.tf-embed-sdk .formio-component-select .choices__item{margin:0!important;line-height:normal!important;vertical-align:middle!important}.tf-embed-sdk .formio-component-select .choices__list--single .choices__item{margin-top:2px!important}.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-select:has(.choices__list--multiple .choices__item)>label{position:absolute!important;top:-6px!important;left:12px!important;transform:translateY(0)!important;font-size:var(--tf-app-font-size-base)!important;font-weight:600!important;color:var(--tf-app-floating-label-color)!important;background-color:#fff!important;background:#fff!important;padding:0 6px!important;z-index:99!important;line-height:1!important;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;max-width:90%!important;white-space:nowrap!important;text-overflow:ellipsis!important}.tf-embed-sdk .formio-component-select:has(.is-open)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open)>label,.tf-embed-sdk .formio-component-select:has(.is-focused)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused)>label,.tf-embed-sdk .formio-component-select:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-select:has([aria-expanded=true])>label,.tf-embed-sdk .formio-component-barcodeselect:has([aria-expanded=true])>label{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-select:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner{border-color:var(--tf-primary-color)!important;box-shadow:0 0 0 1px #095f171a!important}.tf-embed-sdk .choices[data-type*=select-one]:after{border:none!important;content:"\\f282"!important;font-family:bootstrap-icons!important;font-size:var(--tf-app-font-size-base)!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;position:absolute!important;top:50%!important;right:15px!important;transform:translateY(-50%)!important;color:var(--tf-app-label-color)!important;visibility:visible!important;display:block!important}.tf-embed-sdk .formio-choices:after{display:none!important}.tf-embed-sdk .choices__button{color:var(--tf-app-floating-label-color)!important}.tf-embed-sdk .choices__button:hover{color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item{background-color:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:6px!important;color:#334155!important;font-size:.75rem!important;font-weight:500!important;padding:2px 8px 2px 10px!important;margin:2px 4px 2px 0!important;display:inline-flex!important;align-items:center!important;transition:all .2s ease!important;border-top:none!important}.tf-embed-sdk .choices__list--multiple .choices__item.is-highlighted{background-color:#e2e8f0!important;color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button{border-left:1px solid rgba(0,0,0,.1)!important;margin-left:8px!important;padding-left:0!important;width:24px!important;min-height:20px!important;opacity:.8!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center right 4px!important;background-size:20px!important;color:transparent!important;font-size:0!important;transition:all .2s ease!important;cursor:pointer!important;border-right:none!important;border-top:none!important;border-bottom:none!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:hover{opacity:1!important;filter:invert(18%) sepia(89%) saturate(5738%) hue-rotate(351deg) brightness(92%) contrast(100%)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:before,.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:after{display:none!important;content:""!important}
130
+ .tf-embed-sdk .choices{margin-bottom:0!important;font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important;overflow:visible!important;z-index:1}.tf-embed-sdk .choices.is-open{z-index:10001!important}.tf-embed-sdk .formio-component:has(.choices.is-open),.tf-embed-sdk .formio-form-group:has(.choices.is-open),.tf-embed-sdk [class*=col-]:has(.choices.is-open),.tf-embed-sdk .row:has(.choices.is-open){z-index:999!important}.tf-embed-sdk .formio-component-select,.tf-embed-sdk .formio-component-barcodeselect{position:relative!important;overflow:visible!important;margin-top:.25rem!important}.tf-embed-sdk .formio-component-select .choices,.tf-embed-sdk .formio-component-barcodeselect .choices,.tf-embed-sdk .formio-component-select .dropdown,.tf-embed-sdk .formio-component-barcodeselect .dropdown,.tf-embed-sdk .formio-component-select .form-control,.tf-embed-sdk .formio-component-barcodeselect .form-control{overflow:visible!important}.tf-embed-sdk .choices__inner{min-height:2.25rem!important;background-color:#fff!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.25rem .6rem!important;overflow:visible!important}.tf-embed-sdk .choices__input{font-size:var(--tf-app-font-size-base)!important;background-color:transparent!important}.tf-embed-sdk .choices__list--single{padding:0 0 0 4px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:calc(100% - 25px)!important}.tf-embed-sdk .choices__list--dropdown{z-index:10001!important;max-height:250px!important;overflow:visible!important;background-color:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d!important}.tf-embed-sdk .choices__list.choices__list--dropdown.is-active{z-index:1000000!important}.tf-embed-sdk .choices__list--dropdown .choices__list{max-height:250px!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;background-color:#fff!important}.tf-embed-sdk .choices__list--dropdown .choices__item{background-color:#fff!important;opacity:1!important}.tf-embed-sdk .choices__list--dropdown .choices__item--choice.is-highlighted{background-color:#f1f5f9!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar{width:2px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:10px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-track{background:transparent!important}.tf-embed-sdk .formio-form .choices{width:100%!important;max-width:100%!important;min-width:120px!important;overflow:visible!important}.tf-embed-sdk .choices__list--dropdown .choices__item{font-size:var(--tf-app-font-size-base)!important;padding:.4rem .75rem!important;text-align:left!important;transition:background-color .15s ease!important}.tf-embed-sdk .formio-component:not(.formio-component-label-hidden) .choices__placeholder{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-label-hidden .choices__placeholder{opacity:.7!important;visibility:visible!important}.tf-embed-sdk .formio-component-select:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component-select:has(.is-open) .choices__placeholder,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__placeholder{opacity:1!important;visibility:visible!important;color:#94a3b8!important}.tf-embed-sdk .formio-select-autocomplete-input{display:none!important;visibility:hidden!important;height:0!important;padding:0!important;position:absolute!important}.tf-embed-sdk .choices__list--single .choices__item{font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important}.tf-embed-sdk .formio-component-select .choices__inner{width:100%!important;background:transparent!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.6rem 12px!important;display:flex!important;align-items:center!important;height:2.6rem!important;min-height:2.6rem!important}.tf-embed-sdk .formio-component-select .choices__list--single{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:100%!important;text-align:left!important}.tf-embed-sdk .formio-component-select .choices__item{margin:0!important;line-height:normal!important;vertical-align:middle!important}.tf-embed-sdk .formio-component-select .choices__list--single .choices__item{margin:0!important;padding:0!important}.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-select:has(.choices__list--multiple .choices__item)>label{position:absolute!important;top:-6px!important;left:12px!important;transform:translateY(0)!important;font-size:var(--tf-app-font-size-base)!important;font-weight:600!important;color:var(--tf-app-floating-label-color)!important;background-color:#fff!important;background:#fff!important;padding:0 6px!important;z-index:99!important;line-height:1!important;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;max-width:90%!important;white-space:nowrap!important;text-overflow:ellipsis!important}.tf-embed-sdk .formio-component-select:has(.is-open)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open)>label,.tf-embed-sdk .formio-component-select:has(.is-focused)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused)>label,.tf-embed-sdk .formio-component-select:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-select:has([aria-expanded=true])>label,.tf-embed-sdk .formio-component-barcodeselect:has([aria-expanded=true])>label{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-select:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner{border-color:var(--tf-primary-color)!important;box-shadow:0 0 0 1px #095f171a!important}.tf-embed-sdk .choices[data-type*=select-one]:after{border:none!important;content:"\\f282"!important;font-family:bootstrap-icons!important;font-size:var(--tf-app-font-size-base)!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;position:absolute!important;top:50%!important;right:15px!important;transform:translateY(-50%)!important;color:var(--tf-app-label-color)!important;visibility:visible!important;display:block!important}.tf-embed-sdk .formio-choices:after{display:none!important}.tf-embed-sdk .choices__button{color:var(--tf-app-floating-label-color)!important}.tf-embed-sdk .choices__button:hover{color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item{background-color:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:6px!important;color:#334155!important;font-size:.75rem!important;font-weight:500!important;padding:2px 8px 2px 10px!important;margin:2px 4px 2px 0!important;display:inline-flex!important;align-items:center!important;transition:all .2s ease!important;border-top:none!important}.tf-embed-sdk .choices__list--multiple .choices__item.is-highlighted{background-color:#e2e8f0!important;color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button{border-left:1px solid rgba(0,0,0,.1)!important;margin-left:8px!important;padding-left:0!important;width:24px!important;min-height:20px!important;opacity:.8!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center right 4px!important;background-size:20px!important;color:transparent!important;font-size:0!important;transition:all .2s ease!important;cursor:pointer!important;border-right:none!important;border-top:none!important;border-bottom:none!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:hover{opacity:1!important;filter:invert(18%) sepia(89%) saturate(5738%) hue-rotate(351deg) brightness(92%) contrast(100%)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:before,.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:after{display:none!important;content:""!important}
131
131
 
132
132
  /* === STYLE_SEPARATOR === */
133
133
 
@@ -209,7 +209,7 @@ var Ee=Object.create;var ie=Object.defineProperty;var Ae=Object.getOwnPropertyDe
209
209
  </div>
210
210
  ${(q=e.themeData)!=null&&q.isCard?"</div>":""}
211
211
  <div id="sticky-footer" class="${e.showFooter===!1?"footer-hidden":""}">
212
- <div class="build-version">SDK v2.0.56</div>
212
+ <div class="build-version">SDK v2.0.57</div>
213
213
 
214
214
  <button class="footer-btn footer-btn-secondary" id="prevBtn" style="display:none" onclick="FormOnPrevious()">
215
215
  <i class="bi bi-chevron-left"></i> Previous
@@ -277,4 +277,4 @@ var Ee=Object.create;var ie=Object.defineProperty;var Ae=Object.getOwnPropertyDe
277
277
 
278
278
  // === SCRIPT_SEPARATOR ===
279
279
 
280
- `);if(!window.__unviredSdkScriptsLoaded&&!window.__unviredSdkScriptsLoading){window.__unviredSdkScriptsLoading=!0,l.info("[TF_SDK:14] \u2705 Loading SDK scripts (jQuery, Formio, Recogito, LESS, components)...");let p=u=>{if(b){let w=b.querySelector(".sdk-loader-text");w&&(w.textContent=u)}};if(p("Loading Core Components..."),c[0]&&c[0].trim()){let u=document.createElement("script");u.textContent=c[0],u.setAttribute("data-unvired-script","jquery"),document.head.appendChild(u)}if(c[4]&&c[4].trim()){let u=document.createElement("script");u.textContent=c[4],u.setAttribute("data-unvired-script","choices"),document.head.appendChild(u)}if(p("Loading Formio Library..."),c[5]&&c[5].trim()){let u=document.createElement("script");u.textContent=c[5],u.setAttribute("data-unvired-script","formio"),document.head.appendChild(u),l.info("[TF_SDK:15] \u2705 Bundled Formio library injected.")}if(e.showComments){p("Loading Annotation Tools...");for(let u=1;u<=2;u++)if(c[u]&&c[u].trim()){let w=document.createElement("script");w.textContent=c[u],w.setAttribute("data-unvired-script",`recogito-${u}`),document.head.appendChild(w),await new Promise(A=>setTimeout(A,0))}}else l.info("[TF_SDK:16] \u2705 Skipping Recogito (comments disabled, optimized load)");if(p("Initializing Engine..."),c[3]&&c[3].trim()){let u=document.createElement("script");u.textContent=c[3],u.setAttribute("data-unvired-script","less"),document.head.appendChild(u)}window.form=window.form||{},window.platform=window.platform||{},window.ResizeObserver=window.ResizeObserver||ResizeObserver,typeof browserMD5File!="undefined"&&(window.form.BMF=new browserMD5File),window.less=window.less||{},typeof window.__Html5QrcodeLibrary__!="undefined"&&(window.html5QrCode=window.__Html5QrcodeLibrary__),typeof window.Html5QrcodeScanner=="undefined"&&(window.Html5QrcodeScanner=class{constructor(){l.warn("[TF_SDK:17] \u26A0\uFE0F Barcode library (Html5QrcodeScanner) is not loaded.")}render(){}clear(){}}),p("Initializing Components...");for(let u=6;u<c.length;u++){let w=c[u];if(w&&w.trim()){let A=document.createElement("script");A.textContent=w,A.setAttribute("data-unvired-script",`script-${u}`),document.head.appendChild(A),u%5===0&&await new Promise(R=>setTimeout(R,0))}}window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1,l.info("[TF_SDK:18] \u2705 All SDK scripts injected successfully"),document.addEventListener("click",function(u){let w=document.getElementById("unvired-more-btn"),A=document.getElementById("moreTooltip");w&&A&&!w.contains(u.target)&&!A.contains(u.target)&&(A.style.display="none")})}else if(window.__unviredSdkScriptsLoading)window.__unviredSdkScriptsLoaded||(l.warn("[TF_SDK:19] \u26A0\uFE0F Scripts marked as loading but not yet loaded - waiting..."),window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1);else{if(l.info("[TF_SDK:20] \u2705 SDK scripts already loaded \u2014 skipping injection"),typeof window.Formio=="undefined"){let p="ErrorCode : 005, Formio library not available even though scripts were loaded.";throw l.error("[TF_SDK:21] \u274C ",p),b&&b.classList.add("hidden"),s({type:"ERROR",errorMessage:p,data:{technicalError:new Error(p),formioPath:"bundled",timestamp:new Date().toISOString()}}),new Error(p)}l.info("[TF_SDK:22] \u2705 Formio verified (previously loaded)")}window.FORM_TEMPLATE=m,window.FORM_PREVIOUS_DATA=n,window.FORM_MODE=e.mode,window.FORM_COMMENTS_DATA=e.commentsData,window.FORM_VOB_ARR=e.commentsVobArr,window.FORM_PLATFORM=e.platform,window.FORM_LANGUAGE=e.language,window.FORM_TRASLATIONS=e.translations,window.FORM_ENV=e.environmentVariable,window.FORM_THEME_DATA=e.themeData,window.FORM_USER_DATA=e.userData,window.FORM_USERS_LIST=e.usersList,window.FORM_CONTROL_DATA=e.controlData,window.FORM_PRIVATE_EXTERNAL=e.privateExternal,window.FORM_PERMISSION=e.permission,window.FORM_ATTACHMENT_FILE_KEYS=i,window.sendEventCallback=s,window.FORM_EVENTS={FORM_RENDER:"FORM_RENDER",SAVE:"FORM_SAVE",SUBMIT:"FORM_SUBMIT",SUBMIT_ERROR:"FORM_SUBMIT_ERROR",BACK_NAVIGATION:"FORM_BACK_NAVIGATION",ONCHANGE:"FORM_ONCHANGE",FORM_LOADED:"FORM_LOADED"};let v=r.querySelector("#form-back-btn"),E=r.querySelector("#unvired-more-btn");v&&(e.showBackButton?v.style.setProperty("display","flex","important"):v.style.setProperty("display","none","important")),E&&!e.showMoreButton&&E.style.setProperty("display","none","important"),window.__unviredFormsOptions=e,window.checkDocumentsVisibility(),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility(),e.platform==="web"?window.platform={isBrowser:!0,isAndroid:!1,iosPlatform:!1}:e.platform==="android"?window.platform={isBrowser:!1,isAndroid:!0,iosPlatform:!1}:e.platform==="ios"&&(window.platform={isBrowser:!1,isAndroid:!1,iosPlatform:!0});let O={};if(((oe=e.environmentVariable)==null?void 0:oe.length)>0)for(let p of e.environmentVariable)for(let u in p)O[u]=p[u];Object.keys(O).length>0&&(window.env=O);let k=r.querySelector("#sticky-header"),j=r.querySelector("#sticky-footer"),B=r.querySelector("#formio-wrapper"),W=r.querySelector("#comments-header");e.mode==="pdf"||e.mode==="print"?(r.classList.add(`${e.mode}-mode`),B&&B.classList.add(`${e.mode}-mode`),k&&(k.style.display="none"),j&&(j.style.display="none")):(k&&(k.style.display="flex"),j&&(j.style.display="flex")),W&&(W.style.display="none"),e.themeData&&Object.keys(e.themeData).length>0&&(window.FORM_THEME_DATA=e.themeData),e.language&&(window.FORMIO_LANGUAGE=e.language),e.translations&&(window.FORMIO_I18N=e.translations),e.userData&&(window.firstName=e.userData.firstName,window.lastName=e.userData.lastName,window.form=window.form||{},Object.assign(window.form,e.userData)),window.less=window.less||{},Object.assign(window.less,{async:!0,environment:"production",fileAsync:!1,onReady:!0,useFileCache:!0});let M=n;if(n&&(l.info("[TF_SDK:23] \u2705 Processing file IDs in submission data (fetching from IndexedDB)..."),M=await pe(n,s,i),l.info("[TF_SDK:24] \u2705 File IDs processed \u2014 handing off to form renderer")),b){let p=b.querySelector(".sdk-loader-text");p&&(p.textContent="Initializing Form...")}return typeof window.loadTRform!="function"?(l.info("[TF_SDK:25] \u2705 loadTRform not ready yet \u2014 waiting for web-turbo-form.js to signal..."),await new Promise(p=>{let u=()=>{document.removeEventListener("LoadRNformReady",u),l.info("[TF_SDK:26] \u2705 loadTRform is now ready (LoadRNformReady event received)"),p()};document.addEventListener("LoadRNformReady",u),typeof window.loadTRform=="function"&&u()})):l.info("[TF_SDK:27] \u2705 loadTRform already available \u2014 invoking immediately"),l.info("[TF_SDK:28] \u2705 Handing off to loadTRform (web-turbo-form.js)..."),await window.loadTRform(m,M,e.themeData,e.mode,e.language,e.translations,e.controlData,e.privateExternal,e.permission,i),Ce(),{sendAction:p=>{var u;p.type==="SET_IMAGE_DATA"&&((u=window.setImageData)==null||u.call(window,p.imageData,p.controlId,p.fileName))},destroy:()=>{r.innerHTML=""}}}window.closeDocumentsModal=function(){if(typeof $!="undefined"&&$.fn.modal)$("#documentsModal").modal("hide");else{let t=document.getElementById("documentsModal");t&&(t.style.display="none",t.classList.remove("active"))}};window.checkDocumentsVisibility=async function(){let t=document.getElementById("documentsOption"),n=document.getElementById("documentsDivider"),o=await te();t.style.display=o?"block":"none",n&&(n.style.display=o?"block":"none"),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility()};window.insertAppDocument=async function(t){try{return await be(t),l.info("[TF_SDK:29] \u2705 Document inserted",{id:t==null?void 0:t.id}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:30] \u274C Failed to insert document",n),!1}};window.deleteAppDocument=async function(t){try{return await ge(t),l.info("[TF_SDK:31] \u2705 Document deleted",{id:t}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:32] \u274C Failed to delete document",n),!1}};window.getAllDocuments=me;window.hasDocuments=te;function We(){return"2.0.56"}function ke(t){let n=typeof t=="string"?document.getElementById(t):t;n||(n=document.querySelector(".tf-embed-sdk")||document.body);let o=n.querySelectorAll("table"),r=0,e=null;return o.forEach(i=>{let a=i.getBoundingClientRect().width;a>r&&(r=a,e=i)}),{maxWidth:r,widestTable:e}}window.getMaxTableWidth=ke;typeof window!="undefined"&&(window.TurboForms=window.TurboForms||{loadForm:He,getBuildVersion:We,getMaxTableWidth:ke});export{We as getBuildVersion,ke as getMaxTableWidth,He as loadForm};
280
+ `);if(!window.__unviredSdkScriptsLoaded&&!window.__unviredSdkScriptsLoading){window.__unviredSdkScriptsLoading=!0,l.info("[TF_SDK:14] \u2705 Loading SDK scripts (jQuery, Formio, Recogito, LESS, components)...");let p=u=>{if(b){let w=b.querySelector(".sdk-loader-text");w&&(w.textContent=u)}};if(p("Loading Core Components..."),c[0]&&c[0].trim()){let u=document.createElement("script");u.textContent=c[0],u.setAttribute("data-unvired-script","jquery"),document.head.appendChild(u)}if(c[4]&&c[4].trim()){let u=document.createElement("script");u.textContent=c[4],u.setAttribute("data-unvired-script","choices"),document.head.appendChild(u)}if(p("Loading Formio Library..."),c[5]&&c[5].trim()){let u=document.createElement("script");u.textContent=c[5],u.setAttribute("data-unvired-script","formio"),document.head.appendChild(u),l.info("[TF_SDK:15] \u2705 Bundled Formio library injected.")}if(e.showComments){p("Loading Annotation Tools...");for(let u=1;u<=2;u++)if(c[u]&&c[u].trim()){let w=document.createElement("script");w.textContent=c[u],w.setAttribute("data-unvired-script",`recogito-${u}`),document.head.appendChild(w),await new Promise(A=>setTimeout(A,0))}}else l.info("[TF_SDK:16] \u2705 Skipping Recogito (comments disabled, optimized load)");if(p("Initializing Engine..."),c[3]&&c[3].trim()){let u=document.createElement("script");u.textContent=c[3],u.setAttribute("data-unvired-script","less"),document.head.appendChild(u)}window.form=window.form||{},window.platform=window.platform||{},window.ResizeObserver=window.ResizeObserver||ResizeObserver,typeof browserMD5File!="undefined"&&(window.form.BMF=new browserMD5File),window.less=window.less||{},typeof window.__Html5QrcodeLibrary__!="undefined"&&(window.html5QrCode=window.__Html5QrcodeLibrary__),typeof window.Html5QrcodeScanner=="undefined"&&(window.Html5QrcodeScanner=class{constructor(){l.warn("[TF_SDK:17] \u26A0\uFE0F Barcode library (Html5QrcodeScanner) is not loaded.")}render(){}clear(){}}),p("Initializing Components...");for(let u=6;u<c.length;u++){let w=c[u];if(w&&w.trim()){let A=document.createElement("script");A.textContent=w,A.setAttribute("data-unvired-script",`script-${u}`),document.head.appendChild(A),u%5===0&&await new Promise(R=>setTimeout(R,0))}}window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1,l.info("[TF_SDK:18] \u2705 All SDK scripts injected successfully"),document.addEventListener("click",function(u){let w=document.getElementById("unvired-more-btn"),A=document.getElementById("moreTooltip");w&&A&&!w.contains(u.target)&&!A.contains(u.target)&&(A.style.display="none")})}else if(window.__unviredSdkScriptsLoading)window.__unviredSdkScriptsLoaded||(l.warn("[TF_SDK:19] \u26A0\uFE0F Scripts marked as loading but not yet loaded - waiting..."),window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1);else{if(l.info("[TF_SDK:20] \u2705 SDK scripts already loaded \u2014 skipping injection"),typeof window.Formio=="undefined"){let p="ErrorCode : 005, Formio library not available even though scripts were loaded.";throw l.error("[TF_SDK:21] \u274C ",p),b&&b.classList.add("hidden"),s({type:"ERROR",errorMessage:p,data:{technicalError:new Error(p),formioPath:"bundled",timestamp:new Date().toISOString()}}),new Error(p)}l.info("[TF_SDK:22] \u2705 Formio verified (previously loaded)")}window.FORM_TEMPLATE=m,window.FORM_PREVIOUS_DATA=n,window.FORM_MODE=e.mode,window.FORM_COMMENTS_DATA=e.commentsData,window.FORM_VOB_ARR=e.commentsVobArr,window.FORM_PLATFORM=e.platform,window.FORM_LANGUAGE=e.language,window.FORM_TRASLATIONS=e.translations,window.FORM_ENV=e.environmentVariable,window.FORM_THEME_DATA=e.themeData,window.FORM_USER_DATA=e.userData,window.FORM_USERS_LIST=e.usersList,window.FORM_CONTROL_DATA=e.controlData,window.FORM_PRIVATE_EXTERNAL=e.privateExternal,window.FORM_PERMISSION=e.permission,window.FORM_ATTACHMENT_FILE_KEYS=i,window.sendEventCallback=s,window.FORM_EVENTS={FORM_RENDER:"FORM_RENDER",SAVE:"FORM_SAVE",SUBMIT:"FORM_SUBMIT",SUBMIT_ERROR:"FORM_SUBMIT_ERROR",BACK_NAVIGATION:"FORM_BACK_NAVIGATION",ONCHANGE:"FORM_ONCHANGE",FORM_LOADED:"FORM_LOADED"};let v=r.querySelector("#form-back-btn"),E=r.querySelector("#unvired-more-btn");v&&(e.showBackButton?v.style.setProperty("display","flex","important"):v.style.setProperty("display","none","important")),E&&!e.showMoreButton&&E.style.setProperty("display","none","important"),window.__unviredFormsOptions=e,window.checkDocumentsVisibility(),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility(),e.platform==="web"?window.platform={isBrowser:!0,isAndroid:!1,iosPlatform:!1}:e.platform==="android"?window.platform={isBrowser:!1,isAndroid:!0,iosPlatform:!1}:e.platform==="ios"&&(window.platform={isBrowser:!1,isAndroid:!1,iosPlatform:!0});let O={};if(((oe=e.environmentVariable)==null?void 0:oe.length)>0)for(let p of e.environmentVariable)for(let u in p)O[u]=p[u];Object.keys(O).length>0&&(window.env=O);let k=r.querySelector("#sticky-header"),j=r.querySelector("#sticky-footer"),B=r.querySelector("#formio-wrapper"),W=r.querySelector("#comments-header");e.mode==="pdf"||e.mode==="print"?(r.classList.add(`${e.mode}-mode`),B&&B.classList.add(`${e.mode}-mode`),k&&(k.style.display="none"),j&&(j.style.display="none")):(k&&(k.style.display="flex"),j&&(j.style.display="flex")),W&&(W.style.display="none"),e.themeData&&Object.keys(e.themeData).length>0&&(window.FORM_THEME_DATA=e.themeData),e.language&&(window.FORMIO_LANGUAGE=e.language),e.translations&&(window.FORMIO_I18N=e.translations),e.userData&&(window.firstName=e.userData.firstName,window.lastName=e.userData.lastName,window.form=window.form||{},Object.assign(window.form,e.userData)),window.less=window.less||{},Object.assign(window.less,{async:!0,environment:"production",fileAsync:!1,onReady:!0,useFileCache:!0});let M=n;if(n&&(l.info("[TF_SDK:23] \u2705 Processing file IDs in submission data (fetching from IndexedDB)..."),M=await pe(n,s,i),l.info("[TF_SDK:24] \u2705 File IDs processed \u2014 handing off to form renderer")),b){let p=b.querySelector(".sdk-loader-text");p&&(p.textContent="Initializing Form...")}return typeof window.loadTRform!="function"?(l.info("[TF_SDK:25] \u2705 loadTRform not ready yet \u2014 waiting for web-turbo-form.js to signal..."),await new Promise(p=>{let u=()=>{document.removeEventListener("LoadRNformReady",u),l.info("[TF_SDK:26] \u2705 loadTRform is now ready (LoadRNformReady event received)"),p()};document.addEventListener("LoadRNformReady",u),typeof window.loadTRform=="function"&&u()})):l.info("[TF_SDK:27] \u2705 loadTRform already available \u2014 invoking immediately"),l.info("[TF_SDK:28] \u2705 Handing off to loadTRform (web-turbo-form.js)..."),await window.loadTRform(m,M,e.themeData,e.mode,e.language,e.translations,e.controlData,e.privateExternal,e.permission,i),Ce(),{sendAction:p=>{var u;p.type==="SET_IMAGE_DATA"&&((u=window.setImageData)==null||u.call(window,p.imageData,p.controlId,p.fileName))},destroy:()=>{r.innerHTML=""}}}window.closeDocumentsModal=function(){if(typeof $!="undefined"&&$.fn.modal)$("#documentsModal").modal("hide");else{let t=document.getElementById("documentsModal");t&&(t.style.display="none",t.classList.remove("active"))}};window.checkDocumentsVisibility=async function(){let t=document.getElementById("documentsOption"),n=document.getElementById("documentsDivider"),o=await te();t.style.display=o?"block":"none",n&&(n.style.display=o?"block":"none"),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility()};window.insertAppDocument=async function(t){try{return await be(t),l.info("[TF_SDK:29] \u2705 Document inserted",{id:t==null?void 0:t.id}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:30] \u274C Failed to insert document",n),!1}};window.deleteAppDocument=async function(t){try{return await ge(t),l.info("[TF_SDK:31] \u2705 Document deleted",{id:t}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:32] \u274C Failed to delete document",n),!1}};window.getAllDocuments=me;window.hasDocuments=te;function We(){return"2.0.57"}function ke(t){let n=typeof t=="string"?document.getElementById(t):t;n||(n=document.querySelector(".tf-embed-sdk")||document.body);let o=n.querySelectorAll("table"),r=0,e=null;return o.forEach(i=>{let a=i.getBoundingClientRect().width;a>r&&(r=a,e=i)}),{maxWidth:r,widestTable:e}}window.getMaxTableWidth=ke;typeof window!="undefined"&&(window.TurboForms=window.TurboForms||{loadForm:He,getBuildVersion:We,getMaxTableWidth:ke});export{We as getBuildVersion,ke as getMaxTableWidth,He as loadForm};
@@ -43196,7 +43196,7 @@ window.CommentOnBack = CommentOnBack;
43196
43196
 
43197
43197
 
43198
43198
  <div id="sticky-footer">
43199
- <div class="build-version">SDK v2.0.56</div>
43199
+ <div class="build-version">SDK v2.0.57</div>
43200
43200
  <div class="relative-position">
43201
43201
  <button id="unvired-more-btn" class="ui button primary dataGrid-addRow" onclick="toggleTooltip()">
43202
43202
  <i class="icon options"></i>
@@ -127,7 +127,7 @@ var TurboForms=(()=>{var Te=Object.create;var G=Object.defineProperty;var Pe=Obj
127
127
 
128
128
  /* === STYLE_SEPARATOR === */
129
129
 
130
- .tf-embed-sdk .choices{margin-bottom:0!important;font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important;overflow:visible!important;z-index:1}.tf-embed-sdk .choices.is-open{z-index:10001!important}.tf-embed-sdk .formio-component:has(.choices.is-open),.tf-embed-sdk .formio-form-group:has(.choices.is-open){z-index:999!important}.tf-embed-sdk .formio-component-select,.tf-embed-sdk .formio-component-barcodeselect{position:relative!important;overflow:visible!important;margin-top:.25rem!important}.tf-embed-sdk .formio-component-select .choices,.tf-embed-sdk .formio-component-barcodeselect .choices,.tf-embed-sdk .formio-component-select .dropdown,.tf-embed-sdk .formio-component-barcodeselect .dropdown,.tf-embed-sdk .formio-component-select .form-control,.tf-embed-sdk .formio-component-barcodeselect .form-control{overflow:visible!important}.tf-embed-sdk .choices__inner{min-height:2.25rem!important;background-color:#fff!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.25rem .6rem!important;overflow:visible!important}.tf-embed-sdk .choices__input{font-size:var(--tf-app-font-size-base)!important;background-color:transparent!important}.tf-embed-sdk .choices__list--single{padding:0 0 0 4px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:calc(100% - 25px)!important}.tf-embed-sdk .choices__list--dropdown{z-index:10001!important;max-height:250px!important;overflow:visible!important;background-color:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d!important}.tf-embed-sdk .choices__list.choices__list--dropdown.is-active{z-index:1000000!important}.tf-embed-sdk .choices__list--dropdown .choices__list{max-height:250px!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;background-color:#fff!important}.tf-embed-sdk .choices__list--dropdown .choices__item{background-color:#fff!important;opacity:1!important}.tf-embed-sdk .choices__list--dropdown .choices__item--choice.is-highlighted{background-color:#f1f5f9!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar{width:2px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:10px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-track{background:transparent!important}.tf-embed-sdk .formio-form .choices{width:100%!important;max-width:100%!important;min-width:120px!important;overflow:visible!important}.tf-embed-sdk .choices__list--dropdown .choices__item{font-size:var(--tf-app-font-size-base)!important;padding:.4rem .75rem!important;text-align:left!important;transition:background-color .15s ease!important}.tf-embed-sdk .formio-component:not(.formio-component-label-hidden) .choices__placeholder{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-label-hidden .choices__placeholder{opacity:.7!important;visibility:visible!important}.tf-embed-sdk .formio-component:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component:has(.is-open) .choices__placeholder{opacity:1!important;visibility:visible!important;color:#94a3b8!important}.tf-embed-sdk .formio-select-autocomplete-input{display:none!important;visibility:hidden!important;height:0!important;padding:0!important;position:absolute!important}.tf-embed-sdk .choices__list--single .choices__item{font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important}.tf-embed-sdk .formio-component-select .choices__inner{width:100%!important;background:transparent!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.6rem 12px!important;display:flex!important;align-items:center!important;height:2.6rem!important;min-height:2.6rem!important}.tf-embed-sdk .formio-component-select .choices__list--single{display:flex!important;align-items:center!important;height:100%!important;text-align:left!important}.tf-embed-sdk .formio-component-select .choices__item{margin:0!important;line-height:normal!important;vertical-align:middle!important}.tf-embed-sdk .formio-component-select .choices__list--single .choices__item{margin-top:2px!important}.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-select:has(.choices__list--multiple .choices__item)>label{position:absolute!important;top:-6px!important;left:12px!important;transform:translateY(0)!important;font-size:var(--tf-app-font-size-base)!important;font-weight:600!important;color:var(--tf-app-floating-label-color)!important;background-color:#fff!important;background:#fff!important;padding:0 6px!important;z-index:99!important;line-height:1!important;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;max-width:90%!important;white-space:nowrap!important;text-overflow:ellipsis!important}.tf-embed-sdk .formio-component-select:has(.is-open)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open)>label,.tf-embed-sdk .formio-component-select:has(.is-focused)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused)>label,.tf-embed-sdk .formio-component-select:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-select:has([aria-expanded=true])>label,.tf-embed-sdk .formio-component-barcodeselect:has([aria-expanded=true])>label{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-select:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner{border-color:var(--tf-primary-color)!important;box-shadow:0 0 0 1px #095f171a!important}.tf-embed-sdk .choices[data-type*=select-one]:after{border:none!important;content:"\\f282"!important;font-family:bootstrap-icons!important;font-size:var(--tf-app-font-size-base)!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;position:absolute!important;top:50%!important;right:15px!important;transform:translateY(-50%)!important;color:var(--tf-app-label-color)!important;visibility:visible!important;display:block!important}.tf-embed-sdk .formio-choices:after{display:none!important}.tf-embed-sdk .choices__button{color:var(--tf-app-floating-label-color)!important}.tf-embed-sdk .choices__button:hover{color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item{background-color:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:6px!important;color:#334155!important;font-size:.75rem!important;font-weight:500!important;padding:2px 8px 2px 10px!important;margin:2px 4px 2px 0!important;display:inline-flex!important;align-items:center!important;transition:all .2s ease!important;border-top:none!important}.tf-embed-sdk .choices__list--multiple .choices__item.is-highlighted{background-color:#e2e8f0!important;color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button{border-left:1px solid rgba(0,0,0,.1)!important;margin-left:8px!important;padding-left:0!important;width:24px!important;min-height:20px!important;opacity:.8!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center right 4px!important;background-size:20px!important;color:transparent!important;font-size:0!important;transition:all .2s ease!important;cursor:pointer!important;border-right:none!important;border-top:none!important;border-bottom:none!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:hover{opacity:1!important;filter:invert(18%) sepia(89%) saturate(5738%) hue-rotate(351deg) brightness(92%) contrast(100%)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:before,.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:after{display:none!important;content:""!important}
130
+ .tf-embed-sdk .choices{margin-bottom:0!important;font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important;overflow:visible!important;z-index:1}.tf-embed-sdk .choices.is-open{z-index:10001!important}.tf-embed-sdk .formio-component:has(.choices.is-open),.tf-embed-sdk .formio-form-group:has(.choices.is-open),.tf-embed-sdk [class*=col-]:has(.choices.is-open),.tf-embed-sdk .row:has(.choices.is-open){z-index:999!important}.tf-embed-sdk .formio-component-select,.tf-embed-sdk .formio-component-barcodeselect{position:relative!important;overflow:visible!important;margin-top:.25rem!important}.tf-embed-sdk .formio-component-select .choices,.tf-embed-sdk .formio-component-barcodeselect .choices,.tf-embed-sdk .formio-component-select .dropdown,.tf-embed-sdk .formio-component-barcodeselect .dropdown,.tf-embed-sdk .formio-component-select .form-control,.tf-embed-sdk .formio-component-barcodeselect .form-control{overflow:visible!important}.tf-embed-sdk .choices__inner{min-height:2.25rem!important;background-color:#fff!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.25rem .6rem!important;overflow:visible!important}.tf-embed-sdk .choices__input{font-size:var(--tf-app-font-size-base)!important;background-color:transparent!important}.tf-embed-sdk .choices__list--single{padding:0 0 0 4px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:calc(100% - 25px)!important}.tf-embed-sdk .choices__list--dropdown{z-index:10001!important;max-height:250px!important;overflow:visible!important;background-color:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d!important}.tf-embed-sdk .choices__list.choices__list--dropdown.is-active{z-index:1000000!important}.tf-embed-sdk .choices__list--dropdown .choices__list{max-height:250px!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;background-color:#fff!important}.tf-embed-sdk .choices__list--dropdown .choices__item{background-color:#fff!important;opacity:1!important}.tf-embed-sdk .choices__list--dropdown .choices__item--choice.is-highlighted{background-color:#f1f5f9!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar{width:2px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:10px!important}.tf-embed-sdk .choices__list--dropdown .choices__list::-webkit-scrollbar-track{background:transparent!important}.tf-embed-sdk .formio-form .choices{width:100%!important;max-width:100%!important;min-width:120px!important;overflow:visible!important}.tf-embed-sdk .choices__list--dropdown .choices__item{font-size:var(--tf-app-font-size-base)!important;padding:.4rem .75rem!important;text-align:left!important;transition:background-color .15s ease!important}.tf-embed-sdk .formio-component:not(.formio-component-label-hidden) .choices__placeholder{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-label-hidden .choices__placeholder{opacity:.7!important;visibility:visible!important}.tf-embed-sdk .formio-component-select:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused) .choices__placeholder,.tf-embed-sdk .formio-component-select:has(.is-open) .choices__placeholder,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__placeholder{opacity:1!important;visibility:visible!important;color:#94a3b8!important}.tf-embed-sdk .formio-select-autocomplete-input{display:none!important;visibility:hidden!important;height:0!important;padding:0!important;position:absolute!important}.tf-embed-sdk .choices__list--single .choices__item{font-size:var(--tf-app-font-size-base)!important;font-weight:var(--tf-app-font-weight)!important}.tf-embed-sdk .formio-component-select .choices__inner{width:100%!important;background:transparent!important;border:1px solid var(--tf-border-color)!important;border-radius:6px!important;padding:.6rem 12px!important;display:flex!important;align-items:center!important;height:2.6rem!important;min-height:2.6rem!important}.tf-embed-sdk .formio-component-select .choices__list--single{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:100%!important;text-align:left!important}.tf-embed-sdk .formio-component-select .choices__item{margin:0!important;line-height:normal!important;vertical-align:middle!important}.tf-embed-sdk .formio-component-select .choices__list--single .choices__item{margin:0!important;padding:0!important}.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder))>label,.tf-embed-sdk .formio-component-select:has(.choices__list--multiple .choices__item)>label{position:absolute!important;top:-6px!important;left:12px!important;transform:translateY(0)!important;font-size:var(--tf-app-font-size-base)!important;font-weight:600!important;color:var(--tf-app-floating-label-color)!important;background-color:#fff!important;background:#fff!important;padding:0 6px!important;z-index:99!important;line-height:1!important;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;max-width:90%!important;white-space:nowrap!important;text-overflow:ellipsis!important}.tf-embed-sdk .formio-component-select:has(.is-open)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open)>label,.tf-embed-sdk .formio-component-select:has(.is-focused)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.is-focused)>label,.tf-embed-sdk .formio-component-select:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--dropdown.is-active)>label,.tf-embed-sdk .formio-component-select:has([aria-expanded=true])>label,.tf-embed-sdk .formio-component-barcodeselect:has([aria-expanded=true])>label{opacity:0!important;visibility:hidden!important}.tf-embed-sdk .formio-component-select:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.is-open) .choices__inner,.tf-embed-sdk .formio-component-select:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner,.tf-embed-sdk .formio-component-barcodeselect:has(.choices__list--single .choices__item--selectable:not(.choices__placeholder)) .choices__inner{border-color:var(--tf-primary-color)!important;box-shadow:0 0 0 1px #095f171a!important}.tf-embed-sdk .choices[data-type*=select-one]:after{border:none!important;content:"\\f282"!important;font-family:bootstrap-icons!important;font-size:var(--tf-app-font-size-base)!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;position:absolute!important;top:50%!important;right:15px!important;transform:translateY(-50%)!important;color:var(--tf-app-label-color)!important;visibility:visible!important;display:block!important}.tf-embed-sdk .formio-choices:after{display:none!important}.tf-embed-sdk .choices__button{color:var(--tf-app-floating-label-color)!important}.tf-embed-sdk .choices__button:hover{color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item{background-color:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:6px!important;color:#334155!important;font-size:.75rem!important;font-weight:500!important;padding:2px 8px 2px 10px!important;margin:2px 4px 2px 0!important;display:inline-flex!important;align-items:center!important;transition:all .2s ease!important;border-top:none!important}.tf-embed-sdk .choices__list--multiple .choices__item.is-highlighted{background-color:#e2e8f0!important;color:var(--tf-primary-color)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button{border-left:1px solid rgba(0,0,0,.1)!important;margin-left:8px!important;padding-left:0!important;width:24px!important;min-height:20px!important;opacity:.8!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center right 4px!important;background-size:20px!important;color:transparent!important;font-size:0!important;transition:all .2s ease!important;cursor:pointer!important;border-right:none!important;border-top:none!important;border-bottom:none!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:hover{opacity:1!important;filter:invert(18%) sepia(89%) saturate(5738%) hue-rotate(351deg) brightness(92%) contrast(100%)!important}.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:before,.tf-embed-sdk .choices__list--multiple .choices__item .choices__button:after{display:none!important;content:""!important}
131
131
 
132
132
  /* === STYLE_SEPARATOR === */
133
133
 
@@ -209,7 +209,7 @@ var TurboForms=(()=>{var Te=Object.create;var G=Object.defineProperty;var Pe=Obj
209
209
  </div>
210
210
  ${(q=e.themeData)!=null&&q.isCard?"</div>":""}
211
211
  <div id="sticky-footer" class="${e.showFooter===!1?"footer-hidden":""}">
212
- <div class="build-version">SDK v2.0.56</div>
212
+ <div class="build-version">SDK v2.0.57</div>
213
213
 
214
214
  <button class="footer-btn footer-btn-secondary" id="prevBtn" style="display:none" onclick="FormOnPrevious()">
215
215
  <i class="bi bi-chevron-left"></i> Previous
@@ -277,4 +277,4 @@ var TurboForms=(()=>{var Te=Object.create;var G=Object.defineProperty;var Pe=Obj
277
277
 
278
278
  // === SCRIPT_SEPARATOR ===
279
279
 
280
- `);if(!window.__unviredSdkScriptsLoaded&&!window.__unviredSdkScriptsLoading){window.__unviredSdkScriptsLoading=!0,l.info("[TF_SDK:14] \u2705 Loading SDK scripts (jQuery, Formio, Recogito, LESS, components)...");let p=u=>{if(b){let w=b.querySelector(".sdk-loader-text");w&&(w.textContent=u)}};if(p("Loading Core Components..."),c[0]&&c[0].trim()){let u=document.createElement("script");u.textContent=c[0],u.setAttribute("data-unvired-script","jquery"),document.head.appendChild(u)}if(c[4]&&c[4].trim()){let u=document.createElement("script");u.textContent=c[4],u.setAttribute("data-unvired-script","choices"),document.head.appendChild(u)}if(p("Loading Formio Library..."),c[5]&&c[5].trim()){let u=document.createElement("script");u.textContent=c[5],u.setAttribute("data-unvired-script","formio"),document.head.appendChild(u),l.info("[TF_SDK:15] \u2705 Bundled Formio library injected.")}if(e.showComments){p("Loading Annotation Tools...");for(let u=1;u<=2;u++)if(c[u]&&c[u].trim()){let w=document.createElement("script");w.textContent=c[u],w.setAttribute("data-unvired-script",`recogito-${u}`),document.head.appendChild(w),await new Promise(A=>setTimeout(A,0))}}else l.info("[TF_SDK:16] \u2705 Skipping Recogito (comments disabled, optimized load)");if(p("Initializing Engine..."),c[3]&&c[3].trim()){let u=document.createElement("script");u.textContent=c[3],u.setAttribute("data-unvired-script","less"),document.head.appendChild(u)}window.form=window.form||{},window.platform=window.platform||{},window.ResizeObserver=window.ResizeObserver||ResizeObserver,typeof browserMD5File!="undefined"&&(window.form.BMF=new browserMD5File),window.less=window.less||{},typeof window.__Html5QrcodeLibrary__!="undefined"&&(window.html5QrCode=window.__Html5QrcodeLibrary__),typeof window.Html5QrcodeScanner=="undefined"&&(window.Html5QrcodeScanner=class{constructor(){l.warn("[TF_SDK:17] \u26A0\uFE0F Barcode library (Html5QrcodeScanner) is not loaded.")}render(){}clear(){}}),p("Initializing Components...");for(let u=6;u<c.length;u++){let w=c[u];if(w&&w.trim()){let A=document.createElement("script");A.textContent=w,A.setAttribute("data-unvired-script",`script-${u}`),document.head.appendChild(A),u%5===0&&await new Promise(R=>setTimeout(R,0))}}window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1,l.info("[TF_SDK:18] \u2705 All SDK scripts injected successfully"),document.addEventListener("click",function(u){let w=document.getElementById("unvired-more-btn"),A=document.getElementById("moreTooltip");w&&A&&!w.contains(u.target)&&!A.contains(u.target)&&(A.style.display="none")})}else if(window.__unviredSdkScriptsLoading)window.__unviredSdkScriptsLoaded||(l.warn("[TF_SDK:19] \u26A0\uFE0F Scripts marked as loading but not yet loaded - waiting..."),window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1);else{if(l.info("[TF_SDK:20] \u2705 SDK scripts already loaded \u2014 skipping injection"),typeof window.Formio=="undefined"){let p="ErrorCode : 005, Formio library not available even though scripts were loaded.";throw l.error("[TF_SDK:21] \u274C ",p),b&&b.classList.add("hidden"),s({type:"ERROR",errorMessage:p,data:{technicalError:new Error(p),formioPath:"bundled",timestamp:new Date().toISOString()}}),new Error(p)}l.info("[TF_SDK:22] \u2705 Formio verified (previously loaded)")}window.FORM_TEMPLATE=m,window.FORM_PREVIOUS_DATA=n,window.FORM_MODE=e.mode,window.FORM_COMMENTS_DATA=e.commentsData,window.FORM_VOB_ARR=e.commentsVobArr,window.FORM_PLATFORM=e.platform,window.FORM_LANGUAGE=e.language,window.FORM_TRASLATIONS=e.translations,window.FORM_ENV=e.environmentVariable,window.FORM_THEME_DATA=e.themeData,window.FORM_USER_DATA=e.userData,window.FORM_USERS_LIST=e.usersList,window.FORM_CONTROL_DATA=e.controlData,window.FORM_PRIVATE_EXTERNAL=e.privateExternal,window.FORM_PERMISSION=e.permission,window.FORM_ATTACHMENT_FILE_KEYS=i,window.sendEventCallback=s,window.FORM_EVENTS={FORM_RENDER:"FORM_RENDER",SAVE:"FORM_SAVE",SUBMIT:"FORM_SUBMIT",SUBMIT_ERROR:"FORM_SUBMIT_ERROR",BACK_NAVIGATION:"FORM_BACK_NAVIGATION",ONCHANGE:"FORM_ONCHANGE",FORM_LOADED:"FORM_LOADED"};let v=r.querySelector("#form-back-btn"),E=r.querySelector("#unvired-more-btn");v&&(e.showBackButton?v.style.setProperty("display","flex","important"):v.style.setProperty("display","none","important")),E&&!e.showMoreButton&&E.style.setProperty("display","none","important"),window.__unviredFormsOptions=e,window.checkDocumentsVisibility(),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility(),e.platform==="web"?window.platform={isBrowser:!0,isAndroid:!1,iosPlatform:!1}:e.platform==="android"?window.platform={isBrowser:!1,isAndroid:!0,iosPlatform:!1}:e.platform==="ios"&&(window.platform={isBrowser:!1,isAndroid:!1,iosPlatform:!0});let O={};if(((ie=e.environmentVariable)==null?void 0:ie.length)>0)for(let p of e.environmentVariable)for(let u in p)O[u]=p[u];Object.keys(O).length>0&&(window.env=O);let k=r.querySelector("#sticky-header"),j=r.querySelector("#sticky-footer"),B=r.querySelector("#formio-wrapper"),W=r.querySelector("#comments-header");e.mode==="pdf"||e.mode==="print"?(r.classList.add(`${e.mode}-mode`),B&&B.classList.add(`${e.mode}-mode`),k&&(k.style.display="none"),j&&(j.style.display="none")):(k&&(k.style.display="flex"),j&&(j.style.display="flex")),W&&(W.style.display="none"),e.themeData&&Object.keys(e.themeData).length>0&&(window.FORM_THEME_DATA=e.themeData),e.language&&(window.FORMIO_LANGUAGE=e.language),e.translations&&(window.FORMIO_I18N=e.translations),e.userData&&(window.firstName=e.userData.firstName,window.lastName=e.userData.lastName,window.form=window.form||{},Object.assign(window.form,e.userData)),window.less=window.less||{},Object.assign(window.less,{async:!0,environment:"production",fileAsync:!1,onReady:!0,useFileCache:!0});let M=n;if(n&&(l.info("[TF_SDK:23] \u2705 Processing file IDs in submission data (fetching from IndexedDB)..."),M=await me(n,s,i),l.info("[TF_SDK:24] \u2705 File IDs processed \u2014 handing off to form renderer")),b){let p=b.querySelector(".sdk-loader-text");p&&(p.textContent="Initializing Form...")}return typeof window.loadTRform!="function"?(l.info("[TF_SDK:25] \u2705 loadTRform not ready yet \u2014 waiting for web-turbo-form.js to signal..."),await new Promise(p=>{let u=()=>{document.removeEventListener("LoadRNformReady",u),l.info("[TF_SDK:26] \u2705 loadTRform is now ready (LoadRNformReady event received)"),p()};document.addEventListener("LoadRNformReady",u),typeof window.loadTRform=="function"&&u()})):l.info("[TF_SDK:27] \u2705 loadTRform already available \u2014 invoking immediately"),l.info("[TF_SDK:28] \u2705 Handing off to loadTRform (web-turbo-form.js)..."),await window.loadTRform(m,M,e.themeData,e.mode,e.language,e.translations,e.controlData,e.privateExternal,e.permission,i),Se(),{sendAction:p=>{var u;p.type==="SET_IMAGE_DATA"&&((u=window.setImageData)==null||u.call(window,p.imageData,p.controlId,p.fileName))},destroy:()=>{r.innerHTML=""}}}window.closeDocumentsModal=function(){if(typeof $!="undefined"&&$.fn.modal)$("#documentsModal").modal("hide");else{let t=document.getElementById("documentsModal");t&&(t.style.display="none",t.classList.remove("active"))}};window.checkDocumentsVisibility=async function(){let t=document.getElementById("documentsOption"),n=document.getElementById("documentsDivider"),o=await ne();t.style.display=o?"block":"none",n&&(n.style.display=o?"block":"none"),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility()};window.insertAppDocument=async function(t){try{return await ve(t),l.info("[TF_SDK:29] \u2705 Document inserted",{id:t==null?void 0:t.id}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:30] \u274C Failed to insert document",n),!1}};window.deleteAppDocument=async function(t){try{return await ye(t),l.info("[TF_SDK:31] \u2705 Document deleted",{id:t}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:32] \u274C Failed to delete document",n),!1}};window.getAllDocuments=ge;window.hasDocuments=ne;function Ae(){return"2.0.56"}function re(t){let n=typeof t=="string"?document.getElementById(t):t;n||(n=document.querySelector(".tf-embed-sdk")||document.body);let o=n.querySelectorAll("table"),r=0,e=null;return o.forEach(i=>{let a=i.getBoundingClientRect().width;a>r&&(r=a,e=i)}),{maxWidth:r,widestTable:e}}window.getMaxTableWidth=re;typeof window!="undefined"&&(window.TurboForms=window.TurboForms||{loadForm:Ee,getBuildVersion:Ae,getMaxTableWidth:re});return Ne(Ye);})();
280
+ `);if(!window.__unviredSdkScriptsLoaded&&!window.__unviredSdkScriptsLoading){window.__unviredSdkScriptsLoading=!0,l.info("[TF_SDK:14] \u2705 Loading SDK scripts (jQuery, Formio, Recogito, LESS, components)...");let p=u=>{if(b){let w=b.querySelector(".sdk-loader-text");w&&(w.textContent=u)}};if(p("Loading Core Components..."),c[0]&&c[0].trim()){let u=document.createElement("script");u.textContent=c[0],u.setAttribute("data-unvired-script","jquery"),document.head.appendChild(u)}if(c[4]&&c[4].trim()){let u=document.createElement("script");u.textContent=c[4],u.setAttribute("data-unvired-script","choices"),document.head.appendChild(u)}if(p("Loading Formio Library..."),c[5]&&c[5].trim()){let u=document.createElement("script");u.textContent=c[5],u.setAttribute("data-unvired-script","formio"),document.head.appendChild(u),l.info("[TF_SDK:15] \u2705 Bundled Formio library injected.")}if(e.showComments){p("Loading Annotation Tools...");for(let u=1;u<=2;u++)if(c[u]&&c[u].trim()){let w=document.createElement("script");w.textContent=c[u],w.setAttribute("data-unvired-script",`recogito-${u}`),document.head.appendChild(w),await new Promise(A=>setTimeout(A,0))}}else l.info("[TF_SDK:16] \u2705 Skipping Recogito (comments disabled, optimized load)");if(p("Initializing Engine..."),c[3]&&c[3].trim()){let u=document.createElement("script");u.textContent=c[3],u.setAttribute("data-unvired-script","less"),document.head.appendChild(u)}window.form=window.form||{},window.platform=window.platform||{},window.ResizeObserver=window.ResizeObserver||ResizeObserver,typeof browserMD5File!="undefined"&&(window.form.BMF=new browserMD5File),window.less=window.less||{},typeof window.__Html5QrcodeLibrary__!="undefined"&&(window.html5QrCode=window.__Html5QrcodeLibrary__),typeof window.Html5QrcodeScanner=="undefined"&&(window.Html5QrcodeScanner=class{constructor(){l.warn("[TF_SDK:17] \u26A0\uFE0F Barcode library (Html5QrcodeScanner) is not loaded.")}render(){}clear(){}}),p("Initializing Components...");for(let u=6;u<c.length;u++){let w=c[u];if(w&&w.trim()){let A=document.createElement("script");A.textContent=w,A.setAttribute("data-unvired-script",`script-${u}`),document.head.appendChild(A),u%5===0&&await new Promise(R=>setTimeout(R,0))}}window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1,l.info("[TF_SDK:18] \u2705 All SDK scripts injected successfully"),document.addEventListener("click",function(u){let w=document.getElementById("unvired-more-btn"),A=document.getElementById("moreTooltip");w&&A&&!w.contains(u.target)&&!A.contains(u.target)&&(A.style.display="none")})}else if(window.__unviredSdkScriptsLoading)window.__unviredSdkScriptsLoaded||(l.warn("[TF_SDK:19] \u26A0\uFE0F Scripts marked as loading but not yet loaded - waiting..."),window.__unviredSdkScriptsLoaded=!0,window.__unviredSdkScriptsLoading=!1);else{if(l.info("[TF_SDK:20] \u2705 SDK scripts already loaded \u2014 skipping injection"),typeof window.Formio=="undefined"){let p="ErrorCode : 005, Formio library not available even though scripts were loaded.";throw l.error("[TF_SDK:21] \u274C ",p),b&&b.classList.add("hidden"),s({type:"ERROR",errorMessage:p,data:{technicalError:new Error(p),formioPath:"bundled",timestamp:new Date().toISOString()}}),new Error(p)}l.info("[TF_SDK:22] \u2705 Formio verified (previously loaded)")}window.FORM_TEMPLATE=m,window.FORM_PREVIOUS_DATA=n,window.FORM_MODE=e.mode,window.FORM_COMMENTS_DATA=e.commentsData,window.FORM_VOB_ARR=e.commentsVobArr,window.FORM_PLATFORM=e.platform,window.FORM_LANGUAGE=e.language,window.FORM_TRASLATIONS=e.translations,window.FORM_ENV=e.environmentVariable,window.FORM_THEME_DATA=e.themeData,window.FORM_USER_DATA=e.userData,window.FORM_USERS_LIST=e.usersList,window.FORM_CONTROL_DATA=e.controlData,window.FORM_PRIVATE_EXTERNAL=e.privateExternal,window.FORM_PERMISSION=e.permission,window.FORM_ATTACHMENT_FILE_KEYS=i,window.sendEventCallback=s,window.FORM_EVENTS={FORM_RENDER:"FORM_RENDER",SAVE:"FORM_SAVE",SUBMIT:"FORM_SUBMIT",SUBMIT_ERROR:"FORM_SUBMIT_ERROR",BACK_NAVIGATION:"FORM_BACK_NAVIGATION",ONCHANGE:"FORM_ONCHANGE",FORM_LOADED:"FORM_LOADED"};let v=r.querySelector("#form-back-btn"),E=r.querySelector("#unvired-more-btn");v&&(e.showBackButton?v.style.setProperty("display","flex","important"):v.style.setProperty("display","none","important")),E&&!e.showMoreButton&&E.style.setProperty("display","none","important"),window.__unviredFormsOptions=e,window.checkDocumentsVisibility(),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility(),e.platform==="web"?window.platform={isBrowser:!0,isAndroid:!1,iosPlatform:!1}:e.platform==="android"?window.platform={isBrowser:!1,isAndroid:!0,iosPlatform:!1}:e.platform==="ios"&&(window.platform={isBrowser:!1,isAndroid:!1,iosPlatform:!0});let O={};if(((ie=e.environmentVariable)==null?void 0:ie.length)>0)for(let p of e.environmentVariable)for(let u in p)O[u]=p[u];Object.keys(O).length>0&&(window.env=O);let k=r.querySelector("#sticky-header"),j=r.querySelector("#sticky-footer"),B=r.querySelector("#formio-wrapper"),W=r.querySelector("#comments-header");e.mode==="pdf"||e.mode==="print"?(r.classList.add(`${e.mode}-mode`),B&&B.classList.add(`${e.mode}-mode`),k&&(k.style.display="none"),j&&(j.style.display="none")):(k&&(k.style.display="flex"),j&&(j.style.display="flex")),W&&(W.style.display="none"),e.themeData&&Object.keys(e.themeData).length>0&&(window.FORM_THEME_DATA=e.themeData),e.language&&(window.FORMIO_LANGUAGE=e.language),e.translations&&(window.FORMIO_I18N=e.translations),e.userData&&(window.firstName=e.userData.firstName,window.lastName=e.userData.lastName,window.form=window.form||{},Object.assign(window.form,e.userData)),window.less=window.less||{},Object.assign(window.less,{async:!0,environment:"production",fileAsync:!1,onReady:!0,useFileCache:!0});let M=n;if(n&&(l.info("[TF_SDK:23] \u2705 Processing file IDs in submission data (fetching from IndexedDB)..."),M=await me(n,s,i),l.info("[TF_SDK:24] \u2705 File IDs processed \u2014 handing off to form renderer")),b){let p=b.querySelector(".sdk-loader-text");p&&(p.textContent="Initializing Form...")}return typeof window.loadTRform!="function"?(l.info("[TF_SDK:25] \u2705 loadTRform not ready yet \u2014 waiting for web-turbo-form.js to signal..."),await new Promise(p=>{let u=()=>{document.removeEventListener("LoadRNformReady",u),l.info("[TF_SDK:26] \u2705 loadTRform is now ready (LoadRNformReady event received)"),p()};document.addEventListener("LoadRNformReady",u),typeof window.loadTRform=="function"&&u()})):l.info("[TF_SDK:27] \u2705 loadTRform already available \u2014 invoking immediately"),l.info("[TF_SDK:28] \u2705 Handing off to loadTRform (web-turbo-form.js)..."),await window.loadTRform(m,M,e.themeData,e.mode,e.language,e.translations,e.controlData,e.privateExternal,e.permission,i),Se(),{sendAction:p=>{var u;p.type==="SET_IMAGE_DATA"&&((u=window.setImageData)==null||u.call(window,p.imageData,p.controlId,p.fileName))},destroy:()=>{r.innerHTML=""}}}window.closeDocumentsModal=function(){if(typeof $!="undefined"&&$.fn.modal)$("#documentsModal").modal("hide");else{let t=document.getElementById("documentsModal");t&&(t.style.display="none",t.classList.remove("active"))}};window.checkDocumentsVisibility=async function(){let t=document.getElementById("documentsOption"),n=document.getElementById("documentsDivider"),o=await ne();t.style.display=o?"block":"none",n&&(n.style.display=o?"block":"none"),typeof window.checkMoreButtonVisibility=="function"&&window.checkMoreButtonVisibility()};window.insertAppDocument=async function(t){try{return await ve(t),l.info("[TF_SDK:29] \u2705 Document inserted",{id:t==null?void 0:t.id}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:30] \u274C Failed to insert document",n),!1}};window.deleteAppDocument=async function(t){try{return await ye(t),l.info("[TF_SDK:31] \u2705 Document deleted",{id:t}),await window.checkDocumentsVisibility(),!0}catch(n){return l.error("[TF_SDK:32] \u274C Failed to delete document",n),!1}};window.getAllDocuments=ge;window.hasDocuments=ne;function Ae(){return"2.0.57"}function re(t){let n=typeof t=="string"?document.getElementById(t):t;n||(n=document.querySelector(".tf-embed-sdk")||document.body);let o=n.querySelectorAll("table"),r=0,e=null;return o.forEach(i=>{let a=i.getBoundingClientRect().width;a>r&&(r=a,e=i)}),{maxWidth:r,widestTable:e}}window.getMaxTableWidth=re;typeof window!="undefined"&&(window.TurboForms=window.TurboForms||{loadForm:Ee,getBuildVersion:Ae,getMaxTableWidth:re});return Ne(Ye);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unvired/turboforms-embed-sdk",
3
- "version": "2.0.56",
3
+ "version": "2.0.57",
4
4
  "description": "Reusable vanilla JS form library that works with React, Angular, Ionic, etc.",
5
5
  "main": "dist/turboforms.js",
6
6
  "types": "dist/index.d.ts",