1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0fd0e-ba14-7d40-a75c-dfd628968612")}catch(e){}}();"use strict";(self.rspackChunkmutiny=self.rspackChunkmutiny||[]).push([[7165],{31820(e,t,n){n.r(t);var r=n(96540),u=n(95420),o=n(56347),a=n(84122),i=n(89879),c=n(20497),l=n(116),f=n(14732);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,u=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=u){var o=[],a=!0,i=!1;try{for(u=u.call(e);!(a=(n=u.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=(0,l.U)('\n mutation CreateInternalDocument($creationKey: ID!, $timeZone: String) @backend(use: "champaign") {\n createInternalDocument(creationKey: $creationKey, timeZone: $timeZone) {\n internalDocumentId\n title\n stateEpoch\n }\n }\n');function p(){var e=(0,i.t)(),t=(0,o.W6)(),n=(0,c.e)(),l=m((0,u.n)(d),2),s=l[0],p=l[1].loading,R=m(r.useState(null),2),y=R[0],g=R[1],h=m(r.useState(0),2),b=h[0],v=h[1],S=r.useRef(null),I=r.useRef(null),k=r.useRef(!1);return(r.useEffect(function(){if(null==e?void 0:e.id){k.current=!0;var r,u=function(){k.current=!1};if(S.current)return u;g(null);var o=s({variables:{creationKey:null!=(r=I.current)?r:I.current=crypto.randomUUID(),timeZone:(0,f.S)()}});return S.current=o,o.then(function(e){var r=e.data;if(k.current&&S.current===o){var u=null==r?void 0:r.createInternalDocument;if(!u)throw Error("The server did not return the new document.");t.replace(n.threadReferenceRoute({referenceType:"internal_document",referenceId:u.internalDocumentId}))}}).catch(function(e){if(k.current&&S.current===o){var t;S.current=null,g("Unable to create the internal document: ".concat((null!=(t=Error)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)?e.message:"unknown error"))}}),u}},[null==e?void 0:e.id,s,t,b,n]),y)?r.createElement("main",{className:"flex min-h-screen w-full items-center justify-center bg-background px-6 py-12"},r.createElement("div",{role:"alert",className:"flex max-w-md flex-col gap-3 rounded-md border border-destructive/40 p-4 text-sm text-destructive"},r.createElement("span",null,y),r.createElement("button",{type:"button",className:"w-fit rounded border border-destructive/40 px-3 py-1.5 hover:bg-destructive/10",onClick:function(){return v(function(e){return e+1})}},"Retry creation"))):r.createElement(a.Q,{label:p?"Creating internal document":"Preparing new internal document"})}n.d(t,{default:()=>p})},84122(e,t,n){var r=n(96540),u=n(8723),o=n(26832);function a(e){var t=e.label,n=e.description,a=e.className;return r.createElement("div",{role:"status","aria-label":t,"aria-busy":"true","aria-live":"polite",className:(0,o.cn)("flex h-full w-full flex-col items-center justify-center gap-3 bg-background text-muted-foreground",a)},r.createElement(u.A,{"aria-hidden":"true",className:"size-6 animate-spin"}),n?r.createElement("span",{className:"text-sm"},n):null)}n.d(t,{Q:()=>a})},20497(e,t,n){var r=n(98339),u=n(96540),o=n(30580);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(){return(0,u.useMemo)(function(){return{newCampaignRoute:function(){return(0,r.kF)()},newCampaignFlowRoute:function(){return(0,r.MN)()},campaignListRoute:function(){return(0,r.Sk)()},creationHomeRoute:function(){return(0,r.c9)()},campaignAudienceRoute:function(e,t){var n=(0,r.aR)(e),u={};return(t&&(u.generationId=t),0===Object.keys(u).length)?n:"".concat(n,"?").concat(Object.entries(u).map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,n,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var u=[],o=!0,a=!1;try{for(r=r.call(e);
1!(o=(t=r.next()).done)&&(u.push(t.value),2!==u.length);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return u}}(e)||function(e){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r))}).join("&"))},campaignGeneratingRoute:function(e,t){var n=(0,r.wR)(e);return t?"".concat(n,"?generationId=").concat(t):n},campaignDetailsRoute:function(e,t,n){return t===o.WI.draft?n===o.XW.one_to_many?(0,r.h6)(e):(0,r.n9)(e):n===o.XW.one_to_many?(0,r.K4)(e):(0,r.rt)(e)},basePageEditorRoute:function(e,t,n){return n===o.XW.one_to_many?(0,r.h2)(e,t):(0,r.MT)(e,t,r.uU.VISUAL)},visualMicrositeEditorRoute:function(e,t,n){return n===o.XW.one_to_many?(0,r.h2)(e,t):(0,r.MT)(e,t,r.uU.VISUAL)},audienceSheetEditorRoute:function(e,t){return(0,r.MT)(e,t,r.uU.TABLE)},campaignSetupRoute:function(e,t){return t===o.XW.one_to_many?(0,r.h6)(e):(0,r.n9)(e)},webComponentDistributionRoute:function(e){return(0,r.z6)(e)},exportRoute:function(e,t){return(0,r.od)(e,t)},flexiblePagesEditorRoute:function(e,t,n){return(0,r.mg)(e,t,n)},threadRoute:function(e,t,n){return(0,r.K7)(e,t,n)},recipeRunRoute:function(e){return(0,r.fx)(e)},threadReferenceRoute:function(e,t){return(0,r.PY)(e,t)},threadsRoute:function(){return(0,r.FT)()},newThreadRoute:function(e){return(0,r._z)(e)},assetDetailsRoute:function(e){return(0,r.K2)(e)},templateDetailsRoute:function(e){return(0,r.yG)(e)},templatesListRoute:function(){return(0,r.np)()},templateEditorRoute:function(e){return(0,r.PI)(e)},newTemplateRoute:function(){return(0,r.Gg)()},agentWorkspaceListRoute:function(){return(0,r.e8)()},agentWorkspaceDetailRoute:function(e){return(0,r.tV)(e)},agentWorkspaceRoutinesRoute:function(e){return(0,r.Nd)(e)},agentWorkspaceRoutineDeepLinkRoute:function(e,t){return(0,r.EZ)(e,t)},agentWorkspaceRoutineChatRoute:function(e,t){return(0,r.mY)(e,t)},agentRoutinesListRoute:function(e){return(0,r.oT)(e)},agentSkillsListRoute:function(e){return(0,r.j$)(e)},agentSkillChatRoute:function(e){return(0,r._R)(e)},adminRecipesRoute:function(){return(0,r.KQ)()},adminRecipeOnboardingRoute:function(){return(0,r.UD)()},adminRecipeNewRoute:function(){return(0,r.PV)()},adminRecipeEditRoute:function(e){return(0,r.vG)(e)},adminRecipeCopyRoute:function(e){return(0,r.g5)(e)},adminCompaniesRoute:function(){return(0,r.CQ)()},adminUsersRoute:function(){return(0,r.f1)()},adminCompanyInvitationsRoute:function(){return(0,r.uT)()},adminSamlSettingsRoute:function(){return(0,r.LB)()},adminDoorkeeperRoute:function(){return(0,r.Pk)()}}},[])}n.d(t,{e:()=>i})},14732(e,t,n){function r(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch(e){return}}n.d(t,{S:()=>r})}}]); 2//# chunkId=01a0fd0e-ba14-7d40-a75c-dfd628968612
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.