PageSourceSearch

https://honeyhivewv.com/static/js/async/7145.2885b9fd40.js

js honeyhivewv.com collected 2026-10-08 07:30:11 UTC 86,285 bytes, 9 lines download raw bytes

1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[7145],{92292(){},2775(){},37341(){},16055(){},84725(e,t,l){l.d(t,{FN:()=>a,gj:()=>i}),l(3409);let i=e=>{let t,{containerNodeRect:l,draggingNodeRect:i,transform:a}=e;return i&&l?(t={...a},i.top+a.y<=l.top?t.y=l.top-i.top:i.bottom+a.y>=l.top+l.height&&(t.y=l.top+l.height-i.bottom),i.left+a.x<=l.left?t.x=l.left-i.left:i.right+a.x>=l.left+l.width&&(t.x=l.left+l.width-i.right),t):a},a=e=>{let{transform:t}=e;return{...t,x:0}}},49545(e,t,l){l.r(t),l.d(t,{default:()=>r});var i=l(74848),a=l(96540);let r=({NoProfile:e="",AvatarSize:t="",ProfileUrl:l="",HoverOverlayText:r=""})=>{let n=e?(e=>{let t=e.split(" ").filter(Boolean);if(2===t.length)return t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase();let l=t.filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());return l.length>=2?l[0].charAt(0).toUpperCase()+l[1].charAt(0).toUpperCase():t.length>=2?t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase():t[0]?.charAt(0).toUpperCase()||""})(e):"",[s,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(l){let e=setTimeout(()=>{c(!1)},3e3),t=new Image;return t.src=l,t.onload=()=>{o(!0),clearTimeout(e),c(!1)},t.onerror=()=>{clearTimeout(e),c(!0)},()=>{clearTimeout(e),c(!0)}}},[l]);let p="XX-Small"===t?"vg-avatar-xxsmall":"X-Small"===t?"vg-avatar-xsmall":"Small"===t?"vg-avatar-small":"Small-Mid"===t?"vg-avatar-small-mid":"Medium"===t?"vg-avatar-medium":"vg-avatar-large";return(0,i.jsx)("div",{className:"vg-avatar",children:(0,i.jsx)("div",{className:"vg-d-flex",children:d||!s?(0,i.jsxs)("div",{className:`vg-avatar-xlarge vg-avatar-default ${p}${r?" vg-avatar-hoverable":""}`,children:[(0,i.jsx)("span",{className:"vg-avatar-text",children:n}),r&&(0,i.jsx)("span",{className:"vg-avatar-overlay-text",children:r})]}):(0,i.jsxs)("div",{className:`vg-avatar-xlarge vg-avatar-default ${p}${r?" vg-avatar-hoverable":""}`,style:{backgroundImage:`url(${l})`},children:[(0,i.jsx)("span",{className:"vg-avatar-text",style:{display:"none"},children:n}),r&&(0,i.jsx)("span",{className:"vg-avatar-overlay-text",children:r})]})})})}},28735(e,t,l){l.r(t),l.d(t,{default:()=>r});var i=l(74848);l(96540);var a=l(94089);let r=({BadgeText:e="Input Badge",BadgeVariation:t="",BadgeSize:l,Children:r,BadgeColorVariant:n,Tooltip:s=!1,TooltipMessage:o,OnClick:d,PrefixIcon:c,SuffixIcon:p,onPrefixIconClick:u,onSuffixIconClick:h})=>{let m="vg-badge",g=[m,`${m}--${l}`,`${m}-${t}`,"none"===t&&n?`${m}-color-${n}`:""].join(" ").trim(),v=e=>{d&&d(e)};return(0,i.jsx)(i.Fragment,{children:s?(0,i.jsx)(a.default,{BeakPoint:"Up",BeakPosition:"Middle",Duration:0,OnTooltipClose:()=>{},ShowHover:!0,TextAlign:"right",Html:!0,TooltipText:o,TooltipRender:"portal",Children:(0,i.jsxs)("div",{className:g,onClick:v,children:[c&&(0,i.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),u&&u(e)},style:u?{cursor:"pointer"}:void 0,children:c}),"custom"===t&&"string"==typeof r?(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r}}):"custom"===t?r:e,p&&(0,i.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),h&&h(e)},style:h?{cursor:"pointer"}:void 0,children:p})]})}):(0,i.jsxs)("div",{className:g,onClick:v,style:d?{cursor:"pointer"}:void 0,children:[c&&(0,i.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),u&&u(e)},style:u?{cursor:"pointer"}:void 0,children:c}),"custom"===t&&"string"==typeof r?(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r}}):"custom"===t?r:e,p&&(0,i.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),h&&h(e)},style:h?{cursor:"pointer"}:void 0,children:p})]})})}},61299(e,t,l){l.d(t,{Ay:()=>h,L7:()=>u,QC:()=>p});var i=l(74848),a=l(96540),r=l(84955),n=l(9163),s=l(68468),o=l(44590);l(92292);var d=l(30580),c=l(49545);let p=e=>{if(e?.originalName&&"string"==typeof e.originalName){let t=e.originalName.trim();if(!t.startsWith(".")){let e=t.split(".");if(e.length>1){let t=e[e.length-1].toLowerCase().trim();if(t&&/^[a-z0-9]+$/.test(t))return t}}}if(e?.name&&"string"==typeof e.name){let t=e.name.trim();if(!t.startsWith(".")){let e=t.split(".");if(e.length>1){let t=e[e.length-1].toLowerCase().trim();if(t&&/^[a-z0-9]+$/.test(t))return t}}}if(e?.type&&"string"==typeof e.type){let t=e.type.toLowerCase(),l={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.ms-excel":"xls","application/msword":"doc","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","application/vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx"};if(l[t])return l[t];let i=t.split("/").pop()?.trim();if(i&&/^[a-z0-9]+$/.test(i))return i}return""},u=e=>{let t=(e?.type||"").toLowerCase();return"image/png"===t||"image/jpg"===t||"image/jpeg"===t||"image/bmp"===t||"image/webp"===t||"image/gif"===t||e?.type==="jpg"||e?.type==="png"||e?.type==="jpeg"?(0,i.jsx)("img",{src:e?.url||"",alt:"preview",width:80,height:80}):t.startsWith("video/")?(0,i.jsx)("svg",{width:"26",className:"vg-fa-vi
1deo",height:"16",viewBox:"0 0 26 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M24.617 1.76235C24.1423 1.43616 23.4937 1.39539 22.9764 1.64003L18.5277 3.5561V2.78154C18.5277 1.35461 17.2747 0.172318 15.7638 0.172318H3.32729C1.77217 0.172318 0.562012 1.35461 0.562012 2.78154V13.2184C0.562012 14.6862 1.77217 15.8277 3.32729 15.8277H15.7638C17.2747 15.8277 18.5277 14.6862 18.5277 13.2184V12.4439L22.9764 14.4007C23.1916 14.4823 23.451 14.5638 23.6662 14.5638C24.0126 14.5638 24.3575 14.4415 24.617 14.2784C25.1344 13.993 25.438 13.4631 25.438 12.8923V3.10773C25.438 2.57767 25.1344 2.04776 24.617 1.76235ZM16.4552 13.2184C16.4552 13.5854 16.1088 13.8708 15.7638 13.8708H3.32729C2.93814 13.8708 2.63597 13.5854 2.63597 13.2184V2.78154C2.63597 2.45535 2.93814 2.12916 3.32729 2.12916H15.7638C16.1088 2.12916 16.4552 2.45535 16.4552 2.78154V13.2184ZM23.364 12.4031L18.5277 10.3238V5.71695L23.364 3.63764V12.4031Z"})}):"application/pdf"===t?(0,i.jsx)("i",{className:"fa-regular fa-file-pdf"}):"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===t||"xlsx"===e.extension?(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 24",height:"26",width:"20",className:"vg-excel-icon",children:[(0,i.jsx)("path",{"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":"1.2",stroke:"#7cc576",d:"M10 1.5H2.5C1.9 1.5 1.5 1.9 1.5 2.5V21.5C1.5 22.1 1.9 22.5 2.5 22.5H15.5C16.1 22.5 16.5 22.1 16.5 21.5V7.5M10 1.5L16.5 7.5M10 1.5V7.5H16.5"}),(0,i.jsx)("path",{"stroke-linecap":"round","stroke-width":"1.2",stroke:"#7cc576",d:"M5.5 11.5L12.5 19.5M12.5 11.5L5.5 19.5"})]}):(0,i.jsx)("svg",{width:"20",className:"vg-fa-file",height:"26",viewBox:"0 0 20 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M18.785 4.77002C19.395 5.38002 19.75 6.20006 19.75 7.06006V22.75C19.75 24.58 18.277 26 16.5 26H3.5C1.672 26 0.25 24.58 0.25 22.75V3.25C0.25 1.47 1.672 0 3.5 0H12.691C13.555 0 14.367 0.359961 14.977 0.959961L18.785 4.77002ZM17.312 22.75H17.262V8.13H13.25C12.336 8.13 11.625 7.41 11.625 6.5V2.48999H3.5C3.043 2.48999 2.68799 2.84005 2.68799 3.30005V22.75C2.68799 23.21 3.043 23.5601 3.5 23.5601H16.5C16.906 23.5601 17.312 23.21 17.312 22.75ZM5.125 14.22C5.125 13.56 5.63299 13 6.34399 13H13.656C14.316 13 14.875 13.56 14.875 14.22C14.875 14.93 14.316 15.4399 13.656 15.4399H6.34399C5.63299 15.4399 5.125 14.93 5.125 14.22ZM13.656 17.87C14.316 17.87 14.875 18.43 14.875 19.09C14.875 19.8 14.316 20.3101 13.656 20.3101H6.34399C5.63299 20.3101 5.125 19.8 5.125 19.09C5.125 18.43 5.63299 17.87 6.34399 17.87H13.656Z"})})},h=({uploadedFilesForDes:e,BusinessDetails:t,FileExtentions:l=d.ALL_SUPPORTED_TYPES.map(e=>e.split("/")[1]),setUploadedFilesForDes:h,SetShowDescriptionPopup:m,finaluploadedFilesForDes:g,setFinalUploadedFilesForDes:v,tempMultifile:f,setTempMultifile:x,maxIdRef:C,UploadButton:w,CancelButton:j,UploadPopupTitle:y,Type:b,handleImport:N,OnClose:P,UploadOnDrive:U,OnImport:D,setErrorMessage:L,setErrorType:k,setShowLoader:M,DescriptionPlaceholder:S})=>{let T=(0,a.useRef)(null),[B,I]=(0,a.useState)([]),[O,F]=(0,a.useState)({id:-1,filename:""}),[A,z]=(0,a.useState)(!1),[R,_]=(0,a.useState)(e),E=async e=>{if(!e.target.files)return;let t=Array.from(e.target.files),l={current:0},i=new Set(R.map(e=>e.name)),a=await Promise.all(t.map(async e=>{let t=e;if(t.name.toLowerCase().endsWith(".heic")||t.name.toLowerCase().endsWith(".heif")){M?.(!0);try{t=await (0,d.convertHEIC)(t)}catch(e){return M?.(!1),null}}i.has(t.name)&&(t=(0,d.DublicateFile)(t,R.map(e=>({file:e.file,id:""})),l).file);let a=URL.createObjectURL(t),r=await (0,d.convertFileToBase64)(t);return C&&(C.current+=1),{id:C?.current??Date.now(),file:t,name:t.name,type:t.type,extension:p({name:t.name,type:t.type}),size:t.size,url:r,blob:a,description:""}}));M?.(!1),a&&a.length>0&&(x?.((e=[])=>[...a,...e]),_(e=>[...a,...e])),T.current&&(T.current.value="")};return(0,i.jsxs)("div",{children:[(0,i.jsx)(r.default,{ButtonPrimary:w,ButtonSecondary:j,CloseBackTitle:"From Control",CloseButton:!0,DoNotSetTitle:!0,Footer:2,OnClickPrimary:()=>{let e=(g??[]).filter(e=>!B.includes(e.name)),t=new Map;
1if(e.forEach(e=>{e.id&&t.set(e.id,e)}),(R??[]).forEach(e=>{e.id&&t.set(e.id,e)}),"MultiUploadwithoutDragDrop"===b)h?.(R),x?.([]),m?.(!1),N&&U?N(R):D?.(R);else{let e=Array.from(t.values()).sort((e,t)=>(t.id??0)-(e.id??0));if(0===e.length){L?.("Please upload at least one file."),k?.("warning");return}v?.(e),h?.(R),x?.([]),m?.(!1),_([]),I([])}},OnClickSecondary:()=>{R&&R.length>0?z(!0):(P?.(),m?.(!1))},FooterButton:"both",FooterLeftBody:()=>{},PopupBody:()=>(0,i.jsxs)("div",{className:"vg-MultiUploadwithDescription",children:[(0,i.jsxs)("div",{className:"vg-MultiUploadwithDescription-header",children:[(0,i.jsx)("div",{className:"vg-MultiUploadwithDescription-avtar",children:(0,i.jsx)(c.default,{AvatarSize:"Medium",NoProfile:t?.ProfilePlaceHolder||"",ProfileUrl:t?.ProfileUrl||""})}),(0,i.jsxs)("div",{className:"vg-MultiUploadwithDescription-content",children:[(0,i.jsx)("h3",{children:t?.BusinessName}),(0,i.jsx)("span",{children:t?.ServiceName}),(0,i.jsx)("p",{children:t?.DateAndtime})]})]}),(0,i.jsx)("h3",{className:"vg-upload-files-label",children:"Upload Files:"}),(0,i.jsxs)("div",{className:"vg-import-wrapper appointment relative w-[100%]",children:[(0,i.jsx)("input",{ref:T,type:"file",accept:l?.map(e=>`.${e}`).join(", "),multiple:!0,onChange:E}),(0,i.jsx)("div",{className:"vg-import-overlay",children:(0,i.jsx)("div",{className:"vg-upload-flex",children:(0,i.jsxs)("div",{className:"vg-upload-drop horizontal",children:[(0,i.jsx)("div",{className:"vg-upload-icon",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100px",height:"100px",viewBox:"0 0 640 512",fill:"currentColor",children:(0,i.jsx)("path",{d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})})}),(0,i.jsxs)("div",{className:"vg-upload-decs",children:[(0,i.jsx)("p",{children:"Drag and drop files here or"}),(0,i.jsx)("a",{className:"vg-choose-file",children:"Choose File"})]})]})})})]}),(0,i.jsx)("div",{className:"vg-preview-container",children:R?.map((e,t)=>{let l=e?.extension||p(e);return(0,i.jsx)("div",{className:"vg-preview-item vg-upload-flex",children:(0,i.jsxs)("div",{className:"vg-preview-bar",children:[(0,i.jsxs)("div",{className:"vg-image-div",children:[(0,i.jsx)("span",{className:"vg-file-preview-label",children:u(e)}),(0,i.jsx)("span",{className:"vg-file-preview-size",children:(0,d.formatFileSize)(e.size)})]}),(0,i.jsxs)("div",{className:"vg-file-info-div",children:[(0,i.jsx)("div",{className:"vg-file-row",children:(0,i.jsx)(n.default,{FocusBorder:"none",InfoTooltipMessage:"",InputId:"",InputMode:"text",InputTitle:"File Name:",Name:"",OnBlur:()=>{},OnBlurValidation:!0,OnChange:l=>{let i=[...R||[]],a=e?.extension||p(e),r=a?`${l.target.value}.${a}`:l.target.value;i[t]={...i[t],name:r},_?.(i)},OnClick:()=>{},OnFocus:()=>{},OnInput:()=>{},OnInputDrop:()=>{},OnKeyDown:()=>{},OnKeyUp:()=>{},OnPaste:()=>{},OnValidation:()=>{},PlaceHolder:"",PrefixIcon:"none",Required:!0,SetValue:e?.name?.replace(/\.[^/.]+$/,"")||"",SuffixCustomMsg:l?`.${l}`:"",SuffixIcon:"CustomMsgSuffix",Type:"text",UrlPrefix:"",Validation:"none",max:100,min:0})}),(0,i.jsx)("div",{className:"vg-file-textarea",children:(0,i.jsx)(s.default,{CloseBackTitle:"From Control",Footer:2,LabelText:"Description:",MaximumLength:1/0,Name:"",NativeAction:13,OnBlur:()=>{},OnCrossClick:()=>{},OnEmojiClick:()=>{},OnTickClick:()=>{},PlaceHolder:S,SetValue:e.description||"",TextAreaId:"",TextareaVariant:"Default",TimerCount:0,VagaroToolkit:1,onChange:e=>{let l=[...R||[]];l[t]={...l[t],description:e.target.value},_?.(l)}})})]}),(0,i.jsx)("div",{className:"vg-delete-icon",onClick:()=>F({id:t,filename:e.name}),children:(0,i.jsx)(o.A,{name:"delete"})})]})},t)})})]}),PopupId:"uploadForm",PopupTitle:y,PopupType:"default",Popupopen:!0,PrimaryButtonVariant:"primary",SecondaryButtonVariant:"secondary",Size:"large",TextDescription:"",ThirdButtonVariant:"primary",TimerCount:0,VagaroToolkit:1,customClassName:"",onClose:()=>{R&&R.length>0?z(!0):(P?.(),m?.(!1))},EnableBody:!0,PreventInternalClose:!0}),(O?.filename!==""||A)&&(0,i.jsx)(r.default,{ButtonPrimary:A?"Close"
1:"Remove",ButtonSecondary:A?"Back":"Cancel",CloseBackTitle:A?"Unsaved Files":"From Control",CloseButton:!0,Footer:2,FooterButton:"both",OnClickPrimary:()=>A?(()=>{if(m?.(!1),P?.(),e&&f&&e.length>0){_([]),x?.([]);let e=g?.filter(e=>void 0!==e.blob&&"file"in e)??[];h?.(e)}})():(()=>{if(-1!==O.id&&R&&R.length>0){let e=R[O.id]?.name;_(R.filter((e,t)=>t!==O.id)),e&&I(t=>[...t,e]),F({id:-1,filename:""})}})(),OnClickSecondary:()=>{A?z(!1):F({id:-1,filename:""})},PopupBody:()=>{},PopupId:"DeletePopup",PopupSubTitle:"",PopupTitle:A?"Unsaved Files":"Remove from Queue",PopupType:"default",Popupopen:!!A||O?.id!==-1,PrimaryButtonVariant:"primary",SecondaryButtonVariant:"secondary",Size:"small",TextDescription:A?"Are you sure you want to close? There are files pending upload, if you close the popup you will lose unsaved files.":`Would you like to remove "${O?.filename}" from the upload queue?`,ThirdButtonVariant:"primary",TimerCount:0,VagaroToolkit:1,customClassName:"",onClose:()=>{A?z(!1):F({id:-1,filename:""})}})]})}},30580(e,t,l){l.r(t),l.d(t,{ALL_SUPPORTED_TYPES:()=>D,DublicateFile:()=>S,convertFileToBase64:()=>T,convertHEIC:()=>U,default:()=>_,formatFileSize:()=>B,generateGuid:()=>L,generateUniqueName:()=>k});var i=l(74848),a=l(96540),r=l(49993),n=l(273),s=l(67247),o=l(27598),d=l(65195),c=l(84955),p=l(28735),u=l(49481),h=l(52304),m=l(61299);l(92292),l(62456);var g=l(15624),v=l(83967),f=l(67871),x=l(64367);l(16055),l(2775),l(37341);var C=l(44590),w=l(96273),j=l(43429);function y({files:e,activeFile:t,onClose:l,setUpdateFiles:r,BusinessDetails:n,setUploadedFilesForDes:o,OnUploadedImageDelete:d,OpenEditorInPortal:p=!1,PreDriveUploadFile:u,MaxFileSize:h}){let[g,b]=(0,a.useState)([]),[N,P]=(0,a.useState)(0),[U,D]=(0,a.useState)(0),[L,k]=(0,a.useState)(!1),[M,S]=(0,a.useState)(""),[T,I]=(0,a.useState)(!0),[O,F]=(0,a.useState)(!1),[A,z]=(0,a.useState)(!1),R=s.Wp.CheckIsFromProAppWithoutState(),_=s.Wp.CheckIsFromIpadAndroidTabWithoutParm(),E=s.Wp.CheckIsFromPaydeskWithoutParm(),V=s.Wp.CheckIsPayProDevice(),$=s.Wp.CheckIsFromIpadAndroidPayproWithoutParm();(0,a.useEffect)(()=>{let l=e?.map(e=>{let t=e?.url||(e?.file?URL.createObjectURL(e.file):void 0);return{id:e?.id,file:e?.file,url:t,name:e?.name,type:e?.type,size:e?.size,blob:e?.blob,description:e?.description,StrUploadDate:e?.StrUploadDate,UploadedBy:e?.UploadedBy,UploadDate:e?.UploadDate,FileDetailID:e?.FileDetailID}})??[];b(l);let i=e?.findIndex(e=>e?.file===t?.file||e?.name===t?.name)??0,a=i>=0?i:0;return P(a),D(a),()=>{l?.forEach((t,l)=>{let i=e?.[l];!i?.url&&t?.url&&URL.revokeObjectURL(t.url)})}},[e,t]),(0,a.useEffect)(()=>{let e=g?.[U],t=e?.type?.toLowerCase()??"",l=e?.name?.toLowerCase()??"",i=t.startsWith("image/")||"jpg"===t||"jpeg"===t||"png"===t||"gif"===t||"bmp"===t||"webp"===t||l.endsWith(".jpg")||l.endsWith(".jpeg")||l.endsWith(".png")||l.endsWith(".gif")||l.endsWith(".bmp")||l.endsWith(".webp");if(e&&i){let t=new Image;t.onload=()=>{S(`${t?.naturalWidth} \xd7 ${t?.naturalHeight} px`)},t.src=e?.url??""}else S("")},[U,g]);let H=async()=>{if(g?.[U]){let e=g?.[U],t=e?.name??"download";try{let l=await fetch(e?.url??"");if(!l.ok)throw Error("Download failed");let i=await l.blob(),a=URL.createObjectURL(i),r=document.createElement("a");r.href=a,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(a)}catch(e){}}};return 0===g.length?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:`vg-file-preview ${R||_||E||V||$?"vg-file-preview-pro":""}`,children:[(0,i.jsxs)("div",{className:"vg-file-preview__header",children:[(0,i.jsx)("div",{className:"vg-file-preview__header-counter",children:(0,i.jsx)("span",{children:g?.[U]?.name??""})}),(0,i.jsxs)("div",{className:"vg-file-preview__header-actions",children:[(0,i.jsx)("div",{className:"vg-edit-icon",children:(0,i.jsx)(w.default,{CustomMenuRender:(0,i.jsx)("i",{className:"fa-light fa-wand-magic"}),Items:[{id:"1",label:"Edit using Markup editor"},{id:"2",label:"Edit using Image editor"}],MenuButtonPosition:"horizontal",MenuOpen:!0,MenuOptions:"CustomMenu",OnClick:e=>{"1"===e.id?F(!0):"2"===e.id&&z(!0)},OnThreeDotMenuClick:()=>{},ThreeDotMenuOpenPosition:"Left"})}),(0,i.jsx)("button",{onClick:H,title:"Download file",children:(0,i.jsx)("svg",{width:"28",height:"24",viewBox:"0 0 28 24",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M25.25 13.5H20.891L23.094 11.344C24.5 9.93799 23.469 7.5 21.5 7.5H18.5V2.25C18.5 1.031 17.469 0 16.25 0H11.75C10.484 0 9.5 1.031 9.5 2.25V7.5H6.5C4.484 7.5 3.45301 9.93799 4.90601 11.344L7.06201 13.5H2.75C1.484 13.5 0.5 14.531 0.5 15.75V21.75C0.5 23.016 1.484 24 2.75 24H25.25C26.469 24 27.5 23.016 27.5 21.75V15.75C27.5 14.531 26.469 13.5 25.25 13.5ZM6.5 9.75H11.75V2.25H16.25V9.75H21.5L14 17.25L6.5 9.75ZM25.25 21.75H2.75V15.75H9.31201L12.406 18.844C13.25 19.734 14.703 19.734 15.547 18.844L18.641 15.75H25.25V21.75ZM21.125 18.75C21.125 19.406 21.594 19.875 22.25 19.875C22.859 19.875 23.375 19.406 23.375 18.75C23.375 18.141 22.859 17.625 22.25 17.625C21.594 17.625 21.125 18.141 21.125 18.75Z"})})}),(0,i.jsx)("button",{onClick:()=>k(!0),children:(0,i.jsx)(C.A,{name:"delete"})}),(0,i.jsx)("button",{onClick:()=>{I(e=>!e)},className:`${T?"active":""}`,children:(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M12 0C5.344 0 0 5.391 0 12C0 18.656 5.344 24 12 24C18.609 24 24 18.656 24 12C24 5.391 18.609 0 12 0ZM12 21.75C6.609 21.75 2.25 17.391 2.25 12C2.25 6.656 6.609 2.25 12 2.25C17.344 2.25 21.75 6.656 21.75 12C21.75 17.391 17.344 21.75 12 21.75ZM13.875 15.75H13.125V11.625C13.125 11.016 12.609 10.5 12 10.5H10.5C9.844 10.5 9.375 11.016 9.375 11.625C9.375 12.281 9.844 12.75 10.5 12.75H10.875V15.75H10.125C9.469 15.75 9 16.266 9 16.875C9 17.531 9.469 18 10.125 18H13.875C14.484 18 15 17.531 15 16.875C15 16.266 14.484 15.75 13.875 15.75ZM12 9C12.797 9 13.5 8.344 13.5 7.5C13.5 6.703 12.797 6 12 6C11.156 6 10.5 6.703 10.5 7.5C10.5 8.344 11.156 9 12 9Z"})})}),(0,i.jsx)("button",{onClick:l,title:"Close preview",children:(0,i.jsx)(C.A,{name:"cross"})})]})]}),(0,i.jsxs)("div",{className:`vg-file-preview__content ${T?"vg-file-preview__visible":"vg-file-preview__hidden"}`,children:[(0,i.jsxs)("div",{className:"vg-file-preview__main",children:[(0,i.jsx)(v.RC,{modules:[f.A,x.A],navigation:{nextEl:".vg-file-preview__nav-button--next",prevEl:".vg-file-preview__nav-button--prev"},initialSlide:N,onSlideChange:e=>D(e.activeIndex),className:"vg-file-preview__swiper-container",children:g.map((e,t)=>{let l=e?.type?.startsWith("image/")||e?.name?.toLowerCase().endsWith(".jpg")||e?.name?.toLowerCase().endsWith(".jpeg")||e?.name?.toLowerCase().endsWith(".png")||e?.name?.toLowerCase().endsWith(".gif")||e?.name?.toLowerCase().endsWith(".bmp")||e?.name?.toLowerCase().endsWith(".webp"),a=e?.type==="application/pdf"||e?.url?.toLowerCase().endsWith(".pdf");return(0,i.jsx)(v.qr,{children:l?(0,i.jsx)("img",{src:e?.url,alt:e?.name,className:"vg-file-preview__media-image"}):a?(0,i.jsx)("div",{className:"flex-none w-full h-full flex items-center justify-center relative",children:(0,i.jsx)("object",{type:"application/pdf",data:e?.url,width:"100%",height:"100%",className:"fullHeight objPdfViwer",children:(0,i.jsxs)("p",{children:["Your browser does not support PDFs. ",(0,i.jsx)("a",{href:e?.url,children:"Download"})," instead."]})})}):(0,i.jsx)("div",{className:"vg-file-preview__media-icon",children:(0,m.L7)(e)})},`${e?.url}-${t}`)})}),(0,i.jsx)("button",{className:"vg-file-preview__nav-button vg-file-preview__nav-button--next",style:{display:U<g.length-1?"flex":"none"},children:(0,i.jsx)(C.A,{name:"chevronRight"})}),(0,i.jsx)("button",{className:"vg-file-preview__nav-button vg-file-preview__nav-button--prev",style:{display:U>0?"flex":"none"},children:(0,i.jsx)(C.A,{name:"chevronLeft"})})]}),(0,i.jsx)("div",{className:"vg-file-preview__sidebar",children:g?.[U]&&(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-content",children:[(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"File Name"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:g?.[U]?.name??""})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"Description"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:g?.[U]?.description?.trim()?g?.[U]?.description:"-"})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"Uploaded By"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:g?.[U]?.UploadedBy})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"Upload Date"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:g?.[U]?.UploadDate})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"File Type"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:g?.[U]?.type?.split("/")[1]?.toUpperCase()})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"Dimensions"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:M??"-"})]}),(0,i.jsxs)("div",{className:"vg-file-preview__sidebar-field",children:[(0,i.jsx)("label",{className:"vg-file-preview__sidebar-field-label",children:"Size"}),(0,i.jsx)("p",{className:"vg-file-preview__sidebar-field-value",children:B(g?.[U]?.size??0)})]})]})})]})]}),L&&(0,i.jsx)(c.default,{ButtonPrimary:"Remove",ButtonSecondary:"Cancel",CloseButton:!0,Footer:2,FooterButton:"both",PopupId:"deletepopup",PopupTitle:"Remove from Queue",PopupType:"default",Popupopen:L,PrimaryButtonVariant:"primary",Size:"small",OnClickPrimary:()=>{let e=[...g],t=e.splice(U,1);d?.(t[0]);let i=[...e];r?.(i);let a=i.filter(e=>void 0!==e.blob);o?.(a),l?.()},OnClickSecondary:()=>k(!1),TextDescription:`Would you like to remove "${g[U].name}" from the upload queue?`,onClose:()=>k(!1)}),O&&(0,i.jsx)(j.default,{ImageObj:g[U],OnSave:e=>{let t=g.map((t,l)=>l===U?{...t,...e,driveUploadAction:"edit",needsReupload:!0}:t);b(t),r?.(t),o?.(t=>t?.some(t=>t?.id===e?.id)?t?.map(t=>t?.id===e?.id?{...t,...e,driveUploadAction:"edit",needsReupload:!0}:t):[{...e,driveUploadAction:"edit",needsReupload:!0},...t||[]]),u?.(t),F(!1)},MaxFileSize:h,OnCancel:()=>F(!1),MarkupEditor:!0}),A&&(0,i.jsx)(j.default,{ImageObj:g[U],OnCancel:()=>z(!1),MaxFileSize:h,OnSave:e=>{let t=g.map((t,l)=>l===U?{...t,...e,driveUploadAction:"edit",needsReupload:!0}:t);b(t),r?.(t),o?.(t=>t?.some(t=>t?.id===e?.id)?t?.map(t=>t?.id===e?.id?{...t,...e,driveUploadAction:"edit",needsReupload:!0}:t):[{...e,driveUploadAction:"edit",needsReupload:!0},...t||[]]),u?.(t),z(!1)},OpenInPortal:p})]})}var b=l(3754),N=l(27142),P=l(84725);let U=async e=>new File([await o({blob:e,toType:"image/jpeg"})],e.name.replace(/\.heic$/i,".jpeg").replace(/\.heif$/i,".jpeg"),{type:"image/jpeg"}),D=[...["gif","jpg","jpeg","png","bmp"].map(e=>`image/${e}`),...["webm","mpg","mp2","mpeg","mpe","mpv","ogg","mp4","m4p","m4v","avi","wmv","mov","qt","flv","swf","avchd","3gp","3g2"].map(e=>`video/${e}`),...["doc","dot","wbk","docx","docm","dotx","dotm","docb"].map(e=>"application/msword"),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>"application/vnd.ms-excel"),...["prn","txt","dif","slk"].map(e=>"text/plain"),...["csv"].map(e=>"text/csv"),...["pdf"].map(e=>"application/pdf")],L=()=>Date.now()+(k()+k()),k=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),M=e=>null==e?null:"string"==typeof e?(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):e,S=(e,t,l)=>{let i=e.name,a=i,r=1;for(;t.some(e=>e?.file?.name===a);){let e=i.lastIndexOf(".");a=-1!==e?i.substring(0,e)+`_${r}`+i.substring(e):i+`_${r}`,r++}return a!==e.name&&(e=new File([e],a,{type:e.type})),{file:e,id:(l.current++).toString()}},T=e=>new Promise((t,l)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>l(e)}),B=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(2)} KB`:`${(e/1048576).toFixed(2)} MB`,I=e=>(e||[]).map(e=>{let t=(e||"").toString().trim().toLowerCase();return t.includes("/")?t.split("/")[1]:t.replace(/^\./,"")}),O=e=>{if(e&&0!==e.length)return e.map(e=>`.${e}`).join(",")},F=(0,a.forwardRef)(({Type:e,MaxFileCount:t=5,FileExtentions:l=D.map(e=>
1e.split("/")[1]),ApiUrl:o,OnImport:v,OnClose:f,BusinessDetails:x,ContainerName:C,MaxFileSize:k=5,ImageUrls:F=[],OnUploadedImageDelete:_,TriggerImageUpload:E=!1,UploadButton:V="Upload",CancelButton:$="Back",UploadPopupTitle:H="Upload Appointment File",OnCancelUpload:W,OnSingleFileUpload:q,UploadOnDrive:Z=!1,hoverIcon:G,ActionMenu:K="NoOption",DisplayResolution:X={width:172,height:182},EditorWhileAdd:Y=!1,EditorWhileEdit:Q=!0,NoteValue:J,OnNotesChange:ee,DriveMultiUploadTitle:et="Appointment Note",DefaultPreview:el={icon:"",title:"",optional:!1},ButtonVariant:ei="primary",Buttontext:ea="Upload File",aspectRatio:er={width:0,height:0},handleCustomThreeDotClick:en,onImageClick:es,onDragAndDrop:eo,ShowBorder:ed=!1,PlaceHolder:ec="",Overlay:ep,AlertMessage:eu="Please select valid file!",OnMultiFileUploadChange:eh,ShowDragAndDropIcon:em=!1,ImagePlaceHolder:eg="",OverlayButton:ev="Edit",ShowDeleteAlert:ef=!1,Required:ex=!1,RequiredMessage:eC="This field is required.",ShowMultiUploader:ew=!1,Headers:ej={},AspectResolutionValidation:ey="Less",ThumbnailUpload:eb=!1,RackCdnObj:eN={ApiUrl:"",EditFrom:"",AdminPhoto:!1,Origin:""},DeleteAlertObj:eP={Title:"Alert",Description:"Are you sure you want to delete this image?",PrimaryBtn:"Yes",SecondaryBtn:"No"},ShowImageDetail:eU=!1,EditorType:eD="Basic",PreventLastImageDelete:eL=!1,Title:ek="",ShowRequiredFieldMark:eM=!1,VagaroBusinessId:eS="",DescriptionPlaceholder:eT="Type here...",PreOnClick:eB,AllowMultipleFileUpload:eI=!1,MaxDescriptionLength:eO=1e3,PreDriveUploadFile:eF,IgnoreMaxFileSize:eA=!1,EditorMaxFileSize:ez,OpenEditorInPortal:eR=!1,IsAllowPlayIcon:e_=!1},eE)=>{let[eV,e$]=(0,a.useState)([]),[eH,eW]=(0,a.useState)(!1),[eq,eZ]=(0,a.useState)(!1),eG=(0,a.useRef)(1),eK=(0,a.useRef)(null),[eX,eY]=(0,a.useState)([]),[eQ,eJ]=(0,a.useState)([...F].sort((e,t)=>(t.id??0)-(e.id??0))),[e1,e0]=(0,a.useState)(!1),[e2,e4]=(0,a.useState)([]),[e5,e3]=(0,a.useState)({}),[e6,e7]=(0,a.useState)({}),[e9,e8]=(0,a.useState)({}),[te,tt]=(0,a.useState)(""),[tl,ti]=(0,a.useState)("error"),[ta,tr]=(0,a.useState)(!1),[tn,ts]=(0,a.useState)(),to=(0,a.useRef)(0),[td,tc]=(0,a.useState)(F?F[0]:void 0),[tp,tu]=(0,a.useState)(!1),[th,tm]=(0,a.useState)(!1),[tg,tv]=(0,a.useState)(eu),[tf,tx]=(0,a.useState)(void 0),[tC,tw]=(0,a.useState)([...F]),[tj,ty]=(0,a.useState)(void 0),[tb,tN]=(0,a.useState)(!1),[tP,tU]=(0,a.useState)(!1),tD=eg?(e=>{let t=e.split(" ").filter(Boolean);if(2===t.length)return t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase();let l=t.filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());return l.length>=2?l[0].charAt(0).toUpperCase()+l[1].charAt(0).toUpperCase():t.length>=2?t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase():t[0]?.charAt(0).toUpperCase()||""})(eg):"",[tL,tk]=(0,a.useState)(!1),tM=s.Wp.CheckIsProApp();(0,a.useImperativeHandle)(eE,()=>({validate:()=>{let i,a=[],r=[];switch(e){case"singlefileupload":case"UploaderWithButton":case"ProfileUploader":(i=td)||!ex||tk(!0),i||a.push("No file selected"),r=i?[i]:[];break;case"DriveMultiUpload":case"MultiUploadwithoutDragDrop":(r=eQ).length||a.push("No files uploaded");break;case"multifileupload":!(r=tC).length&&ex&&tk(!0),r.length||a.push("No files uploaded");break;case"MultiUploadwithDragDrop":(r=eV.map(e=>e.file)).length||a.push("No files selected")}return r.length>t&&a.push(`Exceeded max file count (${r.length}/${t})`),r.forEach(e=>{if(e?.size&&k&&!eA&&e.size>1024*k*1024&&a.push(`File ${e.name} exceeds max size ${k}MB`),e?.name||a.push("A file is missing name"),e?.type&&l?.length){let t=(e.type.split("/")[1]||"").toLowerCase(),i=I(l);i.length>0&&t&&!i.includes(t)&&a.push(`File ${e.name} has unsupported type ${t}`)}}),{type:e,isValid:!!(0===a.length||!ex&&0===r.length),files:r,singleFile:i,errors:a,count:r.length,Required:ex}}}),[e,td,eQ,tC,eV,t,k,l]),(0,a.useEffect)(()=>{F&&F.length>0&&(to.current=Math.max(...F.map(e=>e.id??0),0))},[F]);let tS=async e=>{let l=e.target.files;if(!l||0===l.length)return;let i=[...eV];for(let e=0;e<l.length;e++){let t=l[e],a=!1,r=t.name.toLowerCase().endsWith(".heic")||t.name.toLowerCase().endsWith(".heif");try{if(r&&(t=await U(t),a=!0),!eA&&t.size>1024*k*1024){tt(`One or more files are larger than ${k}MB. Please reduce the file size and try again.`);continue}if("application/pdf"!==t.type&&!t.type.startsWith("image/")&&!t.type.startsWith("application/vnd.openxmlformats-officedocument.wordprocessingml.document")&&!t.type.startsWith("application/msword")&&!a){
1s.Wp.displayErrorMessage(s.By.Fail,"One or more files have an unsupported file type");continue}let e=S(t,i,eG);i.push(e)}catch(e){tt("Image is too large to process. Please use a smaller image or convert to PNG/JPEG first.")}}(eK.current&&(eK.current.value=""),i.length>t)?eZ(!0):e$(i)};(0,a.useEffect)(()=>{E&&"DriveMultiUpload"===e?tV(eX):E&&"multifileupload"===e?(tm(!0),tV(tC)):E&&"EmptyUploader"===e&&tV(eQ)},[E]),window.innerWidth;let tT=(0,r.MS)(r.cA),tB=(0,r.MS)(r.IG,{activationConstraint:{delay:120,tolerance:6}}),tI=(0,r.MS)(r.AN,{activationConstraint:{distance:5}}),tO=(0,r.MS)(r.uN,{coordinateGetter:n.JR}),tF=(0,r.FR)(..."ontouchstart"in window||navigator.maxTouchPoints>0?[tT,tB]:[tI],tO),tA=(0,a.useCallback)(e=>{},[]),tz=(0,a.useCallback)(()=>{},[]),tR=t=>{let{active:l,over:i}=t;if(l.id!==i?.id){let e=eV.findIndex(e=>e.id===l.id),t=eV.findIndex(e=>e.id===i?.id);t>=0&&e>=0&&e$(l=>(0,n.be)(l,e,t))}if("multifileupload"===e&&i&&l.id!==i.id){let e=tC.find(e=>e.id===l.id);if(e?.DisableDragAndDrop)return;tw(e=>{let t=e.findIndex(e=>e.id===l.id),a=e.findIndex(e=>e.id===i.id),r=(0,n.be)(e,t,a);return eo?.(r),r})}},t_=async(t,l,i,a)=>{if(!i||!a||!t)return{fileUrl:null,thumbnailUrl:null};let r=t.name.split(" ").join(""),n=L()+eS+"."+(0,m.QC)(t),s=e2.find(e=>decodeURIComponent(e.substring(e.lastIndexOf("/")+1))===r);if(s&&"singlefileupload"!==e&&"multifileupload"!==e)return e7(e=>({...e,[l]:"completed"})),e3(e=>({...e,[l]:100})),{fileUrl:s,thumbnailUrl:null};let o=new AbortController;e8(e=>({...e,[l]:o}));try{e7(e=>({...e,[l]:"uploading"})),e3(e=>({...e,[l]:0}));let e=new u.wS(i).getContainerClient(C||a),r=e.getBlockBlobClient(encodeURIComponent(n)),s=setInterval(()=>{o.signal.aborted?clearInterval(s):e3(e=>{let i=e[l]||0,a=eb&&t.type.startsWith("image/")?45:90;return i<a?{...e,[l]:i+10}:e})},200);if(await r.uploadBrowserData(t,{blobHTTPHeaders:{blobContentType:t.type},abortSignal:o.signal}),clearInterval(s),o.signal.aborted)return e7(e=>({...e,[l]:"cancelled"})),{fileUrl:null,thumbnailUrl:null};let d=decodeURIComponent(r.url.split("?")[0]),c=null;if(eb&&t.type.startsWith("image/"))try{e3(e=>({...e,[l]:50}));let i=await ((e,t={})=>new Promise((l,i)=>{let{maxWidth:a,maxHeight:r}={maxWidth:800,maxHeight:1200,...t};if(!e.type.startsWith("image/"))return void l(e);let n=new FileReader;n.readAsDataURL(e),n.onload=t=>{let n=new Image;n.src=t.target?.result,n.onload=()=>{let t=n.width>n.height,s=t?r:a,o=t?a:r;s>n.width&&(s=n.width),o>n.height&&(o=n.height);let d=document.createElement("canvas"),c=1;n.width>s?c=s/n.width:n.height>o&&(c=o/n.height),d.width=n.width*c,d.height=n.height*c;let p=d.getContext("2d");p?(p.imageSmoothingEnabled=!0,p.drawImage(n,0,0,d.width,d.height),d.toBlob(t=>{t?l(new File([t],e.name,{type:e.type,lastModified:Date.now()})):i(Error("Failed to create blob"))},e.type,1)):i(Error("Failed to get canvas context"))},n.onerror=()=>{i(Error("Failed to load image"))}},n.onerror=()=>{i(Error("Failed to read file"))}}))(t,{maxWidth:800,maxHeight:1200}),a=`Thumbnail/${n}`,r=e.getBlockBlobClient(a),s=setInterval(()=>{o.signal.aborted?clearInterval(s):e3(e=>{let t=e[l]||50;return t<90?{...e,[l]:t+10}:e})},200);await r.uploadBrowserData(i,{blobHTTPHeaders:{blobContentType:i.type},abortSignal:o.signal}),clearInterval(s),c=decodeURIComponent(r.url.split("?")[0])}catch(e){}return e3(e=>({...e,[l]:100})),e7(e=>({...e,[l]:"completed"})),e4(e=>[...e,d]),e8(e=>{let t={...e};return delete t[l],t}),{fileUrl:d,thumbnailUrl:c}}catch(e){return"AbortError"===e.name||o.signal.aborted?e7(e=>({...e,[l]:"cancelled"})):e7(e=>({...e,[l]:"error"})),e8(e=>{let t={...e};return delete t[l],t}),{fileUrl:null,thumbnailUrl:null}}},tE=async()=>new Promise((e,t)=>{(0,h.nQ)(o||"","","","",l=>{try{let t=l.data,i=t.data.azureUrl,a=t.data.folderPath;e({connectionString:i,containerName:a})}catch(e){t(e)}},e=>t(e),ej)}),tV=async t=>{if(0===t.length){"MultiUploadwithoutDragDrop"===e&&(tt("Please upload at least one file."),ti("warning")),tm(!1),eW(!1),v?.([]);return}try{let{connectionString:l,containerName:i}=await tE();"multifileupload"!==e&&"UploaderWithButton"!==e&&"ProfileUploader"!==e&&eW(!0);let a={},r={};
1t.forEach(e=>{a[e.id]="pending",r[e.id]=0}),e7(a),e3(r);let n=new Map(t.map(e=>[e.id,e])),s=[];s="EmptyUploader"===e?t.map(e=>{if(e.url){if(e.url.startsWith("data:"))try{let t=e.type||"image/png",a=e.name||`file_${e.id}`,r=((e,t,l)=>{let i=atob(e.split(",")[1]),a=Array(i.length);for(let e=0;e<i.length;e++)a[e]=i.charCodeAt(e);let r=new Uint8Array(a);return new File([r],t,{type:l})})(e.url,a,t);return t_(r,e.id,l,i).then(t=>({fileId:e.id,result:t,error:null})).catch(t=>({fileId:e.id,result:{fileUrl:null,thumbnailUrl:null},error:t}))}catch(t){return Promise.resolve({fileId:e.id,result:{fileUrl:null,thumbnailUrl:null},error:t})}return Promise.resolve({fileId:e.id,result:{fileUrl:e.url,thumbnailUrl:null},error:null})}return t_(e,e.id,l,i).then(t=>({fileId:e.id,result:t,error:null})).catch(t=>({fileId:e.id,result:{fileUrl:null,thumbnailUrl:null},error:t}))}):t.map(e=>t_(e.file,e.id,l,i).then(t=>({fileId:e.id,result:t,error:null})).catch(t=>({fileId:e.id,result:{fileUrl:null,thumbnailUrl:null},error:t})));let o=(await Promise.allSettled(s)).filter(e=>"fulfilled"===e.status&&e.value.result?.fileUrl!==null).map(e=>{let t=e.value.fileId,{fileUrl:l,thumbnailUrl:i}=e.value.result,a=n.get(t);return{id:t,name:a?.name||"",type:a?.type||"",size:a?.size||0,description:a?.description||"",url:l,thumbnailUrl:i,blob:void 0}});o.length>0&&(eW(!1),tm(!1),"multifileupload"!==e||E||tw(e=>[...o,...e]),v?.(o))}catch(e){tt("An error occurred during file upload."),tm(!1),eW(!1)}finally{tm(!1),eW(!1)}},t$=async e=>{if(!e.target.files)return;let t=Array.from(e.target.files),i=I(l);if((0===i.length?[]:t.filter(e=>{let t=(e.name.split(".").pop()||"").toLowerCase(),l=(e.type||"").split("/")[1]||"";return!(i.includes(t)||l&&i.includes(l))})).length>0){tt("Please select correct file type(s)."),eK.current&&(eK.current.value="");return}let a={current:0},r=new Set(eX.map(e=>e.name)),n=await Promise.all(t.map(async(e,t)=>{let l=e;if(l.name.toLowerCase().endsWith(".heic")||l.name.toLowerCase().endsWith(".heif")){tm(!0);try{l=await U(l)}catch(e){return tm(!1),tt("Failed to convert HEIC image. Please try another image."),null}}r.has(l.name)&&(l=S(l,eX.map(e=>({file:e.file,id:""})),a).file);let i=URL.createObjectURL(l),n=await T(l);return to.current+=1,{id:to.current,file:l,name:l.name,type:l.type,size:l.size,url:n,thumbnailUrl:null,blob:i,description:""}}));tm(!1),n&&n.length>0&&(ts(n),eY(e=>[...n,...e]),e0(!0)),e.target&&(e.target.value="")},tH=async e=>{try{tm(!0);let{connectionString:t,containerName:l}=await tE(),i=await t_(e,"0",t,l);return tm(!1),i}catch(e){return tm(!1),{fileUrl:null,thumbnailUrl:null}}},tW=async e=>{let t;if(!e.target.files||0===e.target.files.length)return;let i=e.target.files[0],a=l.map(e=>e.toLowerCase()),r=i.name.split(".").pop()?.toLowerCase();if(eK.current&&(eK.current.value=""),i.name.toLowerCase().endsWith(".heic")||i.name.toLowerCase().endsWith(".heif")){tm(!0);try{i=await U(i),r=i.name.split(".").pop()?.toLowerCase()}catch(e){tm(!1),tt("Failed to convert HEIC image. Please try another image.");return}}if(a.length>0&&(!r||!a.includes(r))){tm(!1),tu(!0),eK.current&&(eK.current.value="");return}if(!eA&&i.size>1024*k*1024){tm(!1),tv(`File size limit exceeds ${k}MB.`),tu(!0),eK.current&&(eK.current.value="");return}tm(!1);let n=URL.createObjectURL(i),s=i.type.startsWith("image/");if(s&&!await new Promise(e=>{createImageBitmap(i).then(t=>{t.close(),e(!0)}).catch(()=>{let t=new Image;t.onload=()=>e(!0),t.onerror=()=>e(!1),t.src=n})})&&s){tv("The image you have uploaded seems to be corrupted. Please upload another image."),tu(!0),URL.revokeObjectURL(n);return}let o=await T(i);if(er.width>0&&er.height>0){let e=(ey||"Less").toString().toLowerCase(),t=(t,l)=>"less"===e?t>=er.width&&l>=er.height:"exact"===e?t===er.width&&l===er.height:t<=er.width&&l<=er.height,l=null;try{l=await createImageBitmap(await (await fetch(n)).blob());let e=Number(l.width||0),i=Number(l.height||0);if(!t(e,i)){tN(!0),l&&l.close();try{URL.revokeObjectURL(n)}catch(e){}return}}catch(l){let e=new Image;if(!await new Promise(l=>{e.onload=()=>{t(Number(e.width||0),Number(e.height||0))?l(!0):(tN(!0),l(!1))},e.onerror=()=>l(!1),e.src=n})){try{URL.revokeObjectURL(n)}catch(e){}return}}finally{l&&l.close();try{URL.revokeObjectURL(n)}catch(e){}}}else try{URL.revokeObjectURL(n)}catch(e){}if(Y&&i&&i.type.startsWith("image/"))return void tx({id:0,file:i,name:i.name,type:i.type,size:i.size,url:o,blob:n,description:""});if(Z){let e=await tH(i);t={id:0,file:i,name:i.name,type:i.type,size:i.size,url:e.fileUrl||"",thumbnailUrl:e.thumbnailUrl,blob:n,description:""}}else t={id:0,file:i,name:i.name,type:i.type,size:i.size,url:o,thumbnailUrl:null,blob:n,description:""};tc(t),q?.(t),tk(!1)},tq=async e=>{if(!e.url)return void tx(e);try{tm(!0);let t=(e=>{let t=e.replace("https://",""),l="/Original/",i="/350x350/",a="/Compressed/",r=t.substring(0,t.indexOf("/"));if(-1===(t=t.replace(r,"")).indexOf("/"))throw Error("Invalid URL format: no path foun
1d");return -1===t.indexOf(l)&&-1===t.indexOf(i)&&-1===t.indexOf(a)&&(t=l+t),(t=(t=t.replace(i,l)).replace(a,l)).replace(/\//gi,"||~||")})(e.url),l={editFrom:eN.EditFrom||"businessphoto",imagepath:t,adminPhoto:eN.AdminPhoto||!1,origin:eN.Origin||""};(0,h.l9)(eN.ApiUrl,l,t=>{tm(!1);let l=t?.data?.data||t?.data||t;tx({...e,url:l})},t=>{tm(!1),tx(e)},ej)}catch(t){tm(!1),tx(e)}},tZ=async(e,t)=>{"1"===e.id&&(tw(tC.map(e=>e.id===t.id?{...e,IsLogo:!0}:{...e,IsLogo:!1})),tk(!1),eh?.("logo",t)),"2"===e.id&&(t.url&&t.url.includes("rackcdn")&&eN?.ApiUrl?tq(t):tx(t)),"3"===e.id&&(eL&&1===tC.length?(tt("At least one image is required."),ti("warning")):ef?ty(t):(tw(tC.filter(e=>e.id!==t.id)),eh?.("delete",t),_?.(t)))},tG=async e=>{"1"===e.id&&(Q?td?.url&&td.url.includes("rackcdn")&&eN?.ApiUrl?tq(td):tx(td):eK.current&&eK.current.click()),"2"===e.id&&(ef?ty(td):(ty(void 0),tc(void 0),_?.(tj)))},tK=async t=>{let l,i,a=t.file||t.url;if(Z){let e=await tH(a),r=e.fileUrl&&e.fileUrl.trim()?e.fileUrl:t.url,n=`${r}?t=${Date.now()}`;i={...l={id:void 0!==t.id&&null!==t.id?t.id:(to.current+=1,to.current),file:a,name:t.name,type:t.type,size:t.size,url:n,thumbnailUrl:e.thumbnailUrl,blob:t.url,description:t.description||""},url:r}}else i=l={id:void 0!==t.id&&null!==t.id?t.id:(to.current+=1,to.current),file:a,name:t.name,type:t.type,size:t.size,url:t.url,thumbnailUrl:null,blob:t.blob,description:t.description||""};if("multifileupload"===e&&Z){let e;e=-1!==tC.findIndex(e=>e.id===l.id)?tC.map(e=>e.id===l.id?l:e):[...tC,l],eh?.("edit",i),tw(e),tk(!1),tx(void 0);return}if(eI){tw(e=>[...e,l]),v?.([l]),tx(void 0),tk(!1);return}tc(l),q?.(l),tx(void 0),tk(!1)},tX=async e=>{if(!e.target.files||0===e.target.files.length)return;let i=Array.from(e.target.files),a={current:0},r=!1;if(i.length>t||tC.length+i.length>t){eZ(!0),eK.current&&(eK.current.value="");return}let n=I(l);if((0===n.length?[]:i.filter(e=>{let t=(e.name.split(".").pop()||"").toLowerCase(),l=(e.type||"").split("/")[1]||"";return!(n.includes(t)||l&&n.includes(l))})).length>0){tt("Please select correct file type(s)."),eK.current&&(eK.current.value="");return}if(k&&k>0&&!eA&&i.find(e=>e.size>1024*k*1024)){tt(`Please select file(s) smaller than ${k}MB.`),eK.current&&(eK.current.value="");return}let s=new Set(tC.map(e=>e.name)),o=await Promise.all(i.map(async(e,t)=>{let l=e;s.has(l.name)&&(l=S(l,tC.map(e=>({file:e.file,id:""})),a).file);let i=URL.createObjectURL(l),n=l.type.startsWith("image/");if(n&&!await new Promise(e=>{createImageBitmap(l).then(t=>{t.close(),e(!0)}).catch(()=>{let t=new Image;t.onload=()=>e(!0),t.onerror=()=>e(!1),t.src=i})})&&n)return tv("The image you have uploaded seems to be corrupted. Please upload another image."),tu(!0),URL.revokeObjectURL(i),null;let o=await T(l);if(er.width>0&&er.height>0){let e=(ey||"Less").toString().toLowerCase(),t=(t,l)=>"less"===e?t>=er.width&&l>=er.height:"exact"===e?t===er.width&&l===er.height:t<=er.width&&l<=er.height,l=null;try{l=await createImageBitmap(await (await fetch(i)).blob());let e=Number(l.width||0),a=Number(l.height||0);if(!t(e,a)){r=!0,tN(!0),l&&l.close();try{URL.revokeObjectURL(i)}catch(e){}return null}}catch(l){let e=new Image;if(!await new Promise(l=>{e.onload=()=>{t(Number(e.width||0),Number(e.height||0))?l(!0):(r=!0,tN(!0),l(!1))},e.onerror=()=>l(!1),e.src=i})){try{URL.revokeObjectURL(i)}catch(e){}return null}}finally{l&&l.close();try{URL.revokeObjectURL(i)}catch(e){}}}else try{URL.revokeObjectURL(i)}catch(e){}return to.current+=1,{id:to.current,file:l,name:l.name,type:l.type,size:l.size,url:o,thumbnailUrl:null,blob:i,description:""}}));if(eK.current&&(eK.current.value=""),r)return;if(Y&&1===o.length&&o[0].file&&o[0].file.type.startsWith("image/"))return void tx(o[0]);let d=[...tC,...o];if(Z){try{tm(!0),await tV(o)}catch(e){tm(!1),tt?.("string"==typeof e?e:"Failed to upload to drive")}finally{tm(!1),eK.current&&(eK.current.value="")}return}tw(d),tk(!1),v?.(d),eh?.("add",d),eK.current&&(eK.current.value="")};return(0,i.jsxs)(i.Fragment,{children:["MultiUploadwithDragDrop"===e&&(0,i.jsx)(c.default,{BodyClass:"",ButtonPrimary:"Import",ButtonSecondary:"Cancel",ButtonThird:"Back",CloseBackTitle:"From Control",CloseButton:!0,DoNotSetTitle:!0,Footer:2,FooterButton:"both",FooterLeftBody:()=>{},OnClickPrimary:()=>tV(eV),OnClickSecondary:f,PopupBody:()=>(0,i.jsxs)("div",{className:"vgdraganddropuploader-wrap",children:[(0,i.jsxs)("div",{className:"vgdraganddropuploader-info",children:[(0,i.jsxs)("p",{children:["Upload any ",(0,i.jsx)("strong",{children:"pdf"}),", ",(0,i.jsx)("strong",{children:"png"}),","," ",(0,i.jsx)("strong",{children:"jpg"})," or ",(0,i.jsx)("strong",{children:"Word Document"})," pages and we'll take care of the rest"]}),(0,i.jsx)(p.default,{BadgeSize:"inline",BadgeText:`Files: ${eV.length}/${t===1/0?"∞":t}`,BadgeVariation:"defaults"})]}),(0,i.jsxs)("div",{className:"vg-import-uploader",children:[(0,i.jsxs)("div",{className:`vg-import-wrapper ${eV.length<1?"vg-import-wrapper-full":""}`,children:[(0,i.jsx)("input",{max:12-eV.length,ref:eK,type:"file",accept:l?.map(e=>`.${e}`).join(", "),multiple:!0,onChange:tS}),(0,i.jsx)("div",{className:"vg-import-overlay",children:(0,i.jsxs)("div",{className:"vg-upload-drop horizontal  ",children:[(0,i.jsx)("div",{className:"vg-upload-icon",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100px",height:"100px",viewBox:"0 0 640 512",fill:"
1currentColor",children:(0,i.jsx)("path",{d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})})}),(0,i.jsxs)("div",{className:"vg-upload-decs",children:[(0,i.jsx)("p",{children:"Drag and drop files here or"}),(0,i.jsx)("a",{className:"vg-choose-file",children:"Choose File"})]})]})})]}),eV.length>0&&(0,i.jsx)("div",{className:"vg-import-file-list",children:(0,i.jsx)(r.Mp,{sensors:tF,collisionDetection:r.fp,onDragStart:tA,onDragEnd:tR,onDragCancel:tz,modifiers:[P.gj],children:(0,i.jsx)(n.gB,{items:eV,strategy:n.kL,children:eV.map((e,t)=>(0,i.jsx)(A,{file:e,index:t,onRemove:e=>{let t=eV[e],l=[...eV];l.splice(e,1),e$(l),_?.(t)},movable:eV.length>1},e.id))})})})]})]}),PopupId:"PopupId",PopupTitle:"Upload Your Form",PopupType:"default",Popupopen:!0,PrimaryButtonVariant:"primary",SecondaryButtonVariant:"secondary",Size:"large",TextDescription:"",ThirdButtonVariant:"primary",TimerCount:0,VagaroToolkit:1,customClassName:"",onClose:()=>{f&&f()},EnableBody:!0}),"DriveMultiUpload"===e&&(0,i.jsxs)("div",{className:"vg-note-upload-container",children:[(0,i.jsxs)("label",{className:"vg-input-label",children:[et,"  "]}),(0,i.jsxs)("div",{className:"vg-note-upload-box",children:[(0,i.jsx)("textarea",{className:"vg-input-control vg-note-box",placeholder:"Enter note here",value:J,onChange:e=>ee?.(e),maxLength:eO}),(0,i.jsxs)("div",{className:"file-upload vg-upload-flex",children:[(0,i.jsxs)("div",{className:"vg-upload-drop horizontal",children:[(0,i.jsx)("span",{className:"vg-plus-icon"}),(0,i.jsx)("input",{"aria-label":"Upload a file",type:"file",ref:eK,id:"fileupload",accept:O(l),onChange:t$,onClick:e=>{"function"==typeof eB&&!1===eB(!0,e)&&e.preventDefault()},className:"vg-input-file",name:"fileupload",multiple:!0}),(0,i.jsxs)("div",{className:"vg-upload-decs",children:[(0,i.jsx)("p",{children:"Drag and drop files"}),(0,i.jsxs)("p",{children:["or ",(0,i.jsx)("a",{className:"vg-choose-file",children:"Choose File"})]})]})]}),eQ.length>0&&(0,i.jsxs)("div",{className:"vg-upload-photo vg-appdragphoto",onClick:()=>tr(!0),children:[(0,m.L7)([...eQ].sort((e,t)=>(t.id??0)-(e.id??0))[0]),eQ.length>0&&(0,i.jsx)("div",{className:"vg-appdragphoto-hover",children:(0,i.jsxs)("div",{className:"vg-numofPhotos",children:[(0,i.jsx)("strong",{children:eQ.length}),(0,i.jsx)("span",{children:"Files"})]})})]})]})]})]}),"singlefileupload"===e&&(0,i.jsxs)("div",{className:"vg-singlefileupload-container",onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&e.dataTransfer.files.length>0&&await tW({target:{files:e.dataTransfer.files}})},children:[ek&&(0,i.jsxs)("div",{className:"vg-fileuploader-title",children:[ek,eM&&ex&&(0,i.jsx)("span",{className:"required-fileuploader-mark",children:"*"})]}),(0,i.jsxs)("div",{className:"vg-singlefileupload-box",children:[(0,i.jsx)("input",{type:"file",accept:O(l),onChange:tW,className:"vg-input-file",ref:eK,multiple:!1}),(0,i.jsxs)("div",{className:"vg-singlefile-preview",onClick:()=>{if(ed&&tU(!0),eK.current&&(eK.current.click(),ed)){let e=()=>{tU(!1),window.removeEventListener("focus",e)};window.addEventListener("focus",e)}},children:[td?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{src:td.url,alt:"Preview"}),(0,i.jsx)("div",{className:"vg-singlefileUpload-content",children:ep}),"NoOption"!==K&&(0,i.jsxs)("div",{className:"vg-singlefileUpload-menu",onPointerDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:["Edit/Delete"===K&&(0,i.jsx)(w.default,{IconSVG:(0,i.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.55469 11.4512C1.67188 11.041 1.90625 10.6602 2.19922 10.3672L11.1055 1.46094C11.8379 0.728516 13.0391 0.728516 13.7715 1.46094L14.9141 2.60352C15.002 2.69141 15.0898 2.80859 15.1484 2.89648C15.6465 3.62891 15.5586 4.625 14.9141 5.26953L6.00781 14.1758C5.97852 14.2051 5.91992 14.2344 5.89062 14.293C5.59766 14.5273 5.27539 14.7031 4.92383 14.8203L1.37891 15.8457C1.14453 15.9336 0.880859 15.875 0.705078 15.6699C0.5 15.4941 0.441406 15.2305 0.5 14.9961L1.55469 11.4512ZM2.22852 14.1465L4.51367 13.4727C4.57227 13.4434 4.66016 13.4141 4.71875 13.3848L3.66406 13.1797C3.42969 13.1211 3.22461 12.9453 3.19531 12.7109L2.99023 11.6562C2.96094 11.7148 2.93164 11.8027 2.90234 11.8613L2.22852 14.1465ZM5.77344 12.418L11.7207 6.4707L9.875 4.6543L3.95703 10.6016L4.25 12.0957L5.77344 12.418Z"})}),Items:[{id:"1",label:"Edit"},{id:"2",label:"Delete"}],MenuButtonPosition:"horizontal",MenuOpen:!0,MenuOptions:"ThreeDot",OnClick:(e,t)=>{tG(e)},OnThreeDotMenuClick:()=>{},TextValue:"0.00",ThreeDotMenuOpenPosition:"Right"}),"cross"===K&&(0,i.jsx)("div",{onClick:()=>{ef?ty(td):(ty(void 0),tc(void 0),_?.(td))},className:"vg-singlefile-cross-icon",children:(0,i.jsx)(N.default,{name:"cross"})})]})]}):(0,i.jsx)("div",{className:`vg-singlefile-placeholder ${tP?"vg
1-singlefile-placeholder-border":""} ${el.icon?"vg-singlefile-placeholder-withicon":""}`,children:el.icon?(0,i.jsxs)("div",{className:"vg-upload-placeholder-preview",children:[(0,i.jsx)("div",{className:"vg-preview-svg-icon",children:M(el.icon)}),(0,i.jsx)("div",{className:"singlefile-label",children:el.title}),(0,i.jsx)("div",{className:"singlefile-optional",children:M(el.content)})]}):(0,i.jsxs)("div",{className:"vg-upload-placeholder-default",children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,i.jsx)("path",{d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})}),(0,i.jsx)("span",{className:"vg-upload-placeholder-text",children:M(ec)}),(0,i.jsx)("span",{className:"vg-upload-text",children:"Choose File"})]})}),!el.icon&&(0,i.jsx)("div",{className:"vg-singlefile-hover-overlay",children:G?(0,i.jsx)("span",{className:"vg-singlefile-hover-icon",children:M(G)}):null})]})]}),tL&&ex&&(0,i.jsx)("span",{className:"vgfileuploader-error-message",children:eC})]}),"multifileupload"===e&&(0,i.jsxs)(i.Fragment,{children:[ek&&(0,i.jsxs)("div",{className:"vg-fileuploader-title",children:[ek,eM&&ex&&(0,i.jsx)("span",{className:"required-fileuploader-mark",children:"*"})]}),ew&&(0,i.jsxs)("div",{className:"vg-multifileupload-inputbox-container",children:[(0,i.jsxs)("div",{className:`vg-multifileupload-inputbox ${tP?"vg-multifileupload-inputbox-border":""}`,style:{width:X.width,height:X.height},children:[(0,i.jsx)("input",{type:"file",accept:O(l),onChange:tX,onClick:()=>{if(ed){tU(!0);let e=()=>{tU(!1),window.removeEventListener("focus",e)};window.addEventListener("focus",e)}},className:"",ref:eK,multiple:!0}),(0,i.jsx)("div",{className:`vg-upload-placeholder-default ${el.icon?"vg-singlefile-placeholder-withicon":""}`,children:el.icon?(0,i.jsxs)("div",{className:"vg-upload-placeholder-preview",children:[(0,i.jsx)("div",{className:"vg-preview-svg-icon",children:M(el.icon)}),(0,i.jsx)("div",{className:"singlefile-label",children:el.title}),(0,i.jsx)("div",{className:"singlefile-optional",children:M(el.content)})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,i.jsx)("path",{d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})}),(0,i.jsx)("span",{className:"vg-upload-placeholder-text",children:M(ec)}),(0,i.jsx)("span",{className:"vg-upload-text",children:"Choose File"})]})})]}),tL&&ex&&(0,i.jsx)("span",{className:"vgfileuploader-error-message",children:eC})]}),tC.length>0&&(0,i.jsx)(r.Mp,{sensors:tF,collisionDetection:r.fp,onDragEnd:tR,modifiers:[P.gj],children:(0,i.jsx)(n.gB,{items:tC.map(e=>e.id),strategy:n.kL,children:tC.map(e=>
1(0,i.jsx)(R,{file:e,DisplayResolution:X,handleThreeDotItemClick:tZ,ActionMenu:K,handleCustomThreeDotClick:en,ShowDragAndDropIcon:em,ShowImageDetail:eU,onImageClick:es,IsAllowPlayIcon:e_},e.id))})})]}),"UploaderWithButton"===e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{ref:eK,type:"file",style:{display:"none"},onChange:eI?tX:tW,accept:O(l),multiple:eI}),(0,i.jsx)(d.default,{ButtonVariant:ei,ButtononClick:()=>{eK.current&&eK.current.click()},children:ea})]}),"ProfileUploader"===e&&(0,i.jsxs)(i.Fragment,{children:[ek&&(0,i.jsxs)("div",{className:"vg-fileuploader-title",children:[ek,eM&&ex&&(0,i.jsx)("span",{className:"required-fileuploader-mark",children:"*"})]}),(0,i.jsxs)("div",{className:"vg-profileUploader",onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&e.dataTransfer.files.length>0&&await tW({target:{files:e.dataTransfer.files}})},children:[(0,i.jsx)("input",{type:"file",accept:O(l),onChange:tW,className:"vg-input-file",ref:eK,multiple:!1}),td?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"vg-profileuploader-img-box",children:"application/pdf"===td.type?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512",className:"vg-profileuploader-pdf-icon",children:(0,i.jsx)("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8 .7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16zm-22-171.2c-13.5-13.3-55-9.2-73.7-6.7-21.2-12.8-35.2-30.4-45.1-56.6 4.3-18 12-47.2 6.4-64.9-4.4-28.1-39.7-24.7-44.6-6.8-5 18.3-.3 44.4 8.4 77.8-11.9 28.4-29.7 66.9-42.1 88.6-20.8 10.7-54.1 29.3-58.8 52.4-3.5 16.8 22.9 39.4 53.1 6.4 9.1-9.9 19.3-24.8 31.3-45.5 26.7-8.8 56.1-19.8 82-24 21.9 12 47.6 19.9 64.6 19.9 27.7 .1 28.9-30.2 18.5-40.6zm-229.2 89c5.9-15.9 28.6-34.4 35.5-40.8-22.1 35.3-35.5 41.5-35.5 40.8zM180 175.5c8.7 0 7.8 37.5 2.1 47.6-5.2-16.3-5-47.6-2.1-47.6zm-28.4 159.3c11.3-19.8 21-43.2 28.8-63.7 9.7 17.7 22.1 31.7 35.1 41.5-24.3 4.7-45.4 15.1-63.9 22.2zm153.4-5.9s-5.8 7-43.5-9.1c41-3 47.7 6.4 43.5 9.1z"})}):(td.name||"").toLowerCase().endsWith(".eps")||"application/postscript"===td.type||"image/x-eps"===td.type||"image/eps"===td.type?(0,i.jsx)("img",{src:"https://vagaro.azureedge.net/static-content/Images/ai-icon-brandedapp.png",alt:"EPS file"}):(0,i.jsx)("img",{src:td.url,alt:"Preview"})})}):tD?(0,i.jsx)("div",{className:"vg-profileuploader-initials",children:tD}):(0,i.jsx)("div",{className:"vg-upload-placeholder-default",onClick:()=>{eK.current&&eK.current.click()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eK.current&&eK.current.click())},children:el.icon?(0,i.jsxs)("div",{className:"vg-upload-placeholder-preview",children:[(0,i.jsx)("div",{className:"vg-preview-svg-icon",children:M(el.icon)}),(0,i.jsx)("div",{className:"singlefile-label",children:el.title}),(0,i.jsx)("div",{className:"singlefile-optional",children:M(el.content)})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,i.jsx)("path",{d:"M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"})}),(0,i.jsx)("span",{className:"vg-upload-placeholder-text",children:ec}),(0,i.jsx)("span",{className:"vg-upload-text",children:"Choose File"})]})}),(!!td||!!eg)&&(0,i.jsxs)("div",{className:"vg-profileuploader-hover-overlay",children:[G?(0,i.jsx)("span",{className:"vg-profileuploader-hover-icon",children:M(G)}):null,(0,i.jsx)(w.default,{CustomMenuRender:ev,Items:[{color:"var(--text_neutral_default)",id:"1",label:"Upload Photo"},...td?[{id:"2",label:"Remove Current Photo"}]:[]],MenuButtonPosition:"horizontal",MenuOpen:!0,MenuOptions:"CustomMenu",OnClick:(e,t)=>{"1"===e.id&&eK.current&&eK.current.click(),"2"===e.id&&(ef?ty(td):(ty(void 0),tc(void 0),_?.(tj)))},TextValue:"0.00",ThreeDotMenuOpenPosition:"Left"})]})]}),tL&&ex&&(0,i.jsx)("span",{className:"vgfileuploader-error-message",children:eC})]}),eq&&(0,i.jsx)(c.default,{ButtonPrimary:"OK",CloseButton:!0,Footer:2,FooterButton:"primaryButton",OnClickPrimary:()=>eZ(!1),PopupId:"max-file-popup",PopupTitle:"Maximum File Limit Exceeded",PopupType:"default",Popupopen:eq,PrimaryButtonVariant:"primary",Size:"small",TextDescription:`You can only upload up to ${t} file(s). Please select fewer files.`,onClose:()=>eZ(!1)}),(e1||"MultiUploadwithoutDragDrop"===e)&&(0,i.jsx)(m.Ay,{uploadedFilesForDes:eX,BusinessDetail
1s:x,FileExtentions:l,setUploadedFilesForDes:eY,SetShowDescriptionPopup:e0,finaluploadedFilesForDes:eQ,setFinalUploadedFilesForDes:eJ,tempMultifile:tn,setTempMultifile:ts,maxIdRef:to,UploadButton:V,CancelButton:$,UploadPopupTitle:H,Type:e,SetUploadingPopup:eW,handleImport:tV,OnClose:f,UploadOnDrive:Z,OnImport:v,setErrorType:ti,setErrorMessage:tt,setShowLoader:tm,DescriptionPlaceholder:eT}),eH&&(0,i.jsx)(c.default,{CloseButton:!1,PopupId:"UploadingPopup",PopupType:"custom",Size:"small",PopupBody:()=>{let t="DriveMultiUpload"===e||"MultiUploadwithoutDragDrop"===e?eX:"EmptyUploader"===e?eQ:eV;return(0,i.jsxs)("div",{className:"vg-uploadingpopupbody",children:[(0,i.jsx)("div",{className:"vg-modal-header",children:(0,i.jsx)("div",{className:"vg-modal-title",children:"Uploading Files"})}),(0,i.jsx)("div",{className:"vg-uploadingpopup-images",children:t.map(e=>{let t=e5[e.id]||0,l=e6[e.id]||"pending";return(0,i.jsxs)("div",{className:"vg-uploadingpopup-image-box",children:[(0,i.jsx)("div",{className:"vg-uploadingpopup-image-icon",children:e?.file?.type==="image/png"||e?.file?.type==="image/jpg"||e?.file?.type==="image/jpeg"||e?.file?.type==="image/bmp"||e?.type==="image/png"||e?.type==="image/jpg"||e?.type==="image/jpeg"||e?.type==="image/bmp"?(0,i.jsx)("img",{src:e?.file?URL.createObjectURL(e.file):e.url,alt:"",width:85,height:85}):(0,i.jsx)("div",{className:"vg-uploadingpopup-svg",children:e?.file&&(0,i.jsx)(z,{file:e.file})})}),(0,i.jsxs)("div",{className:"vg-uploadingpopup-content",children:[(0,i.jsx)("div",{className:"vg-uploadingpopup-title",children:e.name||e?.file?.name}),(0,i.jsx)("div",{className:"vg-uploadingpopup-size",children:B(e.size||e?.file?.size)})]}),(0,i.jsxs)("div",{className:"vg-uploadingpopup-image-loader",children:["uploading"===l&&(0,i.jsx)("div",{className:"vg-uploadingpopup-loader-border",style:{background:`conic-gradient(#7cc576 ${3.6*t}deg, #e5e7eb 180deg)`,WebkitMask:"radial-gradient(farthest-side, transparent calc(100% - 3px), black 0)",mask:"radial-gradient(farthest-side, transparent calc(100% - 3px), black 0)"}}),"completed"===l&&(0,i.jsx)("div",{className:"vg-uploadingpopup-loader-svg",children:(0,i.jsx)("i",{className:"fa-solid fa-circle-check"})})]})]},e.id)})}),(0,i.jsx)("div",{className:"vg-uploadingpopup-footer",children:(0,i.jsx)(d.default,{ButtonVariant:"ghost",ButtononClick:()=>{Object.entries(e9).forEach(([e,t])=>{t.signal.aborted||(t.abort(),e7(t=>({...t,[e]:"cancelled"})))}),e8({}),eW(!1),e3({}),e7({}),W?.()},children:"Cancel Upload"})})]})},Popupopen:eH,onClose:()=>{}}),te&&(0,i.jsx)(g.default,{Icon:!0,NotificationTitle:te,OnClose:()=>{tt("")},show:!0,TopMessage:!0,types:tl,UsePortal:!0}),ta&&(0,i.jsx)(y,{files:eQ,onClose:()=>tr(!1),activeFile:eQ[0],setUpdateFiles:eJ,setUploadedFilesForDes:eY,BusinessDetails:x,OnUploadedImageDelete:_,OpenEditorInPortal:eR,PreDriveUploadFile:eF,MaxFileSize:ez??k}),tp&&(0,i.jsx)(c.default,{ButtonPrimary:"OK",CloseButton:!0,Footer:2,FooterButton:"primaryButton",OnClickPrimary:()=>tu(!1),PopupId:"warning-popup",PopupTitle:"Alert",PopupType:"default",Popupopen:tp,PrimaryButtonVariant:"primary",Size:"small",TextDescription:tg,onClose:()=>tu(!1)}),tj&&(0,i.jsx)(c.default,{ButtonPrimary:eP.PrimaryBtn,ButtonSecondary:eP.SecondaryBtn,Footer:2,FooterButton:"both",CloseButton:!0,OnClickPrimary:()=>{ty(void 0),"multifileupload"===e&&ef?(tw(tC.filter(e=>e.id!==tj.id)),eh?.("delete",tj)):tc(void 0),_?.(tj)},OnClickSecondary:()=>ty(void 0),PopupId:"Alert-popup",PopupTitle:eP.Title,PopupType:"default",Popupopen:!!tj,PrimaryButtonVariant:"primary",Size:"small",TextDescription:eP.Description,onClose:()=>ty(void 0)}),tf&&(0,i.jsx)(j.default,{ImageObj:tf,OnSave:t=>{"singlefileupload"===e||"UploaderWithButton"===e||"ProfileUploader"===e?tK(t):"multifileupload"===e&&(Z?tK(t):(tw(-1!==tC.findIndex(e=>e.id===t.id)?tC.map(e=>e.id===t.id?t:e):[...tC,t]),eh?.("edit",t),tk(!1),tx(void 0)))},OnCancel:()=>tx(void 0),MarkupEditor:"Markup"===eD,MaxFileSize:ez??k,OpenInPortal:eR,GlassDesign:!!tM}),tb&&(0,i.jsx)(c.default,{ButtonPrimary:"OK",CloseButton:!0,Footer:2,FooterButton:"primaryButton",OnClickPrimary:()=>tN(!1),PopupId:"image-dimension-popup",PopupTitle:"Alert",PopupType:"default",Popupopen:tb,PrimaryButtonVariant:"primary",Size:"small",TextDescription:`${"Less"===ey?`Minimum Width and Height required : ${er?.width}X${er?.height}`:""} ${"Exact"===ey?`Image size is either smaller or larger than ${er?.width}X${er?.height}. Please upload image of size 700x400.
2`:""} ${"Greater"===ey?`Maximum Width and Height required : ${er?.width}X${er?.height}`:""}`,onClose:()=>tN(!1)}),th&&(0,i.jsx)(b.A,{})]})});function A({file:e,index:t,onRemove:l,movable:a}){let{isDragging:r,attributes:s,listeners:o,setNodeRef:c,transform:p,transition:u}=(0,n.gl)({id:e.id});return(0,i.jsxs)("div",{style:{transform:p?`translate3d(${p.x}px, ${p.y}px, 0)`:void 0,transition:u??void 0,zIndex:r?5:void 0},ref:c,className:"vg-import-file-item",children:[a&&(0,i.jsx)("div",{className:"vg-import-file-handle",...s,...o,children:(0,i.jsx)("i",{className:"fas fa-bars"})}),(0,i.jsx)("div",{className:"vg-file-icons",children:(0,i.jsx)(z,{file:e.file})}),(0,i.jsx)("div",{className:"vg-import-file-name",children:e.file.name}),(0,i.jsx)("div",{className:"vg-import-file-close-btn",children:(0,i.jsx)(d.default,{ButtonVariant:"close",ButtononClick:()=>{l(t)}})})]},e.id)}function z({file:e}){return e.type.includes("pdf")?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
2currentColor",height:"1.5em",viewBox:"0 0 384 512",children:(0,i.jsx)("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8 .7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16zm-22-171.2c-13.5-13.3-55-9.2-73.7-6.7-21.2-12.8-35.2-30.4-45.1-56.6 4.3-18 12-47.2 6.4-64.9-4.4-28.1-39.7-24.7-44.6-6.8-5 18.3-.3 44.4 8.4 77.8-11.9 28.4-29.7 66.9-42.1 88.6-20.8 10.7-54.1 29.3-58.8 52.4-3.5 16.8 22.9 39.4 53.1 6.4 9.1-9.9 19.3-24.8 31.3-45.5 26.7-8.8 56.1-19.8 82-24 21.9 12 47.6 19.9 64.6 19.9 27.7 .1 28.9-30.2 18.5-40.6zm-229.2 89c5.9-15.9 28.6-34.4 35.5-40.8-22.1 35.3-35.5 41.5-35.5 40.8zM180 175.5c8.7 0 7.8 37.5 2.1 47.6-5.2-16.3-5-47.6-2.1-47.6zm-28.4 159.3c11.3-19.8 21-43.2 28.8-63.7 9.7 17.7 22.1 31.7 35.1 41.5-24.3 4.7-45.4 15.1-63.9 22.2zm153.4-5.9s-5.8 7-43.5-9.1c41-3 47.7 6.4 43.5 9.1z"})}):e.type.includes("image/png")||e.type.includes("image/jpeg")||e.type.includes("image/jpg")||e.type.includes("heic")?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",height:"1.5em",viewBox:"0 0 384 512",children:(0,i.jsx)("path",{d:"M159 336l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0l-39 39L63 448h256V304l-55.5-55.5c-4.7-4.7-12.3-4.7-17 0L159 336zm96-50.7l32 32V416H95.1l.3-67.2 15.6-15.6 48 48c20.3-20.3 77.7-77.6 96-95.9zM127 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm0-96c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm242.9-62.1L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM256 32.5c2.8 .7 5.3 2.1 7.4 4.2l83.9 83.9c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5zM352 464c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304z"})}):e.type.includes("docx")||e.type.includes("doc")||e.type.includes("word")?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",height:"1.5em",viewBox:"0 0 384 512",children:(0,i.jsx)("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8 .7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16zm-53.6-246.5c-6.8 32.8-32.5 139.7-33.4 150.3-5.8-29.1-.7 1.6-41.8-150.9-1.4-5.2-6.2-8.9-11.6-8.9h-6.4c-5.4 0-10.2 3.6-11.6 8.9-38.3 142.3-37.4 140.6-39.4 154.7-4.1-23.9 2.1-2.9-34.4-154.4-1.3-5.4-6.1-9.2-11.7-9.2h-7.2c-7.8 0-13.5 7.3-11.6 14.9 9.5 38 34.5 137.4 42.2 168 1.3 5.3 6.1 9.1 11.6 9.1h17c5.4 0 10.2-3.7 11.6-8.9 34.2-127.7 33.5-123.4 36.7-142.9 6.5 31.1 .2 7 36.7 142.9 1.4 5.2 6.2 8.9 11.6 8.9h14c5.5 0 13.7-3.7 15.1-9l42.8-168c1.9-7.6-3.8-15-11.6-15h-6.8c-5.7 0-10.6 4-11.8 9.5z"})}):(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",height:"1.5em",children:(0,i.jsx)("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8 .7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16zm-48-244v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm0 64v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm0 64v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12z"})})}let R=({file:e,DisplayResolution:t,handleThreeDotItemClick:l,ActionMenu:a,handleCustomThreeDotClick:r,ShowDragAndDropIcon:s,ShowImageDetail:o,onImageClick:c,IsAllowPlayIcon:p})=>{let u=!!e?.DisableDragAndDrop,h=(e?.type||"").toLowerCase().startsWith("video/"),{attributes:g,listeners:v,setNodeRef:f,transform:x,transition:C,isDragging:j}=(0,n.gl)({id:e.id,disabled:u}),y={transform:x?`translate3d(${x.x}px, ${x.y}px, 0)`:void 0,transition:C,zIndex:j?9999:""},b={width:`${t.width}px`,height:`${t.height}px`};return(0,i.jsxs)("div",{ref:f,style:y,...g,...v,onPointerDown:e=>{v?.onPointerDown?.(e)},className:`vg-multifileupload-image ${u?"disable-draganddrop":""}`,role:"image","aria-pressed":"false",children:[(0,i.jsxs)("div",{className:"vg-multifileupload-img",onClick:t=>{t.stopPropagation(),c?.(e)},onTouchStart:e=>{let t=e.touches[0];e.currentTarget._tapStart={x:t.clientX,y:t.clientY}},onTouchEnd:t=>{t.stopPropagation();let l=t.currentTarget._tapStart;if(!l||!c)return;let i=t.changedTouches[0],a=Math.abs(i.clientX-l.x),r=Math.abs(i.clientY-l.y);a<8&&r<8&&c(e)},children:[o?(0,i.jsxs)("div",{className:"vg-fm-uploadedimg-container",children:[(0,i.jsx)("div",{className:"vg-fm-uploadedimg-imgbox",children:(0,m.L7)(e)}),(0,i.jsxs)("div",{className:"vg-multifileupload-image-detail",children:[(0,i.jsx)("span",{className:"vg-multifileupload-image-name",children:e.name}),(0,i.jsx)("span",{children:B(e.size)})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{style:b,src:e.url,alt:e.name}),p&&h&&(0,i.jsx)("div",{className:"vg-file-play-icon",children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 48",children:(0,i.jsx)("path",{d:"M5.12 0.72C4.05 0 2.75 0.03 1.7 0.8C0.64 1.56 0 2.95 0 4.45L0 43.55C0 45.05 0.65 46.44 1.7 47.2C2.74 47.97 4.05 48 5.12 47.28L34.2 27.73C35.31 26.99 36 25.55 36 24C36 22.45 35.31 21.01 34.2 20.27L5.12 0.72z"})})})]}),s&&(0,i.jsx)("div",{className:"gallery-move-touch"}),e.InActive&&(0,i.jsx)("div",{className:"vg-file-inactive-indicator",children:"Inactive"})]}),"NoOption"!==a&&(0,i.jsx)("div",{className:"vg-multifileupload-menu",onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:"cross"===a?(0,i.jsx)("div",{className:"vg-multifileupload-closeicon",children:(0,i.jsx)(d.default,{ButtonIcon:"",ButtonVariant:"close",ButtononClick:()=>l({id:"3",label:"Delete"},e)})}):(0,i.jsx)(w.default,{IconSVG:(0,i.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.55469 11.4512C1.67188 11.041 1.90625 10.6602 2.19922 10.3672L11.1055 1.46094C11.8379 0.728516 13.0391 0.728516 13.7715 1.46094L14.9141 2.60352C15.002 2.69141 15.0898 2.80859 15.1484 2.89648C15.6465 3.62891 15.5586 4.625 14.9141 5.26953L6.00781 14.1758C5.97852 14.2051 5.91992 14.2344 5.89062 14.293C5.59766 14.5273 5.27539 14.7031 4.92383 14.8203L1.37891 15.8457C1.14453 15.9336 0.880859 15.875 0.705078 15.6699C0.5 15.4941 0.441406 15.2305 0.5 14.9961L1.55469 11.4512ZM2.22852 14.1465L4.51367 13.4727C4.57227 13.4434 4.66016 13.4141 4.71875 13.3848L3.66406 13.1797C3.42969 13.1211 3.22461 12.9453 3.19531 12.7109L2.99023 11.6562C2.96094 11.7148 2.93164 11.8027 2.90234 11.8613L2.22852 14.1465ZM5.77344 12.418L11.7207 6.4707L9.875 4.6543L3.95703 10.6016L4.25 12.0957L5.77344 12.418Z"})}),Items:"CustomOptions"===a?e.ThreedotCustomOptions:[...e.IsLogo||"Edit/Delete/Logo"!==a?[]:[{id:"1",label:"Set as Logo"}],{id:"2",label:"Edit"},{id:"3",label:"Delete",color:"var(--text_alert_default)"}],MenuButtonPosition:"horizontal",MenuOpen:!0,MenuOptions:"ThreeDot",OnClick:(t,i)=>{"CustomOptions"===a?r?.(t,e,i):l(t,e)},OnThreeDotMenuClick:()=>{},TextValue:"0.00",ThreeDotMenuOpenPosition:"Right"})}),e.IsLogo&&(0,i.jsx)("div",{className:"vg-file-default-indicator",children:"LOGO"}),e.Details&&(0,i.jsxs)("div",{className:`vg-multifileupload-content ${e.InActive?"vg-inactive":""}
2 `,style:{width:b.width},children:[(0,i.jsxs)("h5",{children:[e.Details?.title," ",(0,i.jsx)("span",{children:e.Details?.price})]}),(0,i.jsx)("p",{children:e.Details?.description})]})]})},_=F},68468(e,t,l){l.r(t),l.d(t,{default:()=>h});var i=l(74848),a=l(96540),r=l(15624),n=l(27142),s=l(67247),o=l(6409),d=l(65195);l(85881);var c=l(64463),p=l(7247),u=l(94089);let h=(0,a.forwardRef)(({IsEmptyValue:e=!1,Required:t=!1,AiPopupSetValue:l,TextareaVariant:h="Default",SetValue:m,TextAreaDisable:g,PlaceHolder:v="Type here...",FocusBorder:f,LabelText:x="",Error:C=!1,onChange:w,CharacterCountEnableForAi:j,MaximumLengthForAi:y,OnBlur:b,TextareaLength:N=5,AlertPassiveMessage:P,MaximumLength:U,MinimumLength:D,TextAreaId:L="",AiControlPopup:k=!1,ReviewPopup:M=!1,Name:S="vg-textarea",AiClickEvent:T,OnChangeTone:B,OnClickRegenerate:I,OnChangeRange:O,OnClickUseThisText:F,OnClickNext:A,OnClickPrevious:z,OnClickClose:R,OnClickCancle:_,OnPopupStateChange:E,CharacterCountEnable:V,DialogShowHide:$,RawData:H,ToneMetadata:W,AsyncClickEvent:q,PreAiClickEvent:Z,PreOnChange:G,AutoFocus:K,ReviewSection:X,ReviewSectionBody:Y,EmojiButton:Q=!1,CrossButton:J=!1,TickButton:ee=!1,OnEmojiClick:et,OnCrossClick:el,OnTickClick:ei,IsHtml:ea=!1,ShowRequiredFieldMark:er=!1,AutoHeight:en=!1,SubTitle:es,ComponentTooltipText:eo="",ApiRequestParams:ed,ApiUrl:ec,ExternalPayload:ep,AiPopupOpen:eu=!0,CustomErrorMessage:eh="",ValidationMessage:em="",RegexPattern:eg,IsOldAIAPICall:ev=!1,IsAllowEnter:ef=!0,customClassName:ex="",NativeAction:eC=13,CloseBackTitle:ew="From Control",Footer:ej=2,TimerCount:ey=0,IsFullLength:eb=!1,VagaroToolkit:eN=1},eP)=>{var eU;let[eD,eL]=(0,a.useState)(!1),[ek,eM]=(0,a.useState)(""),[eS,eT]=(0,a.useState)(!1),[eB,eI]=(0,a.useState)(""),[eO,eF]=(0,a.useState)(!1),[eA,ez]=(0,a.useState)(!1),[eR,e_]=(0,a.useState)(""),eE=(0,a.useRef)(null),eV=(0,a.useRef)(null),[e$,eH]=(0,a.useState)(!1),[eW,eq]=(0,a.useState)({}),[eZ,eG]=(0,a.useState)(!1),[eK,eX]=(0,a.useState)(()=>(0,o.o)());(0,a.useEffect)(()=>{if(!(k||eA)||eK)return;let e=!0;return(0,o.E)().catch(()=>(0,o.E)()).then(t=>{e&&eX(()=>t)}).catch(()=>{}),()=>{e=!1}},[k,eA,eK]),(0,a.useEffect)(()=>{let e=m??"";ea||(e=(e=e.replace(/<\s*script[^>]*>/gi,"")).replace(/<\s*\/\s*script\s*>/gi,"")),U&&(e=e.slice(0,U)),eM(e)},[m,U]);let eY=(0,a.useCallback)(()=>{eE.current&&(en?(eE.current.style.height="auto",eE.current.style.height=`${eE.current.scrollHeight+2}px`):eE.current.style.height="")},[en]);(0,a.useEffect)(()=>{eE.current&&(eE.current.value=ek,eY())},[ek,en,eY]),(0,a.useEffect)(()=>{if(en)return window.addEventListener("resize",eY),()=>window.removeEventListener("resize",eY)},[en,eY]),(0,a.useEffect)(()=>{(0,s.pz)((e,t)=>{eE.current&&e===L&&(eE.current.value=t,eM(t))})},[L]),(0,a.useEffect)(()=>{(0,s._A)(K,eE)},[K]);let eQ=e=>{b&&b(e);let l="",i=t||C,a=("string"==typeof ek?ek:"").trim();if(i&&a?.length===0)l=em||"This field is required.";else if(D&&a?.length>0&&a?.length<D)l=`Minimum ${D} characters required for Description`;else if(eg&&a.length>0)try{new RegExp(eg).test(a)||(l=em)}catch{}let r=!!l;return eF(r),eI(l),r};(0,a.useImperativeHandle)(eP,()=>({validate:()=>(()=>{let e=eQ({target:{value:ek}});(0,s._A)(K&&e,eE);let t=("string"==typeof ek?ek:"").trim(),l=!0;if(e)l=!1;else if(t?.length===0)l=!0;else if(D&&t?.length<D)l=!1;else if(eg&&t.length>0&&eO)try{new RegExp(eg).test(t)||(l=!1)}catch{}return{IsValidate:l,value:ek,plain:t}})()}));let eJ=(0,a.useCallback)(e=>{let t=e?.detail?.unicode,l=eE.current?.selectionStart||0;eM(ek.slice(0,l)+t+ek.slice(l)),eE.current?.focus()},[ek]);(0,a.useEffect)(()=>{l&&""!==l.InputDescription?eq(l):m&&""!==m.trim()&&eq({Index:0,InputDescription:m,Tone:"professional",Range:50})},[l,m]);let e1=l&&""!==l.InputDescription?l:eW;return(0,a.useEffect)(()=>{let e=document.querySelector("emoji-picker");if(e)return e.addEventListener("emoji-click",eJ),()=>e.removeEventListener("emoji-click",eJ)},[ek,eJ]),(0,i.jsxs)("div",{className:`vg-group vg-textarea-group ${eS?"vg-blur-background":""}`,children:[(0,i.jsxs)("div",{className:"textarea-count-set",children:[x?.length>0&&(0,i.jsxs)("label",{className:"vg-input-label",htmlFor:"exampleFormControlTextarea1",children:[x,er?(0,i.jsx)("span",{className:"required-input-mark",children:"*"}):""]}),U&&(0,i.jsxs)("span",{className:` ${V?"character-count":"vg-charector-count-hide"}`,children:[ek?ek?.length:0,"/",U]})]}),es?.length>0&&(0,i.jsx)("div",{className:"vg-textarea-subtitle-wrap",children:(0,i.jsx)("label",{className:"vg-textarea-subtitle",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:es||""}})})}),(eU=(0,i.jsxs)("div",{className:`vg-ai-button-parentWrap vg-input-control-group ${eR&&"vg-active-focus-button"}
3                ${Q||J||ee?"vg-textarea-emoji-view":""}
4                ${"RequiredText"===h?"vg-textarea-upload":""}
5                ${"FileUploader"===h?"vg-textarea-upload vg-upload-icon":""}
6                ${"Default"!==h&&eO?"vg-input-control-group-error":""}
7                ${"Default"!==h&&f?"vg-input-control-group-focus":""}
8                ${"Default"!==h&&g?"vg-input-control-group-disabled":""}
9                ${eD?"vg-active-ai-button":""}`,children:["RequiredText"===h&&(0,i.jsx)("div",{className:"vg-uneditable-text",children:(0,i.jsx)("div",{className:"vg-uneditable-text-content",children:"This is required, uneditable text that the user cannot edit."})}
9),(0,i.jsx)("textarea",{className:`vg-input-control ${eO?"vg-input-control-error":""}  ${f?"vg-input-control-focus":""} ${g?"vg-input-control-disabled":""}  `,id:L,rows:!en&&N,value:ek,ref:eE,placeholder:v,onChange:e=>{if("function"==typeof G&&!1===G(!0,e))return;let l=e.target.value,i=e.target.value;if(ea)eM(e.target.value);else{eR&&e_("");let{value:t}=e.target,i=t;i=(i=i.replace(/<\s*script[^>]*>/gi,"")).replace(/<\s*\/\s*script\s*>/gi,""),eM(l=U?i.slice(0,U):i),e.target.value=l}w&&w(e),eF(!1),D&&l.length>=D&&eI(""),U&&i.length>=U?eT(!0):eT(!1),(U<0||D<0)&&eM("");let a="",r=l.trim();if((t||C)&&0===r.length)a=em||"This field is required.";else if(D&&r.length>0&&r.length<D)a=`Minimum ${D} characters required for Description`;else if(eg&&r.length>0){let e=!0;try{e=new RegExp(eg).test(r)}catch(t){e=!0}e||(a=em)}a?(eF(!0),eI(a)):eO&&(eF(!1),eI(""))},onBlur:eQ,onKeyDown:e=>{ef||"Enter"!==e.key||e.preventDefault()},onMouseEnter:()=>{eL(!0)},onMouseLeave:()=>{eL(!1)},name:S,autoComplete:"off",autoFocus:K,disabled:g,maxLength:U}),k&&(0,i.jsx)(d.default,{ButtonVariant:"AiWithIcon",ButtononClick:t=>(t=>{if("function"==typeof Z&&!1===Z(!0,t)){"function"==typeof t?.preventDefault&&t.preventDefault();return}if((!ek||0===ek.trim().length)&&!e&&!M){e_(eh||"In this instance, we need more details before Vera can generate text for you."),ez(!1);return}eu?(e_(""),ez(!0),T&&T(t)):e_(eh||"In this instance, we need more details before Vera can generate text for you.")})(t),ButtononHover:()=>{},children:"Button"}),eA&&eK&&(0,i.jsx)(eK,{ApiRequestParams:ed,ApiUrl:ec,AiPopupSetValue:e1??void 0,InitialPayloadMessage:e?l?.InputDescription??m??"":ek??"",setSubmit:eG,isSubmit:eZ,AiControlId:"AiTextareaControlId",CloseBackTitle:ew,Footer:ej,Name:"",NativeAction:eC,IsFullLength:eb,OnChangeRange:(e,t)=>{O&&O(e,t)},OnChangeTone:(e,t)=>{B&&B(e,t)},OnClickClose:e=>{ez(!1),R&&R(e)},OnClickCancle:e=>{ez(!1),_&&_(e)},OnPopupStateChange:E,OnClickNext:(e,t)=>{A&&A(e,t)},OnClickPrevious:(e,t)=>{z&&z(e,t)},OnClickRegenerate:(e,t)=>{I&&I(e,t)},OnClickUseThisText:(e,t)=>((e,t)=>{let l=t?.InputDescription??"",i=t?.Tone??W?.[0]?.value??"professional",a="number"==typeof t?.Range?t.Range:50,r=t?.rangeLabel||(a>=45&&a<=55?"similar":a<45?"shorter":"longer"),n=l.replace(/<[^>]*>/g,"").trim(),s={...t,InputDescription:l,Tone:i,Range:a,rangeLabel:r,plain:n,html:l,source:"VgTextarea"};if(ez(!1),eM(l),eF(!1),eI(""),F)try{F(e,s)}catch(e){}else process&&process.env})(e,t),ToolbarRawData:H,TimerCount:ey,CharacterCountEnable:j,MaximumLength:y,ToneMetadata:W,VagaroToolkit:eN,ReviewSection:X,ReviewSectionBody:Y,ExternalPayload:ep,IsOldAIAPICall:ev,customClassName:ex}),"FileUploader"===h&&(0,i.jsxs)("div",{className:"vg-upload-drop",children:[(0,i.jsx)("input",{type:"file",id:"fileupload",className:"vg-input-file"}),(0,i.jsx)("div",{className:"vg-upload-icon",children:(0,i.jsx)(n.default,{name:"upload_cloud"})}),(0,i.jsxs)("div",{className:"vg-upload-decs",children:[(0,i.jsx)("p",{children:"Drag and drop files here or"}),(0,i.jsx)("a",{href:"false",className:"vg-choose-file",children:"Choose File"})]})]}),(Q||J||ee)&&(0,i.jsxs)("div",{className:"vg-textarea-emoji-actions-btn",children:[Q&&(0,i.jsxs)("div",{className:"vg-emoji-picker-container",children:[(0,i.jsx)("button",{ref:eV,className:"vg-action-btn",onClick:e=>{e.preventDefault(),eH(!e$),et&&et(e)},children:(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M8.5 11C9.32843 11 10 10.3284 10 9.5C10 8.67157 9.32843 8 8.5 8C7.67157 8 7 8.67157 7 9.5C7 10.3284 7.67157 11 8.5 11Z"}),(0,i.jsx)("path",{d:"M17 9.5C17 10.3284 16.3284 11 15.5 11C14.6716 11 14 10.3284 14 9.5C14 8.67157 14.6716 8 15.5 8C16.3284 8 17 8.67157 17 9.5Z"}),(0,i.jsx)("path",{d:"M8.88875 13.5414C8.63822 13.0559 8.0431 12.8607 7.55301 13.1058C7.05903 13.3528 6.8588 13.9535 7.10579 14.4474C7.18825 14.6118 7.29326 14.7659 7.40334 14.9127C7.58615 15.1565 7.8621 15.4704 8.25052 15.7811C9.04005 16.4127 10.2573 17.0002 12.0002 17.0002C13.7431 17.0002 14.9604 16.4127 15.7499 15.7811C16.1383 15.4704 16.4143 15.1565 16.5971 14.9127C16.7076 14.7654 16.8081 14.6113 16.8941 14.4485C17.1387 13.961 16.9352 13.3497 16.4474 13.1058C15.9573 12.8607 15.3622 13.0559 15.1117 13.5414C15.0979 13.5663 14.9097 13.892 14.5005 14.2194C14.0401 14.5877 13.2573 15.0002 12.0002 15.0002C10.7431 15.0002 9.96038 14.5877 9.49991 14.2194C9.09071 13.892 8.90255 13.5663 8.88875 13.5414Z"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM12 20.9932C7.03321 20.9932 3.00683 16.9668 3.00683 12C3.00683 7.03321 7.03321 3.00683 12 3.00683C16.9668 3.00683 20.9932 7.03321 20.9932 12C20.9932 16.9668 16.9668 20.9932 12 20.9932Z"})]})}),e$&&(0,i.jsx)(p.A,{inputRef:eV,type:s.IU.smileyPicker,children:(0,i.jsx)(c.A,{onEmojiClick:eJ,setShowEmojiPicker:eH})})]}),(0,i.jsxs)("div",{className:"vg-emoji-chatcloseright",children:[J&&(0,i.jsx)("button",{className:"vg-action-btn",onClick:e=>{e.preventDefault(),eM(""),el&&el(e)},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"
9currentcolor",children:(0,i.jsx)("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})})}),ee&&(0,i.jsx)("button",{className:"vg-action-btn",onClick:e=>{e.preventDefault(),ei&&(ei(e,ek),eM(""))},children:(0,i.jsx)(n.default,{name:"check"})})]})]})]}),""!==eo&&eD||g?(0,i.jsx)("div",{className:`${"FileUploader"!==h?"vg-textarea-group-tooltip":""}`,children:(0,i.jsx)(u.default,{BeakPoint:"Up",BeakPosition:"Middle",Children:(0,i.jsx)("div",{id:"notblockeventdiv",children:eU}),Duration:0,OnTooltipClose:()=>{},ScreenTitleForMobile:"",ShowHover:!0,TextAlign:"right",FullWidth:!0,TooltipText:eo,TooltipRender:"portal"})}):eU),eO&&(0,i.jsx)("span",{className:"vg-input-control-error-msg",children:eB||""}),P&&eS&&(0,i.jsx)(r.default,{Duration:1e3,NotificationTitle:"Maximum length reached.",types:"error",UsePortal:!0}),eR&&(0,i.jsx)("div",{className:"info-ai-text",children:eR})]})})}}]);

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.