1(self.webpackChunkkms=self.webpackChunkkms||[]).push([[1994,2249,6089],{84408(e,t,i){"use strict";i.d(t,{initialise:()=>d});var s=i(84743),o=i.n(s),a=i(47272);var l=["January","February","March","April","May","June","July","August","September","October","November","December"];function n(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}Number.prototype.lpad=function(e){for(var t=this.toString();t.length<e;)t="0"+t;return t},document.querySelector(".image-select-widget")&&i.e(6372).then(i.bind(i,78684)).then(e=>{e.initialise()});let r=!1;function d(){r||(r=!0,function(){if(document.querySelector(".file-upload-tool, .image-upload-tool")&&[...document.querySelectorAll(".file-upload-tool, .image-upload-tool")].forEach(function(e){new a.A(e)}),document.querySelector('input[data-widget="google-font-select"]')){var e=document.createElement("script");e.type="text/javascript",e.src="/static/frontend/js/form-widgets/google-font-field.js",document.head.appendChild(e)}}(),[...document.querySelectorAll(".date-picker-tool")].forEach(function(e){!function(e){e.style.display="none";var t=n("<div class='date-picker-wrapper'><select class='day input-xlarge form-control'><option value=''>-D-</option></select><select class='month input-xlarge form-control'><option value=''>-M-</option></select><select class='year input-xlarge form-control'><option value=''>-Y-</option></select></div>");e.insertAdjacentElement("afterend",t);var i=t.querySelector(".day"),s=t.querySelector(".month"),a=t.querySelector(".year");if(e.classList.contains("time"))i.remove(),s.remove(),a.remove();else{for(let e=1;e<32;e++)i.insertAdjacentHTML("beforeEnd",'<option value="'+e+'">'+e+"</option>");for(let e=0;e<12;e++)s.insertAdjacentHTML("beforeEnd",'<option value="'+e+'">'+l[e]+"</option>");var r=(new Date).getFullYear();let e=n("<option>... older ...</option>");a.insertAdjacentElement("beforeEnd",e),a.dataset.start=r-1,a.addEventListener("change",function(){if(a.options[a.selectedIndex]==e){for(r=0,r=a.dataset.start-1;r>a.dataset.start-11;r--)e.insertAdjacentHTML("afterEnd",`<option value="${r}">${r}</option>`);a.dataset.start=r+1,a.value=null}});for(let e=-1;e<10;e++)a.insertAdjacentHTML("beforeEnd",'<option value="'+(r+e)+'">'+(r+e)+"</option>")}if(e.classList.contains("date-time")||e.classList.contains("time")){var d,h=n("<select class='hour input-xlarge form-control'><option value=''>--</option></select>"),m=n("<select class='minute input-xlarge form-control'><option value=''>--</option></select>");for(e.classList.contains("time")||t.insertAdjacentHTML("beforeEnd","<span class='divider'> </span>"),t.insertAdjacentElement("beforeEnd",h),t.insertAdjacentHTML("beforeEnd","<span class='divider'>:</span>"),t.append(m),d=0;d<24;d++)h.insertAdjacentHTML("beforeEnd",'<option value="'+d.lpad(2)+'">'+d.lpad(2)+"</option>");for(d=0;d<60;d+=5)m.insertAdjacentHTML("beforeEnd",'<option value="'+d.lpad(2)+'">'+d.lpad(2)+"</option>")}if(e.classList.contains("time")){var p=e.value.split(":");2==p.length?(h.value=parseInt(p[0]).lpad(2),m.value=parseInt(p[1]).lpad(2)):e.value=""}else if(o()(e.value).isValid()){var c=o()(e.value),u=Intl.DateTimeFormat().resolvedOptions().timeZone;c=c.tz(u),a.value=c.year(),a.value!=c.year()&&a.insertAdjacentHTML("beforeEnd",`<option value="${c.year()}" selected>${c.year()}</option>`),s.value=c.month(),i.value=c.date(),e.classList.contains("date-time")&&(h.value=c.hour().lpad(2),m.value=c.minute().lpad(2),m.value!=c.minute().lpad(2)&&m.insertAdjacentHTML("beforeEnd",`<option value="${c.minute().lpad(2)}" selected>${c.minute().lpad(2)}</option>`))}else e.value="";function g(){if(""!=a.value&&""!=s.value&&""!=i.value){var t=Intl.DateTimeFormat().resolvedOptions().timeZone;e.classList.contains("date-time")?(c=(c=o().tz([a.value,s.value,i.value,h.value,m.value],t)).utc(),e.value=c.toISOString()):(c=(c=o().tz([a.value,s.value,i.value],t)).utc(),e.value=c.format("YYYY-MM-DD"))}else e.classList.contains("time")?e.value=h.value+":"+m.value:e.value="";e.dispatchEvent(new Event("change",{bubbles:!0}))}e.classList.contains("time")||(i.addEventListener("change",g),s.addEventListener("change",g),a.addEventListener("change",g)),(e.classList.contains("date-time")||e.classList.contains("time"))&&(h.addEventListener("change",g),m.addEventListener("change",g))}(e)}))}"complete"===document.readyState||"interactive"===document.readyState?d():document.addEventListener("DOMContentLoaded",d)},99385(e,t,i){"use strict";i.d(t,{A:()=>s});class s{constructor(e,t,i,s,o,a,l,n,r){this.id=e,this.asset_id=i,this.element=t,this.fileUpdated=o,this.showLoader=a,this.hideLoader=l,this.options={letterboxColour:"#DDD"},this.csrf_token=s,this.element.imageCropper=this,this.element.insertAdjacentHTML("beforeend",`<div id="img-wrapper${this.id}" style="text-align:center;">\n <div id="img-crop-frame${this.id}" style="box-sizing:content-box;margin: auto;position:relative;">\n <img id="imgframe-${this.id}" />\n <div class="img-crop-frame-opacity" style="opacity:0.5;background-color:#777;position:absolute;top:0;bottom:0;left:0;right:0;"></div>\n <div id="img-crop-wrapper${this.id}">\n <img id="img-${this.id}" />\n </div>\n </div>
1\n <div id="img-controls${this.id}" style="display:none; text-align:center;">\n <div class="zoom-slider">\n <span class="zoom-out zoom-control">-</span>\n <span class="zoom-slide" style="position:relative;display:block;width:100%;height:100%; margin:0 10px;"><span class="slide-handle"></span></span>\n <span class="zoom-in zoom-control">+</span>\n </div>\n <a class="btn btn-blue mb-3 text-white do-crop" href="#">Crop</a></div>\n <div id="img-info${this.id}"></div>\n </div>`),this.wrapper=document.getElementById("img-wrapper"+this.id),this.imgcropwrapper=document.getElementById("img-crop-wrapper"+this.id),this.imgframe=document.getElementById("imgframe-"+this.id),this.imgcropframe=document.getElementById("img-crop-frame"+this.id),this.img=document.getElementById("img-"+this.id),this.imgcontrols=document.getElementById("img-controls"+this.id),this.img.addEventListener("load",this.calculateImageZoom.bind(this)),this.img.addEventListener("error",this.loadImageError.bind(this));let d=this.wrapper.querySelector(".zoom-slider");d.style.borderRadius="15px",d.style.padding="0 32px",d.style.height="29px",d.style.maxWidth="300px",d.style.margin="20px auto",d.style.position="relative",Array.from(this.wrapper.querySelectorAll(".zoom-control")).map(e=>{e.style.cursor="pointer",e.style.position="absolute",e.style.top="5px",e.style.width="32px",e.style.height="32px"});let h=this.wrapper.querySelector(".zoom-out");h.style.left="5px",h.addEventListener("click",this.zoomOut.bind(this));let m=this.wrapper.querySelector(".zoom-in");m.style.right="5px",m.addEventListener("click",this.zoomIn.bind(this));let p=this.slidehandle=this.wrapper.querySelector(".slide-handle");p.style.background="#fff",p.style.borderRadius="6px",p.style.top="8px",p.style.height="13px",p.style.marginLeft="-6px",p.style.width="13px",p.style.cursor="move",p.style.position="absolute",this.zoomslide=d.querySelector(".zoom-slide"),this.zoomslide.addEventListener("mousedown",this.slideMouseDown.bind(this)),this.zoomslide.addEventListener("mousemove",this.slideMouseMove.bind(this)),this.imginfo=document.getElementById("img-info"+this.id),this.showLoader(),this.setSize(n,r,!0)}setImage(e,t){this.asset_id=t,this.img.src=e,this.imgframe.src=e}setZoom(e){let t=Math.min(Math.max(e,this.minimum_zoom),1);this.image_zoom=t,this.zoom_width=this.image_width*this.image_zoom,this.zoom_height=this.image_height*this.image_zoom,this.padding_width=Math.max((this.target_width-this.zoom_width)/2,0),this.padding_height=this.padding_height=Math.max((this.target_height-this.zoom_height)/2,0),this.img.style.width=this.zoom_width+"px",this.img.style.height=this.zoom_height+"px",this.img.style.padding=this.padding_height+"px "+this.padding_width+"px",this.imgframe.style.width=this.zoom_width+"px",this.imgframe.style.height=this.zoom_height+"px",this.imgframe.style.padding=this.padding_height+"px "+this.padding_width+"px",this.setPosition(parseInt(this.img.style.left),parseInt(this.img.style.top)),this.slidehandle.style.left=(t-this.minimum_zoom)/this.slider_scale*100+"%"}zoomOut(){this.setZoom(this.image_zoom-.01)}zoomIn(){this.setZoom(this.image_zoom+.01)}slideMouseDown(e){e.preventDefault(),this.mouse_down_slider=!0,this.mouse_down_slider_coords={x:e.pageX,y:e.pageY},this.mouse_down_slide_position={x:parseInt(this.slidehandle.style.left)}}slideMouseMove(e){if(this.mouse_down_slider){let t=e.pageX-this.mouse_down_slider_coords.x,i=this.mouse_down_slide_position.x+t/this.zoomslide.offsetWidth*100;i=Math.max(i,0),i=Math.min(i,100),this.setZoom(i/100*this.slider_scale+this.minimum_zoom)}}handleMouseUp(){this.mouse_down_slider=!1,this.mouse_down=!1}removeFile(){this.img.removeAttribute("src"),this.img.style.width="",this.img.style.height="",this.imgframe.removeAttribute("src"),this.imgframe.style.width="",this.imgframe.style.height="",this.imginfo.innerHTML="Image removed",this.imgcontrols.style.display="none"}setSize(e,t,i){if(void 0===i&&(i=!1),this.target_width=e,this.target_height=t,document.documentElement.removeEventListener("mousemove",this.handleMouseMove.bind(this)),this.img.removeEventListener("mousedown",this.handleMouseDown.bind(this)),window.removeEventListener("mouseup",this.handleMouseUp.bind(this)),this.img.removeEventListener("mousewheel",this.handleScroll.bind(this)),this.img.removeEventListener("DOMMouseScroll",this.handleScroll.bind(this)),this.wrapper.querySelector(".do-crop").removeEventListener("click",this.doCrop.bind(this)),e&&t){let i=e,s=t;this.imginfo.innerHTML="Image will be cropped to "+i+"x"+s+".",this.imgcropframe.
1style.width=i+"px",this.imgcropframe.style.height=s+"px",this.imgcropframe.style.overflow="hidden",this.imgcropframe.style.backgroundColor=this.options.letterboxColour,this.imgcropframe.style.padding="20px",this.imgcropframe.style.marginTop="10px",this.imgcropwrapper.style.width=i+"px",this.imgcropwrapper.style.height=s+"px",this.imgcropwrapper.style.position="relative",this.imgcropwrapper.style.overflow="hidden",this.imgcropwrapper.style.backgroundColor=this.options.letterboxColour,this.img.style.position="absolute",this.img.style.cursor="move",this.img.style.boxSizing="content-box",this.imgframe.style.position="absolute",this.imgframe.style.cursor="move",this.imgframe.style.boxSizing="content-box",document.documentElement.addEventListener("mousemove",this.handleMouseMove.bind(this)),this.img.addEventListener("mousedown",this.handleMouseDown.bind(this)),window.addEventListener("mouseup",this.handleMouseUp.bind(this)),this.img.addEventListener("mousewheel",this.handleScroll.bind(this)),this.img.addEventListener("DOMMouseScroll",this.handleScroll.bind(this)),this.wrapper.querySelector(".do-crop").addEventListener("click",this.doCrop.bind(this)),this.imgcropwrapper.style.display="block",this.wrapper.querySelector(".img-crop-frame-opacity").style.display="block"}else this.imgframe.style.position="static",this.imgframe.style.cursor="normal",this.imgcropframe.
1style.width="auto",this.imgcropframe.style.height="auto",this.imgcropframe.style.padding="",this.imgcropframe.style.backgroundColor=null,this.img.style.position="static",this.img.style.cursor="normal",this.imgcontrols.style.display="none",this.imgcropwrapper.style.display="none",this.wrapper.querySelector(".img-crop-frame-opacity").style.display="none";i||this.calculateImageZoom()}loadImageError(){this.hideLoader(),this.imginfo.innerHTML="Error loading image"}calculateImageZoom(){this.hideLoader();let e=this.image_width=this.img.naturalWidth,t=this.image_height=this.img.naturalHeight;var i=this.target_width,s=this.target_height;if(i&&s){this.imginfo.innerHTML="Image being cropped to "+i+"x"+s+". Original size "+e+"x"+t+" pixels";var o,a=i/e,l=s/t;a<=l?(this.minimum_zoom=e<i?i/e:a,o=t<s?s/t:l):(this.minimum_zoom=t<s?s/t:l,o=e<i?i/e:a),this.slider_scale=1-this.minimum_zoom,this.img.style.top="0px",this.img.style.left="0px",this.imgframe.style.top="20px",this.imgframe.style.left="20px",this.imgcontrols.style.display="block",this.setZoom(o)}else e&&e>300?(this.imginfo.innerHTML="Image scaled down. Original size "+e+"x"+t+" pixels",this.imgframe.style.width="300px",this.imgframe.style.height="auto"):this.imginfo.innerHTML="Image size "+this.img.width+"x"+this.img.height+" pixels";this.img.style.display="block"}setPosition(e,t){e=Math.max(Math.min(this.target_width-this.zoom_width,0)-this.padding_width,Math.min(this.padding_width,e)),t=Math.max(Math.min(this.target_height-this.zoom_height,0)-this.padding_height,Math.min(this.padding_height,t)),this.img.style.left=e.toString()+"px",this.img.style.top=t.toString()+"px",this.imgframe.style.left=(e+20).toString()+"px",this.imgframe.style.top=(t+20).toString()+"px"}handleMouseMove(e){if(this.mouse_down){var t=e.pageX-this.mouse_down_coords.x,i=e.pageY-this.mouse_down_coords.y;this.setPosition(this.mouse_down_image_position.x+t,this.mouse_down_image_position.y+i)}}handleMouseDown(e){e.preventDefault(),this.mouse_down=!0,this.mouse_down_coords={x:e.pageX,y:e.pageY},this.mouse_down_image_position={x:parseInt(this.img.style.left),y:parseInt(this.img.style.top)}}handleScroll(e){e.preventDefault(),e.wheelDelta>0||e.detail<0?this.setZoom(this.image_zoom+.01):this.setZoom(this.image_zoom-.01)}doCrop(e){e.preventDefault(),this.showLoader();let t=parseInt(this.img.style.left),i=parseInt(this.img.style.top),s=-t/this.image_zoom,o=-i/this.image_zoom,a={left_x:(s-this.padding_width/this.image_zoom)/this.image_width,top_y:(o-this.padding_height/this.image_zoom)/this.image_height,right_x:(s-this.padding_width/this.image_zoom+this.target_width/this.image_zoom)/this.image_width,bottom_y:(o-this.padding_height/this.image_zoom+this.target_height/this.image_zoom)/this.image_height,target_width:this.target_width,target_height:this.target_height,format:"json"};var l=new FormData;l.append("_csrf_token",this.csrf_token),Object.keys(a).forEach(e=>l.append(e,a[e])),fetch(`/console/resize-image-asset/${encodeURIComponent(this.asset_id)}`,{body:l,method:"post",cache:"no-cache",credentials:"same-origin"}).then(e=>{if(!e.ok)throw Error("Could not process image. Please check that the file is a valid image, or try a smaller image.");return e}).then(e=>e.json()).then(e=>{e.error?(alert(e.error),this.hideLoader()):(this.fileUpdated(e.asset_id),this.setImage(e.asset_url,e.asset_id))},e=>{alert(e),this.hideLoader()})}}},47272(e,t,i){"use strict";i.d(t,{A:()=>d}),i(78624),i(7452);var s=i(19788),o=i(99385),a=i(38945),l=i(85804),n=i(88816),r=i.n(n);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});class d{constructor(e){this.element=e,this.form=this.element.closest("form"),this.id=e.id,this.upload=null,this.mouse_down=!1,this.mouse_down_coords=null,this.mouse_down_position=null,this.file_url=document.createElement("a"),this.image_mode=e.classList.contains("image-upload-tool"),this.get_upload_url=e.getAttribute("data-get-upload-url"),this.finalise_url=e.getAttribute("data-finalise-upload-url"),this.info_url=e.getAttribute("data-get-upload-info"),this.accept=e.getAttribute("data-accept"),this.permanent_url=e.getAttribute("data-permanent-url"),e.insertAdjacentHTML("afterend",`<div class='file-upload-container' id='upload-container-${this.id}'>\n <a class="file-browse" id="browse-${this.id}" href="javascript:;" >[Browse...]</a>\n <button class="file-pause" id="pause-${this.id}" style="display:none">Pause</button>\n <a class="file-remove" id="remove-${this.id}" href="javascript:;" style="display:none;">[Remove]</a>\n <p class="file-upload-info" style="display:none"></p>\n <progress id="progress-${this.id}" style="display:none"></progress>\n </div>`),this.wrapper=e.parentElement.querySelector(`#upload-container-${this.id}
1`),this.browse_input=document.getElementById("browse-"+this.id),this.progress=document.getElementById("progress-"+this.id),this.pause_input=document.getElementById("pause-"+this.id),this.file_info=this.wrapper.querySelector(".file-upload-info"),this.remove=document.getElementById("remove-"+this.id),this.browse_input.addEventListener("click",this.browse_clicked.bind(this)),this.pause_input.addEventListener("click",this.pause_clicked.bind(this)),this.remove.addEventListener("click",this.removeFile.bind(this)),this.fileSelector=document.createElement("input"),this.fileSelector.setAttribute("type","file"),this.fileSelector.setAttribute("multiple","multiple"),this.accept&&this.fileSelector.setAttribute("accept",this.accept),this.fileSelector.addEventListener("change",this.file_selected.bind(this)),(0,l.u)().then(t=>{if(this.csrf_token=t,this.image_mode){let t=e.getAttribute("data-width"),i=e.getAttribute("data-height");this.imageCropper=new o.A(this.id,this.wrapper,this.element.value,this.csrf_token,this.filechanged.bind(this),this.showLoader.bind(this),this.hideLoader.bind(this),t,i)}this.csrf_token||alert("Could not get CSRF Token. Cannot crop image."),this.element.value?this.loadInitialValue():this.hideLoader()})}validate_file_name_size(e){return Boolean(e.name.length<=140)}validate_file_type(e){if(this.accept){const t="."+e.name.split(".").pop().toLowerCase(),i=this.accept.split(", ");return!i||Boolean(i.includes(t))}return!0}validate_file(e){return this.validate_file_name_size(e)?!!this.validate_file_type(e)||(this.display_upload_error("Invalid file type uploaded"),!1):(this.display_upload_error("File name is too long. File name: "+e.name),!1)}async convert_file(e){return".heic"=="."+e.name.split(".").pop().toLowerCase()?(this.file_info.innerText="Converting HEIC to JPG",this.progress.style.display="none",await this.convert_heic(e)):e}async convert_heic(e){let t=URL.createObjectURL(e),i=await fetch(t),s=await i.blob(),o=await r()({blob:s,toType:"image/jpeg",quality:1});var a=e.name.substr(0,e.name.lastIndexOf("."))+".jpg";return new File([o],a)}derive_initial_upload_url(e){let t=`${this.get_upload_url}?filename=${encodeURIComponent(e.name)}`;return t+=`&content_type=${encodeURIComponent(e.type)}`,t+=`&file_size=${encodeURIComponent(e.size)}`,t}display_upload_start(e){this.progress.style.display="block",this.file_info.innerText=`Uploading ${e.name} (${(0,a.O7)(e.size)}).`,this.file_info.style.display="block",this.progress.max=e.size,this.showLoader()}get_final_upload_url(e,t,i){fetch(e).then(e=>{if(!e.ok){const t=e.status;return Promise.reject(t)}return e.redirected&&e.url.includes("/login/")?Promise.reject("Cannot start upload as you are no longer logged in. Please log in again to continue"):e.json()}).then(async e=>{i(t,e)}).catch(e=>{"413"==e?this.display_upload_error("The file size is over the allowed limit"):this.display_upload_error("Error status code: "+e)})}async upload_file(e){if(this.display_upload_start(e),!this.validate_file(e))return!1;e=await this.convert_file(e),this.get_final_upload_url(this.derive_initial_upload_url(e),e,this.upload_start.bind(this))}async upload_start(e,t){let i=new s.A({id:this.id,url:t.upload_url,file:e,contentType:e.type,onChunkUpload:this.chunkUpload.bind(this)});try{let t=await i.start();if(this.remove.style.display="block",this.finalise_url){let i=new FormData;i.append("source_name",t.data.name),i.append("target_name",e.name),this.permanent_url&&i.append("path_prefix",this.get_asset_id()+"/"+this.id),i.append("_csrf_token",this.csrf_token),fetch(this.finalise_url,{method:"POST",body:i,credentials:"same-origin"}).then(function(e){return e.json()}).then(t=>{this.upload_completed(e,t.asset_id,t.asset_url)})}else this.upload_completed(e,"gcs_temp_file:"+t.data.name)}catch(e){this.log("Upload failed! Error:",e),this.hideLoader()}finally{i=null,this.progress.style.display="none"}}upload_completed(e,t,i){this.element.value=t,this.log("File has been uploaded: "+e.name),this.file_info.innerText=`${e.name} uploaded (${(0,a.O7)(e.size)}).`,this.file_url.href=i,this.file_url.textContent=i,this.file_url.style.display="block",this.file_info.style.display="block",this.remove.style.display="block",this.image_mode?this.imageCropper.setImage(i,t):this.hideLoader()}get_asset_id(){let e=window.location.href;return e=e.replace(/\/+$/,""),e.substring(e.lastIndexOf("/")+1)}loadInitialValue(){this.showLoader(),fetch(this.info_url.replace("~~asset_id~~",this.element.value),{credentials:"same-origin",headers:{Accept:"application/json"}}).then(e=>{if(200===e.status)return e.json();throw new Error(e.statusText)}).then(e=>{let t=document.createElement("span"),i=document.createElement("i");i.className="bi bi-link-45deg me-2",t.innerText=`${e.data.original_filename} uploaded (${(0,a.O7)(e.data.size)}).`,this.file_info.style.display="flex",this.file_url.href=e.data.asset_url,this.file_url.target="_blank",this.file_url.append(i,t),this.file_info.appendChild(this.file_url),this.remove.style.display="block",this.image_mode?this.imageCropper.setImage(e.data.asset_url,e.data.asset_id):this.hideLoader()},e=>{this.file_info.innerText="Previous file information could not be loaded.",this.file_info.style.display="block",this.remove.style.display="block",this.hideLoader(),this.log("Error loading previous file information "+e)})}browse_clicked(){this.fileSelector.click()}display_upload_error(e){this.hideLoader(),this.progress.style.display="none",this.file_info.innerText=e}file_selected(){this.upload_file(this.fileSelector.files[0]),this.fileSelector.value=""}pause_clicked(){this.upload&&(this.upload.paused?this.upload.unpause():this.upload.pause())}chunkUpload(e){this.progress.value=e.uploadedBytes}removeFile(){this.remove.style.display="none",this.file_url.style.display="none",this.element.value="",this.image_mode&&this.imageCropper.removeFile(),this.file_info.innerText="",this.file_info.style.display="none"}showLoader(){this.wrapper.querySelector(".loading")||(this.wrapper.insertAdjacentHTML("beforeend",'<span class="loading imgcroploader"></span>'),this.file_upload_disable_form())}hideLoader(){this.wrapper.querySelector(".loading")&&(this.wrapper.querySelector(".loading").remove(),this.file_upload_enable_form())}filechanged(e){this.element.value=e}file_upload_disabled_handler(){alert("Please wait for uploads to complete before submitting form.")}file_upload_disable_form(){this.form.file_upload_disable||(this.form.file_upload_disable=[],this.form.addEventListener("submit",this.file_upload_disabled_handler),Array.from(this.form.querySelectorAll('button, input[type="submit"]')).forEac
1h(e=>{e.setAttribute("disabled","disabled")})),this.form.file_upload_disable.push(this.id)}file_upload_enable_form(){var e=this.form.file_upload_disable.filter(e=>e!=this.id);this.form.file_upload_disable=e,0==e.length&&(this.form.file_upload_disable=null,this.form.removeEventListener("submit",this.file_upload_disabled_handler),Array.from(this.form.querySelectorAll('button, input[type="submit"]')).forEach(e=>{e.removeAttribute("disabled")}))}log(e){console&&console.log&&console.log("[Image-upload] "+e)}}},66669(){}}]); 2//# sourceMappingURL=chunk-form-widgets.23be6d8ff02e6491.build.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.