1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GraphicEditorWorkspace-BUklramS.js","../dashboard.index-2.36.71.js","./globals-CFSQ210q.js","./mui-DpnpJwNe.js","./ai-chat-helper-D4UphFS8.js","./dynamic-wjz2zcmq.js","./helper-CjZvPp91.js","./generating.helper-C3-w7OpT.js","./common-B_jj4doT.js","./user.store-Be5YGvl_.js","./common-h63AaBgX.js","./modal-download-progress-BxzKWd6v.js","./useLimitation-DHbHy6Zb.js","./app.context-Cf6ybnzR.js","./getUserLimitationInfomation-CP87ijBk.js","./helper-igZcmzfv.js","./layout-styled-D869UWBn.js","./index-BuRG7Kzb.js","./index-DOw1OqCx.js","./index-j0n9oDVF.js","./generate-doc-CqpJUOhJ.js","./plus-TmeBP84j.js","./index-LGuDSiVa.js","./close-icon-LGo3mxnM.js","./generate-document-i6Bi7oV-.js","./index-Cay4uMj5.js","./CloseIcon-Blb7Jn6K.js","./index-CdcMkrET.js","./circle-info-gray-PYV_RIhU.js","./index-DXFju4DA.js","./blank-page-Dgihkob4.js","./CheckIcon-BCmZC6TY.js","./CopyIcon-DSvHUKyd.js","./index-xC8yc7KB.js","./arrow-right-CLSn--T7.js","./ProgressBar-Ch2zTLM9.js","./EditorIcon-CfHIub6c.js","./styled-pj0Pfn_Q.js","./index-EWvaomsL.js","./global.styled-Do2_9hIX.js","./dynamic-yOx1nXxq.js","./react-masonry-css.module-BLhJG-lT.js","./index.es-6j7zAMxE.js","./empty-folder-CR0YKYB0.js","./usePermissionTemplate-3Gr2L8Vm.js","./trackings-CqiCzOjl.js","./useTemplateFunction-BZjMt_jh.js","./useWorkspaceTemplate-BqUPqrUV.js","./helper-DlcBMwmN.js","./helper-xWBdjepB.js","./index-DgGQRyFf.js","./index-BLNo03l4.js","./blank-thumbnail-C2Wxx_yN.js","./thumbnail-item-D6sMYX98.js","./index-DTzIvnlN.js","./template-Dz8OZig0.js","./my-template-BocriQ3g.js","./useSidebarObserver-GAP9IZBv.js","./recent-template-tab-item-Ncu8Rbg2.js","./temporary-icons-PcoNF8RH.js","./styled-CZ91Mo6Y.js","./index-tyeuiWT9.js","./GraphicGenerate-HpNUtkFm.js","./brand-header-DExML4eM.js","./live-2-B03FSM0U.js","./try-pro-Bej0G32q.js","./index-3LBXqdyO.js","./useClickOutside-DvMWYT6h.js","./user-remove-2-Qt5yTdvY.js","./CustomSelect-CwhJq6WT.js","./chevron-down-D1dCFdK3.js","./index-D-eNkIkN.js","./useSettingFloating-B4xwgvmg.js","./helper-Dtlrs1Cl.js","./workspace-CMjm2RMq.js","./your-brand-constant-DCqy39cx.js","./your-brand-helper-GiytOCqf.js","./check-Cl_Hajb-.js","./delete-v2-D14gM9xp.js","./index-B9XaeGl4.js","./view-ZIDosV3T.js","./index-CqUKfqRQ.js","./dynamic-DbUOUum-.js","./LogoTemplateUpload-C6lvAgn4.js","./LoadingIcon-D-Tm2r0Q.js","./usePrevious-Br7z_GXE.js","./useGraphicEditorEvent-xzeqtsLO.js","./use
1UploadFile-De1cmf7H.js","./common-DPQVgxeX.js","./v2-DDfNLiDH.js","./useCSR-BnZfMjCR.js","./index-Csf4thlq.js","./ProgressBar-DknGeYlq.js","./constants-CuGEwCZ7.js","./styled-BgZuJ4Rx.js","./index-DIzbn4mj.js","./Onboarding-Bk7XPiM1.js","./useModalCopyToClipboard-CkUo4oOK.js","./TranslateButton-DB5bgnYS.js","./freeUserUsageGuard-D99dlO4c.js","./common-5WoiZp67.js","./useGoProButton-CepDIEp1.js","./TranslatePopup-C2BcmhtI.js","./useComment-o7jPwaoD.js","./useCurrentUser-D3hHT_LH.js","./useGraphicBrandKits-BbOkh5Y3.js","./share-template.store-CFXE-37W.js","./share-CPenqOxo.js","./static.store-CvjZlOfb.js","./workspace.store-D57DSsKw.js","./CommentBlock-D06AatbM.js","./styled-D-AuD1H-.js","./popup-Kp1TPAvj.js","./crown-DbQraKgr.js","./sad-boy-CgVPvSqK.js","./short-hint-DgAS8-5a.js","./index-B2bZ6gI2.js","./brand-template.store-BHAjX2PX.js","./brand-body-C6OpCrFz.js","./index-QhGs05_V.js","./styled-CIvqr9U8.js","./usePrevious-Llwwq-E-.js","./brand-template-thumbnail-_75VomTq.js","./custom-portal-Ca4WnmoK.js","./ColorResultCard-D2-UdJnW.js","./styled-D8HAmSav.js","./SaveIcon-CzCWDDt6.js","./generate-wheel-color-Ce8HYM85.js","./CloseIcon-D-dfe1YW.js","./index-BrL_mJuV.js","./useDebounce-58ByLB0k.js","./helpers-ClBh89qa.js","./limitation-popup-BF4MBlxA.js","./styled-BSQ6uaTn.js","./getQueryParams-BraHl8_7.js","./ai-sticky-portal-QbQQ91F3.js","./RelatedTemplatesPopup-CfbjDVJO.js"])))=>i.map(i=>d[i]); 2import{_ as n,M as g,a8 as R,J as r,ak as v,al as O,Y as D,am as y,an as A}from"../dashboard.index-2.36.71.js";import{s as L,b as w}from"./dynamic-wjz2zcmq.js";import{getTemplateData as C}from"./getTemplateData-BxONy-P_.js";import{u as p}from"./template.store-BoDVkhyx.js";import"./globals-CFSQ210q.js";import"./mui-DpnpJwNe.js";import"./common-5WoiZp67.js";let T=!1;const H=[r.GRAPHIC,r.PHOTO,r.PRESENTATION,r.CHART],V=()=>{Promise.all([n(()=>import("https://editors-cdn.template.net/lib/mfe/editor-graphic/prod/2.7.92/remoteEntry.mjs"),[],import.meta.url),n(()=>import("./GraphicEditorWorkspace-BUklramS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135]),import.meta.url),n(()=>import("./RelatedTemplatesPopup-CfbjDVJO.js"),__vite__mapDeps([136,1,2,3,49,5,26,44,9]),import.meta.url)]).then(()=>{p.setState({graphicLoaded:!0})})},B=()=>{if(T)return;T=!0;const o=document.getElementById("dashboard");o==null||o.classList.remove("hidden!"),k().then(()=>{var c;const e=p.getState().templateData,a=((c=e==null?void 0:e.content)==null?void 0:c.editorType)||(e==null?void 0:e.editorType);(!a||H.includes(a))&&V()})},k=async()=>{try{const o=new URLSearchParams(window.location.search);if(o.get("mode")==="reference")return;const e=o.get("activityId"),c=o.get("productId")||e,I=sessionStorage.getItem(y),m=await C(c||void 0,I||void 0);p.setState({templateData:m}),sessionStorage.removeItem(A)}catch(o){console.error("Failed to initialize graphic data",o)}};function W(o){const e=o.location.search,a=e.activityId,c=e.productId;Promise.all([n(()=>import("./dynamic-wjz2zcmq.js").then(i=>i.aE),__vite__mapDeps([5,2,1,3]),import.meta.url),n(()=>import("../dashboard.index-2.36.71.js").then(i=>i.m8),__vite__mapDeps([1,2,3]),import.meta.url)]).then(i=>{const _=i[0].useChatEditorStore;L(_),i[1].useCommonStore.getState().setIsFirstInteraction(!0)});const I=new URLSearchParams(window.location.search).get("mode")==="reference";(c||a)&&!I&&B();const m=e.historyId;if(a){const i=()=>n(()=>import("../dashboard.index-2.36.71.js").then(s=>s.ma),__vite__mapDeps([1,2,3]),import.meta.url),_=()=>n(()=>import("./workspace.store-D57DSsKw.js"),__vite__mapDeps([109,1,2,3,45,5]),import.meta.url),h=()=>n(()=>import("../dashboard.index-2.36.71.js").then(s=>s.mp),__vite__mapDeps([1,2,3]),import.meta.url);Promise.all([i(),_(),h()]).then(async([{useEditorStore:s},{useWorkspaceStore:S},{useWorkspaceTemplateStore:E}])=>{var u;const P=`${R}/activity/${a}`,t=await g(P,{method:"GET"});if(t){if(!t.content)return!1;const l=t.editorType||t.content.editorType;let d=t.content;t.editorType===r.WHITEBOARD&&(d=await v(t.content)),s.setState({editorType:l,data:[r.WHITEBOARD,r.GRAPHIC,r.PHOTO,r.PDF].includes(l)?d:d==null?void 0:d.blocks,currentTemplate:t,loading:!1,hashShareId:t.hashShareId}),S.setState({saveBeforeLeave:!1,present:t.content,canSave:!1});const f={id:Date.now(),name:t.name,editorType:l,activityId:t._id,workspaceId:Number(t.workspaceId),image:t.image||"",productId:t.productId||void 0,hashShareId:t.hashShareId||"",isShared:!0,themeId:(u=t.content)==null?void 0:u.themeId};E.getState().setTemplateSelected(f)}else s.setState({loading:!1});return{...t,activityId:a}}).catch(s=>{console.trace(s),window.location.href=`/share/${a}/guest`})}return m&&sessionStorage.setItem("HISTORY_ID",m),w()&&O(),{isLoggedIn:D()}}export{W as aiLoader};
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.