import{j as r}from"./vendor-mui-69397583.js";import{h as c}from"./index-c62ac197.js";import{L as l}from"./Logo-3f3c9ee6.js";import a from"./DocumentUserSigned-27bfa6e6.js";import d from"./CreateSignature-375d191b.js";import{u as x}from"./vendor-react-ece1c85f.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";import"./index-a22a3546.js";import"./index-b028e652.js";import"./Alert-7dfbd254.js";import"./index-6b6d0f06.js";import"./useControllableState-d0909575.js";import"./index-c2088808.js";import"./useDidUpdate-25c4d4ed.js";import"./Drawer-949c18c6.js";import"./FormContainer-91c2b0e4.js";import"./Switcher-c8648037.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./index-fcc1c999.js";import"./index-0ec48d3d.js";import"./Notify-bb3ce372.js";import"./DigitalSignature-fff42e33.js";import"./ConfirmDialog-3202eb3d.js";function u(t,i){if(!i)return"/img/others/auth-background.jpg";const n=i.replace(/\\/g,"/").split("/").map(encodeURIComponent).join("/");return`${t}/${n}`}function f(t){const i=[".jpg",".jpeg",".png",".gif",".webp"],o=[".mp4",".webm",".ogg"],n=t.slice(t.lastIndexOf(".")).toLowerCase();return i.includes(n)?"img":o.includes(n)?".mp4":"img"}const $=()=>{const t=x(),i=c(e=>{var m;return((m=e==null?void 0:e.theme)==null?void 0:m.coverLayout)||{}}),o=c(e=>{var m;return((m=e==null?void 0:e.theme)==null?void 0:m.productsLayout)||i}),n=u(window.RUNTIME_CONFIG.VITE_API_BASE_URL,(o==null?void 0:o.settingFilePath)||"/img/others/auth-background.jpg");f(n);let p={primaryText:"Your Journey to Exceptional Service",secondaryText:"ContentActive",description:"Elevate Your Client Relationships and Deliver Excellence Every Step of the Way"};try{if(o!=null&&o.moreInformation){const e=JSON.parse(o.moreInformation);p={...p,...e==null?void 0:e.themeText}}}catch(e){console.error("Error parsing themeText:",e)}const s=()=>t.pathname.includes("/sign-document")?r.jsx(a,{}):r.jsx(d,{});return r.jsxs("div",{className:"app-layout-blank flex flex-col min-h-screen bg-white dark:bg-gray-900",children:[r.jsx("div",{className:"flex justify-center py-4",children:r.jsx(l,{mode:"light",logoWidth:140})}),r.jsx("div",{className:"flex flex-col items-center justify-center flex-grow px-2 md:px-6 md:px-12",children:r.jsx("div",{className:"w-full max-w-[98%] md:max-w-[70vw]",children:s()})})]})};export{$ as default};
