PageSourceSearch

https://www.allwage.com/_next/static/chunks/4981.c9a589f0601083ab.js

js allwage.com collected 2026-10-09 22:41:09 UTC 17,315 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(null!=t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:allwage-marketing-website":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1591127d-e0b6-4c04-a02b-cfaeb589f2fa",e._sentryDebugIdIdentifier="sentry-dbid-1591127d-e0b6-4c04-a02b-cfaeb589f2fa")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4981],{94981:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0});var r,u=t(55729),a=t(84348),i=u&&"object"==typeof u&&"default"in u?u:{default:u};function o(e){var n=e||l(),t=u.useState(n),r=t[0],a=t[1];return u.useEffect(function(){if("u">typeof window&&"matchMedia"in window){var n=function(){a(e||l())},t=window.matchMedia("screen and (resolution: "+r+"dppx)");return t.hasOwnProperty("addEventListener")?t.addEventListener("change",n):t.addListener(n),function(){t.hasOwnProperty("removeEventListener")?t.removeEventListener("change",n):t.removeListener(n)}}},[r,e]),r}function l(){return Math.min(Math.max(1,"u">typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}var c=function(){function e(){}var n=e.prototype;return n.observe=function(){},n.unobserve=function(){},n.disconnect=function(){},e}(),s=globalThis.ResizeObserver||c,f=void 0!==globalThis.ResizeObserver,d=!f,v={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function h(e){return Object.assign({},v,e)}function b(e){var n,t,r,a,i,l,c,v=e.riveLoaded,b=void 0!==v&&v,p=e.canvasElem,g=e.containerRef,y=e.options,w=e.onCanvasHasResized,m=e.artboardBounds,C=h(void 0===y?{}:y),R=u.useState({height:0,width:0}),E=R[0],V=E.height,k=E.width,I=R[1],O=u.useState({height:0,width:0}),P=O[0],M=P.height,x=P.width,T=O[1],D=u.useState(!0),A=D[0],L=D[1],S=C.fitCanvasToArtboardHeight,j=C.shouldResizeCanvasToContainer,_=C.useDevicePixelRatio,N=C.customDevicePixelRatio,z=(void 0===(n=j)&&(n=!0),r=(t=u.useState({width:0,height:0}))[0],a=t[1],u.useEffect(function(){if("u">typeof window&&n){var e=function(){a({width:window.innerWidth,height:window.innerHeight})};return d&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=u.useRef(new s((i=function(e){f&&a({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},l=0,function(){for(var e=this,n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];clearTimeout(l),l=window.setTimeout(function(){return i.apply(e,t)},0)}))),u.useEffect(function(){var e=c.current;if(!n)return void e.disconnect();var t=g.current;return g.current&&f&&e.observe(g.current),function(){e.disconnect(),t&&f&&e.unobserve(t)}},[g,c]),r),H=o(N),B=null!=m?m:{},F=B.maxX,W=B.maxY,U=u.useCallback(function(){var e,n,t,r,u=null!=(e=null==(t=g.current)?void 0:t.clientWidth)?e:0,a=null!=(n=null==(r=g.current)?void 0:r.clientHeight)?n:0;return S&&m?{width:u,height:m.maxY/m.maxX*u}:{width:u,height:a}},[g,S,F,W]);u.useEffect(function(){if(j&&g.current&&b){var e=U(),n=e.width,t=e.height,r=!1;if(p){var u=n!==k||t!==V;if(C.fitCanvasToArtboardHeight&&u&&(g.current.style.height=t+"px",r=!0),C.useDevicePixelRatio){var a=n*H!==x||t*H!==M;if(u||a){var i=H*n,o=H*t;p.width=i,p.height=o,p.style.width=n+"px",p.style.height=t+"px",T({width:i,height:o}),r=!0}}else u&&(p.width=n,p.height=t,T({width:n,height:t}),r=!0);I({width:n,height:t})}w&&(A||r)&&w&&w(),A&&L(!1)}},[p,g,z,H,U,A,L,M,x,V,k,w,j,S,_,b]),u.useEffect(function(){T({width:0,height:0})},[p])}var p=function(){function e(){}var n=e.prototype;return n.observe=function(){},n.unobserve=function(){},n.disconnect=function(){},e}(),g=globalThis.IntersectionObserver||p,y=function(){function e(){var e=this;
1this.elementsMap=new Map,this.onObserved=function(n){n.forEach(function(n){var t=e.elementsMap.get(n.target);t&&t(n)})},this.observer=new g(this.onObserved)}var n=e.prototype;return n.registerCallback=function(e,n){this.observer.observe(e),this.elementsMap.set(e,n)},n.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}(),w=function(){return r||(r=new y),r};function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function C(e,n){if(null==e)return{};var t,r,u={},a=Object.getOwnPropertyNames(e);for(r=0;r<a.length;r++)t=a[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(u[t]=e[t]);return u}function R(e){var n=e.setContainerRef,t=e.setCanvasRef,r=e.className,u=void 0===r?"":r,a=e.style,o=e.children,l=C(e,["setContainerRef","setCanvasRef","className","style","children"]),c=m({width:"100%",height:"100%"},a);return i.default.createElement("div",m({ref:n,className:u},!u&&{style:c}),i.default.createElement("canvas",m({ref:t,style:{verticalAlign:"top",width:0,height:0}},l),o))}function E(e,n){void 0===n&&(n={});var t=u.useState(null),r=t[0],l=t[1],c=u.useRef(null),s=u.useRef(null),f=u.useState(null),d=f[0],v=f[1],p=!!e,g=h(n),y=o(),E=u.useCallback(function(){if(d){if(d.layout&&d.layout.fit===a.Fit.Layout&&r){var e=y*d.layout.layoutScaleFactor;d.devicePixelRatioUsed=y,d.artboardWidth=(null==r?void 0:r.width)/e,d.artboardHeight=(null==r?void 0:r.height)/e}d.startRendering(),d.resizeToCanvas()}},[d,y]);b({riveLoaded:!!d,canvasElem:r,containerRef:c,options:g,onCanvasHasResized:E,artboardBounds:null==d?void 0:d.bounds});var V=u.useCallback(function(e){null===e&&r&&(r.height=0,r.width=0),l(e)},[]);u.useEffect(function(){if(r&&e){var n,t=null!=d;if(null==d){var u=g.useOffscreenRenderer,i=e.onRiveReady,o=C(e,["onRiveReady"]);n=new a.Rive(m({useOffscreenRenderer:u},o,{canvas:r})),null!=s.current&&s.current.cleanup(),s.current=n,n.on(a.EventType.Load,function(){t=!0,i&&i(n),r?v(n):n.cleanup()})}return function(){t||null==n||n.cleanup()}}},[r,p,d]);var k=u.useCallback(function(e){c.current=e},[]),I={observe:u.useCallback(function(e,n){w().registerCallback(e,n)},[]),unobserve:u.useCallback(function(e){w().removeCallback(e)},[])},O=I.observe,P=I.unobserve;u.useEffect(function(){var e,n=!1,t=function(){if(r&&n){var e=r.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==d||d.startRendering(),n=!1)}};return r&&!1!==g.shouldUseIntersectionObserver&&O(r,function(r){r.isIntersecting?d&&d.startRendering():d&&d.stopRendering(),n=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(t,10))}),function(){r&&P(r)}},[O,P,d,r,g.shouldUseIntersectionObserver]),u.useEffect(function(){return function(){d&&(d.cleanup(),v(null))}},[d,r]),u.useEffect(function(){return function(){null!=s.current&&s.current.cleanup()}},[]);var M=null==e?void 0:e.animations;u.useEffect(function(){d&&M&&(d.isPlaying?(d.stop(d.animationNames),d.play(M)):d.isPaused&&(d.stop(d.animationNames),d.pause(M)))},[M,d]);var x=u.useCallback(function(e){return i.default.createElement(R,m({setContainerRef:k,setCanvasRef:V},e))},[V,k]);return{canvas:r,container:c.current,setCanvasRef:V,setContainerRef:k,rive:d,RiveComponent:x}}function V(){return(V=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function k(e,n,t){var r=u.useState(null),a=r[0],i=r[1],o=u.useState(t.defaultValue),l=o[0],c=o[1],s=u.useState(null),f=s[0],d=s[1],v=u.useRef(null),h=u.useRef(e),b=u.useRef(t);u.useEffect(function(){b.current=t},[t]);var p=u.useCallback(function(){var e=v.current,n=h.current,t=b.current;if(!e||!n)return i(null),c(t.defaultValue),d(null),function(){};var r=t.getProperty(e,n);if(r){i(r),c(t.getValue(r)),t.getExtendedData&&d(t.getExtendedData(r));var u=function(){c(t.getValue(r)),t.getExtendedData&&d(t.getExtendedData(r)),t.onPropertyEvent&&t.onPropertyEvent()};return r.on(u),function(){r.off(u)}}return function(){}},[]);u.useEffect(function(){return v.current=n,h.current=e,p()},[n,e,p]);var g=u.useCallback(function(e){if(a&&v.current===n)try{e(a),b.current.getExtendedData&&d(b.current.getExtendedData(a));return}catch(e){}if(v.current)try{var t=b.current.getProperty(v.current,h.current);t&&(i(t),e(t),b.current.getExtendedData&&d(b.current.getExtendedData(t)))}catch(e){}},[a,n]),y=u.useMemo(function(){return b.current.buildPropertyOperations(g)},[g]),w=V({value:l},y);return t.getExtendedData&&(w.extendedData=f),w}function I(e,n,t,r,u,a,i){try{var o=e[a](i),l=o.value}catch(e){t(e);return}o.done?n(l):Promise.resolve(l).then(r,u)}n.default=function(e){var n=e.src,t=e.artboard,r=e.animations,u=e.stateMachines,a=e.layout,o=e.useOffscreenRenderer,l=e.shouldDisableRiveListeners,c=e.shouldResizeCanvasToContainer,s=e.automaticallyHandleEvents,f=e.children,d=function(e,n){if(null==e)return{};var t,r,u={},a=Object.getOwnPropertyNames(e);for(r=0;r<a.length;r++)!(n.indexOf(t=a[r])>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(u[t]=e[t]);return u}(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),v=E({src:n,artboard:t,animations:r,layout:a,stateMachines:u,autoplay:!0,shouldDisableRiveListeners:void 0!==l&&l,automaticallyHandleEvents:void 0!==s&&s},{useOffscreenRenderer:void 0===o||o,shouldResizeCanvasToContainer:void 0===c||c}).RiveComponent;return i.default.createElement(v,d,f)},n.useResizeCanvas=b,n.useRive=E,n.useRiveFile=function(e){var n=u.useState(null),t=n[0],r=n[1],i=u.useState("idle"),o=i[0],l=i[1];return u.useEffect(function(){var n,t=null;return(n=function(){return function(e,n){var t,r,u,a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:l(0)}),o(i,"throw",{value:l(1)}),o(i,"return",{value:l(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function l(o){return function(l){var c=[o,l];if(t)throw TypeError("Generator is already executing.");for(;
1i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(u=(u=a.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){a.label=c[1];break}if(6===c[0]&&a.label<u[1]){a.label=u[1],u=c;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(c);break}u[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){try{l("loading"),(t=new a.RiveFile(e)).init(),t.on(a.EventType.Load,function(){null==t||t.getInstance(),r(t),l("success")}),t.on(a.EventType.LoadError,function(){l("failed")}),r(t)}catch(e){console.error(e),l("failed")}return[2]})},function(){var e=this,t=arguments;return new Promise(function(r,u){var a=n.apply(e,t);function i(e){I(a,r,u,i,o,"next",e)}function o(e){I(a,r,u,i,o,"throw",e)}i(void 0)})})(),function(){null==t||t.cleanup()}},[e.src,e.buffer]),{riveFile:t,status:o}},n.useStateMachineInput=function(e,n,t,r){var i=u.useState(null),o=i[0],l=i[1];return u.useEffect(function(){var u=function(){if(e&&n&&t||l(null),e&&n&&t){var u=e.stateMachineInputs(n);if(u){var a=u.find(function(e){return e.name===t});void 0!==r&&a&&(a.value=r),l(a||null)}}else l(null)};u(),e&&e.on(a.EventType.Load,function(){u()})},[e]),o},n.useViewModel=function(e,n){var t=null!=n?n:{},r=t.name,i=t.useDefault,o=u.useState(null),l=o[0],c=o[1];return u.useEffect(function(){var n=function(){e?c(null!=r?(null==e.viewModelByName?void 0:e.viewModelByName.call(e,r))||null:e.defaultViewModel()||null):c(null)};return n(),e&&e.on(a.EventType.Load,n),function(){e&&e.off(a.EventType.Load,n)}},[e,r,void 0!==i&&i]),l},n.useViewModelInstance=function(e,n){var t=null!=n?n:{},r=t.name,a=t.useDefault,i=void 0!==a&&a,o=t.useNew,l=void 0!==o&&o,c=t.rive,s=u.useState(null),f=s[0],d=s[1];return u.useEffect(function(){if(!e)return void d(null);var n=null;d(n=null!=r?e.instanceByName(r)||null:i?(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null:l?(null==e.instance?void 0:e.instance.call(e))||null:(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null),
1c&&n&&c.viewModelInstance!==n&&c.bindViewModelInstance(n)},[e,r,i,l,c]),f},n.useViewModelInstanceArtboard=function(e,n){return{setValue:k(e,n,{getProperty:u.useCallback(function(e,n){return e.artboard(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])}).setValue}},n.useViewModelInstanceBoolean=function(e,n){var t=k(e,n,{getProperty:u.useCallback(function(e,n){return e.boolean(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceColor=function(e,n){var t=k(e,n,{getProperty:u.useCallback(function(e,n){return e.color(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})},setRgb:function(n,t,r){e(function(e){e.rgb(n,t,r)})},setRgba:function(n,t,r,u){e(function(e){e.rgba(n,t,r,u)})},setAlpha:function(n){e(function(e){e.alpha(n)})},setOpacity:function(n){e(function(e){e.opacity(n)})}}},[])});return{value:t.value,setValue:t.setValue,setRgb:t.setRgb,setRgba:t.setRgba,setAlpha:t.setAlpha,setOpacity:t.setOpacity}},n.useViewModelInstanceEnum=function(e,n){var t=k(e,n,{getProperty:u.useCallback(function(e,n){return e.enum(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,getExtendedData:u.useCallback(function(e){return e.values},[]),buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,values:t.extendedData||[],setValue:t.setValue}},n.useViewModelInstanceImage=function(e,n){return{setValue:k(e,n,{getProperty:u.useCallback(function(e,n){return e.image(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])}).setValue}},n.useViewModelInstanceList=function(e,n){var t,r=u.useState(0)[1],a=k(e,n,{getProperty:u.useCallback(function(e,n){return e.list(n)},[]),getValue:u.useCallback(function(e){return e.length},[]),defaultValue:null,onPropertyEvent:function(){r(function(e){return e+1})},buildPropertyOperations:u.useCallback(function(e){return{addInstance:function(n){e(function(e){return e.addInstance(n)})},addInstanceAt:function(n,t){var r=!1;return e(function(e){r=e.addInstanceAt(n,t)}),r},removeInstance:function(n){e(function(e){return e.removeInstance(n)})},removeInstanceAt:function(n){e(function(e){return e.removeInstanceAt(n)})},getInstanceAt:function(n){var t=null;return e(function(e){t=e.instanceAt(n)}),t},swap:function(n,t){e(function(e){return e.swap(n,t)})}}},[])});return{length:null!=(t=a.value)?t:0,addInstance:a.addInstance,addInstanceAt:a.addInstanceAt,removeInstance:a.removeInstance,removeInstanceAt:a.removeInstanceAt,getInstanceAt:a.getInstanceAt,swap:a.swap}},n.useViewModelInstanceNumber=function(e,n){var t=k(e,n,{getProperty:u.useCallback(function(e,n){return e.number(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceString=function(e,n){var t=k(e,n,{getProperty:u.useCallback(function(e,n){return e.string(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceTrigger=function(e,n,t){var r=(null!=t?t:{}).onTrigger;return{trigger:k(e,n,{getProperty:u.useCallback(function(e,n){return e.trigger(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,onPropertyEvent:r,buildPropertyOperations:u.useCallback(function(e){return{trigger:function(){e(function(e){e.trigger()})}}},[])}).trigger}}
1,Object.keys(a).forEach(function(e){"default"===e||n.hasOwnProperty(e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})})}}]);

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.