@dcodegroup-au/page-builder 0.2.3 → 0.2.4

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.
@@ -8589,8 +8589,8 @@ const up = { render: lp }, cp = { class: "file-upload" }, fp = ["name", "value"]
8589
8589
  ])
8590
8590
  ]),
8591
8591
  H("div", null, [
8592
- (l = r.value.content) != null && l.label ? (re(), ue("h3", Dp, Ue(r.value.data.content.label), 1)) : He("", !0),
8593
- (i = r.value.content) != null && i.supportive_text ? (re(), ue("p", jp, Ue(r.value.data.content.supportive_text), 1)) : He("", !0)
8592
+ (l = r.value.content) != null && l.label ? (re(), ue("h3", Dp, Ue(r.value.content.label), 1)) : He("", !0),
8593
+ (i = r.value.content) != null && i.supportive_text ? (re(), ue("p", jp, Ue(r.value.content.supportive_text), 1)) : He("", !0)
8594
8594
  ])
8595
8595
  ]);
8596
8596
  };
@@ -10,7 +10,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
10
10
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var $=w.next();return x=$.done,$},e:function($){I=!0,B=$},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function b(N,R){if(N){if(typeof N=="string")return S(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return S(N,R)}}function S(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}var T={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,w,C){if(C)return{dzuuid:C.file.upload.uuid,dzchunkindex:C.index,dztotalfilesize:C.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:C.file.upload.totalChunkCount,dzchunkbyteoffset:C.index*this.options.chunkSize}},accept:function(R,w){return w()},chunksUploaded:function(R,w){w()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=v(this.element.getElementsByTagName("div")),C;try{for(w.s();!(C=w.n()).done;){var y=C.value;if(/(^| )dz-message($| )/.test(y.className)){R=y,y.className="dz-message";break}}}catch(I){w.e(I)}finally{w.f()}R||(R=q.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var x=R.getElementsByTagName("span")[0];return x&&(x.textContent!=null?x.textContent=this.options.dictFallbackMessage:x.innerText!=null&&(x.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,w,C,y){var x={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;w==null&&C==null?(w=x.srcWidth,C=x.srcHeight):w==null?w=C*I:C==null&&(C=w/I),w=Math.min(w,x.srcWidth),C=Math.min(C,x.srcHeight);var B=w/C;if(x.srcWidth>w||x.srcHeight>C)if(y==="crop")I>B?(x.srcHeight=R.height,x.srcWidth=x.srcHeight*B):(x.srcWidth=R.width,x.srcHeight=x.srcWidth/B);else if(y==="contain")I>B?C=w/I:w=C*I;else throw new Error("Unknown resizeMethod '".concat(y,"'"));return x.srcX=(R.width-x.srcWidth)/2,x.srcY=(R.height-x.srcHeight)/2,x.trgWidth=w,x.trgHeight=C,x},transformFile:function(R,w){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(R)},previewTemplate:p,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=q.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var C=v(R.previewElement.querySelectorAll("[data-dz-name]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=R.name}}catch(Y){C.e(Y)}finally{C.f()}var I=v(R.previewElement.querySelectorAll("[data-dz-size]")),B;try{for(I.s();!(B=I.n()).done;)x=B.value,x.innerHTML=this.filesize(R.size)}catch(Y){I.e(Y)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=q.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(Q){return Q.preventDefault(),Q.stopPropagation(),R.status===q.UPLOADING?q.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(R)}):w.options.dictRemoveFileConfirmation?q.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(R)}):w.removeFile(R)},$=v(R.previewElement.querySelectorAll("[data-dz-remove]")),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;Z.addEventListener("click",U)}}catch(Y){$.e(Y)}finally{$.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,w){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var C=v(R.previewElement.querySelectorAll("[data-dz-thumbnail]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.alt=R.name,x.src=w}}catch(I){C.e(I)}finally{C.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,w){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var C=v(R.previewElement.querySelectorAll("[data-dz-errormessage]")),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;x.textContent=w}}catch(I){C.e(I)}finally{C.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,w,C){if(R.previewElement){var y=v(R.previewElement.querySelectorAll("[data-dz-uploadprogress]")),x;try{for(y.s();!(x=y.n()).done;){var I=x.value;I.nodeName==="PROGRESS"?I.value=w:I.style.width="".concat(w,"%")}}catch(B){y.e(B)}finally{y.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},k=T;function F(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(N)}function M(N,R){var w;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(w=z(N))||N&&typeof N.length=="number"){w&&(N=w);var C=0,y=function(){};return{s:y,n:function(){return C>=N.length?{done:!0}:{done:!1,value:N[C++]}},e:function($){throw $},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11
11
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,I=!1,B;return{s:function(){w=N[Symbol.iterator]()},n:function(){var $=w.next();return x=$.done,$},e:function($){I=!0,B=$},f:function(){try{!x&&w.return!=null&&w.return()}finally{if(I)throw B}}}}function z(N,R){if(N){if(typeof N=="string")return X(N,R);var w=Object.prototype.toString.call(N).slice(8,-1);if(w==="Object"&&N.constructor&&(w=N.constructor.name),w==="Map"||w==="Set")return Array.from(N);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return X(N,R)}}function X(N,R){(R==null||R>N.length)&&(R=N.length);for(var w=0,C=new Array(R);w<R;w++)C[w]=N[w];return C}function H(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function re(N,R){for(var w=0;w<R.length;w++){var C=R[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(N,C.key,C)}}function G(N,R,w){return R&&re(N.prototype,R),w&&re(N,w),N}function E(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},P(N,R)}function O(N){var R=V();return function(){var C=K(N),y;if(R){var x=K(this).constructor;y=Reflect.construct(C,arguments,x)}else y=C.apply(this,arguments);return _(this,y)}}function _(N,R){return R&&(F(R)==="object"||typeof R=="function")?R:j(N)}function j(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function K(N){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},K(N)}var q=function(N){E(w,N);var R=O(w);function w(C,y){var x;H(this,w),x=R.call(this);var I,B;if(x.element=C,x.version=w.version,x.clickableElements=[],x.listeners=[],x.files=[],typeof x.element=="string"&&(x.element=document.querySelector(x.element)),!x.element||x.element.nodeType==null)throw new Error("Invalid dropzone element.");if(x.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(j(x)),x.element.dropzone=j(x);var U=(B=w.optionsForElement(x.element))!=null?B:{};if(x.options=w.extend({},k,U,y??{}),x.options.previewTemplate=x.options.previewTemplate.replace(/\n*/g,""),x.options.forceFallback||!w.isBrowserSupported())return _(x,x.options.fallback.call(j(x)));if(x.options.url==null&&(x.options.url=x.element.getAttribute("action")),!x.options.url)throw new Error("No URL provided.");if(x.options.acceptedFiles&&x.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(x.options.uploadMultiple&&x.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return x.options.acceptedMimeTypes&&(x.options.acceptedFiles=x.options.acceptedMimeTypes,delete x.options.acceptedMimeTypes),x.options.renameFilename!=null&&(x.options.renameFile=function($){return x.options.renameFilename.call(j(x),$.name,$)}),typeof x.options.method=="string"&&(x.options.method=x.options.method.toUpperCase()),(I=x.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),x.options.previewsContainer!==!1&&(x.options.previewsContainer?x.previewsContainer=w.getElement(x.options.previewsContainer,"previewsContainer"):x.previewsContainer=x.element),x.options.clickable&&(x.options.clickable===!0?x.clickableElements=[x.element]:x.clickableElements=w.getElements(x.options.clickable,"clickable")),x.init(),x}return G(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(y){return y.accepted}).map(function(y){return y})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(y){return!y.accepted}).map(function(y){return y})}},{key:"getFilesWithStatus",value:function(y){return this.files.filter(function(x){return x.status===y}).map(function(x){return x})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===w.UPLOADING||y.status===w.QUEUED}).map(function(y){return y})}},{key:"init",value:function(){var y=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var x=function Z(){y.hiddenFileInput&&y.hiddenFileInput.parentNode.removeChild(y.hiddenFileInput),y.hiddenFileInput=document.createElement("input"),y.hiddenFileInput.setAttribute("type","file"),(y.options.maxFiles===null||y.options.maxFiles>1)&&y.hiddenFileInput.setAttribute("multiple","multiple"),y.hiddenFileInput.className="dz-hidden-input",y.options.acceptedFiles!==null&&y.hiddenFileInput.setAttribute("accept",y.options.acceptedFiles),y.options.capture!==null&&y.hiddenFileInput.setAttribute("capture",y.options.capture),y.hiddenFileInput.setAttribute("tabindex","-1"),y.hiddenFileInput.style.visibility="hidden",y.hiddenFileInput.style.position="absolute",y.hiddenFileInput.style.top="0",y.hiddenFileInput.style.left="0",y.hiddenFileInput.style.height="0",y.hiddenFileInput.style.width="0",w.getElement(y.options.hiddenInputContainer,"hiddenInputContainer").appendChild(y.hiddenFileInput),y.hiddenFileInput.addEventListener("change",function(){var Y=y.hiddenFileInput.files;if(Y.length){var Q=M(Y),ne;try{for(Q.s();!(ne=Q.n()).done;){var oe=ne.value;y.addFile(oe)}}catch(fe){Q.e(fe)}finally{Q.f()}}y.emit("addedfiles",Y),Z()})};x()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=M(this.events),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;this.on(U,this.options[U])}}catch(Z){I.e(Z)}finally{I.f()}this.on("uploadprogress",function(){return y.updateTotalUploadProgress()}),this.on("removedfile",function(){return y.updateTotalUploadProgress()}),this.on("canceled",function(Z){return y.emit("complete",Z)}),this.on("complete",function(Z){if(y.getAddedFiles().length===0&&y.getUploadingFiles().length===0&&y.getQueuedFiles().length===0)return setTimeout(function(){return y.emit("queuecomplete")},0)});var $=function(Y){if(Y.dataTransfer.types){for(var Q=0;Q<Y.dataTransfer.types.length;Q++)if(Y.dataTransfer.types[Q]==="Files")return!0}return!1},W=function(Y){if($(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return y.emit("dragstart",Y)},dragenter:function(Y){return W(Y),y.emit("dragenter",Y)},dragover:function(Y){var Q;try{Q=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",W(Y),y.emit("dragover",Y)},dragleave:function(Y){return y.emit("dragleave",Y)},drop:function(Y){return W(Y),y.drop(Y)},dragend:function(Y){return y.emit("dragend",Y)}}}],this.clickableElements.forEach(function(Z){return y.listeners.push({element:Z,events:{click:function(Q){return(Z!==y.element||Q.target===y.element||w.elementInside(Q.target,y.element.querySelector(".dz-message")))&&y.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var y,x=0,I=0,B=this.getActiveFiles();if(B.length){var U=M(this.getActiveFiles()),$;try{for(U.s();!($=U.n()).done;){var W=$.value;x+=W.upload.bytesSent,I+=W.upload.total}}catch(Z){U.e(Z)}finally{U.f()}y=100*x/I}else y=100;return this.emit("totaluploadprogress",y,I,x)}},{key:"_getParamName",value:function(y){return typeof this.options.paramName=="function"?this.options.paramName(y):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(y,"]"):"")}},{key:"_renameFile",value:function(y){return typeof this.options.renameFile!="function"?y.name:this.options.renameFile(y)}},{key:"getFallbackForm",value:function(){var y,x;if(y=this.getExistingFallback())return y;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var B=w.createElement(I);return this.element.tagName!=="FORM"?(x=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),x.appendChild(B)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),x??B}},{key:"getExistingFallback",value:function(){for(var y=function(W){var Z=M(W),Y;try{for(Z.s();!(Y=Z.n()).done;){var Q=Y.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(ne){Z.e(ne)}finally{Z.f()}},x=0,I=["div","form"];x<I.length;x++){var B=I[x],U;if(U=y(this.element.getElementsByTagName(B)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var I in y.events){var B=y.events[I];x.push(y.element.addEventListener(I,B,!1))}return x}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(y){return function(){var x=[];for(var I in y.events){var B=y.events[I];x.push(y.element.removeEventListener(I,B,!1))}return x}()})}},{key:"disable",value:function(){var y=this;return this.clickableElements.forEach(function(x){return x.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(x){return y.cancelUpload(x)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(y){return y.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(y){var x=0,I="b";if(y>0){for(var B=["tb","gb","mb","kb","b"],U=0;U<B.length;U++){var $=B[U],W=Math.pow(this.options.filesizeBase,4-U)/10;if(y>=W){x=y/Math.pow(this.options.filesizeBase,4-U),I=$;break}}x=Math.round(10*x)/10}return"<strong>".concat(x,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(y){if(y.dataTransfer){this.emit("drop",y);for(var x=[],I=0;I<y.dataTransfer.files.length;I++)x[I]=y.dataTransfer.files[I];if(x.length){var B=y.dataTransfer.items;B&&B.length&&B[0].webkitGetAsEntry!=null?this._addFilesFromItems(B):this.handleFiles(x)}this.emit("addedfiles",x)}}},{key:"paste",value:function(y){if(he(y!=null?y.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",y);var x=y.clipboardData.items;if(x.length)return this._addFilesFromItems(x)}}},{key:"handleFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.addFile(B)}}catch(U){x.e(U)}finally{x.f()}}},{key:"_addFilesFromItems",value:function(y){var x=this;return function(){var I=[],B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value,W;$.webkitGetAsEntry!=null&&(W=$.webkitGetAsEntry())?W.isFile?I.push(x.addFile($.getAsFile())):W.isDirectory?I.push(x._addFilesFromDirectory(W,W.name)):I.push(void 0):$.getAsFile!=null&&($.kind==null||$.kind==="file")?I.push(x.addFile($.getAsFile())):I.push(void 0)}}catch(Z){B.e(Z)}finally{B.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(y,x){var I=this,B=y.createReader(),U=function(Z){return Oe(console,"log",function(Y){return Y.log(Z)})},$=function W(){return B.readEntries(function(Z){if(Z.length>0){var Y=M(Z),Q;try{for(Y.s();!(Q=Y.n()).done;){var ne=Q.value;ne.isFile?ne.file(function(oe){if(!(I.options.ignoreHiddenFiles&&oe.name.substring(0,1)==="."))return oe.fullPath="".concat(x,"/").concat(oe.name),I.addFile(oe)}):ne.isDirectory&&I._addFilesFromDirectory(ne,"".concat(x,"/").concat(ne.name))}}catch(oe){Y.e(oe)}finally{Y.f()}W()}return null},U)};return $()}},{key:"accept",value:function(y,x){this.options.maxFilesize&&y.size>this.options.maxFilesize*1024*1024?x(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(y.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(y,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(x(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",y)):this.options.accept.call(this,y,x):x(this.options.dictInvalidFileType)}},{key:"addFile",value:function(y){var x=this;y.upload={uuid:w.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=w.ADDED,this.emit("addedfile",y),this._enqueueThumbnail(y),this.accept(y,function(I){I?(y.accepted=!1,x._errorProcessing([y],I)):(y.accepted=!0,x.options.autoQueue&&x.enqueueFile(y)),x._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;this.enqueueFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"enqueueFile",value:function(y){var x=this;if(y.status===w.ADDED&&y.accepted===!0){if(y.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return x.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(y){var x=this;if(this.options.createImageThumbnails&&y.type.match(/image.*/)&&y.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(y),setTimeout(function(){return x._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var y=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var x=this._thumbnailQueue.shift();return this.createThumbnail(x,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return y.emit("thumbnail",x,I),y._processingThumbnail=!1,y._processThumbnailQueue()})}}},{key:"removeFile",value:function(y){if(y.status===w.UPLOADING&&this.cancelUpload(y),this.files=J(this.files,y),this.emit("removedfile",y),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(y){y==null&&(y=!1);var x=M(this.files.slice()),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;(B.status!==w.UPLOADING||y)&&this.removeFile(B)}}catch(U){x.e(U)}finally{x.f()}return null}},{key:"resizeImage",value:function(y,x,I,B,U){var $=this;return this.createThumbnail(y,x,I,B,!0,function(W,Z){if(Z==null)return U(y);var Y=$.options.resizeMimeType;Y==null&&(Y=y.type);var Q=Z.toDataURL(Y,$.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Q=ve.restore(y.dataURL,Q)),U(w.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(y,x,I,B,U,$){var W=this,Z=new FileReader;Z.onload=function(){if(y.dataURL=Z.result,y.type==="image/svg+xml"){$!=null&&$(Z.result);return}W.createThumbnailFromUrl(y,x,I,B,U,$)},Z.readAsDataURL(y)}},{key:"displayExistingFile",value:function(y,x,I,B){var U=this,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",y),this.emit("complete",y),!$)this.emit("thumbnail",y,x),I&&I();else{var W=function(Y){U.emit("thumbnail",y,Y),I&&I()};y.dataURL=x,this.createThumbnailFromUrl(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,W,B)}}},{key:"createThumbnailFromUrl",value:function(y,x,I,B,U,$,W){var Z=this,Y=document.createElement("img");return W&&(Y.crossOrigin=W),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,Y.onload=function(){var Q=function(oe){return oe(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(Q=function(oe){return EXIF.getData(Y,function(){return oe(EXIF.getTag(this,"Orientation"))})}),Q(function(ne){y.width=Y.width,y.height=Y.height;var oe=Z.options.resize.call(Z,y,x,I,B),fe=document.createElement("canvas"),we=fe.getContext("2d");switch(fe.width=oe.trgWidth,fe.height=oe.trgHeight,ne>4&&(fe.width=oe.trgHeight,fe.height=oe.trgWidth),ne){case 2:we.translate(fe.width,0),we.scale(-1,1);break;case 3:we.translate(fe.width,fe.height),we.rotate(Math.PI);break;case 4:we.translate(0,fe.height),we.scale(1,-1);break;case 5:we.rotate(.5*Math.PI),we.scale(1,-1);break;case 6:we.rotate(.5*Math.PI),we.translate(0,-fe.width);break;case 7:we.rotate(.5*Math.PI),we.translate(fe.height,-fe.width),we.scale(-1,1);break;case 8:we.rotate(-.5*Math.PI),we.translate(-fe.height,0);break}ge(we,Y,oe.srcX!=null?oe.srcX:0,oe.srcY!=null?oe.srcY:0,oe.srcWidth,oe.srcHeight,oe.trgX!=null?oe.trgX:0,oe.trgY!=null?oe.trgY:0,oe.trgWidth,oe.trgHeight);var De=fe.toDataURL("image/png");if($!=null)return $(De,fe)})},$!=null&&(Y.onerror=$),Y.src=y.dataURL}},{key:"processQueue",value:function(){var y=this.options.parallelUploads,x=this.getUploadingFiles().length,I=x;if(!(x>=y)){var B=this.getQueuedFiles();if(B.length>0){if(this.options.uploadMultiple)return this.processFiles(B.slice(0,y-x));for(;I<y;){if(!B.length)return;this.processFile(B.shift()),I++}}}}},{key:"processFile",value:function(y){return this.processFiles([y])}},{key:"processFiles",value:function(y){var x=M(y),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;B.processing=!0,B.status=w.UPLOADING,this.emit("processing",B)}}catch(U){x.e(U)}finally{x.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",y),this.uploadFiles(y)}},{key:"_getFilesWithXhr",value:function(y){return this.files.filter(function(x){return x.xhr===y}).map(function(x){return x})}},{key:"cancelUpload",value:function(y){if(y.status===w.UPLOADING){var x=this._getFilesWithXhr(y.xhr),I=M(x),B;try{for(I.s();!(B=I.n()).done;){var U=B.value;U.status=w.CANCELED}}catch(Y){I.e(Y)}finally{I.f()}typeof y.xhr<"u"&&y.xhr.abort();var $=M(x),W;try{for($.s();!(W=$.n()).done;){var Z=W.value;this.emit("canceled",Z)}}catch(Y){$.e(Y)}finally{$.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",x)}else(y.status===w.ADDED||y.status===w.QUEUED)&&(y.status=w.CANCELED,this.emit("canceled",y),this.options.uploadMultiple&&this.emit("canceledmultiple",[y]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(y){if(typeof y=="function"){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];return y.apply(this,I)}return y}},{key:"uploadFile",value:function(y){return this.uploadFiles([y])}},{key:"uploadFiles",value:function(y){var x=this;this._transformFiles(y,function(I){if(x.options.chunking){var B=I[0];y[0].upload.chunked=x.options.chunking&&(x.options.forceChunking||B.size>x.options.chunkSize),y[0].upload.totalChunkCount=Math.ceil(B.size/x.options.chunkSize)}if(y[0].upload.chunked){var U=y[0],$=I[0];U.upload.chunks=[];var W=function(){for(var oe=0;U.upload.chunks[oe]!==void 0;)oe++;if(!(oe>=U.upload.totalChunkCount)){var fe=oe*x.options.chunkSize,we=Math.min(fe+x.options.chunkSize,$.size),De={name:x._getParamName(0),data:$.webkitSlice?$.webkitSlice(fe,we):$.slice(fe,we),filename:U.upload.filename,chunkIndex:oe};U.upload.chunks[oe]={file:U,index:oe,dataBlock:De,status:w.UPLOADING,progress:0,retries:0},x._uploadData(y,[De])}};if(U.upload.finishedChunkUpload=function(ne,oe){var fe=!0;ne.status=w.SUCCESS,ne.dataBlock=null,ne.xhr=null;for(var we=0;we<U.upload.totalChunkCount;we++){if(U.upload.chunks[we]===void 0)return W();U.upload.chunks[we].status!==w.SUCCESS&&(fe=!1)}fe&&x.options.chunksUploaded(U,function(){x._finished(y,oe,null)})},x.options.parallelChunkUploads)for(var Z=0;Z<U.upload.totalChunkCount;Z++)W();else W()}else{for(var Y=[],Q=0;Q<y.length;Q++)Y[Q]={name:x._getParamName(Q),data:I[Q],filename:y[Q].upload.filename};x._uploadData(y,Y)}})}},{key:"_getChunk",value:function(y,x){for(var I=0;I<y.upload.totalChunkCount;I++)if(y.upload.chunks[I]!==void 0&&y.upload.chunks[I].xhr===x)return y.upload.chunks[I]}},{key:"_uploadData",value:function(y,x){var I=this,B=new XMLHttpRequest,U=M(y),$;try{for(U.s();!($=U.n()).done;){var W=$.value;W.xhr=B}}catch(Pe){U.e(Pe)}finally{U.f()}y[0].upload.chunked&&(y[0].upload.chunks[x[0].chunkIndex].xhr=B);var Z=this.resolveOption(this.options.method,y),Y=this.resolveOption(this.options.url,y);B.open(Z,Y,!0);var Q=this.resolveOption(this.options.timeout,y);Q&&(B.timeout=this.resolveOption(this.options.timeout,y)),B.withCredentials=!!this.options.withCredentials,B.onload=function(Pe){I._finishedUploading(y,B,Pe)},B.ontimeout=function(){I._handleUploadError(y,B,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},B.onerror=function(){I._handleUploadError(y,B)};var ne=B.upload!=null?B.upload:B;ne.onprogress=function(Pe){return I._updateFilesUploadProgress(y,B,Pe)};var oe={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(oe,this.options.headers);for(var fe in oe){var we=oe[fe];we&&B.setRequestHeader(fe,we)}var De=new FormData;if(this.options.params){var Ge=this.options.params;typeof Ge=="function"&&(Ge=Ge.call(this,y,B,y[0].upload.chunked?this._getChunk(y[0],B):null));for(var je in Ge){var Be=Ge[je];if(Array.isArray(Be))for(var Ve=0;Ve<Be.length;Ve++)De.append(je,Be[Ve]);else De.append(je,Be)}}var rt=M(y),it;try{for(rt.s();!(it=rt.n()).done;){var Dt=it.value;this.emit("sending",Dt,B,De)}}catch(Pe){rt.e(Pe)}finally{rt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",y,B,De),this._addFormElementData(De);for(var bt=0;bt<x.length;bt++){var _e=x[bt];De.append(_e.name,_e.data,_e.filename)}this.submitRequest(B,De,y)}},{key:"_transformFiles",value:function(y,x){for(var I=this,B=[],U=0,$=function(Y){I.options.transformFile.call(I,y[Y],function(Q){B[Y]=Q,++U===y.length&&x(B)})},W=0;W<y.length;W++)$(W)}},{key:"_addFormElementData",value:function(y){if(this.element.tagName==="FORM"){var x=M(this.element.querySelectorAll("input, textarea, select, button")),I;try{for(x.s();!(I=x.n()).done;){var B=I.value,U=B.getAttribute("name"),$=B.getAttribute("type");if($&&($=$.toLowerCase()),!(typeof U>"u"||U===null))if(B.tagName==="SELECT"&&B.hasAttribute("multiple")){var W=M(B.options,!0),Z;try{for(W.s();!(Z=W.n()).done;){var Y=Z.value;Y.selected&&y.append(U,Y.value)}}catch(Q){W.e(Q)}finally{W.f()}}else(!$||$!=="checkbox"&&$!=="radio"||B.checked)&&y.append(U,B.value)}}catch(Q){x.e(Q)}finally{x.f()}}}},{key:"_updateFilesUploadProgress",value:function(y,x,I){if(y[0].upload.chunked){var W=y[0],Z=this._getChunk(W,x);I?(Z.progress=100*I.loaded/I.total,Z.total=I.total,Z.bytesSent=I.loaded):(Z.progress=100,Z.bytesSent=Z.total),W.upload.progress=0,W.upload.total=0,W.upload.bytesSent=0;for(var Y=0;Y<W.upload.totalChunkCount;Y++)W.upload.chunks[Y]&&typeof W.upload.chunks[Y].progress<"u"&&(W.upload.progress+=W.upload.chunks[Y].progress,W.upload.total+=W.upload.chunks[Y].total,W.upload.bytesSent+=W.upload.chunks[Y].bytesSent);W.upload.progress=W.upload.progress/W.upload.totalChunkCount,this.emit("uploadprogress",W,W.upload.progress,W.upload.bytesSent)}else{var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.upload.total&&$.upload.bytesSent&&$.upload.bytesSent==$.upload.total||(I?($.upload.progress=100*I.loaded/I.total,$.upload.total=I.total,$.upload.bytesSent=I.loaded):($.upload.progress=100,$.upload.bytesSent=$.upload.total),this.emit("uploadprogress",$,$.upload.progress,$.upload.bytesSent))}}catch(Q){B.e(Q)}finally{B.f()}}}},{key:"_finishedUploading",value:function(y,x,I){var B;if(y[0].status!==w.CANCELED&&x.readyState===4){if(x.responseType!=="arraybuffer"&&x.responseType!=="blob"&&(B=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json")))try{B=JSON.parse(B)}catch(U){I=U,B="Invalid JSON response from server."}this._updateFilesUploadProgress(y,x),200<=x.status&&x.status<300?y[0].upload.chunked?y[0].upload.finishedChunkUpload(this._getChunk(y[0],x),B):this._finished(y,B,I):this._handleUploadError(y,x,B)}}},{key:"_handleUploadError",value:function(y,x,I){if(y[0].status!==w.CANCELED){if(y[0].upload.chunked&&this.options.retryChunks){var B=this._getChunk(y[0],x);if(B.retries++<this.options.retryChunksLimit){this._uploadData(y,[B.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(y,I||this.options.dictResponseError.replace("{{statusCode}}",x.status),x)}}},{key:"submitRequest",value:function(y,x,I){if(y.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}y.send(x)}},{key:"_finished",value:function(y,x,I){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=w.SUCCESS,this.emit("success",$,x,I),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",y,x,I),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(y,x,I){var B=M(y),U;try{for(B.s();!(U=B.n()).done;){var $=U.value;$.status=w.ERROR,this.emit("error",$,x,I),this.emit("complete",$)}}catch(W){B.e(W)}finally{B.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",y,x,I),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(y){for(var x=arguments.length,I=new Array(x>1?x-1:0),B=1;B<x;B++)I[B-1]=arguments[B];for(var U=0,$=I;U<$.length;U++){var W=$[U];for(var Z in W){var Y=W[Z];y[Z]=Y}}return y}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var x=Math.random()*16|0,I=y==="x"?x:x&3|8;return I.toString(16)})}}]),w}(f);q.initClass(),q.version="5.9.3",q.options={},q.optionsForElement=function(N){if(N.getAttribute("id"))return q.options[te(N.getAttribute("id"))]},q.instances=[],q.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),(N!=null?N.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return N.dropzone},q.autoDiscover=!0,q.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var R=function(C){return function(){var y=[],x=M(C),I;try{for(x.s();!(I=x.n()).done;){var B=I.value;/(^| )dropzone($| )/.test(B.className)?y.push(N.push(B)):y.push(void 0)}}catch(U){x.e(U)}finally{x.f()}return y}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var w=[],C=M(N),y;try{for(C.s();!(y=C.n()).done;){var x=y.value;q.optionsForElement(x)!==!1?w.push(new q(x)):w.push(void 0)}}catch(I){C.e(I)}finally{C.f()}return w}()},q.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],q.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{q.blacklistedBrowsers!==void 0&&(q.blockedBrowsers=q.blacklistedBrowsers);var R=M(q.blockedBrowsers),w;try{for(R.s();!(w=R.n()).done;){var C=w.value;if(C.test(navigator.userAgent)){N=!1;continue}}}catch(y){R.e(y)}finally{R.f()}}else N=!1;return N},q.dataURItoBlob=function(N){for(var R=atob(N.split(",")[1]),w=N.split(",")[0].split(":")[1].split(";")[0],C=new ArrayBuffer(R.length),y=new Uint8Array(C),x=0,I=R.length,B=0<=I;B?x<=I:x>=I;B?x++:x--)y[x]=R.charCodeAt(x);return new Blob([C],{type:w})};var J=function(R,w){return R.filter(function(C){return C!==w}).map(function(C){return C})},te=function(R){return R.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};q.createElement=function(N){var R=document.createElement("div");return R.innerHTML=N,R.childNodes[0]},q.elementInside=function(N,R){if(N===R)return!0;for(;N=N.parentNode;)if(N===R)return!0;return!1},q.getElement=function(N,R){var w;if(typeof N=="string"?w=document.querySelector(N):N.nodeType!=null&&(w=N),w==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},q.getElements=function(N,R){var w,C;if(N instanceof Array){C=[];try{var y=M(N,!0),x;try{for(y.s();!(x=y.n()).done;)w=x.value,C.push(this.getElement(w,R))}catch(U){y.e(U)}finally{y.f()}}catch{C=null}}else if(typeof N=="string"){C=[];var I=M(document.querySelectorAll(N)),B;try{for(I.s();!(B=I.n()).done;)w=B.value,C.push(w)}catch(U){I.e(U)}finally{I.f()}}else N.nodeType!=null&&(C=[N]);if(C==null||!C.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return C},q.confirm=function(N,R,w){if(window.confirm(N))return R();if(w!=null)return w()},q.isValidFile=function(N,R){if(!R)return!0;R=R.split(",");var w=N.type,C=w.replace(/\/.*$/,""),y=M(R),x;try{for(y.s();!(x=y.n()).done;){var I=x.value;if(I=I.trim(),I.charAt(0)==="."){if(N.name.toLowerCase().indexOf(I.toLowerCase(),N.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(C===I.replace(/\/.*$/,""))return!0}else if(w===I)return!0}}catch(B){y.e(B)}finally{y.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new q(this,N)})}),q.ADDED="added",q.QUEUED="queued",q.ACCEPTED=q.QUEUED,q.UPLOADING="uploading",q.PROCESSING=q.UPLOADING,q.CANCELED="canceled",q.ERROR="error",q.SUCCESS="success";var me=function(R){R.naturalWidth;var w=R.naturalHeight,C=document.createElement("canvas");C.width=1,C.height=w;var y=C.getContext("2d");y.drawImage(R,0,0);for(var x=y.getImageData(1,0,1,w),I=x.data,B=0,U=w,$=w;$>B;){var W=I[($-1)*4+3];W===0?U=$:B=$,$=U+B>>1}var Z=$/w;return Z===0?1:Z},ge=function(R,w,C,y,x,I,B,U,$,W){var Z=me(w);return R.drawImage(w,C,y,x,I,B,U,$,W/Z)},ve=function(){function N(){H(this,N)}return G(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var C="",y=void 0,x=void 0,I="",B=void 0,U=void 0,$=void 0,W="",Z=0;y=w[Z++],x=w[Z++],I=w[Z++],B=y>>2,U=(y&3)<<4|x>>4,$=(x&15)<<2|I>>6,W=I&63,isNaN(x)?$=W=64:isNaN(I)&&(W=64),C=C+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt($)+this.KEY_STR.charAt(W),y=x=I="",B=U=$=W="",Z<w.length;);return C}},{key:"restore",value:function(w,C){if(!w.match("data:image/jpeg;base64,"))return C;var y=this.decode64(w.replace("data:image/jpeg;base64,","")),x=this.slice2Segments(y),I=this.exifManipulation(C,x);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(w,C){var y=this.getExifArray(C),x=this.insertExif(w,y),I=new Uint8Array(x);return I}},{key:"getExifArray",value:function(w){for(var C=void 0,y=0;y<w.length;){if(C=w[y],C[0]===255&C[1]===225)return C;y++}return[]}},{key:"insertExif",value:function(w,C){var y=w.replace("data:image/jpeg;base64,",""),x=this.decode64(y),I=x.indexOf(255,3),B=x.slice(0,I),U=x.slice(I),$=B;return $=$.concat(C),$=$.concat(U),$}},{key:"slice2Segments",value:function(w){for(var C=0,y=[];;){var x;if(w[C]===255&w[C+1]===218)break;if(w[C]===255&w[C+1]===216)C+=2;else{x=w[C+2]*256+w[C+3];var I=C+x+2,B=w.slice(C,I);y.push(B),C=I}if(C>w.length)break}return y}},{key:"decode64",value:function(w){var C=void 0,y=void 0,x="",I=void 0,B=void 0,U=void 0,$="",W=0,Z=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
12
12
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
13
- Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),$=this.KEY_STR.indexOf(w.charAt(W++)),C=I<<2|B>>4,y=(B&15)<<4|U>>2,x=(U&3)<<6|$,Z.push(C),U!==64&&Z.push(y),$!==64&&Z.push(x),C=y=x="",I=B=U=$="",W<w.length;);return Z}}]),N}();ve.initClass();var xe=function(R,w){var C=!1,y=!0,x=R.document,I=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",$=x.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&x.readyState!=="complete")&&((Q.type==="load"?R:x)[U]($+Q.type,Y,!1),!C&&(C=!0)))return w.call(R,Q.type||Q)},Z=function Y(){try{I.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&I.doScroll){try{y=!R.frameElement}catch{}y&&Z()}return x[B]($+"DOMContentLoaded",W,!1),x[B]($+"readystatechange",W,!1),R[B]($+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,R){return typeof N<"u"&&N!==null?R(N):void 0}function Oe(N,R,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ye=q}(),l}()})}(xi)),xi.exports}var sh=rh();const Ei=bi(sh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function oh(n,e){return a.openBlock(),a.createElementBlock("svg",ih,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const ah={render:oh},lh={class:"file-upload"},ch=["name","value"],uh={key:0,class:"preview"},dh={class:"file-upload-preview"},fh=["src"],hh={key:1,class:"preview"},ph={class:"file-upload-preview"},mh=["src","title"],gh=["href"],vh={class:"file-upload-title"},yh={class:"file-upload-file-remove"},bh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},Ia={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){Ei.autoDiscover=!1;const t=n,r=a.ref([]),s=a.ref(Ei),l=a.ref(null),o=a.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),i=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return a.onMounted(()=>{var d;l.value=t.formData;const u=t.csrf;s.value=new Ei(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=l.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",u),g.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(a.openBlock(),a.createElementBlock("div",lh,[a.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,ch),n.modelValue?(a.openBlock(),a.createElementBlock("div",uh,[d[1]||(d[1]=a.createTextVNode(" @todo handle upload here ")),a.createElementVNode("span",dh,[a.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,fh)])])):r.value&&r.value.length?(a.openBlock(),a.createElementBlock("div",hh,[a.createElementVNode("span",ph,[c(r.value.mime_type)?(a.openBlock(),a.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,mh)):a.createCommentVNode("",!0)]),a.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[a.createElementVNode("div",vh,a.toDisplayString(r.value.file_name),1)],8,gh),a.createElementVNode("a",yh,[a.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass("relative rounded-lg "+n.background)},[a.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),a.createElementVNode("div",bh,[a.createElementVNode("div",null,[a.createVNode(a.unref(ah),{class:"w-6 h-6"})]),d[2]||(d[2]=a.createElementVNode("div",{class:"text-sm text-center"},[a.createElementVNode("p",null,[a.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),a.createElementVNode("span",null," or drag and drop")]),a.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[a.vShow,!n.modelValue]])]))}},xh={class:"flex justify-between pb-2"},Eh={class:"flex justify-between w-full py-1"},wh={class:"text-lg font-semibold text-gray-900"},Ah={class:"text-sm text-gray-600 mt-1"},Sh={class:"flex flex-col gap-3"},Th={class:"flex items-center justify-between"},Nh={class:"text-lg font-semibold text-gray-900"},Oh={class:"relative flex items-end"},Ch={class:"flex flex-col gap-6"},kh={class:"flex flex-col gap-1.5"},Rh=["onUpdate:modelValue"],Ih={__name:"VLogos",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=a.inject("VFileUpload",Ia),r=e,s=n,l=a.ref(s.data.component),o=a.ref(null),c=a.ref(null),i=a.ref(null);function u(){var f,g;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((g=l.value.data)==null||g.push({url:null,logo:null}),a.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var g;i.value=f,(g=o==null?void 0:o.value)==null||g.open(f)},h=f=>{var g;(g=l.value.data)==null||g.splice(f,1),r("update",!1)};return(f,g)=>{var p;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",xh,[a.createElementVNode("div",Eh,[a.createElementVNode("div",null,[a.createElementVNode("p",wh,a.toDisplayString(l.value.name),1),a.createElementVNode("p",Ah," This section can contain up to "+a.toDisplayString(l.value.max_items)+" logos ",1)]),a.createElementVNode("div",null,[a.createElementVNode("a",{onClick:u,class:a.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[a.createVNode(a.unref(ns),{class:"h-5 w-5"}),g[0]||(g[0]=a.createElementVNode("span",null,"Add",-1))],2)])])]),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value.data,(v,b)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?S=>c.value=S:null},[a.createElementVNode("div",Th,[a.createElementVNode("div",Nh," Logo #"+a.toDisplayString(b+1),1),a.createElementVNode("div",Oh,[a.createVNode(ii,{onRemoveItem:S=>d(b)},null,8,["onRemoveItem"])])]),a.createElementVNode("div",Ch,[a.createElementVNode("div",kh,[a.createVNode(a.unref(t),{name:"image",background:"bg-white",modelValue:v.logo,"onUpdate:modelValue":S=>v.logo=S},null,8,["modelValue","onUpdate:modelValue"]),a.createVNode(Qt,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:v.url},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":S=>v.url=S,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Rh),[[a.vModelText,v.url]])]),_:2},1032,["value"])])])]))),128))]),a.createVNode(oi,{ref_key:"modalRef",ref:o,entity:"logo",callback:h},null,512)],64)}}},Lh={class:"flex flex-col"},Bh={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},Ph={class:"flex flex-col gap-6"},Fh={class:"flex flex-col gap-1.5"},Mh={key:0,class:"text-base text-gray-900 font-semibold"},Dh={key:1,class:"text-gray-600 text-base font-normal mt-2"},Uh={__name:"VCollectionCarousel",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=n,r=a.ref(t.data.component);return(s,l)=>{var o,c,i;return a.openBlock(),a.createElementBlock("div",Lh,[a.createElementVNode("div",Bh,[l[4]||(l[4]=a.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Carousel ",-1)),a.createElementVNode("div",Ph,[a.createElementVNode("div",Fh,[r.value.button?(a.openBlock(),a.createBlock(Qt,{key:0,"is-vertical":"",field:"title","label-text":"Button label *",class:"w-full mb-4",value:r.value.button.title,limit:51},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,r.value.button.title]])]),_:1},8,["value"])):a.createCommentVNode("",!0),(o=r.value)!=null&&o.button?(a.openBlock(),a.createBlock(ss,{key:1,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[1]||(l[1]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[2]||(l[2]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[3]||(l[3]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(a.openBlock(),a.createElementBlock("h3",Mh,a.toDisplayString(r.value.data.content.label),1)):a.createCommentVNode("",!0),(i=r.value.content)!=null&&i.supportive_text?(a.openBlock(),a.createElementBlock("p",Dh,a.toDisplayString(r.value.data.content.supportive_text),1)):a.createCommentVNode("",!0)])])}}},jh={class:"page-builder overflow-auto"},Vh={class:"flex gap-4 px-6 overflow-auto"},$h={class:"flex w-[356px] flex-col gap-2 pb-10"},_h={class:"border-b border-gray-200 pb-2"},qh=["onClick"],zh={class:"text-lg font-semibold text-brand-800"},Hh={class:"relative flex items-center gap-3"},Gh={class:"cursor-pointer"},Wh={key:0,class:"flex flex-col gap-2"},Kh=["onClick"],Xh={class:"flex flex-col"},Yh={class:"text-sm font-medium text-gray-900"},Zh={class:"flex items-center justify-between gap-3 px-[10px]"},Qh={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Jh={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},ep={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=a.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),l=a.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=a.ref(null);const c=a.ref({sliders:a.markRaw(Ho),vertical_tabs:a.markRaw(Ho),links:a.markRaw(Go),header:a.markRaw(Ld),link_grid:a.markRaw(Go),logos:a.markRaw(Ih),carousel:a.markRaw(Uh)});s.value||(s.value={},l.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{o.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},u=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=a.computed(()=>{var g,p,v,b;return(p=(g=o.value)==null?void 0:g.component)!=null&&p.type?c.value[(b=(v=o.value)==null?void 0:v.component)==null?void 0:b.type]:""});return(g,p)=>{var v,b;return a.openBlock(),a.createElementBlock("div",jh,[a.createElementVNode("div",Vh,[a.createElementVNode("div",$h,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.modelValue.sections,(S,T)=>(a.openBlock(),a.createElementBlock("div",_h,[a.createElementVNode("div",{onClick:k=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[a.createElementVNode("span",zh,a.toDisplayString(S.title),1),a.createElementVNode("div",Hh,[a.createElementVNode("div",Gh,[s.value[T]?(a.openBlock(),a.createBlock(a.unref(ou),{key:1,class:"h-5 w-5"})):(a.openBlock(),a.createBlock(a.unref(ni),{key:0,class:"h-5 w-5"}))])])],8,qh),s.value[T]?(a.openBlock(),a.createElementBlock("div",Wh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.components,(k,F)=>{var M,z;return a.openBlock(),a.createElementBlock("div",{onClick:X=>i(T,k,F),class:a.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=a.unref(o))==null?void 0:M.sectionIndex)===T&&((z=a.unref(o))==null?void 0:z.componentIndex)===F}])},[a.createElementVNode("div",Xh,[p[0]||(p[0]=a.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),a.createElementVNode("div",Yh,a.toDisplayString(k.name),1)]),a.createElementVNode("div",Zh,[a.createVNode(a.unref(ni),{class:"h-5 w-5"})])],10,Kh)}),256))])):a.createCommentVNode("",!0)]))),256))]),a.createElementVNode("div",Qh,[a.unref(o)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(cu,{key:0})),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),{key:((v=a.unref(o))==null?void 0:v.sectionIndex)+((b=a.unref(o))==null?void 0:b.componentIndex),data:a.unref(o),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),a.renderSlot(g.$slots,"default",{},()=>[a.createElementVNode("div",Jh,[a.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),a.createElementVNode("a",{onClick:a.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},La="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw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Pq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",tp={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function np(n,e){return a.openBlock(),a.createElementBlock("svg",tp,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const vs={render:np};/**
13
+ Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(w.charAt(W++)),B=this.KEY_STR.indexOf(w.charAt(W++)),U=this.KEY_STR.indexOf(w.charAt(W++)),$=this.KEY_STR.indexOf(w.charAt(W++)),C=I<<2|B>>4,y=(B&15)<<4|U>>2,x=(U&3)<<6|$,Z.push(C),U!==64&&Z.push(y),$!==64&&Z.push(x),C=y=x="",I=B=U=$="",W<w.length;);return Z}}]),N}();ve.initClass();var xe=function(R,w){var C=!1,y=!0,x=R.document,I=x.documentElement,B=x.addEventListener?"addEventListener":"attachEvent",U=x.addEventListener?"removeEventListener":"detachEvent",$=x.addEventListener?"":"on",W=function Y(Q){if(!(Q.type==="readystatechange"&&x.readyState!=="complete")&&((Q.type==="load"?R:x)[U]($+Q.type,Y,!1),!C&&(C=!0)))return w.call(R,Q.type||Q)},Z=function Y(){try{I.doScroll("left")}catch{setTimeout(Y,50);return}return W("poll")};if(x.readyState!=="complete"){if(x.createEventObject&&I.doScroll){try{y=!R.frameElement}catch{}y&&Z()}return x[B]($+"DOMContentLoaded",W,!1),x[B]($+"readystatechange",W,!1),R[B]($+"load",W,!1)}};q._autoDiscoverFunction=function(){if(q.autoDiscover)return q.discover()},xe(window,q._autoDiscoverFunction);function he(N,R){return typeof N<"u"&&N!==null?R(N):void 0}function Oe(N,R,w){if(typeof N<"u"&&N!==null&&typeof N[R]=="function")return w(N,R)}window.Dropzone=q;var ye=q}(),l}()})}(xi)),xi.exports}var sh=rh();const Ei=bi(sh),ih={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function oh(n,e){return a.openBlock(),a.createElementBlock("svg",ih,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"},null,-1)]))}const ah={render:oh},lh={class:"file-upload"},ch=["name","value"],uh={key:0,class:"preview"},dh={class:"file-upload-preview"},fh=["src"],hh={key:1,class:"preview"},ph={class:"file-upload-preview"},mh=["src","title"],gh=["href"],vh={class:"file-upload-title"},yh={class:"file-upload-file-remove"},bh={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 p-4 rounded-lg flex flex-col justify-center items-center w-full"},Ia={__name:"FileUpload",props:{name:{type:String,required:!1},modelValue:{type:[String,Object],default:null},submitEndpoint:{type:String,required:!1},deleteEndpoint:{type:String,required:!1},formData:{type:Object,default:null},csrf:{type:String,required:!1},background:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e}){Ei.autoDiscover=!1;const t=n,r=a.ref([]),s=a.ref(Ei),l=a.ref(null),o=a.computed(()=>JSON.stringify(r)),c=u=>["image/gif","image/jpeg","image/png","image/tiff"].includes(u),i=u=>{tt.delete(t.deleteEndpoint+"?"+u.id).then(()=>{r.value=null}).catch(console.error)};return a.onMounted(()=>{var d;l.value=t.formData;const u=t.csrf;s.value=new Ei(s.value,{url:(t==null?void 0:t.submitEndpoint)+"?"+((d=l.value)==null?void 0:d.id),addRemoveLinks:!0,maxFiles:1,sending:(h,f,g)=>{g.append("_token",u),g.append("field",t.name)},success:(h,f)=>{h.value=f},complete:h=>{var f;(f=s.value)==null||f.removeFile(h)}}),r.value=t.modelValue}),(u,d)=>(a.openBlock(),a.createElementBlock("div",lh,[a.createElementVNode("input",{type:"hidden",name:n.name,value:o.value},null,8,ch),n.modelValue?(a.openBlock(),a.createElementBlock("div",uh,[d[1]||(d[1]=a.createTextVNode(" @todo handle upload here ")),a.createElementVNode("span",dh,[a.createElementVNode("img",{class:"img rounded-lg h-[200px] object-contain",src:n.modelValue,title:"Image"},null,8,fh)])])):r.value&&r.value.length?(a.openBlock(),a.createElementBlock("div",hh,[a.createElementVNode("span",ph,[c(r.value.mime_type)?(a.openBlock(),a.createElementBlock("img",{key:0,class:"img",src:r.value.url,title:r.value.file_name},null,8,mh)):a.createCommentVNode("",!0)]),a.createElementVNode("a",{href:r.value.url,target:"_blank",class:"link"},[a.createElementVNode("div",vh,a.toDisplayString(r.value.file_name),1)],8,gh),a.createElementVNode("a",yh,[a.createElementVNode("i",{class:"fal fa-times",onClick:d[0]||(d[0]=h=>i(r.value))})])])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass("relative rounded-lg "+n.background)},[a.createElementVNode("div",{class:"dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",ref_key:"dropzone",ref:s},null,512),a.createElementVNode("div",bh,[a.createElementVNode("div",null,[a.createVNode(a.unref(ah),{class:"w-6 h-6"})]),d[2]||(d[2]=a.createElementVNode("div",{class:"text-sm text-center"},[a.createElementVNode("p",null,[a.createElementVNode("span",{class:"text-brand-900"},"Click to upload"),a.createElementVNode("span",null," or drag and drop")]),a.createElementVNode("span",null,"(max. 20MB)")],-1))])],2),[[a.vShow,!n.modelValue]])]))}},xh={class:"flex justify-between pb-2"},Eh={class:"flex justify-between w-full py-1"},wh={class:"text-lg font-semibold text-gray-900"},Ah={class:"text-sm text-gray-600 mt-1"},Sh={class:"flex flex-col gap-3"},Th={class:"flex items-center justify-between"},Nh={class:"text-lg font-semibold text-gray-900"},Oh={class:"relative flex items-end"},Ch={class:"flex flex-col gap-6"},kh={class:"flex flex-col gap-1.5"},Rh=["onUpdate:modelValue"],Ih={__name:"VLogos",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=a.inject("VFileUpload",Ia),r=e,s=n,l=a.ref(s.data.component),o=a.ref(null),c=a.ref(null),i=a.ref(null);function u(){var f,g;l.value.hasOwnProperty("data")||(l.value.data=[]),!(((f=l.value.data)==null?void 0:f.length)>=l.value.max_items)&&((g=l.value.data)==null||g.push({url:null,logo:null}),a.nextTick(()=>{c.value&&c.value.scrollIntoView({behavior:"smooth"})}),r("update",!1))}const d=f=>{var g;i.value=f,(g=o==null?void 0:o.value)==null||g.open(f)},h=f=>{var g;(g=l.value.data)==null||g.splice(f,1),r("update",!1)};return(f,g)=>{var p;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",xh,[a.createElementVNode("div",Eh,[a.createElementVNode("div",null,[a.createElementVNode("p",wh,a.toDisplayString(l.value.name),1),a.createElementVNode("p",Ah," This section can contain up to "+a.toDisplayString(l.value.max_items)+" logos ",1)]),a.createElementVNode("div",null,[a.createElementVNode("a",{onClick:u,class:a.normalizeClass(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600",{"border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100":((p=l.value.data)==null?void 0:p.length)>=l.value.max_items}])},[a.createVNode(a.unref(ns),{class:"h-5 w-5"}),g[0]||(g[0]=a.createElementVNode("span",null,"Add",-1))],2)])])]),a.createElementVNode("div",Sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value.data,(v,b)=>(a.openBlock(),a.createElementBlock("div",{class:"flex flex-col gap-4 rounded-xl px-6 py-4 bg-gray-200",key:b,ref_for:!0,ref:b===l.value.data.length-1?S=>c.value=S:null},[a.createElementVNode("div",Th,[a.createElementVNode("div",Nh," Logo #"+a.toDisplayString(b+1),1),a.createElementVNode("div",Oh,[a.createVNode(ii,{onRemoveItem:S=>d(b)},null,8,["onRemoveItem"])])]),a.createElementVNode("div",Ch,[a.createElementVNode("div",kh,[a.createVNode(a.unref(t),{name:"image",background:"bg-white",modelValue:v.logo,"onUpdate:modelValue":S=>v.logo=S},null,8,["modelValue","onUpdate:modelValue"]),a.createVNode(Qt,{"is-vertical":"",field:"url","label-text":"Url *",class:"w-full my-4",value:v.url},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":S=>v.url=S,name:"url",type:"text",placeholder:"Enter your url",class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,8,Rh),[[a.vModelText,v.url]])]),_:2},1032,["value"])])])]))),128))]),a.createVNode(oi,{ref_key:"modalRef",ref:o,entity:"logo",callback:h},null,512)],64)}}},Lh={class:"flex flex-col"},Bh={class:"flex flex-col gap-4 mb-4 border-b border-gray-200 pb-4"},Ph={class:"flex flex-col gap-6"},Fh={class:"flex flex-col gap-1.5"},Mh={key:0,class:"text-base text-gray-900 font-semibold"},Dh={key:1,class:"text-gray-600 text-base font-normal mt-2"},Uh={__name:"VCollectionCarousel",props:{...Tr},emits:["update"],setup(n,{emit:e}){const t=n,r=a.ref(t.data.component);return(s,l)=>{var o,c,i;return a.openBlock(),a.createElementBlock("div",Lh,[a.createElementVNode("div",Bh,[l[4]||(l[4]=a.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"}," Carousel ",-1)),a.createElementVNode("div",Ph,[a.createElementVNode("div",Fh,[r.value.button?(a.openBlock(),a.createBlock(Qt,{key:0,"is-vertical":"",field:"title","label-text":"Button label *",class:"w-full mb-4",value:r.value.button.title,limit:51},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.value.button.title=u),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[a.vModelText,r.value.button.title]])]),_:1},8,["value"])):a.createCommentVNode("",!0),(o=r.value)!=null&&o.button?(a.openBlock(),a.createBlock(ss,{key:1,label:"Link to",name:"button",type:r.value.button.type,"onUpdate:type":l[1]||(l[1]=u=>r.value.button.type=u),url:r.value.button.url,"onUpdate:url":l[2]||(l[2]=u=>r.value.button.url=u),openInNewTab:r.value.button.open_in_new_tab,"onUpdate:openInNewTab":l[3]||(l[3]=u=>r.value.button.open_in_new_tab=u),sites:s.sites},null,8,["type","url","openInNewTab","sites"])):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",null,[(c=r.value.content)!=null&&c.label?(a.openBlock(),a.createElementBlock("h3",Mh,a.toDisplayString(r.value.content.label),1)):a.createCommentVNode("",!0),(i=r.value.content)!=null&&i.supportive_text?(a.openBlock(),a.createElementBlock("p",Dh,a.toDisplayString(r.value.content.supportive_text),1)):a.createCommentVNode("",!0)])])}}},jh={class:"page-builder overflow-auto"},Vh={class:"flex gap-4 px-6 overflow-auto"},$h={class:"flex w-[356px] flex-col gap-2 pb-10"},_h={class:"border-b border-gray-200 pb-2"},qh=["onClick"],zh={class:"text-lg font-semibold text-brand-800"},Hh={class:"relative flex items-center gap-3"},Gh={class:"cursor-pointer"},Wh={key:0,class:"flex flex-col gap-2"},Kh=["onClick"],Xh={class:"flex flex-col"},Yh={class:"text-sm font-medium text-gray-900"},Zh={class:"flex items-center justify-between gap-3 px-[10px]"},Qh={class:"flex h-full flex-1 flex-col rounded-xl bg-gray-50 px-6 py-5 mb-20"},Jh={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},ep={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const t=e,r=n,s=a.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),l=a.ref(((f=r.modelValue)==null?void 0:f.sections)??[]);let o=a.ref(null);const c=a.ref({sliders:a.markRaw(Ho),vertical_tabs:a.markRaw(Ho),links:a.markRaw(Go),header:a.markRaw(Ld),link_grid:a.markRaw(Go),logos:a.markRaw(Ih),carousel:a.markRaw(Uh)});s.value||(s.value={},l.value.forEach((g,p)=>{s.value[p]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(s.value)));const i=(g,p,v)=>{o.value={page:r.modelValue,component:p,componentIndex:v,sectionIndex:g}},u=()=>{t("close",r.modelValue)},d=(g=!0)=>{t("save",{page:r.modelValue,redirect:g})},h=a.computed(()=>{var g,p,v,b;return(p=(g=o.value)==null?void 0:g.component)!=null&&p.type?c.value[(b=(v=o.value)==null?void 0:v.component)==null?void 0:b.type]:""});return(g,p)=>{var v,b;return a.openBlock(),a.createElementBlock("div",jh,[a.createElementVNode("div",Vh,[a.createElementVNode("div",$h,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.modelValue.sections,(S,T)=>(a.openBlock(),a.createElementBlock("div",_h,[a.createElementVNode("div",{onClick:k=>s.value[T]=!s.value[T],class:"flex cursor-pointer items-center justify-between px-2 py-4"},[a.createElementVNode("span",zh,a.toDisplayString(S.title),1),a.createElementVNode("div",Hh,[a.createElementVNode("div",Gh,[s.value[T]?(a.openBlock(),a.createBlock(a.unref(ou),{key:1,class:"h-5 w-5"})):(a.openBlock(),a.createBlock(a.unref(ni),{key:0,class:"h-5 w-5"}))])])],8,qh),s.value[T]?(a.openBlock(),a.createElementBlock("div",Wh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.components,(k,F)=>{var M,z;return a.openBlock(),a.createElementBlock("div",{onClick:X=>i(T,k,F),class:a.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((M=a.unref(o))==null?void 0:M.sectionIndex)===T&&((z=a.unref(o))==null?void 0:z.componentIndex)===F}])},[a.createElementVNode("div",Xh,[p[0]||(p[0]=a.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),a.createElementVNode("div",Yh,a.toDisplayString(k.name),1)]),a.createElementVNode("div",Zh,[a.createVNode(a.unref(ni),{class:"h-5 w-5"})])],10,Kh)}),256))])):a.createCommentVNode("",!0)]))),256))]),a.createElementVNode("div",Qh,[a.unref(o)?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(cu,{key:0})),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),{key:((v=a.unref(o))==null?void 0:v.sectionIndex)+((b=a.unref(o))==null?void 0:b.componentIndex),data:a.unref(o),sites:n.sites,onUpdate:d},null,40,["data","sites"]))])]),a.renderSlot(g.$slots,"default",{},()=>[a.createElementVNode("div",Jh,[a.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),a.createElementVNode("a",{onClick:a.withModifiers(d,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},La="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4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/QtM+iUtvfPgAl/8WL+pZ4Hanm07MeTXcjie8Jq6o6G6lF/VXyzZFQGwonffQzb+WHgXdlHlYtPglo5CS7fzAQP7EYPM8PShZnmkysxTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",tp={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function np(n,e){return a.openBlock(),a.createElementBlock("svg",tp,e[0]||(e[0]=[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const vs={render:np};/**
14
14
  * Vue 3 Carousel 0.15.1
15
15
  * (c) 2025
16
16
  * @license MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -37,8 +37,8 @@
37
37
  </div>
38
38
  </div>
39
39
  <div>
40
- <h3 v-if="componentData.content?.label" class="text-base text-gray-900 font-semibold">{{ componentData.data.content.label }}</h3>
41
- <p v-if="componentData.content?.supportive_text" class="text-gray-600 text-base font-normal mt-2">{{ componentData.data.content.supportive_text }}</p>
40
+ <h3 v-if="componentData.content?.label" class="text-base text-gray-900 font-semibold">{{ componentData.content.label }}</h3>
41
+ <p v-if="componentData.content?.supportive_text" class="text-gray-600 text-base font-normal mt-2">{{ componentData.content.supportive_text }}</p>
42
42
  </div>
43
43
  </div>
44
44
  </template>