1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[21321],{527391(e,t,n){var a=()=>n(546605);class r extends a().Store{getInitialState(){return{loaded:!1}}USEWITHCAUTION_markStatsigUserFetched(e){let{userId:t,spaceId:n,fetched:a}=e;this.setState({loaded:a,userId:t,spaceId:n})}USEWITHCAUTION_isFetchedForSpaceAndUserId(e){let{spaceId:t,userId:n}=e;return this.state.loaded&&this.state.spaceId===t&&this.state.userId===n}}let o=new r;(0,n(202146).exposeDebugValue)("statsigUserLoadingStatusStore",o),n.d(t,{},{t:o})},635508(e,t,n){n.d(t,{bH:()=>i,Ky:()=>s});let a=n(764657).object({required:{fpmnFeatures:n(764657).array(n(764657).string())},optional:{}}),r=Object.freeze({fpmnFeatures:Object.freeze([])});function o(){if("u">typeof window){var e=window.__meetingNoteClientCapabilities;let t=(0,n(788145).Qq)(a,e);return t?Object.freeze({fpmnFeatures:Object.freeze([...t.fpmnFeatures])}):void 0}}function i(e){if(e.isMobileNative)return o()??r}function s(e){var t;return(null==(t=o())?void 0:t.fpmnFeatures.includes(e))??!1}},580931(e,t,n){n(635790);var a=n(440302);let r=(0,n(327219).YK)({saveFailed:{defaultMessage:"Couldnât save your automation changes. Please try again.",id:"automations.save.failedToast"}});function o(){n(819652).Iz({message:(0,a.jsx)(n(327219).sA,{...r.saveFailed}),variant:"error"})}n.d(t,{p:()=>o})},605263(e,t,n){n(533958),n(953925),n(540679);var a=n(635790),r=n(440302);let o=(0,a.createContext)({ancestors:[]});function i(e){let{automationStore:t,children:i,contextType:s,collectionStore:u,collectionSettingsStore:l,collectionViewBlockStore:c,collectionViewStore:d,enableExistenceGuarantees:v}=e,g=(0,n(533992).v3)(),h=(0,n(327219).tz)(),{value:m}=(0,n(552709).fJ)(n(864850).T.formulas),{value:x}=(0,n(552709).fJ)(n(879267).QV.automationTypecheck),y=(0,n(470569).o)(t),S=(0,n(67499).S)(),q=(0,n(579993).K8)(()=>{if(m&&x)return function(e){let{environment:t,automationStore:a,automationTypecheckModule:r,contextType:o,formulasModule:i,intl:s,subscriptionInfo:u,pageStore:l,enableExistenceGuarantees:c}=e,d=c?f.get(a):f.get(a)??p.get(a);if(d)return d;let v=()=>{let e=a.getTriggerType(),d=o;return(0,n(48697).O9)(e)&&(0,n(432705).x2)(e)&&(d=(0,n(432705).H8)(e)),(0,n(100197).Z)({environment:t,automationStore:a,automationTypecheckModule:r,contextType:d,formulasModule:i,intl:s,subscriptionInfo:u,pageStore:l,enableExistenceGuarantees:c})},g=new(n(47824)).ComputedStore(v,{debugName:"automationContextTypecheckResultCachedStore",equalityFn:n(931576).n,recomputeSchedule:{type:"debounce",debounceMs:200,maxWait:750,trailing:!0,initialValue:v()}});return c&&f.set(a,g),p.set(a,g),g}({automationStore:t,automationTypecheckModule:x,contextType:s,environment:g,formulasModule:m,intl:h,subscriptionInfo:y,pageStore:"button_block"===s?null==S?void 0:S.pageStore:void 0,enableExistenceGuarantees:v})},[g,t,x,s,m,h,y,null==S?void 0:S.pageStore,v]),b=(0,a.useContext)(o),C=(0,a.useMemo)(()=>0===b.ancestors.length?[{automationStore:t,contextType:s,typecheckResultStore:q,collectionStore:u,collectionSettingsStore:l,collectionViewBlockStore:c,collectionViewStore:d}]:[...b.ancestors,{automationStore:t,contextType:s,typecheckResultStore:q,collectionStore:u,collectionSettingsStore:l,collectionViewBlockStore:c,collectionViewStore:d}],[b.ancestors,t,s,q,u,l,c,d]);(0,a.useEffect)(()=>{if(!q)return;let e=()=>{};return q.addListener(e),()=>q.removeListener(e)},[q]);let T=(0,a.useMemo)(()=>({ancestors:C,enableExistenceGuarantees:v}),[C,v]);return(0,r.jsx)(o.Provider,{value:T,children:i})}function s(){var e;let t,{typecheckResultStore:r}=l();return e=r,t=(0,n(579993).K8)(()=>null==e?void 0:e.getState(),[e]),(0,a.useMemo)(()=>t??{error:new(n(600005)).N9("Automation typecheck dependency is not ready")},[t])}function u(){var e;let t=null==(e=c())?void 0:e.typecheckResultStore;return(0,n(579993).K8)(()=>null==t?void 0:t.getState(),[t])}function l(){let e=(0,a.useContext)(o).ancestors.at(-1);if(!e)throw Error("No automation context found!");return e}function c(){return(0,a.useContext)(o).ancestors.at(-1)}function d(){return(0,a.useContext)(o).enableExistenceGuarantees}o.displayName="AutomationContext",o.Consumer;let f=new WeakMap,p=new WeakMap;function v(e){var t;return null==(t=f.get(e))?void 0:t.state}n.d(t,{K4:()=>c,To:()=>v,Uw:()=>u,fi:()=>d,q5:()=>s,q8:()=>l,u:()=>i})},117676(e,t,n){function a(e){return e.offline||409===e.status||429===e.status||e.status>=500}n.d(t,{E:()=>a})},432705(e,t,n){function a(e){return"event"===e||"recurrence"===e}function r(e){let t=e.getTrigger();return(0,n(48697).O9)(t)&&a(t.type)}function o(e){return"event"===e?"event":"recurrence"===e?"recurrence":void(0,n(48697).HB)(e)}n.d(t,{$X:()=>r,H8:()=>o,x2:()=>a})},723732(e,t,n){function a(e){let{environment:t,collectionViewBlockStore:a,collectionView:r,transaction:o,disableAppendingToCollectionViewBlock:i=!1}=e,s=n(918300).eC({environment:t,table:n(832375).Gy1,value:r,inMemoryRecordCache:a.inMemoryRecordCache,transaction:o}
1),u=n(547131).p.createChildStore(a,{table:n(832375).Gy1,id:s.id,spaceId:a.getSpaceId()});return i||(0,n(33028).B)({parentStore:a.getCollectionViewsStore(),appendStore:u,transaction:o}),u}n.d(t,{i:()=>a})},931263(e,t,n){function a(e){let{stores:t}=n(584265).default.state,a=t[0];if(!a)return;let r=n(240414).T.findSelectableFromStore(a);if(r&&r.props.onEditText){let t=r.props.onEditText,o=a.pointer.spaceId;(0,n(323517).createAndCommit)({userAction:"selectionActions.editSelection",environment:e,canUndo:!0,cellTarget:o?{spaceWithId:o}:void 0,perform:e=>{t({isAtStartOfLine:!1,isClick:!1,transaction:e})}})}}n.d(t,{Z:()=>a})},937776(e,t,n){n(635790);var a=n(440302);let r={viewBox:"0 0 20 20",fittedViewBox:"3.12 3.12 13.75 13.76",svg:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M8 9.875a.625.625 0 1 0 0 1.25h4a.625.625 0 1 0 0-1.25z"}),(0,a.jsx)("path",{d:"M3.125 4.75c0-.897.728-1.625 1.625-1.625h10.5c.898 0 1.625.728 1.625 1.625v1.57c0 .676-.413 1.256-1 1.5v7.43c0 .898-.727 1.625-1.625 1.625h-8.5a1.625 1.625 0 0 1-1.625-1.625V7.82c-.587-.244-1-.824-1-1.5zm11.5 3.195h-9.25v7.305c0 .207.168.375.375.375h8.5a.375.375 0 0 0 .375-.375zm1-1.625V4.75a.375.375 0 0 0-.375-.375H4.75a.375.375 0 0 0-.375.375v1.57c0 .205.164.372.369.375h10.512a.375.375 0 0 0 .369-.375"})]})},o=(0,n(104509).wt)("archiveBox",r,"default");n.d(t,{},{B:o})},823811(e,t,n){n(635790);let a={viewBox:"0 0 20 20",fittedViewBox:"2.37 4.12 15.25 11.75",svg:(0,n(440302).jsx)("path",{d:"M2.375 6.25c0-1.174.951-2.125 2.125-2.125h11c1.174 0 2.125.951 2.125 2.125v7.5a2.125 2.125 0 0 1-2.125 2.125h-11a2.125 2.125 0 0 1-2.125-2.125zm1.25 7.49L7.366 10 3.625 6.259zm.884.885H15.49l-3.74-3.741-1.309 1.308a.625.625 0 0 1-.884 0L8.25 10.884zM12.634 10l3.741 3.741V6.26zM4.509 5.375 10 10.866l5.491-5.491z"})},r=(0,n(104509).wt)("envelope",a,"default");n.d(t,{},{o:r})},680983(e,t,n){n.r(t),n(635790);var a=n(440302);let r={viewBox:"0 0 20 20",fittedViewBox:"3.49 1.5 13.02 16.01",svg:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("g",{className:"logo-light-mode",children:(0,a.jsx)("path",{fill:"#000",d:"M12.927 5.37q.17 0 .525.04.364.032.825.178.46.145.938.469.476.323.881.905-.041.025-.307.219-.26.194-.59.566a3.4 3.4 0 0 0-.582.93q-.243.557-.243 1.333 0 .89.307 1.504.315.615.728.995.42.38.744.557.331.17.355.178-.008.033-.12.364a9 9 0 0 1-.357.84q-.233.51-.614 1.068-.348.493-.72.946a3.4 3.4 0 0 1-.8.736 1.7 1.7 0 0 1-.97.29q-.413 0-.704-.096a5 5 0 0 1-.558-.227 4.4 4.4 0 0 0-.573-.218 2.7 2.7 0 0 0-.785-.097q-.615 0-1.027.162-.403.17-.768.331a2.1 2.1 0 0 1-.857.162q-.75 0-1.326-.598a14 14 0 0 1-1.164-1.431 9 9 0 0 1-.84-1.528 10.5 10.5 0 0 1-.607-1.836 8.5 8.5 0 0 1-.226-1.94q0-1.552.59-2.611T5.594 5.96a3.73 3.73 0 0 1 1.916-.542q.525 0 .986.17.47.17.873.348.405.17.736.17.315 0 .744-.179.428-.186.946-.371.525-.186 1.132-.186m-.566-1.31a3.3 3.3 0 0 1-1.019.816q-.606.324-1.148.324a1 1 0 0 1-.218-.024l-.025-.114a2 2 0 0 1-.008-.178q0-.614.267-1.196t.615-.97q.428-.51 1.083-.85.663-.339 1.27-.363.023.138.024.315 0 .623-.235 1.213a3.8 3.8 0 0 1-.606 1.027"})}),(0,a.jsx)("g",{className:"logo-dark-mode",children:(0,a.jsx)("path",{fill:"#fff",d:"M12.927 5.37q.17 0 .525.04.364.032.825.178.46.145.938.469.476.323.881.905-.041.025-.307.219-.26.194-.59.566a3.4 3.4 0 0 0-.582.93q-.243.557-.243 1.333 0 .89.307 1.504.315.615.728.995.42.38.744.557.331.17.355.178-.008.033-.12.364a9 9 0 0 1-.357.84q-.233.51-.614 1.068-.348.493-.72.946a3.4 3.4 0 0 1-.8.736 1.7 1.7 0 0 1-.97.29q-.413 0-.704-.096a5 5 0 0 1-.558-.227 4.4 4.4 0 0 0-.573-.218 2.7 2.7 0 0 0-.785-.097q-.615 0-1.027.162-.403.17-.768.331a2.1 2.1 0 0 1-.857.162q-.75 0-1.326-.598a14 14 0 0 1-1.164-1.431 9 9 0 0 1-.84-1.528 10.5 10.5 0 0 1-.607-1.836 8.5 8.5 0 0 1-.226-1.94q0-1.552.59-2.611T5.594 5.96a3.73 3.73 0 0 1 1.916-.542q.525 0 .986.17.47.17.873.348.405.17.736.17.315 0 .744-.179.428-.186.946-.371.525-.186 1.132-.186m-.566-1.31a3.3 3.3 0 0 1-1.019.816q-.606.324-1.148.324a1 1 0 0 1-.218-.024l-.024-.114a2 2 0 0 1-.009-.178q0-.614.267-1.196t.615-.97q.428-.51 1.083-.85.663-.339 1.27-.363.023.138.024.315 0 .623-.235 1.213a3.8 3.8 0 0 1-.606 1.027"})})]})},o=(0,n(104509).wt)("apple",r,"default");n.d(t,{},{appleIcon:o,iconDefinition:r})},33529(e,t,n){function a(e){var t;let{actionModels:a,id:r}=e,o=(0,n(459895).y)(r),i="action"===o.source?a.find(e=>e.id===o.action_id):void 0;return{automationValueInfo:o,collectionPointer:(0,n(48697).O9)(i)&&i.isType("create_page")?null==(t=i.getConfig())?void 0:t.collection:void 0,actionModel:i}}n(730330),n(139583),n.d(t,{y:()=>a})},324994(e,t,n){function a(e){return t=>({getRecordModel:e})}n.d(t,{z:()=>a})},692218(e,t,n){function a(e){return r(e).isDatabaseAgent}function r(e){var t;let n=null==e||null==(t=e.find(e=>"notion"===e.type))||null==(t=t.state)?void 0:t.ownedByDatabasePropertyIds;return n?{isDatabaseAgent:!0,ownedByDatabasePropertyIds:n}:{isDatabaseAgent:!1}}n(730330),n(139583),n.d(t,{b:()=>r,u:()=>a})},886883(e,t,n){function a(e){return!!Array.isArray(e)}function r(e){return!(!e||Array.isArray(e))}function o(e){return a(e)?e:[]}n(499468),n(586042),n(169187),n(726090),n(132457),n(219390),n(73168),n.d(t,{Zv:()=>a,ap:()=>r,rr:()=>o})}}]);
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.