PageSourceSearch

https://wrift.ai/cms/_next/static/chunks/2wjoksuq5sdph.js

js wrift.ai collected 2026-10-05 13:24:42 UTC 35,534 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,291967,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}])},18869,e=>{"use strict";var t=e.i(482671);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,s=e.map(e=>{let s=r(e,t);return n||"function"!=typeof s||(n=!0),s});if(n)return()=>{for(let t=0;t<s.length;t++){let n=s[t];"function"==typeof n?n():r(e[t],null)}}}}e.s(["composeRefs",0,n,"useComposedRefs",0,function(...e){return t.useCallback(n(...e),e)}])},671265,e=>{"use strict";var t=e.i(482671),r=e.i(835959);e.s(["createContextScope",0,function(e,n=[]){let s=[],o=()=>{let r=s.map(e=>t.createContext(e));return function(n){let s=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:s}}),[n,s])}};return o.scopeName=e,[function(n,o){let i=t.createContext(o),a=s.length;s=[...s,o];let u=n=>{let{scope:s,children:o,...u}=n,l=s?.[e]?.[a]||i,c=t.useMemo(()=>u,Object.values(u));return(0,r.jsx)(l.Provider,{value:c,children:o})};return u.displayName=n+"Provider",[u,function(r,s){let u=s?.[e]?.[a]||i,l=t.useContext(u);if(l)return l;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=n.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])}};return n.scopeName=r.scopeName,n}(o,...n)]}])},982708,e=>{"use strict";var t=e.i(482671);e.i(835959);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},451577,957790,e=>{"use strict";var t,r=e.i(482671),n=e.i(291967),s=e.i(120625),o=e.i(18869);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["useCallbackRef",0,i],957790);var a=e.i(835959),u="dismissableLayer.update",l=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=r.forwardRef((e,c)=>{let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:w,onDismiss:v,...E}=e,y=r.useContext(l),[C,b]=r.useState(null),_=C?.ownerDocument??globalThis?.document,[,S]=r.useState({}),x=(0,o.useComposedRefs)(c,e=>b(e)),N=Array.from(y.layers),[A]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),L=N.indexOf(A),P=C?N.indexOf(C):-1,I=y.layersWithOutsidePointerEventsDisabled.size>0,O=P>=L,$=function(e,t=globalThis?.document){let n=i(e),s=r.useRef(!1),o=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!s.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,s,{discrete:!0})},s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);s.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));O&&!r&&(m?.(e),w?.(e),e.defaultPrevented||v?.())},_),T=function(e,t=globalThis?.document){let n=i(e),s=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!s.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(g?.(e),w?.(e),e.defaultPrevented||v?.())},_);return!function(e,t=globalThis?.document){let n=i(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P===y.layers.size-1&&(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},_),r.useEffect(()=>{if(C)return h&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(t=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(C)),y.layers.add(C),d(),()=>{h&&1===y.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=t)}},[C,_,h,y]),r.useEffect(()=>()=>{C&&(y.layers.delete(C),y.layersWithOutsidePointerEventsDisabled.delete(C),d())},[C,y]),r.useEffect(()=>{let e=()=>S({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}
1,[]),(0,a.jsx)(s.Primitive.div,{...E,ref:x,style:{pointerEvents:I?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,$.onPointerDownCapture)})});function d(){let e=new CustomEvent(u);document.dispatchEvent(e)}function f(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,s.dispatchDiscreteCustomEvent)(o,i):o.dispatchEvent(i)}c.displayName="DismissableLayer",r.forwardRef((e,t)=>{let n=r.useContext(l),i=r.useRef(null),u=(0,o.useComposedRefs)(t,i);return r.useEffect(()=>{let e=i.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(s.Primitive.div,{...e,ref:u})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,c],451577)},621605,e=>{"use strict";var t=e.i(482671),r=e.i(585968),n=t[" useId ".trim().toString()]||(()=>void 0),s=0;e.s(["useId",0,function(e){let[o,i]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||i(e=>e??String(s++))},[e]),e||(o?`radix-${o}`:"")}])},623391,e=>{"use strict";var t=e.i(482671),r=e.i(18869),n=e.i(585968),s=e=>{var s;let i,a,{present:u,children:l}=e,c=function(e){var r,s;let[i,a]=t.useState(),u=t.useRef(null),l=t.useRef(e),c=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",s={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>s[e][t]??e,r));return t.useEffect(()=>{let e=o(u.current);c.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=u.current,r=l.current;if(r!==e){let n=c.current,s=o(t);e?f("MOUNT"):"none"===s||t?.display==="none"?f("UNMOUNT"):r&&n!==s?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let n=o(u.current).includes(CSS.escape(r.animationName));if(r.target===i&&n&&(f("ANIMATION_END"),!l.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},n=e=>{e.target===i&&(c.current=o(u.current))};return i.addEventListener("animationstart",n),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",n),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(u),d="function"==typeof l?l({present:c.isPresent}):t.Children.only(l),f=(0,r.useComposedRefs)(c.ref,(s=d,(a=(i=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?s.ref:(a=(i=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?s.props.ref:s.props.ref||s.ref));return"function"==typeof l||c.isPresent?t.cloneElement(d,{ref:f}):null};function o(e){return e?.animationName||"none"}s.displayName="Presence",e.s(["Presence",0,s])},120625,e=>{"use strict";var t=e.i(482671),r=e.i(242911),n=e.i(497603),s=e.i(835959),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,n.createSlot)(`Primitive.${r}`),i=t.forwardRef((e,t)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(n?o:r,{...i,ref:t})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});e.s(["Primitive",0,o,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}])},497603,e=>{"use strict";var t=e.i(482671),r=e.i(18869),n=e.i(835959),s=Symbol("radix.slottable");function o(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["createSlot",0,function(e){var s;
1let i,a=(s=e,(i=t.forwardRef((e,n)=>{let{children:s,...o}=e;if(t.isValidElement(s)){var i;let e,a,u=(i=s,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...e)=>{let t=o(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...o}:"className"===n&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}(o,s.props);return s.type!==t.Fragment&&(l.ref=n?(0,r.composeRefs)(n,u):u),t.cloneElement(s,l)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${s}.SlotClone`,i),u=t.forwardRef((e,r)=>{let{children:s,...i}=e,u=t.Children.toArray(s),l=u.find(o);if(l){let e=l.props.children,s=u.map(r=>r!==l?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,s):null})}return(0,n.jsx)(a,{...i,ref:r,children:s})});return u.displayName=`${e}.Slot`,u}])},704074,e=>{"use strict";var t=e.i(482671),r=e.i(585968);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:s=()=>{},caller:o}){let[i,a,u]=function({defaultProp:e,onChange:r}){let[s,o]=t.useState(e),i=t.useRef(s),a=t.useRef(r);return n(()=>{a.current=r},[r]),t.useEffect(()=>{i.current!==s&&(a.current?.(s),i.current=s)},[s,i]),[s,o,a]}({defaultProp:r,onChange:s}),l=void 0!==e,c=l?e:i;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=l},[l,o])}return[c,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else a(t)},[l,e,a,u])]}],704074)},585968,e=>{"use strict";var t=e.i(482671),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},744780,e=>{"use strict";var t=e.i(835959);e.s(["ArrowIcon",0,function({height:e,width:r,className:n}){return(0,t.jsx)("svg",{width:r,height:e,viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,t.jsx)("path",{d:"M12.25 4.5L9.4375 7.5M12.25 4.5L9.4375 1.5M12.25 4.5L0.75 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},"BuildingIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("path",{d:"M10 12h4"}),(0,t.jsx)("path",{d:"M10 8h4"}),(0,t.jsx)("path",{d:"M14 21v-3a2 2 0 0 0-4 0v3"}),(0,t.jsx)("path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"}),(0,t.jsx)("path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"})]})},"ChevronIcon",0,function({height:e,width:r,className:n}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:n,children:(0,t.jsx)("path",{d:"M9 18l6-6-6-6"})})},"ClockIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M12 6v6h4"})]})},"CloseIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{width:r,height:e,xmlns:"http://www.w3.org/2000/svg",className:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M18 6 6 18"}),(0,t.jsx)("path",{d:"m6 6 12 12"})]})},"CompassIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"})]})},"DangerIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),(0,t.jsx)("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})},"HamburgerIcon",0,function({height:e,width:r,className:n}){return(0,t.jsx)("svg",{width:r,height:e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:n,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})},"InfoIcon",0,function({height:e,width:r,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M12 16v-4"}),(0,t.jsx)("path",{d:"M12 8h.01"})]})},"PredictionsIcon",0,function({height:e=20,width:r=20,className:n}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",className:n,children:(0,t.jsx)("path",{d:"M5 3V7V3ZM3 5H7H3ZM6 17V21V17ZM4 19H8H4ZM13 3L15.286 9.857L21 12L15.286 14.143L13 21L10.714 14.143L5 12L10.714 9.857L13 3Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},"SuccessIcon",0,function({height:e,width:r,className:n}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",className:n,children:(0,t.jsx)("path",{d:"M9 12L11 14L15 10M21 12C2
11 13.1819 \n        20.7672 14.3522 20.3149 15.4442C19.8626 \n        16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 \n        19.8626 15.4442 20.3149C14.3522 20.7672 \n        13.1819 21 12 21C10.8181 21 9.64778 \n        20.7672 8.55585 20.3149C7.46392 19.8626 6.47177 19.1997 5.63604 \n        18.364C4.80031 17.5282 4.13738 16.5361 \n        3.68508 15.4442C3.23279 14.3522 3 13.1819\n         3 12C3 9.61305 3.94821 7.32387 5.63604 5.63604C7.32387 3.94821 \n        9.61305 3 12 3C14.3869 3 16.6761 3.94821 \n        18.364 5.63604C20.0518 7.32387 21 9.61305 21 12Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},"VideoIcon",0,function({height:e=20,width:r=20,className:n}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n,children:[(0,t.jsx)("path",{d:"m10.215 4.56 9.79 5.71a2 2 0 0 1 .003 3.458l-.393.23"}),(0,t.jsx)("path",{d:"m16.042 16.042-8.034 4.686A2 2 0 0 1 5 19V5"}),(0,t.jsx)("path",{d:"m2 2 20 20"})]})},"WarningIcon",0,function({height:e,width:r,className:n}){return(0,t.jsx)("svg",{width:r,height:e,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,t.jsx)("path",{d:"M9.93122 6.99984L9.93122 10.7175M9.93122 12.9999H9.94122M3.00311 17H16.8593C18.3993 17 19.3614 15.333 18.5914 14L11.6632 1.99977C10.8932 0.666745 8.9692 0.666745 8.19919 1.99977L1.27108 14C0.501069 15.333 1.46308 17 3.00311 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}])},433460,e=>{"use strict";var t=e.i(744780);let r={ROOT:"/",SIGN_IN:"/sign-in",DOCS:"/docs",ABOUT:"/about",BLOG:"/blog",PRIVACY_POLICY:"/privacy-policy",TERMS_OF_SERVICE:"/terms-of-service",CHANGELOG:"/changelog",PRICING:"/pricing",FORMS:"/forms",REQUEST_ACCESS_FORM:"/request-access",CAREERS:"/careers",ENTERPRISE:"/enterprise",EXPLORE:"/explore",DASHBOARD:"/dashboard"},n=[{title:"Resources",submenu:[{href:`${r.CHANGELOG}`,title:"Changelog",description:"New updates and product improvements",Icon:t.ClockIcon},{href:`${r.EXPLORE}`,title:"Explore",description:"Explore ML models and tools",Icon:t.CompassIcon},{href:`${r.ENTERPRISE}`,title:"Enterprise",description:"Scalable for large organizations",Icon:t.BuildingIcon}]},{title:"Company",submenu:[{href:`${r.ABOUT}`,title:"About",description:"Learn about WriftAI’s mission",Icon:t.InfoIcon},{href:`${r.CAREERS}`,title:"Careers",description:"Grow your career at WriftAI",Icon:t.ClockIcon}]},{href:`${r.PRICING}`,title:"Pricing"},{href:`${r.DOCS}`,title:"Docs"},{href:`${r.BLOG}`,title:"Blog"}];e.s(["BASE_ROUTE",0,"https://wrift.ai","JWT_KEY_NAME",0,"wai.x7k2m9","NAV_LINKS",0,n,"NO_SESSION_VALUE",0,"","Routes",0,r,"UNITS",0,[{value:1e9,symbol:"B"},{value:1e6,symbol:"M"},{value:1e3,symbol:"K"}]])},202739,e=>{"use strict";e.s(["t",0,{button:"_button_14cqb_1",sm:"_sm_14cqb_12",md:"_md_14cqb_23",primary:"_primary_14cqb_34",secondary:"_secondary_14cqb_50",danger:"_danger_14cqb_67"}])},8569,(e,t,r)=>{"use strict";e.i(306885),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return w},useLinkStatus:function(){return E}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let o=e.r(56421),i=e.r(835959),a=o._(e.r(482671)),u=e.r(712674),l=e.r(262227),c=e.r(349625),d=e.r(279565),f=e.r(239198),h=e.r(867196),p=e.r(58306),m=e.r(469999),g=e.r(98247);function w(t){var r;let n,s,o,[w,E]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,a.useRef)(null),{href:C,as:b,children:_,prefetch:S=null,passHref:x,replace:N,shallow:A,scroll:L,onClick:P,onMouseEnter:I,onTouchStart:O,legacyBehavior:$=!1,onNavigate:T,transitionTypes:k,ref:R,unstable_dynamicOnHover:j,...M}=t;n=_,$&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let U=a.default.useContext(l.AppRouterContext),B=!1!==S,D=!1===S?"none":!0===S?"full":"auto",W="none"!==D?"auto"===D?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=b||C)?r:(0,u.formatUrl)(r);if($){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let H=$?s&&"object"==typeof s&&s.ref:R,G,V=a.default.useCallback(e=>(null!==U&&(y.current=(0,p.mountLinkInstance)(e,F,U,W,B,E,G)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[B,F,U,W,E,G]),K={ref:(0,c.useMergedRef)(V,H),onClick(t){$||"function"!=typeof P||P(t),$&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,s,o,i,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(389354);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===o?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,F,y,N,L,T,k,D)},onMouseEnter(e){$||"function"!=typeof I||I(e),$&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),U&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===j)},onTouchStart:function(e){$||"function"!=typeof O||O(e),$&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),U&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===j)}};return(0,d.isAbsoluteUrl)(F)?K.href=F:$&&!x&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(F)),o=$?a.default.cloneElement(s,K):(0,i.jsx)("a",{...M,...K,children:n}),(0,i.jsx)(v.Provider,{value:w,children:o})}let v=(0,a.createContext)(p.IDLE_LINK_STATUS),E=()=>(0,a.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},349625,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(482671);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=o(e,n)),t&&(s.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},469999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(279565),s=e.r(702581);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},437401,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},712674,(e,t,r)=>{"use strict";e.i(306885),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let o=e.r(56421)._(e.r(437401)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},279565,(e,t,r)=>{"use strict";
1e.i(306885),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return w},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return y},NormalizeError:function(){return v},PageNotFoundError:function(){return E},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class w extends Error{}class v extends Error{}class E extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},667270,e=>{"use strict";e.i(816790);var t=e.i(399225);class r{userAgentHeader={"User-Agent":`WriftAI CMS/${t.PACKAGE_VERSION} ${navigator.userAgent}`};async fetchMarkdownFromUrl(e){let t=await fetch(e,{headers:this.userAgentHeader});if(!t.ok)throw new n(`Status ${t.status}, ${t.statusText}.`,t);return await t.text()}}class n extends Error{response;constructor(e,t){super(e),this.name="LlmsApiClientError",this.response=t}}e.s(["LlmsApiClient",0,r,"LlmsApiClientError",0,n])},925008,e=>{"use strict";e.i(816790);var t=e.i(684808),r=e.i(929573),n=e.i(399225);class s{baseUrl=r.baseApiRoute;customersPath=`/${n.COLLECTION_NAMES.CUSTOMERS}`;formSubmissionPath=`/${n.COLLECTION_NAMES.FORM_SUBMISSIONS}`;testimonialsPath=`/${n.COLLECTION_NAMES.TESTIMONIALS}`;userAgentHeader={"User-Agent":`WriftAI CMS/${n.PACKAGE_VERSION} ${navigator.userAgent}`};bannerPath=`/globals/${n.GLOBAL_NAMES.NOTIFICATION_BANNER}`;postsPath=`/${n.COLLECTION_NAMES.POST}`;formsPath=`/${n.COLLECTION_NAMES.FORMS}`;faqsPath=`/${n.COLLECTION_NAMES.FAQs}`;async getCustomers({limit:e}){let t=new URLSearchParams({limit:e.toString()}),n=await fetch(`${this.baseUrl}${this.customersPath}${r.getCachedPath}?${t}`,{method:"GET",headers:this.userAgentHeader});if(!n.ok)throw new o(`Status ${n.status}, ${n.statusText}.`,n);return await n.json()}async submitForm({formID:e,submissionData:t,token:r}){let n=await fetch(`${this.baseUrl}${this.formSubmissionPath}`,{method:"POST",headers:{"Content-Type":"application/json",...this.userAgentHeader},body:JSON.stringify({form:e,submissionData:t,token:r})});if(!n.ok)throw new o("Form submission failed.",n)}async getTestimonials({limit:e,page:t}){let n=await fetch(`${this.baseUrl}${this.testimonialsPath}${r.getCachedPath}?limit=${e}&page=${t}`,{method:"GET",headers:this.userAgentHeader});if(!n.ok)throw new o(`Status ${n.status}, ${n.statusText}.`,n);let s=await n.json();return{testimonials:s.docs,hasNext:s.hasNextPage}}async getBanner(){let e=await fetch(`${this.baseUrl}${this.bannerPath}${r.getCachedPath}`,{method:"GET",headers:this.userAgentHeader});if(!e.ok)throw new o(`Status ${e.status}, ${e.statusText}.`,e);return await e.json()}async getPosts({limit:e,category:t}){let n=new URLSearchParams({limit:e.toString()});t&&n.append("where[categories.title][equals]",t);let s=await fetch(`${this.baseUrl}${this.postsPath}${r.getCachedPath}?${n}&select[title]=true&select[heroImage]=true&select[categories]=true&select[authors]=true&select[meta]=true&select[readTime]=true&select[publishedAt]=true&select[createdAt]=true&select[slug]=true&sort=-publishedAt`,{method:"GET",headers:this.userAgentHeader});if(!s.ok)throw new o(`Status ${s.status}, ${s.statusText}.`,s);return await s.json()}async exitLivePreview(){await fetch(`${t.BASE_PATH}/next/exit-preview`,{headers:this.userAgentHeader})}async getFormBySlug({slug:e}){let t=await fetch(`${this.baseUrl}${this.formsPath}${r.getCachedPath}?where[slug][equals]=${e}&where[enable][equals]=true`,{method:"GET",headers:this.userAgentHeader});if(!t.ok)throw new o(`Status ${t.status}, ${t.statusText}.`,t);return(await t.json()).docs[0]}async getFAQs({limit:e=0,page:t=1}){let n=await fetch(`${this.baseUrl}${this.faqsPath}${r.getCachedPath}?limit=${e}&page=${t}`,{method:"GET",headers:this.userAgentHeader});if(!n.ok)throw new o(`Status ${n.status}, ${n.statusText}.`,n);return await n.json()}}
1class o extends Error{response;constructor(e,t){super(e),this.name="PayloadApiClientError",this.response=t}}e.s(["PayloadAPIClientError",0,o,"PayloadApiClient",0,s])},149e3,e=>{"use strict";var t=e.i(399225);e.s(["WriftAIAuthClient",0,class{baseUrl;token_path="/api/auth/token";constructor(e){this.baseUrl=e}getToken=async()=>{let e=await this._request(this.token_path);return e?.token??null};async _request(e){let r=await fetch(`${this.baseUrl}${e}`,{method:"GET",headers:{"User-Agent":`WriftAI CMS/${t.PACKAGE_VERSION} ${navigator.userAgent}`},credentials:"include"});if(!r.ok){if(401===r.status)return null;throw Error(`Request to ${e} failed: ${r.status} ${r.statusText}`)}return await r.json()}}])},811921,e=>{"use strict";var t=e.i(433460);class r extends Error{}r.prototype.name="InvalidTokenError",e.s(["SessionProvider",0,class{authClient;constructor(e){this.authClient=e}async getJwt(){let e=localStorage.getItem(t.JWT_KEY_NAME);if(null!==e){if(e===t.NO_SESSION_VALUE)return null;try{let{exp:t}=function(e,t){let n;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let s=+(!0!==t.header),o=e.split(".")[s];if("string"!=typeof o)throw new r(`Invalid token specified: missing part #${s+1}`);try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;
1return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(n)}catch(e){throw new r(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}(e),n=Math.floor(Date.now()/1e3);if(t&&t>n+10)return e}catch(e){e instanceof r&&localStorage.removeItem(t.JWT_KEY_NAME)}}let n=await this.authClient.getToken();return localStorage.setItem(t.JWT_KEY_NAME,n??t.NO_SESSION_VALUE),n}}],811921)},47551,e=>{"use strict";var t=e.i(399225);class r extends Error{response;constructor(e,t){super(e),this.name="WriftAIApiError",this.response=t}}e.s(["WriftAIApiClient",0,class{baseUrl;sessionProvider;hardware_path="/pricing/hardware";models_path="/models";model_categories_path="/model_categories";constructor(e,t){this.baseUrl=e,this.sessionProvider=t}getHardware=async({cursor:e,page_size:t})=>{let r={};e&&(r.cursor=e),t&&(r.page_size=t.toString());let n=await this._request({method:"GET",path:this.hardware_path,params:r});return{items:n.items,next_cursor:n.next_cursor}};getModels=async({page_size:e,sort_by:t,sort_direction:r,category_slugs:n})=>{let s={};return e&&(s.page_size=e.toString()),t&&(s.sort_by=t),r&&(s.sort_direction=r),n&&(s.category_slugs=n),{items:(await this._request({method:"GET",path:this.models_path,params:s})).items}};getModel=async({owner:e,model_name:t})=>await this._request({method:"GET",path:`${this.models_path}/${e}/${t}`});getModelCategory=async({cursor:e,page_size:t})=>{let r={};e&&(r.cursor=e),t&&(r.page_size=t.toString());let n=await this._request({method:"GET",path:this.model_categories_path,params:r});return{items:n.items,next_cursor:n.next_cursor}};async _request({headers:e,body:n,params:s,path:o,method:i}){let a=new URLSearchParams(s),u=await this.sessionProvider?.getJwt(),l={"User-Agent":`WriftAI CMS/${t.PACKAGE_VERSION} ${navigator.userAgent}`,...u?{Authorization:`Bearer ${u}`}:{},...e??{}},c=await fetch(`${this.baseUrl}${o}?${a}`,{method:i,headers:l,body:n?JSON.stringify(n):void 0});if(c.ok)return await c.json();throw new r(`Status ${c.status}, ${c.statusText}.`,c)}},"WriftAIApiError",0,r])},562055,e=>{"use strict";e.i(306885);var t=e.i(835959),r=e.i(482671),n=e.i(47551),s=e.i(925008),o=e.i(667270),i=e.i(149e3),a=e.i(811921);let u=(0,r.createContext)(void 0);e.s(["ClientsProvider",0,({children:e})=>{let r=new i.WriftAIAuthClient(""),l=new a.SessionProvider(r),c=new n.WriftAIApiClient("https://api.wrift.ai/v1",l),d=new s.PayloadApiClient,f=new o.LlmsApiClient;return(0,t.jsx)(u.Provider,{value:{wriftAIApiClient:c,wriftAIAuthClient:r,payloadApiClient:d,llmsApiClient:f},children:e})},"useClientsProvider",0,()=>{let e=(0,r.useContext)(u);if(!e)throw Error("useApiClientsProvider must be used within a ApiClientsProvider");return e}])},780605,e=>{"use strict";let t=!!window.document&&!!window.document.createElement;e.s(["default",0,t])},632214,e=>{"use strict";e.i(306885);var t=e.i(780605);e.s(["getClientSideURL",0,()=>{if(t.default){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return"https://wrift.ai"},"getServerSideURL",0,()=>"https://wrift.ai"])}]);

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.