(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9320],{25325:(e,t,r)=>{Promise.resolve().then(r.bind(r,29383))},29383:(e,t,r)=>{"use strict";r.d(t,{default:()=>F});var o,i=r(42294),u=r(79836),c=r(6447),a=r(20046),s=r(46212),l=r(78092),f="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},m={},d={};({get exports(){return m},set exports(n){m=n}}).exports=function(){if(o)return d;o=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,o,c){var a,s={},l=null,f=null;for(a in void 0!==c&&(l=""+c),void 0!==o.key&&(l=""+o.key),void 0!==o.ref&&(f=o.ref),o)r.call(o,a)&&!u.hasOwnProperty(a)&&(s[a]=o[a]);if(t&&t.defaultProps)for(a in o=t.defaultProps)void 0===s[a]&&(s[a]=o[a]);return{$$typeof:e,type:t,key:l,ref:f,props:s,_owner:i.current}}return d.Fragment=t,d.jsx=c,d.jsxs=c,d}();let p=m.jsx;var h=0/0,y=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,w=/^0o[0-7]+$/i,g=parseInt,x="object"==typeof f&&f&&f.Object===Object&&f,T="object"==typeof self&&self&&self.Object===Object&&self,k=x||T||Function("return this")(),_=Object.prototype.toString,E=Math.max,j=Math.min,R=function(){return k.Date.now()};function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function S(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==_.call(t))return h;if(O(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=O(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(y,"");var o=v.test(e);return o||w.test(e)?g(e.slice(2),o?2:8):b.test(e)?h:+e}var L=function(e,t,r){var o,i,u,c,a,s,l=0,f=!1,m=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=o,u=i;return o=i=void 0,l=t,c=e.apply(u,r)}function h(e){var r=e-s,o=e-l;return void 0===s||r>=t||r<0||m&&o>=u}function y(){var e,r,o,i=R();if(h(i))return b(i);a=setTimeout(y,(e=i-s,r=i-l,o=t-e,m?j(o,u-r):o))}function b(e){return a=void 0,d&&o?p(e):(o=i=void 0,c)}function v(){var e,r=R(),u=h(r);if(o=arguments,i=this,s=r,u){if(void 0===a)return l=e=s,a=setTimeout(y,t),f?p(e):c;if(m)return a=setTimeout(y,t),p(s)}return void 0===a&&(a=setTimeout(y,t)),c}return t=S(t)||0,O(r)&&(f=!!r.leading,u=(m="maxWait"in r)?E(S(r.maxWait)||0,t):u,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),l=0,o=s=i=a=void 0},v.flush=function(){return void 0===a?c:b(R())},v};let D=[],N={width:"100%",height:"100%"},U=(0,s.forwardRef)(function({className:e,children:t,debounceTime:r=300,ignoreDimensions:o=D,parentSizeStyles:i,enableDebounceLeadingCall:u=!0,resizeObserverPolyfill:c,...a},l){var f;let m=(0,s.useRef)(null),d=(0,s.useRef)(0),[h,y]=(0,s.useState)({width:0,height:0,top:0,left:0}),b=(0,s.useMemo)(()=>{let e=Array.isArray(o)?o:[o];return L(t=>{y(r=>Object.keys(r).filter(e=>r[e]!==t[e]).every(t=>e.includes(t))?r:t)},r,{leading:u})},[r,u,o]);return(0,s.useEffect)(()=>{let e=new(c||window.ResizeObserver)(e=>{e.forEach(e=>{let{left:t,top:r,width:o,height:i}=(null==e?void 0:e.contentRect)??{};d.current=window.requestAnimationFrame(()=>{b({width:o,height:i,top:r,left:t})})})});return m.current&&e.observe(m.current),()=>{window.cancelAnimationFrame(d.current),e.disconnect(),b.cancel()}},[b,c]),p("div",{style:{...N,...i},ref:(f=[l,m],e=>{f.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}),className:e,...a,children:t({...h,ref:m.current,resize:b})})}),M=(0,s.forwardRef)(({scene:e,style:t,onMouseDown:r,onMouseUp:o,onMouseHover:i,onKeyDown:u,onKeyUp:c,onStart:a,onLookAt:f,onFollow:m,onWheel:d,onLoad:h,renderOnDemand:y=!0,...b},v)=>{let w=(0,s.useRef)(null),[g,x]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{let t;x(!0);let s=[{name:"mouseDown",cb:r},{name:"mouseUp",cb:o},{name:"mouseHover",cb:i},{name:"keyDown",cb:u},{name:"keyUp",cb:c},{name:"start",cb:a},{name:"lookAt",cb:f},{name:"follow",cb:m},{name:"scroll",cb:d}];return w.current&&(t=new l.M(w.current,{renderOnDemand:y}),async function(){for(let r of(await t.load(e),s))r.cb&&t.addEventListener(r.name,r.cb);x(!1),null==h||h(t)}()),()=>{for(let e of s)e.cb&&t.removeEventListener(e.name,e.cb);t.dispose()}},[e]),p(U,{ref:v,parentSizeStyles:t,debounceTime:50,...b,children:()=>p("canvas",{ref:w,style:{display:g?"none":"block"}})})});var P=r(4795),C=r(52867),A=r(77748);function F(){let{domain:e}=(0,C.useParams)(),[t,r]=(0,s.useState)(!0),[o]=(0,A.Nr)(t?0:1,200),[l]=(0,A.Nr)(!t,800);return(0,i.jsxs)(P.E.div,{className:"z-10 mb-20",exit:{opacity:0,scale:.95},transition:{duration:.5,type:"spring"},children:[(0,i.jsx)("div",{className:"".concat(t?"scale-[25%] blur-md":"scale-100 blur-0"," mt-[7vh] h-[50vh] w-screen object-cover transition-all duration-1000"),children:(0,i.jsx)(M,{onLoad:()=>{r(!1)},style:{opacity:o},scene:"https://assets.dub.co/misc/scene.splinecode"})}),(0,i.jsxs)(P.E.div,{variants:{show:{transition:{staggerChildren:.3}}},initial:"hidden",animate:l?"show":"hidden",className:"mx-5 flex flex-col items-center space-y-10 text-center sm:mx-auto",children:[(0,i.jsxs)(P.E.h1,{className:"font-display text-4xl font-bold text-gray-800 transition-colors sm:text-5xl",variants:c.b,children:["Welcome to ","Dub.co"]}),(0,i.jsxs)(P.E.p,{className:"max-w-xl text-gray-600 transition-colors sm:text-lg",variants:c.b,children:[(0,i.jsx)(u.a,{children:e})," is a custom domain on"," ",(0,i.jsx)("a",{className:"bg-gradient-to-r from-purple-400 to-pink-600 bg-clip-text font-semibold text-transparent decoration-rose-600 hover:underline",href:(0,a.k)("/",e,{utm_source:"Custom Domain",utm_medium:"Welcome Page",utm_campaign:e,utm_content:"Dub.co"}),children:"Dub.co"})," ","- the link management platform for modern marketing teams."]}),(0,i.jsx)(P.E.a,{variants:c.b,href:(0,a.k)("/home",e,{utm_source:"Custom Domain",utm_medium:"Welcome Page",utm_campaign:e,utm_content:"Create Your Free Branded Link"}),className:"rounded-full bg-gray-800 px-10 py-2 font-medium text-white transition-colors hover:bg-black",children:"Create Your Free Branded Link"})]})]})}},77748:(e,t,r)=>{"use strict";r.d(t,{Nr:()=>c,y1:()=>i});var o=r(46212);function i(e,t,r){var i=this,u=(0,o.useRef)(null),c=(0,o.useRef)(0),a=(0,o.useRef)(null),s=(0,o.useRef)([]),l=(0,o.useRef)(),f=(0,o.useRef)(),m=(0,o.useRef)(e),d=(0,o.useRef)(!0);m.current=e;var p="undefined"!=typeof window,h=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var y=!!(r=r||{}).leading,b=!("trailing"in r)||!!r.trailing,v="maxWait"in r,w="debounceOnServer"in r&&!!r.debounceOnServer,g=v?Math.max(+r.maxWait||0,t):null;return(0,o.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,o.useMemo)(function(){var e=function(e){var t=s.current,r=l.current;return s.current=l.current=null,c.current=e,f.current=m.current.apply(r,t)},r=function(e,t){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!d.current)return!1;var r=e-u.current;return!u.current||r>=t||r<0||v&&e-c.current>=g},x=function(t){return a.current=null,b&&s.current?e(t):(s.current=l.current=null,f.current)},T=function e(){var i=Date.now();if(o(i))return x(i);if(d.current){var a=t-(i-u.current);r(e,v?Math.min(a,g-(i-c.current)):a)}},k=function(){if(p||w){var m=Date.now(),h=o(m);if(s.current=[].slice.call(arguments),l.current=i,u.current=m,h){if(!a.current&&d.current)return c.current=u.current,r(T,t),y?e(u.current):f.current;if(v)return r(T,t),e(u.current)}return a.current||r(T,t),f.current}};return k.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),c.current=0,s.current=u.current=l.current=a.current=null},k.isPending=function(){return!!a.current},k.flush=function(){return a.current?x(Date.now()):f.current},k},[y,v,t,g,b,h,p,w])}function u(e,t){return e===t}function c(e,t,r){var c=r&&r.equalityFn||u,a=(0,o.useRef)(e),s=(0,o.useState)({})[1],l=i((0,o.useCallback)(function(e){a.current=e,s({})},[s]),t,r),f=(0,o.useRef)(e);return c(f.current,e)||(l(e),f.current=e),[a.current,l]}},32608:e=>{var t,r,o,i=e.exports={};function u(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var s=[],l=!1,f=-1;function m(){l&&o&&(l=!1,o.length?s=o.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=a(m);l=!0;for(var t=s.length;t;){for(o=s,s=[];++f<t;)o&&o[f].run();f=-1,t=s.length}o=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new p(e,t)),1!==s.length||l||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},79836:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var o=r(42294),i=e=>{let{children:t}=e;return(0,o.jsx)("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:t})}},6447:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var o={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.4,type:"spring"}}}},20046:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,b:()=>i,e:()=>u,g:()=>c,i:()=>s,j:()=>l,k:()=>f});var o=e=>{try{return new URL(e),!0}catch(e){return!1}},i=e=>{if(o(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL("https://".concat(e)).toString()}catch(e){}return e},u=e=>{if(!e)return{};try{let t=new URL(e).searchParams,r={};for(let[e,o]of t.entries())o&&""!==o&&(r[e]=o);return r}catch(e){return{}}},c=(e,t)=>{if(!e)return"";try{let r=new URL(e);for(let[e,o]of Object.entries(t))""===o?r.searchParams.delete(e):r.searchParams.set(e,o);return r.toString()}catch(e){return""}},a=[{display:"UTM Source",key:"utm_source",examples:"twitter, facebook"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer_sale"},{display:"UTM Term",key:"utm_term",examples:"blue_shoes"},{display:"UTM Content",key:"utm_content",examples:"logolink"},{display:"Referral (ref)",key:"ref",examples:"twitter, facebook"}],s=e=>{try{let t=new URL(e);return a.forEach(e=>t.searchParams.delete(e.key)),t.toString()}catch(t){return e}},l=e=>e?e.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",f=(e,t,r)=>{if("dub.co"===t)return e;let o=new URL(e.startsWith("/")?"https://dub.co".concat(e):e);return r&&Object.entries(r).forEach(e=>{let[t,r]=e;o.searchParams.set(t,r)}),o.toString()}}},e=>{var t=t=>e(e.s=t);e.O(0,[2881,4717,9428,2296,4476,1744],()=>t(25325)),_N_E=e.O()}]);