@windstream/react-shared-components 0.2.61 → 0.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful/index.d.ts +22 -2
- package/dist/contentful/index.esm.js +5 -5
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +4 -4
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/video-link/index.tsx +28 -8
- package/src/components/video-link/vimeo-embed.tsx +19 -10
- package/src/components/video-link/youtube-embed.test.tsx +11 -7
- package/src/components/video-link/youtube-embed.tsx +58 -58
- package/src/contentful/blocks/anchored-bottom-banner/index.test.tsx +248 -0
- package/src/contentful/blocks/anchored-bottom-banner/index.tsx +197 -29
- package/src/contentful/blocks/anchored-bottom-banner/types.ts +46 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +7 -2
- package/src/contentful/blocks/image-promo-bar/index.tsx +2 -2
- package/src/contentful/index.ts +5 -1
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +12 -0
- package/src/hooks/contentful/use-contentful-rich-text.tsx +17 -2
package/dist/core.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
66
66
|
|
|
67
67
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
68
68
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
69
|
-
state?: "default" | "
|
|
70
|
-
size?: "
|
|
69
|
+
state?: "default" | "error" | "focus" | "active" | "hover" | "filled" | undefined;
|
|
70
|
+
size?: "medium" | "slim" | "large" | undefined;
|
|
71
71
|
label?: string | undefined;
|
|
72
72
|
errorText?: string | undefined;
|
|
73
|
-
prefixIconName?: "
|
|
73
|
+
prefixIconName?: "search" | "location_on" | undefined;
|
|
74
74
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
75
75
|
prefixIconFill?: boolean | undefined;
|
|
76
76
|
suffixIconFill?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
66
66
|
|
|
67
67
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
68
68
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
69
|
-
state?: "
|
|
70
|
-
size?: "
|
|
69
|
+
state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
|
|
70
|
+
size?: "slim" | "medium" | "large" | undefined;
|
|
71
71
|
label?: string | undefined;
|
|
72
72
|
errorText?: string | undefined;
|
|
73
|
-
prefixIconName?: "
|
|
73
|
+
prefixIconName?: "location_on" | "search" | undefined;
|
|
74
74
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
75
75
|
prefixIconFill?: boolean | undefined;
|
|
76
76
|
suffixIconFill?: boolean | undefined;
|
package/dist/index.esm.js
CHANGED
|
@@ -14,7 +14,7 @@ function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r
|
|
|
14
14
|
v0.8.1 (c) Kyle Simpson
|
|
15
15
|
MIT License: http://getify.mit-license.org
|
|
16
16
|
*/
|
|
17
|
-
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;d(t,e,function(e,t){i[e]=t,++a===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=$n)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const Qn=new WeakMap;function qn(e,t,n){const r=Qn.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Qn.set(e.element,r)}function er(e,t){return(Qn.get(e.element)||{})[t]||[]}function tr(e,t,n){const r=Qn.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Qn.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),Qn.set(e.element,r),r[t]&&0===r[t].length}function nr(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function rr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function or(e,t){let n,r=[];if((t=nr(t)).event){if("error"===t.event){er(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),tr(e,t.data.method,n)})}r=er(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=er(e,t);if(n.length<1)return!1;const r=n.shift();return tr(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const ir=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function ar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ir.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function sr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function lr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!Wn(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let a=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);const s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{const t=JSON.parse(s.responseText);if(403===t.domain_status_code)return sr(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},s.onerror=function(){const e=s.status?` (${s.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}const cr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class ur extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...cr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=Zn(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=Zn(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:a,maxTimeToCatchUp:s}=n,l=1e3*Math.min(s,Math.max(i,o)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/s,r=e<a?(a-e)/2:a;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const dr=new WeakMap,pr=new WeakMap;let fr={};class hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!Wn(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(dr.has(e))return dr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Kn((n,r)=>{if(this._onMessage=e=>{if(!Wn(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=nr(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();or(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=ar(e,t);lr(zn(n),n,e).then(t=>{const n=sr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Qn.get(e);Qn.set(t,n),Qn.delete(e)}(e,n),dr.set(this.element,this),t}).catch(r)}});if(pr.set(this,n),dr.set(this.element,this),"IFRAME"===this.element.nodeName&&rr(this,"ping"),fr.isEnabled){const e=()=>fr.exit();this.fullscreenchangeHandler=()=>{fr.isFullscreen?qn(this,"event:exitFullscreen",e):tr(this,"event:exitFullscreen",e),this.ready().then(()=>{rr(this,"fullscreenchange",fr.isFullscreen)})},fr.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Wn(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Kn((t,r)=>this.ready().then(()=>{qn(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),rr(this,e,n)}).catch(r))}get(e){return new Kn((t,n)=>(e=Hn(e,"get"),this.ready().then(()=>{qn(this,e,{resolve:t,reject:n}),rr(this,e)}).catch(n)))}set(e,t){return new Kn((n,r)=>{if(e=Hn(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{qn(this,e,{resolve:n,reject:r}),rr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===er(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),qn(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");tr(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=pr.get(this)||new Kn((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Kn.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return fr.isEnabled?fr.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return fr.isEnabled?fr.exit():this.callMethod("exitFullscreen")}getFullscreen(){return fr.isEnabled?Kn.resolve(fr.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Kn(e=>{if(pr.delete(this),dr.delete(this.element),this._originalElement&&(dr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),fr.isEnabled&&fr.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Kn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Kn((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Kn(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Kn.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new ur(this,e,t);return rr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>rr(this,"notifyTimingObjectDisconnect")),n}}_n||(fr=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=ar(e);lr(zn(t),t,e).then(t=>sr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Yn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;const n=nr(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Yn(t.source,e):null;r&&Xn(r.src)&&new hr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!Wn(n.origin))return;const r=nr(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Yn(n.source,e):null;if(o&&Xn(o.src)){const e=new hr(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!Wn(e.origin))return;const t=nr(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Yn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const mr=e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""},gr=t=>{const{link:n,containerClassName:r,autoplay:o=!1,debug:i=!1,onPlay:c,onPause:u,onTimeUpdate:d,onEnded:p,onFullscreenToggle:f}=t,h=s(null),{href:m,embedId:g}=l(()=>{if(!n)return{href:"",embedId:""};const e=n.toString();return{href:e,embedId:mr(e)}},[n]);if(i&&console.log("[VimeoEmbed] href:",m,"id:",g),a(()=>{if(!g||!h.current)return;const e=new hr(h.current),t=()=>null==c?void 0:c(),n=()=>null==u?void 0:u(),r=()=>null==p?void 0:p(),o=e=>null==d?void 0:d(e.seconds,e.duration),i=e=>null==f?void 0:f(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[g]),!g)return null;const b=new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),v=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${g}?${b.toString()}`);return e("div",{className:De("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{ref:h,className:"absolute left-0 top-0 h-full w-full",src:v,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};let br=null;const vr=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},yr=t=>{const{link:n,containerClassName:r,autoplay:o=!1,onPlay:i,onPause:c,onTimeUpdate:u,onEnded:d,onFullscreenToggle:p}=t,f=l(()=>vr(n),[n]),h=s(null),m=s(null),g=s();return Bn(m,p),a(()=>{if(!f||!h.current)return;let e,t=!1;const n=document.createElement("div");return n.style.width="100%",n.style.height="100%",h.current.appendChild(n),function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):br||(br=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{br=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),br)}().then(r=>{t||(e=new r.Player(n,{videoId:f,playerVars:{enablejsapi:1,autoplay:o?1:0,mute:o?1:0},events:{onReady:()=>{var t;const n=null===(t=e.getIframe)||void 0===t?void 0:t.call(e);n&&(n.className="absolute left-0 top-0 h-full w-full",m.current=n)},onStateChange:t=>{const n=r.PlayerState;t.data===n.PLAYING?(null==i||i(),clearInterval(g.current),g.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,a=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==u||u(a,i)},1e3)):t.data===n.PAUSED?(null==c||c(),clearInterval(g.current)):t.data===n.ENDED&&(null==d||d(),clearInterval(g.current))}}}))}).catch(()=>{}),()=>{var r;t=!0,clearInterval(g.current),null===(r=null==e?void 0:e.destroy)||void 0===r||r.call(e),n.remove()}},[f]),e("div",{className:De("relative h-full w-full overflow-hidden pb-[56.25%]",r),children:e("div",{ref:h,className:"absolute left-0 top-0 h-full w-full",title:"Embedded youtube"})})},xr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(w),Ir=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},wr=i(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net"),s=a&&i.endsWith(".svg"),l=a&&!s?{loader:Ir,unoptimized:!1}:{unoptimized:s};return e(xr,{ref:r,className:De(t),...n,...l})});wr.displayName="NextImage";const Cr=[25,50,75];const Er=({videoLink:r,imageWidth:o=660,imageHeight:i=660,useOriginalImageAspectRatio:a=!1,isAboveTheFold:l=!1,onVideoEvent:u})=>{var d;const[p,f]=c(""),[h,m]=c(!1),g=function(e){const t=s(new Set),n=s(!1),r=s(0),o=s(0),i=(t,n,i)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:r.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(r.current/o.current*100)):0,...i})};return{handlePlay:e=>i(e,"played"),handlePause:e=>i(e,"paused"),handleFullscreenToggle:(e,t)=>i(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>i(e,"closed"),handleTimeUpdate:(e,a,s)=>{const l=Number.isFinite(a)?a:0,c=Number.isFinite(s)?s:0;if(r.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);Cr.forEach(n=>{u>=n&&!t.current.has(n)&&(t.current.add(n),i(e,"progress"))}),u>=99.5&&!n.current&&(n.current=!0,i(e,"completed"))},handleEnded:e=>{n.current||(n.current=!0,o.current>0&&(r.current=o.current),i(e,"completed"))},reset:()=>{t.current=new Set,n.current=!1,r.current=0,o.current=0}}}(u),b=null==r?void 0:r.videoSourceType,v="contentful"===b?null==r?void 0:r.videoAssetUrl:null==r?void 0:r.link,y="string"==typeof v?v:"",x=null==r?void 0:r.image;if(!y)return x?e("div",{className:De(a?"overflow-hidden rounded-image":"relative aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e(wr,{src:x,alt:"section-image",priority:l,fill:!a,width:a?o||660:void 0,height:a?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:De(a?"w-full":"object-cover")})}):null;const I=null!==(d=null==r?void 0:r.videoPopup)&&void 0!==d&&d,w=Boolean(p&&p===y),C="contentful"===b?"contentful":y.includes("vimeo")?"vimeo":"youtube",E="contentful"===C?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==r?void 0:r.videoAssetUrl):"vimeo"===C?(A=y)?mr(A.toString()):"":vr(y);var A;const S={videoId:E,videoTitle:null==r?void 0:r.title,provider:C},T=e=>{e.stopPropagation(),g.handleClosed(S),f("")},O=(()=>{const t={onPlay:()=>g.handlePlay(S),onPause:()=>g.handlePause(S),onTimeUpdate:(e,t)=>g.handleTimeUpdate(S,e,t),onEnded:()=>g.handleEnded(S),onFullscreenToggle:e=>g.handleFullscreenToggle(S,e)};return"contentful"===b?e(Gn,{videoAssetUrl:null==r?void 0:r.videoAssetUrl,videoAssetType:null==r?void 0:r.videoAssetType,image:x,title:null==r?void 0:r.title,description:null==r?void 0:r.description,autoplay:w,...t}):y.includes("vimeo")?e(gr,{link:y,autoplay:w,...t}):e(yr,{link:y,autoplay:w,...t})})();return t(n,{children:[t("div",{className:De("video-section relative w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]",!w&&"hover:ring-2 hover:ring-border-focus"),onClick:()=>{w||(g.reset(),f(y))},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[t("div",{className:De(w&&!I&&"hidden",w&&!I?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[x&&e(wr,{src:x,alt:"Video preview",width:o||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(jn,{isHovered:h})})]}),!I&&w&&e("div",{className:De("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",w?"opacity-100":"opacity-0",!a&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:O})]}),I&&w&&e("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 transition-all duration-300",onClick:T,children:t("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e("button",{type:"button",onClick:T,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e(On,{name:"close",className:"text-white"})}),O]})})]})},Ar=i(({children:t,className:n="",style:r,disabled:o,...i},a)=>e("button",{ref:a,className:De(n),style:r,disabled:o,...i,children:t}));Ar.displayName="Button";const Sr=(n,r)=>{const{className:o,size:i,required:a,placeholder:s,label:l,state:d,errorText:p,prefixIconName:f,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:g=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:w,type:C,...E}=n,A=w?"error":d,[S,T]=c(!1),[O,N]=c(!1),[P,R]=c(C||"text"),k=u(e=>{e.stopPropagation(),R(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[l?e("label",{htmlFor:l,className:De("inline-block pb-1"),children:t(Nn,{as:"span",className:"footnote text-text",children:[l,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:De("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],y,(S||"hover"===A)&&!O&&"error"!==A&&"border-input-border-hover",(O||"focus"===A||"active"===A)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===A&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[f?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(On,{name:f,fill:h?1:0,size:g,className:De(x)})}):null,e("input",{ref:r,id:l,disabled:I||E.disabled,className:De("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:s,type:P,...E,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=E.onFocus)||void 0===t||t.call(E,e),N(!0)},onBlur:e=>{var t;null===(t=E.onBlur)||void 0===t||t.call(E,e),N(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:k,children:e(On,{name:"text"===P?"visibility":"visibility_off",size:v,fill:m?1:0})}):null]}),"error"===A&&p&&""!=p?t(Nn,{className:De("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(On,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})},Tr=i(Sr);Tr.displayName="Input";const Or=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},Nr=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:l=!1,focusOnLoad:p=!0,hasError:f,inputContainerClassName:h,isIframe:m=!1,isLoading:g=!1,isReady:b=!0,mapPinIcon:v=!0,minQueryLength:y=3,onChange:x,onFocus:I,onLoadProvider:w,onSelectAddress:C,onSuggestionsChange:E,optionsContainerClassName:A,prefixIconClassName:S="text-icon-brand",suggestions:T=[],value:O,...N})=>{const P=s(null),R=s(null),k=d(),[L,B]=c(null!=O?O:o),[G,j]=c(!1),M=De("inline-flex items-center justify-center leading-none",S);a(()=>{void 0!==O&&B(O)},[O]),a(()=>{var e;b&&p&&(null===(e=P.current)||void 0===e||e.focus())},[p,b]),a(()=>{b&&(null==w||w())},[b,w]),a(()=>{null==E||E(T)},[E,T]),((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};a(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(R,()=>j(!1));const D=u(e=>{if(!e.address)return;const t=Or(e);B(t.value),j(!1),null==C||C({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[C]),V=G&&L.length>=y&&!g&&T.length>0;return t("div",{ref:R,className:De("relative min-w-[300px] text-text",r),children:[e(Tr,{...N,ref:P,size:"medium",value:L,className:De("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:De("pl-4",h),loading:!b,onChange:e=>{const t=e.target.value;B(t),j(t.length>=y),t||null==C||C(),null==x||x(t)},onFocus:e=>{j(!0),null==I||I(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":k,"aria-expanded":V,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:v?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:M,errorText:i,state:i||f?"error":N.state,hasError:f}),V&&e("ul",{id:k,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:De("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",m?"max-h-[117px]":"max-h-[220px]",l&&(m?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),A),children:T.map((n,r)=>{const{primaryText:o,secondaryText:i}=Or(n);return e("li",{role:"option","aria-selected":"false",children:t("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>D(n),children:[e(On,{fill:1,name:"location_on",size:24,weight:"200",className:De("mr-4 min-w-[24px]",M)}),t("span",{children:[e("span",{children:o}),i&&e("span",{className:"ml-1",children:i})]})]})},n.placeId||`${n.mainText}-${r}`)})})]})},Pr=i(({as:t,className:n="",...r},o)=>{const i=De(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});Pr.displayName="Image";const Rr=n=>{const{color:r="#fff",size:o="medium"}=n;return t("div",{role:"status",className:"relative flex flex-row items-center",children:[t("svg",{"aria-hidden":"true",className:De("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[o],n.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:r,children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e("span",{className:"sr-only",children:"Loading..."})]})};Rr.displayName="Spinner";const kr=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:a,className:s,prefix:l,containerClassName:c,...u}=n,d=t(Ln,{...u,className:De("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:De("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e(On,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]});return null==l||!1===l||""===l?d:t("span",{className:De("flex items-center gap-2",c),children:["string"==typeof l||"number"==typeof l?e("span",{className:"text-sm font-normal text-text",children:l}):l,d]})};function Lr(e,t){a(()=>{if("undefined"==typeof document)return;const n=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${n}px`:"unset",document.body.style.overflow=e?"hidden":t?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,t])}kr.displayName="CallButton";var Br,Gr={exports:{}},jr={},Mr={exports:{}},Dr={exports:{}},Vr={};var Fr,_r,Hr,Wr,Xr,zr,Zr,Yr,Ur,Jr,$r,Kr,Qr,qr,eo,to={};
|
|
17
|
+
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;d(t,e,function(e,t){i[e]=t,++a===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=$n)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const Qn=new WeakMap;function qn(e,t,n){const r=Qn.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Qn.set(e.element,r)}function er(e,t){return(Qn.get(e.element)||{})[t]||[]}function tr(e,t,n){const r=Qn.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Qn.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),Qn.set(e.element,r),r[t]&&0===r[t].length}function nr(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function rr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function or(e,t){let n,r=[];if((t=nr(t)).event){if("error"===t.event){er(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),tr(e,t.data.method,n)})}r=er(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=er(e,t);if(n.length<1)return!1;const r=n.shift();return tr(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const ir=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function ar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ir.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function sr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function lr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!Wn(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let a=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);const s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{const t=JSON.parse(s.responseText);if(403===t.domain_status_code)return sr(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},s.onerror=function(){const e=s.status?` (${s.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}const cr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class ur extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...cr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=Zn(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=Zn(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:a,maxTimeToCatchUp:s}=n,l=1e3*Math.min(s,Math.max(i,o)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/s,r=e<a?(a-e)/2:a;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const dr=new WeakMap,pr=new WeakMap;let fr={};class hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!Wn(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(dr.has(e))return dr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Kn((n,r)=>{if(this._onMessage=e=>{if(!Wn(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=nr(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();or(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=ar(e,t);lr(zn(n),n,e).then(t=>{const n=sr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Qn.get(e);Qn.set(t,n),Qn.delete(e)}(e,n),dr.set(this.element,this),t}).catch(r)}});if(pr.set(this,n),dr.set(this.element,this),"IFRAME"===this.element.nodeName&&rr(this,"ping"),fr.isEnabled){const e=()=>fr.exit();this.fullscreenchangeHandler=()=>{fr.isFullscreen?qn(this,"event:exitFullscreen",e):tr(this,"event:exitFullscreen",e),this.ready().then(()=>{rr(this,"fullscreenchange",fr.isFullscreen)})},fr.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Wn(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Kn((t,r)=>this.ready().then(()=>{qn(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),rr(this,e,n)}).catch(r))}get(e){return new Kn((t,n)=>(e=Hn(e,"get"),this.ready().then(()=>{qn(this,e,{resolve:t,reject:n}),rr(this,e)}).catch(n)))}set(e,t){return new Kn((n,r)=>{if(e=Hn(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{qn(this,e,{resolve:n,reject:r}),rr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===er(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),qn(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");tr(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=pr.get(this)||new Kn((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Kn.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return fr.isEnabled?fr.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return fr.isEnabled?fr.exit():this.callMethod("exitFullscreen")}getFullscreen(){return fr.isEnabled?Kn.resolve(fr.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Kn(e=>{if(pr.delete(this),dr.delete(this.element),this._originalElement&&(dr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),fr.isEnabled&&fr.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Kn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Kn((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Kn(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Kn.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new ur(this,e,t);return rr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>rr(this,"notifyTimingObjectDisconnect")),n}}_n||(fr=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=ar(e);lr(zn(t),t,e).then(t=>sr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Yn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;const n=nr(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Yn(t.source,e):null;r&&Xn(r.src)&&new hr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!Wn(n.origin))return;const r=nr(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Yn(n.source,e):null;if(o&&Xn(o.src)){const e=new hr(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!Wn(e.origin))return;const t=nr(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Yn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const mr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const o=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!o)return"";const i=n[n.length-1];return o===i?o:`${o}/${i}`},gr=t=>{const{link:n,containerClassName:r,autoplay:o=!1,debug:i=!1,onPlay:c,onPause:u,onTimeUpdate:d,onEnded:p,onFullscreenToggle:f}=t,h=s(null),{href:m,embedId:g}=l(()=>{if(!n)return{href:"",embedId:""};const e=n.toString();return{href:e,embedId:mr(e)}},[n]);if(i&&console.log("[VimeoEmbed] href:",m,"id:",g),a(()=>{if(!g||!h.current)return;const e=new hr(h.current),t=()=>null==c?void 0:c(),n=()=>null==u?void 0:u(),r=()=>null==p?void 0:p(),o=e=>null==d?void 0:d(e.seconds,e.duration),i=e=>null==f?void 0:f(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[g]),!g)return null;const b=new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),v=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${g}?${b.toString()}`);return e("div",{className:De("relative h-0 w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{ref:h,className:"absolute left-0 top-0 h-full w-full",src:v,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};let br=null;const vr=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},yr=t=>{const{link:n,containerClassName:r,autoplay:o=!1,onPlay:i,onPause:c,onTimeUpdate:u,onEnded:d,onFullscreenToggle:p}=t,f=l(()=>vr(n),[n]),h=s(null),m=s();if(Bn(h,p),a(()=>{if(!f||!h.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):br||(br=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{br=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),br)}().then(n=>{!t&&h.current&&(e=new n.Player(h.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==i||i(),clearInterval(m.current),m.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,a=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==u||u(a,i)},1e3)):t.data===r.PAUSED?(null==c||c(),clearInterval(m.current)):t.data===r.ENDED&&(null==d||d(),clearInterval(m.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(m.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[f]),!f)return null;const g=new URLSearchParams({enablejsapi:"1",autoplay:o?"1":"0",mute:o?"1":"0",playsinline:"1",rel:"0"}),b=`https://www.youtube.com/embed/${f}?${g.toString()}`;return e("div",{className:De("relative h-full w-full overflow-hidden pb-[56.25%]",r),children:e("iframe",{ref:h,className:"absolute left-0 top-0 h-full w-full",src:b,title:"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},xr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(w),Ir=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},wr=i(({className:t,...n},r)=>{const o="string"==typeof n.src?n.src:"",i=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net"),s=a&&i.endsWith(".svg"),l=a&&!s?{loader:Ir,unoptimized:!1}:{unoptimized:s};return e(xr,{ref:r,className:De(t),...n,...l})});wr.displayName="NextImage";const Cr=[25,50,75];const Er=({videoLink:r,imageWidth:o=660,imageHeight:i=660,useOriginalImageAspectRatio:a=!1,isAboveTheFold:l=!1,onVideoEvent:u})=>{var d;const[p,f]=c(""),[h,m]=c(!1),g=function(e){const t=s(new Set),n=s(!1),r=s(0),o=s(0),i=(t,n,i)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:r.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(r.current/o.current*100)):0,...i})};return{handlePlay:e=>i(e,"played"),handlePause:e=>i(e,"paused"),handleFullscreenToggle:(e,t)=>i(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>i(e,"closed"),handleTimeUpdate:(e,a,s)=>{const l=Number.isFinite(a)?a:0,c=Number.isFinite(s)?s:0;if(r.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);Cr.forEach(n=>{u>=n&&!t.current.has(n)&&(t.current.add(n),i(e,"progress"))}),u>=99.5&&!n.current&&(n.current=!0,i(e,"completed"))},handleEnded:e=>{n.current||(n.current=!0,o.current>0&&(r.current=o.current),i(e,"completed"))},reset:()=>{t.current=new Set,n.current=!1,r.current=0,o.current=0}}}(u),b=null==r?void 0:r.videoSourceType,v="contentful"===b?null==r?void 0:r.videoAssetUrl:null==r?void 0:r.link,y="string"==typeof v?v:"",x=null==r?void 0:r.image;if(!y)return x?e("div",{className:De(a?"overflow-hidden rounded-image":"relative aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e(wr,{src:x,alt:"section-image",priority:l,fill:!a,width:a?o||660:void 0,height:a?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:De(a?"w-full":"object-cover")})}):null;const I=null!==(d=null==r?void 0:r.videoPopup)&&void 0!==d&&d,w=Boolean(p&&p===y),C="contentful"===b?"contentful":y.includes("vimeo")?"vimeo":"youtube",E="contentful"===C?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==r?void 0:r.videoAssetUrl):"vimeo"===C?(A=y)?mr(A.toString()):"":vr(y);var A;const S={videoId:E,videoTitle:null==r?void 0:r.title,provider:C},T=e=>{e.stopPropagation(),g.handleClosed(S),f("")},O=(()=>{const t={onPlay:()=>g.handlePlay(S),onPause:()=>g.handlePause(S),onTimeUpdate:(e,t)=>g.handleTimeUpdate(S,e,t),onEnded:()=>g.handleEnded(S),onFullscreenToggle:e=>g.handleFullscreenToggle(S,e)},n=w?"playing":"idle";return"contentful"===b?e(Gn,{videoAssetUrl:null==r?void 0:r.videoAssetUrl,videoAssetType:null==r?void 0:r.videoAssetType,image:x,title:null==r?void 0:r.title,description:null==r?void 0:r.description,autoplay:w,...t},n):y.includes("vimeo")?e(gr,{link:y,autoplay:w,...t},n):e(yr,{link:y,autoplay:w,...t},n)})();return t(n,{children:[t("div",{className:De("video-section relative w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]",!w&&"hover:ring-2 hover:ring-border-focus"),onClick:()=>{w||(g.reset(),f(y))},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[t("div",{className:De(w&&!I&&"hidden",w&&!I?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[x&&e(wr,{src:x,alt:"Video preview",width:o||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(jn,{isHovered:h})})]}),!I&&e("div",{className:De("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",w?"opacity-100":"hidden",!a&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:O})]}),I&&e("div",{className:De("z-[100] transition-all duration-300",w?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:T,children:t("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e("button",{type:"button",onClick:T,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e(On,{name:"close",className:"text-white"})}),O]})})]})},Ar=i(({children:t,className:n="",style:r,disabled:o,...i},a)=>e("button",{ref:a,className:De(n),style:r,disabled:o,...i,children:t}));Ar.displayName="Button";const Sr=(n,r)=>{const{className:o,size:i,required:a,placeholder:s,label:l,state:d,errorText:p,prefixIconName:f,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:g=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:w,type:C,...E}=n,A=w?"error":d,[S,T]=c(!1),[O,N]=c(!1),[P,R]=c(C||"text"),k=u(e=>{e.stopPropagation(),R(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[l?e("label",{htmlFor:l,className:De("inline-block pb-1"),children:t(Nn,{as:"span",className:"footnote text-text",children:[l,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:De("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],y,(S||"hover"===A)&&!O&&"error"!==A&&"border-input-border-hover",(O||"focus"===A||"active"===A)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===A&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[f?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(On,{name:f,fill:h?1:0,size:g,className:De(x)})}):null,e("input",{ref:r,id:l,disabled:I||E.disabled,className:De("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:s,type:P,...E,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=E.onFocus)||void 0===t||t.call(E,e),N(!0)},onBlur:e=>{var t;null===(t=E.onBlur)||void 0===t||t.call(E,e),N(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:k,children:e(On,{name:"text"===P?"visibility":"visibility_off",size:v,fill:m?1:0})}):null]}),"error"===A&&p&&""!=p?t(Nn,{className:De("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(On,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})},Tr=i(Sr);Tr.displayName="Input";const Or=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},Nr=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:l=!1,focusOnLoad:p=!0,hasError:f,inputContainerClassName:h,isIframe:m=!1,isLoading:g=!1,isReady:b=!0,mapPinIcon:v=!0,minQueryLength:y=3,onChange:x,onFocus:I,onLoadProvider:w,onSelectAddress:C,onSuggestionsChange:E,optionsContainerClassName:A,prefixIconClassName:S="text-icon-brand",suggestions:T=[],value:O,...N})=>{const P=s(null),R=s(null),k=d(),[L,B]=c(null!=O?O:o),[G,j]=c(!1),M=De("inline-flex items-center justify-center leading-none",S);a(()=>{void 0!==O&&B(O)},[O]),a(()=>{var e;b&&p&&(null===(e=P.current)||void 0===e||e.focus())},[p,b]),a(()=>{b&&(null==w||w())},[b,w]),a(()=>{null==E||E(T)},[E,T]),((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};a(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(R,()=>j(!1));const D=u(e=>{if(!e.address)return;const t=Or(e);B(t.value),j(!1),null==C||C({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[C]),V=G&&L.length>=y&&!g&&T.length>0;return t("div",{ref:R,className:De("relative min-w-[300px] text-text",r),children:[e(Tr,{...N,ref:P,size:"medium",value:L,className:De("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:De("pl-4",h),loading:!b,onChange:e=>{const t=e.target.value;B(t),j(t.length>=y),t||null==C||C(),null==x||x(t)},onFocus:e=>{j(!0),null==I||I(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":k,"aria-expanded":V,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:v?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:M,errorText:i,state:i||f?"error":N.state,hasError:f}),V&&e("ul",{id:k,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:De("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",m?"max-h-[117px]":"max-h-[220px]",l&&(m?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),A),children:T.map((n,r)=>{const{primaryText:o,secondaryText:i}=Or(n);return e("li",{role:"option","aria-selected":"false",children:t("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>D(n),children:[e(On,{fill:1,name:"location_on",size:24,weight:"200",className:De("mr-4 min-w-[24px]",M)}),t("span",{children:[e("span",{children:o}),i&&e("span",{className:"ml-1",children:i})]})]})},n.placeId||`${n.mainText}-${r}`)})})]})},Pr=i(({as:t,className:n="",...r},o)=>{const i=De(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});Pr.displayName="Image";const Rr=n=>{const{color:r="#fff",size:o="medium"}=n;return t("div",{role:"status",className:"relative flex flex-row items-center",children:[t("svg",{"aria-hidden":"true",className:De("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[o],n.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:r,children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e("span",{className:"sr-only",children:"Loading..."})]})};Rr.displayName="Spinner";const kr=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:a,className:s,prefix:l,containerClassName:c,...u}=n,d=t(Ln,{...u,className:De("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:De("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e(On,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]});return null==l||!1===l||""===l?d:t("span",{className:De("flex items-center gap-2",c),children:["string"==typeof l||"number"==typeof l?e("span",{className:"text-sm font-normal text-text",children:l}):l,d]})};function Lr(e,t){a(()=>{if("undefined"==typeof document)return;const n=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${n}px`:"unset",document.body.style.overflow=e?"hidden":t?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,t])}kr.displayName="CallButton";var Br,Gr={exports:{}},jr={},Mr={exports:{}},Dr={exports:{}},Vr={};var Fr,_r,Hr,Wr,Xr,zr,Zr,Yr,Ur,Jr,$r,Kr,Qr,qr,eo,to={};
|
|
18
18
|
/** @license React v16.13.1
|
|
19
19
|
* react-is.development.js
|
|
20
20
|
*
|