@yext/visual-editor 0.0.48 → 0.0.49

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.
@@ -241,7 +241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
241
241
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pEe(e,t){if(e){if(typeof e=="string")return db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return db(e,t)}}function db(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function gEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,o=!1,r,s;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!(t&&a.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function mEe(e){if(Array.isArray(e))return e}function bEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yEe(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function vEe(e,t,n){return t&&yEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var pr=function(){function e(t,n){bEe(this,e),this.metadata=new vt(n);var a=this.getCountryAndCallingCode(t),i=fEe(a,2),o=i[0],r=i[1];this.defaultCountry=o,this.defaultCallingCode=r,this.reset()}return vEe(e,[{key:"getCountryAndCallingCode",value:function(n){var a,i;return n&&(Fi(n)?(a=n.defaultCountry,i=n.defaultCallingCode):a=n),a&&!this.metadata.hasCountry(a)&&(a=void 0),[a,i]}},{key:"input",value:function(n){var a=this.parser.input(n,this.state),i=a.digits,o=a.justLeadingPlus;if(o)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var r;if(this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(i,this.state)),r===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(r=this.formatter.format(s,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new yNe({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,o){n.metadata.selectNumberingPlan(o,i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new YNe({state:this.state,metadata:this.metadata}),this.parser=new lEe({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var a=this;if(this.isInternational()){var i=function(s){return a.formatter.getInternationalPrefixBeforeCountryCallingCode(a.state,{spacing:!!s})+s},o=this.state.callingCode;return i(o?n?"".concat(o," ").concat(n):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,a=n.nationalSignificantNumber,i=n.complexPrefixBeforeNationalSignificantNumber,o=n.nationalPrefix,r=a,s=i||o;return s&&(r=s+r),r}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Hn)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,a=this.metadata.getCountryCodesForCallingCode(n);return a&&a.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(T0e(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,a=n.digits,i=n.callingCode,o=n.country,r=n.nationalSignificantNumber;if(a){if(this.isInternational())return i?"+"+i+r:"+"+a;if(o||i){var s=o?this.metadata.countryCallingCode():i;return"+"+s+r}}}},{key:"getNumber",value:function(){var n=this.state,a=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode,r=this._getCountry();if(a&&!(!r&&!o)){if(r&&r===this.defaultCountry){var s=new vt(this.metadata.metadata);s.selectNumberingPlan(r);var l=s.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(l);if(d.length>1){var u=C0e(a,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(r=u)}}var f=new k0e(r||o,a,this.metadata.metadata);return i&&(f.carrierCode=i),f}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function ub(e){return new vt(e).getCountries()}function kEe(e,t,n){return n||(n=t,t=void 0),new pr(t,n).input(e)}function E0e(e){var t=e.inputFormat,n=e.country,a=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(fi(n,a)):""}function Cf(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function SEe(e,t,n){if(!(n&&n.ignoreRest)){var a=function(o){if(n)switch(o){case"end":n.ignoreRest=!0;break}};return $0e(e,t,a)}}function P0e(e){var t=e.onKeyDown,n=e.inputFormat;return g.useCallback(function(a){if(a.keyCode===xEe&&n==="INTERNATIONAL"&&a.target instanceof HTMLInputElement&&wEe(a.target)===$Ee.length){a.preventDefault();return}t&&t(a)},[t,n])}function wEe(e){return e.selectionStart}var xEe=8,$Ee="+",CEe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Tf.apply(this,arguments)}function TEe(e,t){if(e==null)return{};var n=LEe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function LEe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function AEe(e){function t(n,a){var i=n.onKeyDown,o=n.country,r=n.inputFormat,s=n.metadata,l=s===void 0?e:s;n.international,n.withCountryCallingCode;var d=TEe(n,CEe),u=g.useCallback(function(h){var p=new pr(o,l),b=E0e({inputFormat:r,country:o,metadata:l}),m=p.input(b+h),y=p.getTemplate();return b&&(m=Cf(m,b),y&&(y=Cf(y,b))),{text:m,template:y}},[o,l]),f=P0e({onKeyDown:i,inputFormat:r});return g.createElement(sc,Tf({},d,{ref:a,parse:SEe,format:u,onKeyDown:f}))}return t=g.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,onKeyDown:R.func,country:R.string,inputFormat:R.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:R.object},t}const NEe=AEe();var EEe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lf.apply(this,arguments)}function PEe(e,t){if(e==null)return{};var n=OEe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function OEe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function FEe(e){function t(n,a){var i=n.value,o=n.onChange,r=n.onKeyDown,s=n.country,l=n.inputFormat,d=n.metadata,u=d===void 0?e:d,f=n.inputComponent,h=f===void 0?"input":f;n.international,n.withCountryCallingCode;var p=PEe(n,EEe),b=E0e({inputFormat:l,country:s,metadata:u}),m=g.useCallback(function(S){var w=kf(S.target.value);if(w===i){var C=fb(b,w,s,u);C.indexOf(S.target.value)===0&&(w=w.slice(0,-1))}o(w)},[b,i,o,s,u]),y=P0e({onKeyDown:r,inputFormat:l});return g.createElement(h,Lf({},p,{ref:a,value:fb(b,i,s,u),onChange:m,onKeyDown:y}))}return t=g.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,onKeyDown:R.func,country:R.string,inputFormat:R.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:R.object,inputComponent:R.elementType},t}const jEe=FEe();function fb(e,t,n,a){return Cf(kEe(e+t,n,a),e)}function MEe(e){return hb(e[0])+hb(e[1])}function hb(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var REe=["value","onChange","options","disabled","readOnly"],_Ee=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function IEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=DEe(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
242
242
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DEe(e,t){if(e){if(typeof e=="string")return pb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pb(e,t)}}function pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},dc.apply(this,arguments)}function O0e(e,t){if(e==null)return{};var n=HEe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function HEe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function F0e(e){var t=e.value,n=e.onChange,a=e.options,i=e.disabled,o=e.readOnly,r=O0e(e,REe),s=g.useCallback(function(l){var d=l.target.value;n(d==="ZZ"?void 0:d)},[n]);return g.useMemo(function(){return M0e(a,t)},[a,t]),g.createElement("select",dc({},r,{disabled:i||o,readOnly:o,value:t||"ZZ",onChange:s}),a.map(function(l){var d=l.value,u=l.label,f=l.divider;return g.createElement("option",{key:f?"|":d||"ZZ",value:f?"|":d||"ZZ",disabled:!!f,style:f?zEe:void 0},u)}))}F0e.propTypes={value:R.string,onChange:R.func.isRequired,options:R.arrayOf(R.shape({value:R.string,label:R.string,divider:R.bool})).isRequired,disabled:R.bool,readOnly:R.bool};var zEe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function j0e(e){var t=e.value,n=e.options,a=e.className,i=e.iconComponent;e.getIconAspectRatio;var o=e.arrowComponent,r=o===void 0?BEe:o,s=e.unicodeFlags,l=O0e(e,_Ee),d=g.useMemo(function(){return M0e(n,t)},[n,t]);return g.createElement("div",{className:"PhoneInputCountry"},g.createElement(F0e,dc({},l,{value:t,options:n,className:rc("PhoneInputCountrySelect",a)})),d&&(s&&t?g.createElement("div",{className:"PhoneInputCountryIconUnicode"},MEe(t)):g.createElement(i,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:s?1:void 0})),g.createElement(r,null))}j0e.propTypes={iconComponent:R.elementType,arrowComponent:R.elementType,unicodeFlags:R.bool};function BEe(){return g.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function M0e(e,t){for(var n=IEe(e),a;!(a=n()).done;){var i=a.value;if(!i.divider&&WEe(i.value,t))return i}}function WEe(e,t){return e==null?t==null:e===t}var VEe=["country","countryName","flags","flagUrl"];function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Af.apply(this,arguments)}function GEe(e,t){if(e==null)return{};var n=UEe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function UEe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dp(e){var t=e.country,n=e.countryName,a=e.flags,i=e.flagUrl,o=GEe(e,VEe);return a&&a[t]?a[t]({title:n}):g.createElement("img",Af({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}dp.propTypes={country:R.string.isRequired,countryName:R.string.isRequired,flags:R.objectOf(R.elementType),flagUrl:R.string.isRequired};var KEe=["aspectRatio"],qEe=["title"],YEe=["title"];function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},uc.apply(this,arguments)}function up(e,t){if(e==null)return{};var n=ZEe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ZEe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function nd(e){var t=e.aspectRatio,n=up(e,KEe);return t===1?g.createElement(_0e,n):g.createElement(R0e,n)}nd.propTypes={title:R.string.isRequired,aspectRatio:R.number};function R0e(e){var t=e.title,n=up(e,qEe);return g.createElement("svg",uc({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),g.createElement("title",null,t),g.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},g.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),g.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),g.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),g.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),g.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),g.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),g.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}R0e.propTypes={title:R.string.isRequired};function _0e(e){var t=e.title,n=up(e,YEe);return g.createElement("svg",uc({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),g.createElement("title",null,t),g.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},g.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),g.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),g.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),g.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),g.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),g.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),g.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}_0e.propTypes={title:R.string.isRequired};function XEe(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48&&n<=57))return!1;t++}return!0}function I0e(e){XEe(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function QEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=JEe(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
243
243
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JEe(e,t){if(e){if(typeof e=="string")return gb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gb(e,t)}}function gb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ePe(e,t){if(!t)return e;for(var n=[],a=[],i=n,o=function(){var d=s.value;if(d==="|")i.push({divider:!0});else if(d==="..."||d==="…")i=a;else{var u;d==="🌐"?u=void 0:u=d;var f=e.indexOf(e.filter(function(p){return p.value===u})[0]),h=e[f];e.splice(f,1),i.push(h)}},r=QEe(t),s;!(s=r()).done;)o();return n.concat(e).concat(a)}function tPe(e,t){if(e&&(e=e.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return ad(n,t)}}),e.length>0))return e}function ad(e,t){return u0e(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function D0e(e,t){return e&&(e=e.filter(function(n){return ad(n,t)}),e.length===0&&(e=void 0)),e}var nPe=["country","label","aspectRatio"];function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Nf.apply(this,arguments)}function aPe(e,t){if(e==null)return{};var n=iPe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function iPe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function H0e(e){var t=e.flags,n=e.flagUrl,a=e.flagComponent,i=e.internationalIcon;function o(r){var s=r.country,l=r.label,d=r.aspectRatio,u=aPe(r,nPe),f=i===nd?d:void 0;return g.createElement("div",Nf({},u,{className:rc("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":f===1,"PhoneInputCountryIcon--border":s})}),s?g.createElement(a,{country:s,countryName:l,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):g.createElement(i,{title:l,aspectRatio:f,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:R.string,label:R.string.isRequired,aspectRatio:R.number},o}H0e({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:dp,internationalIcon:nd});function oPe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=rPe(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
244
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rPe(e,t){if(e){if(typeof e=="string")return mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mb(e,t)}}function mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function sPe(e,t){for(var n=oPe(e),a;!(a=n()).done;){var i=a.value;i&&lPe(i,t)}}function lPe(e,t){typeof e=="function"?e(t):e.current=t}var z0e=R.shape({country_calling_codes:R.object.isRequired,countries:R.object.isRequired}),B0e=R.objectOf(R.string);function Pa(e,t){var n="+"+fi(e,t);return n}function cPe(e){var t=e.value,n=e.phoneNumber,a=e.defaultCountry,i=e.getAnyCountry,o=e.countries,r=e.required,s=e.metadata,l;return n&&n.country?l=n.country:a&&(!t||Io(t,a,s))&&(l=a),o&&o.indexOf(l)<0&&(l=void 0),!l&&r&&o&&o.length>0&&(l=i()),l}function dPe(e){var t=e.countries,n=e.countryNames,a=e.addInternationalOption,i=e.compareStringsLocales,o=e.compareStrings;o||(o=bPe);var r=t.map(function(s){return{value:s,label:n[s]||s}});return r.sort(function(s,l){return o(s.label,l.label,i)}),a&&r.unshift({label:n.ZZ}),r}function W0e(e,t){return A0e(e||"",t)}function uPe(e){return e.formatNational().replace(/\D/g,"")}function fPe(e,t){var n=t.prevCountry,a=t.newCountry,i=t.metadata,o=t.useNationalFormat;if(n===a)return e;if(!e)return o?"":a?Pa(a,i):"";if(a){if(e[0]==="+"){if(o)return e.indexOf("+"+fi(a,i))===0?yPe(e,a,i):"";if(n){var r=Pa(a,i);return e.indexOf(r)===0?e:r}else{var s=Pa(a,i);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return Oo(e,n,i)||"";return e}function Oo(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var a=new pr(t,n);return a.input(e),a.getNumberValue()}if(t){var i=G0e(e,t,n);return"+".concat(fi(t,n)).concat(i||"")}}}function hPe(e,t,n){var a=G0e(e,t,n);if(a){var i=a.length-pPe(t,n);if(i>0)return e.slice(0,e.length-i)}return e}function pPe(e,t){return t=new vt(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function V0e(e,t){var n=t.country,a=t.countries,i=t.defaultCountry,o=t.latestCountrySelectedByUser,r=t.required,s=t.metadata;if(e==="+")return n;var l=mPe(e,s);if(l)return!a||a.indexOf(l)>=0?l:void 0;if(n){if(Io(e,n,s)){if(o&&Io(e,o,s))return o;if(i&&Io(e,i,s))return i;if(!r)return}else if(!r)return}return n}function gPe(e,t){var n=t.prevPhoneDigits,a=t.country,i=t.defaultCountry,o=t.latestCountrySelectedByUser,r=t.countryRequired,s=t.getAnyCountry,l=t.countries,d=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,h=t.metadata;if(d&&f===!1&&a){var p=Pa(a,h);if(e.indexOf(p)!==0){var b,m=e&&e[0]!=="+";return m?(e=p+e,b=Oo(e,a,h)):e=p,{phoneDigits:e,value:b,country:a}}}d===!1&&a&&e&&e[0]==="+"&&(e=bb(e,a,h)),e&&a&&u&&(e=hPe(e,a,h)),e&&e[0]!=="+"&&(!a||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?a=void 0:a=i),e==="+"&&n&&n[0]==="+"&&n.length>1&&(a=void 0);var y;return e&&(e[0]==="+"&&(e==="+"||a&&Pa(a,h).indexOf(e)===0)?y=void 0:y=Oo(e,a,h)),y&&(a=V0e(y,{country:a,countries:l,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:h}),d===!1&&a&&e&&e[0]==="+"&&(e=bb(e,a,h),y=Oo(e,a,h))),!a&&r&&(a=i||s()),{phoneDigits:e,country:a,value:y}}function bb(e,t,n){if(e.indexOf(Pa(t,n))===0){var a=new pr(t,n);a.input(e);var i=a.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function mPe(e,t){var n=new pr(null,t);return n.input(e),n.getCountry()}function bPe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function yPe(e,t,n){if(t){var a="+"+fi(t,n);if(e.length<a.length){if(a.indexOf(e)===0)return""}else if(e.indexOf(a)===0)return e.slice(a.length)}for(var i=0,o=Object.keys(n.country_calling_codes);i<o.length;i++){var r=o[i];if(e.indexOf(r)===1)return e.slice(1+r.length)}return""}function G0e(e,t,n){var a=new pr(t,n);a.input(e);var i=a.getNumber();return i&&i.nationalNumber}function Io(e,t,n){for(var a=Pa(t,n),i=0;i<e.length&&i<a.length;){if(e[i]!==a[i])return!1;i++}return!0}function U0e(e){var t=e.value,n=e.phoneNumber,a=e.defaultCountry,i=e.international,o=e.useNationalFormat,r=e.metadata;return(i===!1||o)&&n&&n.country?uPe(n):!t&&i&&a?Pa(a,r):t}function fs(e){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(n),!0).forEach(function(a){vPe(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function vPe(e,t,n){return t=kPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kPe(e){var t=SPe(e,"string");return fs(t)=="symbol"?t:t+""}function SPe(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(fs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wPe(e,t,n){var a=e.metadata,i=e.countries,o=e.defaultCountry,r=e.value,s=e.reset,l=e.international,d=e.displayInitialValueAsLocalNumber,u=e.initialValueFormat,f=t.defaultCountry,h=t.value,p=t.reset;n.country;var b=n.value,m=n.hasUserSelectedACountry,y=n.latestCountrySelectedByUser,S=function(B){return U0e(rl(rl({},B),{},{international:l,useNationalFormat:d||u==="national",metadata:a}))};if(s!==p)return{phoneDigits:S({value:void 0,defaultCountry:o}),value:void 0,country:o,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(o!==f){var w=!o||ad(o,a),C=!b||l&&b===S({value:void 0,defaultCountry:f}),$=!r&&C;if(!m&&w&&$)return{country:o,phoneDigits:S({value:void 0,defaultCountry:o}),value:void 0}}if(!vb(r,h)&&!vb(r,b)){var x,L;if(r){r&&I0e(r),x=W0e(r,a);var A=D0e(i,a);x&&x.country?(!A||A.indexOf(x.country)>=0)&&(L=x.country):(L=V0e(r,{country:void 0,countries:A,metadata:a}),L||o&&r.indexOf(Pa(o,a))===0&&(L=o))}var E;if(r){if(y){var z=L?y===L:Io(r,y,a);z?L||(L=y):E={latestCountrySelectedByUser:void 0}}}else E={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return rl(rl({},E),{},{phoneDigits:S({phoneNumber:x,value:r,defaultCountry:o}),value:r,country:r?L:o})}}function vb(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var xPe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function K0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(n),!0).forEach(function(a){_n(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Do.apply(this,arguments)}function $Pe(e,t){if(e==null)return{};var n=CPe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function CPe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function TPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sb(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Y0e(a.key),a)}}function LPe(e,t,n){return t&&Sb(e.prototype,t),n&&Sb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function APe(e,t,n){return t=fc(t),NPe(e,q0e()?Reflect.construct(t,n||[],fc(e).constructor):t.apply(e,n))}function NPe(e,t){if(t&&(or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EPe(e)}function EPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q0e=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fc(e)}function PPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ef(e,t)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Ef(e,t)}function _n(e,t,n){return t=Y0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0e(e){var t=OPe(e,"string");return or(t)=="symbol"?t:t+""}function OPe(e,t){if(or(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(or(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FPe=function(e){function t(n){var a;TPe(this,t),a=APe(this,t,[n]),_n(a,"setInputRef",function(y){sPe([a.props.inputRef,a.inputRef],y)}),_n(a,"isCountrySupportedWithError",function(y){var S=a.props.metadata;return ad(y,S)}),_n(a,"onCountryChange",function(y){var S=a.props,w=S.international,C=S.metadata,$=S.onChange,x=S.focusInputOnCountrySelection,L=a.state,A=L.phoneDigits,E=L.country,z=fPe(A,{prevCountry:E,newCountry:y,metadata:C,useNationalFormat:!w}),_=Oo(z,y,C);x&&a.inputRef.current.focus(),a.setState({country:y,latestCountrySelectedByUser:y,hasUserSelectedACountry:!0,phoneDigits:z,value:_},function(){$(_)})}),_n(a,"onChange",function(y){var S=a.props,w=S.defaultCountry,C=S.onChange,$=S.addInternationalOption,x=S.international,L=S.limitMaxLength,A=S.countryCallingCodeEditable,E=S.metadata,z=a.state,_=z.countries,B=z.phoneDigits,U=z.country,ee=z.latestCountrySelectedByUser,Y=gPe(y,{prevPhoneDigits:B,country:U,countryRequired:!$,defaultCountry:w,latestCountrySelectedByUser:ee,getAnyCountry:function(){return a.getFirstSupportedCountry({countries:_})},countries:_,international:x,limitMaxLength:L,countryCallingCodeEditable:A,metadata:E}),re=Y.phoneDigits,Z=Y.country,G=Y.value,J={phoneDigits:re,value:G,country:Z};ee&&G&&!Io(G,ee,E)&&(J.latestCountrySelectedByUser=void 0),A===!1&&!G&&re===a.state.phoneDigits&&(J.forceRerender={}),a.setState(J,function(){return C(G)})}),_n(a,"_onFocus",function(){return a.setState({isFocused:!0})}),_n(a,"_onBlur",function(){return a.setState({isFocused:!1})}),_n(a,"onFocus",function(y){a._onFocus();var S=a.props.onFocus;S&&S(y)}),_n(a,"onBlur",function(y){var S=a.props.onBlur;a._onBlur(),S&&S(y)}),_n(a,"onCountryFocus",function(y){a._onFocus();var S=a.props.countrySelectProps;if(S){var w=S.onFocus;w&&w(y)}}),_n(a,"onCountryBlur",function(y){a._onBlur();var S=a.props.countrySelectProps;if(S){var w=S.onBlur;w&&w(y)}}),a.inputRef=g.createRef();var i=a.props,o=i.value;i.labels;var r=i.international,s=i.addInternationalOption,l=i.displayInitialValueAsLocalNumber,d=i.initialValueFormat,u=i.metadata,f=a.props,h=f.defaultCountry,p=f.countries;h&&(a.isCountrySupportedWithError(h)||(h=void 0)),o&&I0e(o),p=D0e(p,u);var b=W0e(o,u);a.CountryIcon=H0e(a.props);var m=cPe({value:o,phoneNumber:b,defaultCountry:h,required:!s,countries:p||ub(u),getAnyCountry:function(){return a.getFirstSupportedCountry({countries:p})},metadata:u});return a.state={props:a.props,country:m,countries:p,phoneDigits:U0e({value:o,phoneNumber:b,defaultCountry:h,international:r,useNationalFormat:l||d==="national",metadata:u}),value:o},a}return PPe(t,e),LPe(t,[{key:"componentDidMount",value:function(){var a=this.props.onCountryChange,i=this.props.defaultCountry,o=this.state.country;a&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),o!==i&&a(o))}},{key:"componentDidUpdate",value:function(a,i){var o=this.props.onCountryChange,r=this.state.country;o&&r!==i.country&&o(r)}},{key:"getCountrySelectOptions",value:function(a){var i=a.countries,o=this.props,r=o.international,s=o.countryCallingCodeEditable,l=o.countryOptionsOrder,d=o.addInternationalOption,u=o.labels,f=o.locales,h=o.metadata;return this.useMemoCountrySelectOptions(function(){return ePe(dPe({countries:i||ub(h),countryNames:u,addInternationalOption:r&&s===!1?!1:d,compareStringsLocales:f}),tPe(l,h))},[i,l,d,u,h])}},{key:"useMemoCountrySelectOptions",value:function(a,i){return(!this.countrySelectOptionsMemoDependencies||!MPe(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=a(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(a){var i=a.countries,o=this.getCountrySelectOptions({countries:i});return o[0].value}},{key:"render",value:function(){var a=this.props,i=a.name,o=a.disabled,r=a.readOnly,s=a.autoComplete,l=a.style,d=a.className;a.inputRef;var u=a.inputComponent,f=a.numberInputProps,h=a.smartCaret,p=a.countrySelectComponent,b=a.countrySelectProps,m=a.containerComponent,y=a.containerComponentProps;a.defaultCountry,a.countries,a.countryOptionsOrder;var S=a.labels;a.flags,a.flagComponent,a.flagUrl,a.addInternationalOption,a.internationalIcon,a.displayInitialValueAsLocalNumber,a.initialValueFormat,a.onCountryChange,a.limitMaxLength,a.countryCallingCodeEditable,a.focusInputOnCountrySelection,a.reset;var w=a.metadata,C=a.international;a.locales;var $=$Pe(a,xPe),x=this.state,L=x.country,A=x.countries,E=x.phoneDigits,z=x.isFocused,_=h?NEe:jEe,B=this.getCountrySelectOptions({countries:A});return g.createElement(m,Do({style:l,className:rc(d,"PhoneInput",{"PhoneInput--focus":z,"PhoneInput--disabled":o,"PhoneInput--readOnly":r})},y),g.createElement(p,Do({name:i?"".concat(i,"Country"):void 0,"aria-label":S.country},b,{value:L,options:B,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:o||b&&b.disabled,readOnly:r||b&&b.readOnly,iconComponent:this.CountryIcon})),g.createElement(_,Do({ref:this.setInputRef,type:"tel",autoComplete:s},f,$,{inputFormat:C===!0?"INTERNATIONAL":C===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:C?!0:void 0,withCountryCallingCode:C?!0:void 0,name:i,metadata:w,country:L,value:E||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:o,readOnly:r,inputComponent:u,className:rc("PhoneInputInput",f&&f.className,$.className)})))}}],[{key:"getDerivedStateFromProps",value:function(a,i){return K0e({props:a},wPe(a,i.props,i))}}])}(g.PureComponent),Z0e=g.forwardRef(function(e,t){return g.createElement(FPe,Do({},jPe(e),{inputRef:t}))});Z0e.propTypes={value:R.string,onChange:R.func.isRequired,onFocus:R.func,onBlur:R.func,disabled:R.bool,readOnly:R.bool,autoComplete:R.string,initialValueFormat:R.oneOf(["national"]),displayInitialValueAsLocalNumber:R.bool,defaultCountry:R.string,countries:R.arrayOf(R.string),labels:B0e,locales:R.oneOfType([R.string,R.arrayOf(R.string)]),flagUrl:R.string,flags:R.objectOf(R.elementType),flagComponent:R.elementType,addInternationalOption:R.bool,internationalIcon:R.elementType,countryOptionsOrder:R.arrayOf(R.string),style:R.object,className:R.string,countrySelectComponent:R.elementType,countrySelectProps:R.object,inputComponent:R.elementType,numberInputProps:R.object,containerComponent:R.elementType,containerComponentProps:R.object,smartCaret:R.bool,international:R.bool,limitMaxLength:R.bool,countryCallingCodeEditable:R.bool,metadata:z0e,onCountryChange:R.func,focusInputOnCountrySelection:R.bool};var wb={autoComplete:"tel",countrySelectComponent:j0e,flagComponent:dp,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:nd,inputComponent:"input",containerComponent:"div",reset:R.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function jPe(e){e=K0e({},e);for(var t in wb)e[t]===void 0&&(e[t]=wb[t]);return e}function MPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}const RPe={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var _Pe=["metadata","labels"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pf.apply(this,arguments)}function IPe(e,t){if(e==null)return{};var n=DPe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function DPe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function X0e(e){var t=g.forwardRef(function(n,a){var i=n.metadata,o=i===void 0?e:i,r=n.labels,s=r===void 0?RPe:r,l=IPe(n,_Pe);return g.createElement(Z0e,Pf({},l,{ref:a,metadata:o,labels:s}))});return t.propTypes={metadata:z0e,labels:B0e},t}X0e();const HPe=X0e(o0e),Q0e={type:"custom",render:({value:e,onChange:t})=>c.jsx("div",{className:"ve-mt-[12px]",children:c.jsx(be.FieldLabel,{label:M("fields.phoneNumber","Phone Number"),icon:c.jsx(Xwe,{size:16}),children:c.jsx(HPe,{value:e,countryCallingCodeEditable:!0,international:!0,defaultCountry:"US",onChange:n=>{t(n)}})})})},hs=e=>{const{label:t,options:n=[],optionGroups:a=[{options:n}],translateOptions:i=!0,noOptionsPlaceholder:o=M("basicSelectorNoOptionsLabel","No options available"),noOptionsMessage:r,disableSearch:s,icon:l=c.jsx(Mi,{size:16})}=e;return{type:"custom",render:({value:d,onChange:u})=>{const f=i?a.map(b=>({title:b.title&&M(b.title),description:b.description&&M(b.description),options:b.options.map(m=>({...m,label:M(m.label)}))})):a,h=f.reduce((b,m)=>b.concat(m.options),[]),p=h.length===0;return p?c.jsxs(c.Fragment,{children:[c.jsx(be.FieldLabel,{label:t,icon:l}),c.jsx(yt,{variant:"puckSelect",disabled:!0,children:o}),r&&c.jsx("p",{className:"ve-text-xs ve-mt-3",children:r})]}):c.jsx(be.FieldLabel,{label:M(t),icon:l,children:c.jsx(_ge,{selectedOption:h.find(b=>JSON.stringify(b.value)===JSON.stringify(d))??h[0],onChange:u,optionGroups:f,disabled:p,disableSearch:s})})}}},zPe=()=>({label:"",type:"array",arrayFields:{url:{type:"text",label:M("fields.url","URL")}},getItemSummary:(e,t)=>M("photo","Photo")+" "+t}),BPe={type:"custom",render:({value:e,onChange:t})=>c.jsx(be.FieldLabel,{icon:c.jsx(lpe,{size:"16"}),label:M("dateAndTime","Date and Time"),children:c.jsx("input",{className:"date-time-picker",type:"datetime-local",onChange:n=>t(n.target.value),value:e??"",onClick:n=>n.stopPropagation()})})},Fl={image:{url:"https://placehold.co/640x360",height:360,width:640},title:{en:"Event Title",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.",hasLocalizedValue:"true"},dateTime:"2022-12-12T14:00:00",cta:{link:"#",label:{en:"Learn More",hasLocalizedValue:"true"},linkType:"URL"}},WPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:VPe(),value:t.events,onChange:(n,a)=>e({events:n},a)})})},VPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("title","Title"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},title:a,dateTime:BPe,description:i,cta:Xc()},defaultItemProps:Fl,getItemSummary:(o,r)=>{const s=me(o.title,t.language,n);return s||e("event","Event")+" "+((r??0)+1)}}},J0e={type:"custom",render:({value:e,onChange:t})=>c.jsx(be.FieldLabel,{icon:c.jsx(lpe,{size:"16"}),label:M("date","Date"),children:c.jsx("input",{className:"date-time-picker",type:"date",onChange:n=>t(n.target.value),value:e??"",onClick:n=>n.stopPropagation()})})},jl={image:{url:"https://placehold.co/640x360",height:360,width:640},name:{en:"Article Name",hasLocalizedValue:"true"},category:{en:"Category",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters",hasLocalizedValue:"true"},publishTime:"2022-08-02",cta:{link:"#",label:{en:"Read More",hasLocalizedValue:"true"},linkType:"URL"}},GPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:UPe(),value:t.insights,onChange:(n,a)=>e({insights:n},a)})})},UPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("category","Category"),{types:["type.string"]}),[]),o=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,category:i,publishTime:J0e,description:o,cta:Xc()},defaultItemProps:jl,getItemSummary:(r,s)=>{const l=me(r.name,t.language,n);return l||e("insight","Insight")+" "+((s??0)+1)}}},Ml={image:{url:"https://placehold.co/640x360",height:360,width:640},name:{en:"Product Title",hasLocalizedValue:"true"},category:{en:"Category, Pricing, etc",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",hasLocalizedValue:"true"},cta:{link:"#",label:{en:"Learn More",hasLocalizedValue:"true"},linkType:"URL"}},KPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:qPe(),value:t.products,onChange:(n,a)=>e({products:n},a)})})},qPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("fields.category","Category"),{types:["type.string"]}),[]),o=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,category:i,description:o,cta:Xc()},defaultItemProps:Ml,getItemSummary:(r,s)=>{const l=me(r.name,t.language,n);return l||e("product","Product")+" "+((s??0)+1)}}},Rl={question:{en:"Question Lorem ipsum dolor sit amet?",hasLocalizedValue:"true"},answer:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",hasLocalizedValue:"true"}},YPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:ZPe(),value:t.faqs,onChange:(n,a)=>e({faqs:n},a)})})},ZPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.question","Question"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.answer","Answer")),[]);return{label:M("arrayField","Array Field"),type:"array",arrayFields:{question:a,answer:i},defaultItemProps:Rl,getItemSummary:(o,r)=>{const s=me(o.question,t.language,n);return s||e("faq","FAQ")+" "+((r??0)+1)}}},_l={name:{en:"First Last",hasLocalizedValue:"true"},title:{en:"Associate Agent",hasLocalizedValue:"true"},phoneNumber:"(202) 770-6619 ",email:"jkelley@[company].com",cta:{label:{en:"Visit Profile",hasLocalizedValue:"true"},link:"#",linkType:"URL"},headshot:{url:"https://placehold.co/80x80",height:80,width:80}},XPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:QPe(),value:t.people,onChange:(n,a)=>e({people:n},a)})})},QPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("fields.title","Title"),{types:["type.string"]}),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{headshot:{type:"object",label:e("fields.headshot","Headshot"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,title:i,phoneNumber:Q0e,email:{type:"text",label:e("fields.email","Email")},cta:Xc()},defaultItemProps:_l,getItemSummary:(o,r)=>{const s=me(o.name,t.language,n);return s||e("teamMember","Team Member")+" "+((r??0)+1)}}},Il={description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",hasLocalizedValue:"true"},contributorName:{en:"Name",hasLocalizedValue:"true"},contributionDate:"July 22, 2022"},JPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:e5e(),value:t.testimonials,onChange:(n,a)=>e({testimonials:n},a)})})},e5e=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.contributorName","Contributor Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{description:i,contributorName:a,contributionDate:J0e},defaultItemProps:Il,getItemSummary:(o,r)=>{const s=me(o.contributorName,t.language,n);return s||e("testimonial","Testimonial")+" "+((r??0)+1)}}},ebe=({enabled:e})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"-0.75 0 11 11",fill:"none",children:c.jsx("path",{d:"M4.48673 2.68073C4.48673 2.5887 4.52328 2.50045 4.58836 2.43537C4.65343 2.3703 4.74169 2.33374 4.83371 2.33374C4.92574 2.33374 5.014 2.3703 5.07907 2.43537C5.14414 2.50045 5.1807 2.5887 5.1807 2.68073C5.1807 2.77276 5.14414 2.86101 5.07907 2.92609C5.014 2.99116 4.92574 3.02772 4.83371 3.02772C4.74169 3.02772 4.65343 2.99116 4.58836 2.92609C4.52328 2.86101 4.48673 2.77276 4.48673 2.68073ZM5.06504 3.45711C5.39901 3.35735 5.64335 3.04796 5.64335 2.68073C5.64335 2.23398 5.28046 1.87109 4.83371 1.87109C4.38697 1.87109 4.02408 2.23398 4.02408 2.68073C4.02408 3.04796 4.26841 3.35735 4.60239 3.45711V4.7959C4.47805 4.83349 4.36673 4.89855 4.2742 4.98674L3.19275 4.3694C3.27227 4.03109 3.1248 3.66675 2.80962 3.48458C2.42216 3.25904 1.9277 3.39205 1.7036 3.77952C1.47951 4.16699 1.61252 4.66144 1.99999 4.88554C2.05637 4.91735 2.1142 4.94337 2.17348 4.96072V6.18385C2.1142 6.2012 2.05637 6.22578 1.99999 6.25903C1.61252 6.48312 1.47951 6.97758 1.7036 7.36505C1.9277 7.75252 2.42216 7.88553 2.80962 7.66143C3.12625 7.47927 3.27227 7.11493 3.19275 6.77517L3.86215 6.39349C3.76239 6.27638 3.68432 6.14048 3.63227 5.99156L2.96432 6.37469C2.87035 6.28505 2.75758 6.22144 2.63613 6.18529V4.96072C2.75758 4.92458 2.87035 4.86096 2.96432 4.77132L4.04576 5.38867C4.03131 5.44795 4.02408 5.51012 4.02408 5.57228C4.02408 5.93951 4.26841 6.24891 4.60239 6.34867V7.68746C4.26841 7.78722 4.02408 8.09661 4.02408 8.46384C4.02408 8.91059 4.38697 9.27348 4.83371 9.27348C5.28046 9.27348 5.64335 8.91059 5.64335 8.46384C5.64335 8.09661 5.39901 7.78722 5.06504 7.68746V6.34867C5.18937 6.31108 5.3007 6.24602 5.39323 6.15782L6.47467 6.77517C6.39515 7.11348 6.54262 7.47782 6.8578 7.65999C7.24527 7.88408 7.73973 7.75107 7.96382 7.3636C8.18792 6.97613 8.0549 6.48168 7.66744 6.25758C7.61105 6.22578 7.55322 6.19975 7.49394 6.1824V4.95928C7.55322 4.94193 7.61105 4.91735 7.66744 4.88409C8.0549 4.66 8.18792 4.16554 7.96382 3.77807C7.73973 3.39061 7.24527 3.25904 6.8578 3.48314C6.54118 3.6653 6.39515 4.02964 6.47322 4.36795L5.80383 4.74964C5.90359 4.86675 5.98166 5.00265 6.03371 5.15156L6.70166 4.76988C6.79563 4.85952 6.9084 4.92458 7.02985 4.95928V6.18385C6.9084 6.21999 6.79563 6.28361 6.70166 6.37325L5.62022 5.7559C5.63467 5.69662 5.6419 5.63445 5.6419 5.57228C5.6419 5.20506 5.39757 4.89566 5.06359 4.7959V3.45711H5.06504ZM7.08913 3.88362C7.12862 3.86083 7.17221 3.84605 7.21741 3.84011C7.26262 3.83418 7.30855 3.8372 7.35258 3.84902C7.39662 3.86083 7.43789 3.8812 7.47406 3.90897C7.51022 3.93674 7.54056 3.97135 7.56334 4.01084C7.58612 4.05034 7.60091 4.09393 7.60684 4.13913C7.61278 4.18434 7.60975 4.23027 7.59794 4.2743C7.58613 4.31834 7.56575 4.35961 7.53799 4.39578C7.51022 4.43194 7.4756 4.46228 7.43611 4.48506C7.39662 4.50784 7.35303 4.52263 7.30782 4.52856C7.26262 4.5345 7.21669 4.53147 7.17265 4.51966C7.12862 4.50784 7.08734 4.48747 7.05118 4.45971C7.01502 4.43194 6.98468 4.39732 6.9619 4.35783C6.93911 4.31834 6.92433 4.27475 6.9184 4.22954C6.91246 4.18434 6.91548 4.13841 6.9273 4.09437C6.93911 4.05034 6.95948 4.00906 6.98725 3.9729C7.01502 3.93674 7.04963 3.9064 7.08913 3.88362ZM2.10408 4.01084C2.1501 3.93109 2.22591 3.87288 2.31484 3.84902C2.40377 3.82516 2.49854 3.8376 2.5783 3.88362C2.65806 3.92963 2.71627 4.00544 2.74013 4.09437C2.76399 4.18331 2.75154 4.27807 2.70553 4.35783C2.68274 4.39732 2.65241 4.43194 2.61624 4.45971C2.58008 4.48747 2.5388 4.50784 2.49477 4.51966C2.40584 4.54352 2.31107 4.53107 2.23131 4.48506C2.19182 4.46228 2.1572 4.43194 2.12944 4.39578C2.10167 4.35961 2.0813 4.31834 2.06949 4.2743C2.04563 4.18537 2.05807 4.0906 2.10408 4.01084ZM4.48673 8.46384C4.48673 8.37181 4.52328 8.28356 4.58836 8.21848C4.65343 8.15341 4.74169 8.11685 4.83371 8.11685C4.92574 8.11685 5.014 8.15341 5.07907 8.21848C5.14414 8.28356 5.1807 8.37181 5.1807 8.46384C5.1807 8.55587 5.14414 8.64412 5.07907 8.7092C5.014 8.77427 4.92574 8.81083 4.83371 8.81083C4.74169 8.81083 4.65343 8.77427 4.58836 8.7092C4.52328 8.64412 4.48673 8.55587 4.48673 8.46384ZM2.70553 6.78674C2.72831 6.82623 2.74309 6.86982 2.74903 6.91503C2.75497 6.96023 2.75194 7.00616 2.74013 7.0502C2.72831 7.09423 2.70794 7.13551 2.68017 7.17167C2.65241 7.20783 2.61779 7.23817 2.5783 7.26095C2.53881 7.28374 2.49522 7.29852 2.45001 7.30446C2.40481 7.31039 2.35888 7.30737 2.31484 7.29555C2.27081 7.28374 2.22953 7.26337 2.19337 7.2356C2.15721 7.20783 2.12687 7.17322 2.10408 7.13372C2.0813 7.09423 2.06652 7.05064 2.06058 7.00544C2.05465 6.96023 2.05767 6.9143 2.06949 6.87027C2.0813 6.82623 2.10167 6.78496 2.12944 6.74879C2.1572 6.71263 2.19182 6.68229 2.23131 6.65951C2.2708 6.63673 2.3144 6.62194 2.3596 6.61601C2.4048 6.61007 2.45073 6.6131 2.49477 6.62491C2.5388 6.63672 2.58008 6.6571 2.61624 6.68486C2.65241 6.71263 2.68274 6.74725 2.70553 6.78674ZM7.08913 7.26095C7.04963 7.23817 7.01502 7.20783 6.98725 7.17167C6.95948 7.13551 6.93911 7.09423 6.9273 7.0502C6.91548 7.00616 6.91246 6.96023 6.9184 6.91503C6.92433 6.86982 6.93911 6.82623 6.9619 6.78674C6.98468 6.74725 7.01502 6.71263 7.05118 6.68486C7.08734 6.6571 7.12862 6.63672 7.17265 6.62491C7.21669 6.6131 7.26262 6.61007 7.30782 6.61601C7.35303 6.62194 7.39662 6.63673 7.43611 6.65951C7.4756 6.68229 7.51022 6.71263 7.53799 6.74879C7.56575 6.78496 7.58613 6.82623 7.59794 6.87027C7.60975 6.9143 7.61278 6.96023 7.60684 7.00544C7.60091 7.05064 7.58612 7.09423 7.56334 7.13372C7.54056 7.17322 7.51022 7.20783 7.47406 7.2356C7.43789 7.26337 7.39662 7.28374 7.35258 7.29555C7.30855 7.30737 7.26262 7.31039 7.21741 7.30446C7.17221 7.29852 7.12862 7.28374 7.08913 7.26095ZM4.83371 5.2253C4.92574 5.2253 5.014 5.26186 5.07907 5.32693C5.14414 5.392 5.1807 5.48026 5.1807 5.57228C5.1807 5.66431 5.14414 5.75257 5.07907 5.81764C5.014 5.88271 4.92574 5.91927 4.83371 5.91927C4.74169 5.91927 4.65343 5.88271 4.58836 5.81764C4.52328 5.75257 4.48673 5.66431 4.48673 5.57228C4.48673 5.48026 4.52328 5.392 4.58836 5.32693C4.65343 5.26186 4.74169 5.2253 4.83371 5.2253Z",fill:e?"#5A58F2":"#6b7280"})}),t5e=new Wt,n5e=[{field:"image",type:"type.image",label:v("fields.image","Image")},{field:"primaryCta",type:"type.cta",label:v("fields.primaryCTA","Primary CTA")},{field:"secondaryCta",type:"type.cta",label:v("fields.secondaryCTA","Secondary CTA")}],a5e=[{field:"image",type:"type.image",label:v("fields.image","Image")},{field:"title",type:"type.string",label:v("fields.title","Title")},{field:"description",type:"type.rich_text_v2",label:v("fields.description","Description")},{field:"cta",type:"type.cta",label:v("fields.cta","CTA")}],i5e={"type.hero_section":n5e,"type.promo_section":a5e},o5e=e=>{if(!e)return;const t=i5e[e];if(!t){t5e.log(`No subfields found for ${e}`);return}return t},r5e=["type.hero_section","type.promo_section"],fp=e=>{const t={types:[e.filter.type]};return{type:"custom",label:e.label,render:({value:n,onChange:a})=>{const i=xs(),o=uf(i,t),r=s=>{const l=Object.fromEntries(Object.keys(n.constantValueOverride).map(u=>[u,s]));let d=n.field;n.constantValueEnabled&&!s&&o.length&&(d=o[0].name),a({field:d,constantValue:n.constantValue,constantValueEnabled:s,constantValueOverride:l})};return c.jsxs("div",{className:"ve-flex ve-flex-col ve-gap-3",children:[c.jsx(hp,{fieldTypeFilter:[e.filter.type],constantValueEnabled:!!n.constantValueEnabled,toggleConstantValueEnabled:r,label:M(e.label)}),!n.constantValueEnabled&&c.jsx(abe,{onChange:a,value:n,filter:t,hideSelectAFieldOption:!0}),c.jsx(s5e,{onChange:a,value:n,filter:e.filter,disallowTranslation:e.disallowTranslation??!1})]})}}},s5e=({filter:e,onChange:t,value:n,disallowTranslation:a})=>{const i=o5e(e.type);if(i&&n.constantValueOverride)return c.jsx("div",{className:"ObjectField",children:c.jsx("div",{className:"ObjectField-fieldset",children:i.map(({field:o,type:r,label:s},l)=>{var f,h,p;const d=b=>{t({constantValueOverride:{...n==null?void 0:n.constantValueOverride,[o]:b},field:n==null?void 0:n.field,constantValue:n==null?void 0:n.constantValue})},u=tbe(r,!1,a);if(u)return c.jsxs(g.Fragment,{children:[c.jsx("div",{className:"ve-mt-3 first:ve-mt-0",children:c.jsx(hp,{fieldTypeFilter:[r],constantValueEnabled:(f=n==null?void 0:n.constantValueOverride)==null?void 0:f[o],toggleConstantValueEnabled:d,label:s,showLocale:(r==="type.string"||r==="type.rich_text_v2")&&!a})}),((h=n==null?void 0:n.constantValueOverride)==null?void 0:h[o])&&c.jsx("div",{children:c.jsx(be.AutoField,{onChange:(b,m)=>t({field:n==null?void 0:n.field,constantValue:{...n==null?void 0:n.constantValue,[o]:b},constantValueEnabled:n==null?void 0:n.constantValueEnabled,constantValueOverride:{...n==null?void 0:n.constantValueOverride,[o]:!0}},m),value:(p=n.constantValue)==null?void 0:p[o],field:u})})]},l)})})})},Of=new Wt,Ff={"type.string":R3e,"type.rich_text_v2":_3e,"type.phone":Q0e,"type.image":j3e,"type.address":I3e,"type.cta":H3e,"type.events_section":WPe,"type.insights_section":GPe,"type.products_section":KPe,"type.faq_section":YPe,"type.team_section":XPe,"type.testimonials_section":JPe},jf=()=>({"type.string":D3e,"type.image":zPe()}),l5e={"type.string":p0,"type.rich_text_v2":p0},c5e={"type.string":m0,"type.rich_text_v2":m0},tbe=(e,t,n)=>{if(t)return n?c5e[e]??jf()[e]:jf()[e];const a=n?l5e[e]??Ff[e]:Ff[e];if(!a){Of.log(`No constant configuration for ${e}`);return}return a},d5e=(e,t,n)=>{if(!e)return;let a;for(const i of e){const o=tbe(i,t,n);if(!o){Of.log(`No mapped configuration for ${i}`);return}if(a||(a=o),a!==o){Of.log(`Could not resolve configuration for ${i}`);return}}return a},hc=e=>({type:"custom",render:({value:t,onChange:n})=>{var i;const a=o=>{n({field:(t==null?void 0:t.field)??"",constantValue:(t==null?void 0:t.constantValue)??"",constantValueEnabled:o})};return c.jsxs(c.Fragment,{children:[c.jsx(hp,{fieldTypeFilter:e.filter.types??[],constantValueEnabled:t==null?void 0:t.constantValueEnabled,toggleConstantValueEnabled:a,disableConstantValue:e.disableConstantValueToggle,label:M(e.label),showLocale:((i=e.filter.types)==null?void 0:i.includes("type.string"))&&!e.disallowTranslation}),(t==null?void 0:t.constantValueEnabled)&&c.jsx(u5e,{onChange:n,value:t,filter:e.filter,disallowTranslation:e.disallowTranslation}),!(t!=null&&t.constantValueEnabled)&&c.jsx(abe,{className:"ve-pt-3",onChange:n,value:t,filter:e.filter})]})}}),hp=({fieldTypeFilter:e,constantValueEnabled:t,toggleConstantValueEnabled:n,disableConstantValue:a,label:i,showLocale:o})=>{const r=!a&&(e.some(d=>Object.keys(Ff).includes(d)||Object.keys(jf).includes(d))||e.some(d=>r5e.includes(d))),{i18n:s}=he(),l=s.language;return c.jsxs("div",{className:"ve-w-full ve-flex ve-gap-3",children:[r&&c.jsx(Jh,{children:c.jsxs(ep,{children:[c.jsx(tp,{asChild:!0,children:c.jsx("div",{className:"ve-flex ve-flex-row ve-self-center",children:c.jsx(ap,{onCheckedChange:d=>n(!d),checked:!t,icon:c.jsx(ebe,{enabled:!t}),className:"data-[state=unchecked]:ve-bg-gray-500"})})}),c.jsxs(Yc,{children:[t?M("staticContent","Static content"):M("knowledgeGraphContent","Knowledge Graph content"),c.jsx(np,{fill:"ve-bg-popover"})]})]})}),c.jsx("p",{className:"ve-self-center ve-text-sm ve-text-gray-800 ve-font-semibold",children:o&&t?`${M(i)} (${l})`:`${M(i)}`})]})},u5e=({filter:e,onChange:t,value:n,disallowTranslation:a})=>{var d,u;const i=d5e(e.types,!!e.includeListsOnly,!!a),{i18n:o}=he(),r=o.language;if(!i)return;const l=((d=e.types)==null?void 0:d.includes("type.string"))?c.jsx("div",{className:"ve-pt-3",children:c.jsx(op,{value:((u=n==null?void 0:n.constantValue)==null?void 0:u[r])??"",onChange:f=>{t({field:(n==null?void 0:n.field)??"",constantValue:{...n==null?void 0:n.constantValue,[r]:f},constantValueEnabled:!0})},filter:e})}):c.jsx(be.AutoField,{onChange:(f,h)=>t({field:(n==null?void 0:n.field)??"",constantValue:f,constantValueEnabled:!0},h),value:n==null?void 0:n.constantValue,field:i});return i.type==="custom"?l:c.jsx(be.FieldLabel,{label:i.label??"Value",className:`ve-inline-block w-full ${i.label?"ve-pt-3":""}`,children:l})},nbe=(e,t)=>{let n=uf(e,t);return t.directChildrenOf&&n.length===0&&(n=uf(e,{allowList:[t.directChildrenOf],types:t.types,includeListsOnly:!0})),n.sort((a,i)=>{const o=(a.displayName??a.name).toUpperCase(),r=(i.displayName??i.name).toUpperCase();return o<r?-1:o>r?1:0})},abe=({filter:e,onChange:t,value:n,className:a,hideSelectAFieldOption:i})=>{const o=xs(),r=ETe(),s=g.useMemo(()=>{const l=nbe(o,e),d=l.map(f=>({label:f.displayName??f.name,value:f.name})),u=i?[...d]:[{value:"",label:M("basicSelectorContentLabel","Select a Content field")},...d];return i&&!n.constantValueEnabled&&(l.length>0&&n.field===""&&t({...n,field:l[0].name}),l.length===0&&n.field!==""&&t({...n,field:""})),hs({label:r.entityTypeDisplayName+" "+M("field","Field"),options:u,translateOptions:!1,noOptionsPlaceholder:M("noAvailableFields","No available fields"),noOptionsMessage:f5e(e),icon:null})},[o,e]);return c.jsx("div",{className:"ve-inline-block ve-w-full "+a,children:c.jsx(be.AutoField,{field:s,onChange:(l,d)=>{t({field:l,constantValue:(n==null?void 0:n.constantValue)??"",constantValueEnabled:!1,constantValueOverride:n==null?void 0:n.constantValueOverride},d)},value:n==null?void 0:n.field})})},f5e=e=>{var t;if(!(!((t=e.types)!=null&&t.length)||e.allowList)){if(e.types.includes("type.hero_section"))return M("noHeroFieldsMsg","To use entity content for this section, add a Hero Section field to your page group's entity type.");if(e.types.includes("type.promo_section"))return M("noPromoFieldsMsg","To use entity content for this section, add a Promo Section field to your page group's entity type.")}},h5e="2.15.0",xb={version:h5e},ibe=({children:e,document:t})=>(g.useEffect(()=>{if(t){if(!t.getElementById("mapbox-script")){const n=t.createElement("script");n.id="mapbox-script",n.src=`https://api.mapbox.com/mapbox-gl-js/v${xb.version}/mapbox-gl.js`,t.body.appendChild(n)}if(!t.getElementById("mapbox-stylesheet")){const n=t.createElement("link");n.id="mapbox-stylesheet",n.href=`https://api.mapbox.com/mapbox-gl-js/v${xb.version}/mapbox-gl.css`,n.rel="stylesheet",t.body.appendChild(n)}}},[t]),c.jsx(c.Fragment,{children:e})),so=new Wt,p5e=({puckConfig:e,puckInitialHistory:t,isLoading:n,clearHistory:a,templateMetadata:i,layoutSaveState:o,saveLayoutSaveState:r,publishLayout:s,sendLayoutForApproval:l,sendDevSaveStateData:d,buildVisualConfigLocalStorageKey:u,localDev:f})=>{const[h,p]=g.useState(!1),[b,m]=g.useState(!1),y=g.useRef(0),{i18n:S}=Nn(),w=g.useCallback((_,B)=>{if(B!==0&&y.current!==B&&_.length>0){if(so.logFunc("handleHistoryChange"),so.logData("PUCK_INDEX",B),so.logData("PUCK_HISTORY",_),y.current=B,(f||i.isDevMode)&&(so.logFunc("saveLayoutToLocalStorage"),window.localStorage.setItem(u(),ar.compress(JSON.stringify(_))),f))return;(o==null?void 0:o.hash)!==_[B].id&&(i.isDevMode&&!i.devOverride?(so.logFunc("sendDevSaveStateData"),d({payload:{devSaveStateData:JSON.stringify(_[B].state.data)}})):(so.logFunc("saveLayoutSaveState"),r({payload:{hash:_[B].id,history:JSON.stringify(_[B].state)}})))}},[i,u,o]),C=()=>{a(),y.current=0},$=async _=>{s({payload:{layoutData:JSON.stringify(_)}})},x=async(_,B)=>{l({payload:{layoutData:JSON.stringify(_),comment:B}})},L=async()=>{if(!n&&!h){p(!0);return}},A=_=>{_&&navigator.clipboard.writeText(JSON.stringify(_,null,2))},E=async(_,B,U)=>{if(B!==void 0)try{const ee=await navigator.clipboard.readText(),Y=JSON.parse(ee);if(!Y.props||!Y.type||Y.type!==U){alert("Failed to paste: Invalid component data.");return}_({type:"set",state:re=>{const Z=[...re.data.content];return B!==void 0&&Z[B]&&(Z[B]={...Z[B],props:{...Y.props,id:Z[B].props.id}}),{...re,data:{...re.data,content:Z}}}})}catch{alert("Failed to paste: Invalid component data.")}},z=g.useMemo(()=>{const _={};return Object.entries(e.components).forEach(([B,U])=>{_[B]={...U,label:M(U.label??"")}}),{categories:e.categories,components:_,root:{...e.root,fields:{title:hc({label:v("fields.title","Title"),filter:{types:["type.string"]}}),description:hc({label:v("fields.description","Description"),filter:{types:["type.string"]}})},defaultProps:{title:{field:"name",constantValue:"",constantValueEnabled:!1},description:{field:"description",constantValue:"",constantValueEnabled:!1}}}}},[e,S.language]);return c.jsx(vme,{children:c.jsx(be.Puck,{config:z,data:{},initialHistory:t,onChange:L,overrides:{header:()=>c.jsx(A3e,{templateMetadata:i,clearLocalChangesModalOpen:b,setClearLocalChangesModalOpen:m,onClearLocalChanges:C,onHistoryChange:w,onPublishLayout:$,onSendLayoutForApproval:x,isDevMode:i.isDevMode,localDev:f}),iframe:ibe,fieldTypes:{array:g5e,number:lo,object:lo,radio:lo,select:lo,text:lo,textarea:lo},actionBar:({children:_,label:B})=>{var V,I;const{appState:U,dispatch:ee}=be.usePuck(),Y=(V=U.ui.itemSelector)==null?void 0:V.index,re=(I=U.ui.itemSelector)==null?void 0:I.zone,Z=U.data.content.find((D,F)=>F===Y&&re==="default-zone"),G=Z==null?void 0:Z.type,J=c.jsxs(c.Fragment,{children:[c.jsx(be.ActionBar.Action,{label:M("actions.copyToClipboard","Copy to Clipboard"),onClick:()=>A(Z),children:c.jsx(Kwe,{size:16})}),c.jsx(be.ActionBar.Action,{label:M("actions.pasteFromClipboard","Paste from Clipboard"),onClick:async()=>await E(ee,Y,G),children:c.jsx(qwe,{size:16})})]});return c.jsx(be.ActionBar,{label:B,children:c.jsxs(be.ActionBar.Group,{children:[J,_]})})}}})})},lo=({children:e})=>{const t=n=>g.isValidElement(n)?typeof n.props.children=="string"?g.cloneElement(n,{...n.props,children:M(n.props.children)}):"label"in n.props&&"icon"in n.props||"title"in n.props?g.cloneElement(n,{...n.props,children:g.Children.map(n.props.children,t),label:n.props.label?M(n.props.label):void 0,title:n.props.title?M(n.props.title):void 0}):g.cloneElement(n,{children:g.Children.map(n.props.children,t)}):n;return c.jsx(c.Fragment,{children:g.Children.map(e,t)})},g5e=({children:e})=>{if(g.isValidElement(e))return g.cloneElement(e,{...e.props,label:M(e.props.label)})},m5e="TEMPLATE_",b5e="LAYOUT_",y5e="ENTITY_",v5e=new Wt,obe=(e,t=!1)=>{const n=g.useCallback(()=>e?k5e(e.isDevMode&&!e.devOverride,t,e.templateId,e.layoutId,e.entityId):"",[e]);return{clearVisualConfigLocalStorage:()=>{v5e.logFunc("clearVisualConfigLocalStorage"),window.localStorage.removeItem(n())},buildVisualConfigLocalStorageKey:n}};function k5e(e,t,n,a,i){const o=e?"dev":"";if(!n||!i&&!a)throw new Error(`Unable to generate local storage key, missing query parameters${!i&&" entityId"}${!a&&" layoutId"}`);let r=o+m5e+n;return a&&(r+=b5e+a),t&&i&&(r+=y5e+i),r}const S5e=()=>{const{sendToParent:e}=Jt("saveLayoutSaveState",ct),{sendToParent:t}=Jt("deleteLayoutSaveState",ct),{sendToParent:n}=Jt("sendLayoutForApproval",ct),{sendToParent:a}=Jt("publishLayout",ct);return{saveLayoutSaveState:e,deleteLayoutSaveState:t,sendLayoutForApproval:n,publishLayout:a}},w5e=new Wt,x5e=(e,t)=>{const{iFrameLoaded:n}=zi();g.useEffect(()=>{n({payload:{message:"Layout Editor is loaded"}})},[]);const[a,i]=g.useState(),[o,r]=g.useState(e);return Ea("getLayoutSaveState",ct,(s,l)=>{let d;if(l!=null&&l.history){const u=JSON.parse(l.history),f={...u,data:nr(u.data,tr)};d={hash:l.hash,history:f}}w5e.logData("LAYOUT_SAVE_STATE",d),i(d),r(!0),s({status:"success",payload:{message:"layoutSaveState received"}})}),{layoutSaveState:a,layoutSaveStateFetched:o}},$5e="SITE_",C5e="THEME_",T5e=new Wt,rbe=e=>{const t=g.useCallback(()=>e!=null&&e.themeEntityId?L5e(e.isDevMode,e.siteId,e.themeEntityId):"",[e]);return{clearThemeLocalStorage:()=>{T5e.logFunc("clearThemeLocalStorage"),window.localStorage.removeItem(t())},buildThemeLocalStorageKey:t}};function L5e(e,t,n){if(!n)throw new Error("Unable to generate local storage key for themes, missing themeId");return(e?"dev":"")+$5e+t+C5e+n}const pp=({minProgress:e=0,maxProgress:t=100,completionCriteria:n})=>{const a=g.useMemo(()=>n.includes(!1),[n]),i=g.useMemo(()=>{const o=n.filter(Boolean).length,r=n.length,s=r>0?o/r:0;return Math.round(e+s*(t-e))},[n,e,t]);return{isLoading:a,progress:i}},Sa=new Wt,A5e=e=>{const{puckConfig:t,templateMetadata:n,layoutData:a,themeData:i,themeConfig:o,localDev:r}=e,{saveLayoutSaveState:s,publishLayout:l,sendLayoutForApproval:d,deleteLayoutSaveState:u}=S5e(),{sendDevLayoutSaveStateData:f,sendDevThemeSaveStateData:h}=zi(),{layoutSaveState:p,layoutSaveStateFetched:b}=x5e(r),{buildVisualConfigLocalStorageKey:m,clearVisualConfigLocalStorage:y}=obe(n),{buildThemeLocalStorageKey:S}=rbe(n),[w,C]=g.useState(),[$,x]=g.useState(!1),L=()=>{Sa.logFunc("clearHistory"),y(),!r&&u()};g.useEffect(()=>{if(o){if(n.isDevMode){const _=ar.decompress(window.localStorage.getItem(S())||""),B=_?JSON.parse(_):[];if(B.length>0){const U=B[B.length-1].data;Sa.log("Layout Dev Mode - Using theme data from local storage"),h({payload:{devThemeSaveStateData:JSON.stringify(U)}}),Qo(U,o);return}}i&&Qo(i,o)}},[i,o,n]);const A=g.useCallback(()=>{if(n){if(Sa.logFunc("loadPuckInitialHistory"),n.isDevMode&&!n.devOverride){const _=ar.decompress(window.localStorage.getItem(m())||"");if(_){Sa.log("Layout Dev Mode - Using layout data from localStorage");const B=JSON.parse(_).map(ee=>({id:ee.id,state:{data:nr(ee.state.data),ui:ee.state.ui}})),U=B.length-1;C({histories:B,index:U,appendData:!1}),x(!0);return}Sa.log("Layout Dev Mode - No localStorage. Using layout data from Content"),a&&C({histories:[{id:"root",state:{data:a}}],appendData:!1}),x(!0);return}if(!p){y(),Sa.log("Layout Prod Mode - No saveState. Using layout data from Content"),a&&C({histories:[{id:"root",state:{data:a}}],appendData:!1}),x(!0);return}Sa.log("Layout Prod Mode - Using layout saveState"),C({histories:a?[{id:"root",state:{data:a}},{id:p.hash,state:{data:p.history.data}}]:[{id:p.hash,state:{data:p.history.data}}],index:a?1:0,appendData:!1}),x(!0)}},[C,x,y,m]);g.useEffect(()=>{b&&A()},[n,b]),g.useEffect(()=>{w&&Sa.logData("PUCK_INITIAL_HISTORY",w)},[w]),g.useEffect(()=>{if(!$)return;const _=w==null?void 0:w.histories[w.histories.length-1].state.data;Sa.logFunc("sendDevSaveStateData useEffect"),f({payload:{devSaveStateData:JSON.stringify(_)}})},[$,w,n]);const{isLoading:E,progress:z}=pp({minProgress:60,completionCriteria:[$,b]});return E?c.jsx(Xh,{progress:z,platformLanguageIsSet:!!(n!=null&&n.platformLocale)}):c.jsx(p5e,{puckConfig:t,puckInitialHistory:w,isLoading:E,clearHistory:L,templateMetadata:n,layoutSaveState:p,saveLayoutSaveState:s,publishLayout:l,sendLayoutForApproval:d,sendDevSaveStateData:f,buildVisualConfigLocalStorageKey:m,localDev:r})},N5e=di("ve-relative ve-rounded ve-border ve-mx-4 ve-my-3 ve-p-4 ve-[&>svg~*]:pl-7 ve-[&>svg+div]:translate-y-[-3px] ve-[&>svg]:absolute ve-[&>svg]:left-4 ve-[&>svg]:top-4 ve-[&>svg]:text-foreground",{variants:{variant:{default:"ve-bg-background ve-text-foreground",destructive:"ve-border-destructive/50 ve-text-destructive ve-dark:border-destructive ve-[&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Mf=g.forwardRef(({className:e,variant:t,...n},a)=>c.jsx("div",{ref:a,role:"alert",className:tt(N5e({variant:t}),e),...n}));Mf.displayName="Alert";const E5e=g.forwardRef(({className:e,...t},n)=>c.jsx("h5",{ref:n,className:tt("ve-mb-1 ve-font-medium ve-leading-none ve-tracking-tight",e),...t}));E5e.displayName="AlertTitle";const Rf=g.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:tt("ve-text-sm [&_p]:ve-leading-relaxed",e),...t}));Rf.displayName="AlertDescription";var Cn={},Es={},P5e=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,sbe=P5e,O5e=sbe,F5e=typeof self=="object"&&self&&self.Object===Object&&self,j5e=O5e||F5e||Function("return this")(),ma=j5e,M5e=ma,R5e=M5e.Symbol,Ps=R5e,$b=Ps,lbe=Object.prototype,_5e=lbe.hasOwnProperty,I5e=lbe.toString,Hr=$b?$b.toStringTag:void 0;function D5e(e){var t=_5e.call(e,Hr),n=e[Hr];try{e[Hr]=void 0;var a=!0}catch{}var i=I5e.call(e);return a&&(t?e[Hr]=n:delete e[Hr]),i}var H5e=D5e,z5e=Object.prototype,B5e=z5e.toString;function W5e(e){return B5e.call(e)}var V5e=W5e,Cb=Ps,G5e=H5e,U5e=V5e,K5e="[object Null]",q5e="[object Undefined]",Tb=Cb?Cb.toStringTag:void 0;function Y5e(e){return e==null?e===void 0?q5e:K5e:Tb&&Tb in Object(e)?G5e(e):U5e(e)}var Wi=Y5e,Z5e=Array.isArray,qn=Z5e;function X5e(e){return e!=null&&typeof e=="object"}var Ha=X5e,Q5e=Wi,J5e=qn,eOe=Ha,tOe="[object String]";function nOe(e){return typeof e=="string"||!J5e(e)&&eOe(e)&&Q5e(e)==tOe}var aOe=nOe;function iOe(e){return function(t,n,a){for(var i=-1,o=Object(t),r=a(t),s=r.length;s--;){var l=r[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var oOe=iOe,rOe=oOe,sOe=rOe(),lOe=sOe;function cOe(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var dOe=cOe,uOe=Wi,fOe=Ha,hOe="[object Arguments]";function pOe(e){return fOe(e)&&uOe(e)==hOe}var gOe=pOe,Lb=gOe,mOe=Ha,cbe=Object.prototype,bOe=cbe.hasOwnProperty,yOe=cbe.propertyIsEnumerable,vOe=Lb(function(){return arguments}())?Lb:function(e){return mOe(e)&&bOe.call(e,"callee")&&!yOe.call(e,"callee")},dbe=vOe,pc={exports:{}};function kOe(){return!1}var SOe=kOe;pc.exports;(function(e,t){var n=ma,a=SOe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,r=o&&o.exports===i,s=r?n.Buffer:void 0,l=s?s.isBuffer:void 0,d=l||a;e.exports=d})(pc,pc.exports);var gp=pc.exports,wOe=9007199254740991,xOe=/^(?:0|[1-9]\d*)$/;function $Oe(e,t){var n=typeof e;return t=t??wOe,!!t&&(n=="number"||n!="symbol"&&xOe.test(e))&&e>-1&&e%1==0&&e<t}var ube=$Oe,COe=9007199254740991;function TOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=COe}var mp=TOe,LOe=Wi,AOe=mp,NOe=Ha,EOe="[object Arguments]",POe="[object Array]",OOe="[object Boolean]",FOe="[object Date]",jOe="[object Error]",MOe="[object Function]",ROe="[object Map]",_Oe="[object Number]",IOe="[object Object]",DOe="[object RegExp]",HOe="[object Set]",zOe="[object String]",BOe="[object WeakMap]",WOe="[object ArrayBuffer]",VOe="[object DataView]",GOe="[object Float32Array]",UOe="[object Float64Array]",KOe="[object Int8Array]",qOe="[object Int16Array]",YOe="[object Int32Array]",ZOe="[object Uint8Array]",XOe="[object Uint8ClampedArray]",QOe="[object Uint16Array]",JOe="[object Uint32Array]",at={};at[GOe]=at[UOe]=at[KOe]=at[qOe]=at[YOe]=at[ZOe]=at[XOe]=at[QOe]=at[JOe]=!0;at[EOe]=at[POe]=at[WOe]=at[OOe]=at[VOe]=at[FOe]=at[jOe]=at[MOe]=at[ROe]=at[_Oe]=at[IOe]=at[DOe]=at[HOe]=at[zOe]=at[BOe]=!1;function e8e(e){return NOe(e)&&AOe(e.length)&&!!at[LOe(e)]}var t8e=e8e;function n8e(e){return function(t){return e(t)}}var bp=n8e,gc={exports:{}};gc.exports;(function(e,t){var n=sbe,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,r=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||r&&r.binding&&r.binding("util")}catch{}}();e.exports=s})(gc,gc.exports);var yp=gc.exports,a8e=t8e,i8e=bp,Ab=yp,Nb=Ab&&Ab.isTypedArray,o8e=Nb?i8e(Nb):a8e,fbe=o8e,r8e=dOe,s8e=dbe,l8e=qn,c8e=gp,d8e=ube,u8e=fbe,f8e=Object.prototype,h8e=f8e.hasOwnProperty;function p8e(e,t){var n=l8e(e),a=!n&&s8e(e),i=!n&&!a&&c8e(e),o=!n&&!a&&!i&&u8e(e),r=n||a||i||o,s=r?r8e(e.length,String):[],l=s.length;for(var d in e)(t||h8e.call(e,d))&&!(r&&(d=="length"||i&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||d8e(d,l)))&&s.push(d);return s}var hbe=p8e,g8e=Object.prototype;function m8e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||g8e;return e===n}var vp=m8e;function b8e(e,t){return function(n){return e(t(n))}}var pbe=b8e,y8e=pbe,v8e=y8e(Object.keys,Object),k8e=v8e,S8e=vp,w8e=k8e,x8e=Object.prototype,$8e=x8e.hasOwnProperty;function C8e(e){if(!S8e(e))return w8e(e);var t=[];for(var n in Object(e))$8e.call(e,n)&&n!="constructor"&&t.push(n);return t}var T8e=C8e;function L8e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gr=L8e,A8e=Wi,N8e=gr,E8e="[object AsyncFunction]",P8e="[object Function]",O8e="[object GeneratorFunction]",F8e="[object Proxy]";function j8e(e){if(!N8e(e))return!1;var t=A8e(e);return t==P8e||t==O8e||t==E8e||t==F8e}var gbe=j8e,M8e=gbe,R8e=mp;function _8e(e){return e!=null&&R8e(e.length)&&!M8e(e)}var id=_8e,I8e=hbe,D8e=T8e,H8e=id;function z8e(e){return H8e(e)?I8e(e):D8e(e)}var Os=z8e,B8e=lOe,W8e=Os;function V8e(e,t){return e&&B8e(e,t,W8e)}var mbe=V8e;function G8e(e){return e}var bbe=G8e,U8e=bbe;function K8e(e){return typeof e=="function"?e:U8e}var q8e=K8e,Y8e=mbe,Z8e=q8e;function X8e(e,t){return e&&Y8e(e,Z8e(t))}var kp=X8e,Q8e=pbe,J8e=Q8e(Object.getPrototypeOf,Object),Sp=J8e,e6e=Wi,t6e=Sp,n6e=Ha,a6e="[object Object]",i6e=Function.prototype,o6e=Object.prototype,ybe=i6e.toString,r6e=o6e.hasOwnProperty,s6e=ybe.call(Object);function l6e(e){if(!n6e(e)||e6e(e)!=a6e)return!1;var t=t6e(e);if(t===null)return!0;var n=r6e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ybe.call(n)==s6e}var c6e=l6e;function d6e(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}var vbe=d6e;function u6e(){this.__data__=[],this.size=0}var f6e=u6e;function h6e(e,t){return e===t||e!==e&&t!==t}var wp=h6e,p6e=wp;function g6e(e,t){for(var n=e.length;n--;)if(p6e(e[n][0],t))return n;return-1}var od=g6e,m6e=od,b6e=Array.prototype,y6e=b6e.splice;function v6e(e){var t=this.__data__,n=m6e(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():y6e.call(t,n,1),--this.size,!0}var k6e=v6e,S6e=od;function w6e(e){var t=this.__data__,n=S6e(t,e);return n<0?void 0:t[n][1]}var x6e=w6e,$6e=od;function C6e(e){return $6e(this.__data__,e)>-1}var T6e=C6e,L6e=od;function A6e(e,t){var n=this.__data__,a=L6e(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var N6e=A6e,E6e=f6e,P6e=k6e,O6e=x6e,F6e=T6e,j6e=N6e;function mr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}mr.prototype.clear=E6e;mr.prototype.delete=P6e;mr.prototype.get=O6e;mr.prototype.has=F6e;mr.prototype.set=j6e;var rd=mr,M6e=rd;function R6e(){this.__data__=new M6e,this.size=0}var _6e=R6e;function I6e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var D6e=I6e;function H6e(e){return this.__data__.get(e)}var z6e=H6e;function B6e(e){return this.__data__.has(e)}var W6e=B6e,V6e=ma,G6e=V6e["__core-js_shared__"],U6e=G6e,lu=U6e,Eb=function(){var e=/[^.]+$/.exec(lu&&lu.keys&&lu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function K6e(e){return!!Eb&&Eb in e}var q6e=K6e,Y6e=Function.prototype,Z6e=Y6e.toString;function X6e(e){if(e!=null){try{return Z6e.call(e)}catch{}try{return e+""}catch{}}return""}var kbe=X6e,Q6e=gbe,J6e=q6e,e9e=gr,t9e=kbe,n9e=/[\\^$.*+?()[\]{}|]/g,a9e=/^\[object .+?Constructor\]$/,i9e=Function.prototype,o9e=Object.prototype,r9e=i9e.toString,s9e=o9e.hasOwnProperty,l9e=RegExp("^"+r9e.call(s9e).replace(n9e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c9e(e){if(!e9e(e)||J6e(e))return!1;var t=Q6e(e)?l9e:a9e;return t.test(t9e(e))}var d9e=c9e;function u9e(e,t){return e==null?void 0:e[t]}var f9e=u9e,h9e=d9e,p9e=f9e;function g9e(e,t){var n=p9e(e,t);return h9e(n)?n:void 0}var Vi=g9e,m9e=Vi,b9e=ma,y9e=m9e(b9e,"Map"),xp=y9e,v9e=Vi,k9e=v9e(Object,"create"),sd=k9e,Pb=sd;function S9e(){this.__data__=Pb?Pb(null):{},this.size=0}var w9e=S9e;function x9e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $9e=x9e,C9e=sd,T9e="__lodash_hash_undefined__",L9e=Object.prototype,A9e=L9e.hasOwnProperty;function N9e(e){var t=this.__data__;if(C9e){var n=t[e];return n===T9e?void 0:n}return A9e.call(t,e)?t[e]:void 0}var E9e=N9e,P9e=sd,O9e=Object.prototype,F9e=O9e.hasOwnProperty;function j9e(e){var t=this.__data__;return P9e?t[e]!==void 0:F9e.call(t,e)}var M9e=j9e,R9e=sd,_9e="__lodash_hash_undefined__";function I9e(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=R9e&&t===void 0?_9e:t,this}var D9e=I9e,H9e=w9e,z9e=$9e,B9e=E9e,W9e=M9e,V9e=D9e;function br(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}br.prototype.clear=H9e;br.prototype.delete=z9e;br.prototype.get=B9e;br.prototype.has=W9e;br.prototype.set=V9e;var G9e=br,Ob=G9e,U9e=rd,K9e=xp;function q9e(){this.size=0,this.__data__={hash:new Ob,map:new(K9e||U9e),string:new Ob}}var Y9e=q9e;function Z9e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var X9e=Z9e,Q9e=X9e;function J9e(e,t){var n=e.__data__;return Q9e(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ld=J9e,e7e=ld;function t7e(e){var t=e7e(this,e).delete(e);return this.size-=t?1:0,t}var n7e=t7e,a7e=ld;function i7e(e){return a7e(this,e).get(e)}var o7e=i7e,r7e=ld;function s7e(e){return r7e(this,e).has(e)}var l7e=s7e,c7e=ld;function d7e(e,t){var n=c7e(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var u7e=d7e,f7e=Y9e,h7e=n7e,p7e=o7e,g7e=l7e,m7e=u7e;function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}yr.prototype.clear=f7e;yr.prototype.delete=h7e;yr.prototype.get=p7e;yr.prototype.has=g7e;yr.prototype.set=m7e;var $p=yr,b7e=rd,y7e=xp,v7e=$p,k7e=200;function S7e(e,t){var n=this.__data__;if(n instanceof b7e){var a=n.__data__;if(!y7e||a.length<k7e-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new v7e(a)}return n.set(e,t),this.size=n.size,this}var w7e=S7e,x7e=rd,$7e=_6e,C7e=D6e,T7e=z6e,L7e=W6e,A7e=w7e;function vr(e){var t=this.__data__=new x7e(e);this.size=t.size}vr.prototype.clear=$7e;vr.prototype.delete=C7e;vr.prototype.get=T7e;vr.prototype.has=L7e;vr.prototype.set=A7e;var Cp=vr,N7e="__lodash_hash_undefined__";function E7e(e){return this.__data__.set(e,N7e),this}var P7e=E7e;function O7e(e){return this.__data__.has(e)}var F7e=O7e,j7e=$p,M7e=P7e,R7e=F7e;function mc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new j7e;++t<n;)this.add(e[t])}mc.prototype.add=mc.prototype.push=M7e;mc.prototype.has=R7e;var _7e=mc;function I7e(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var D7e=I7e;function H7e(e,t){return e.has(t)}var z7e=H7e,B7e=_7e,W7e=D7e,V7e=z7e,G7e=1,U7e=2;function K7e(e,t,n,a,i,o){var r=n&G7e,s=e.length,l=t.length;if(s!=l&&!(r&&l>s))return!1;var d=o.get(e),u=o.get(t);if(d&&u)return d==t&&u==e;var f=-1,h=!0,p=n&U7e?new B7e:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var b=e[f],m=t[f];if(a)var y=r?a(m,b,f,t,e,o):a(b,m,f,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!W7e(t,function(S,w){if(!V7e(p,w)&&(b===S||i(b,S,n,a,o)))return p.push(w)})){h=!1;break}}else if(!(b===m||i(b,m,n,a,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var Sbe=K7e,q7e=ma,Y7e=q7e.Uint8Array,wbe=Y7e;function Z7e(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}var X7e=Z7e;function Q7e(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}var J7e=Q7e,Fb=Ps,jb=wbe,eFe=wp,tFe=Sbe,nFe=X7e,aFe=J7e,iFe=1,oFe=2,rFe="[object Boolean]",sFe="[object Date]",lFe="[object Error]",cFe="[object Map]",dFe="[object Number]",uFe="[object RegExp]",fFe="[object Set]",hFe="[object String]",pFe="[object Symbol]",gFe="[object ArrayBuffer]",mFe="[object DataView]",Mb=Fb?Fb.prototype:void 0,cu=Mb?Mb.valueOf:void 0;function bFe(e,t,n,a,i,o,r){switch(n){case mFe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gFe:return!(e.byteLength!=t.byteLength||!o(new jb(e),new jb(t)));case rFe:case sFe:case dFe:return eFe(+e,+t);case lFe:return e.name==t.name&&e.message==t.message;case uFe:case hFe:return e==t+"";case cFe:var s=nFe;case fFe:var l=a&iFe;if(s||(s=aFe),e.size!=t.size&&!l)return!1;var d=r.get(e);if(d)return d==t;a|=oFe,r.set(e,t);var u=tFe(s(e),s(t),a,i,o,r);return r.delete(e),u;case pFe:if(cu)return cu.call(e)==cu.call(t)}return!1}var yFe=bFe;function vFe(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}var xbe=vFe,kFe=xbe,SFe=qn;function wFe(e,t,n){var a=t(e);return SFe(e)?a:kFe(a,n(e))}var $be=wFe;function xFe(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var r=e[n];t(r,n,e)&&(o[i++]=r)}return o}var $Fe=xFe;function CFe(){return[]}var Cbe=CFe,TFe=$Fe,LFe=Cbe,AFe=Object.prototype,NFe=AFe.propertyIsEnumerable,Rb=Object.getOwnPropertySymbols,EFe=Rb?function(e){return e==null?[]:(e=Object(e),TFe(Rb(e),function(t){return NFe.call(e,t)}))}:LFe,Tp=EFe,PFe=$be,OFe=Tp,FFe=Os;function jFe(e){return PFe(e,FFe,OFe)}var Tbe=jFe,_b=Tbe,MFe=1,RFe=Object.prototype,_Fe=RFe.hasOwnProperty;function IFe(e,t,n,a,i,o){var r=n&MFe,s=_b(e),l=s.length,d=_b(t),u=d.length;if(l!=u&&!r)return!1;for(var f=l;f--;){var h=s[f];if(!(r?h in t:_Fe.call(t,h)))return!1}var p=o.get(e),b=o.get(t);if(p&&b)return p==t&&b==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=r;++f<l;){h=s[f];var S=e[h],w=t[h];if(a)var C=r?a(w,S,h,t,e,o):a(S,w,h,e,t,o);if(!(C===void 0?S===w||i(S,w,n,a,o):C)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var $=e.constructor,x=t.constructor;$!=x&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}var DFe=IFe,HFe=Vi,zFe=ma,BFe=HFe(zFe,"DataView"),WFe=BFe,VFe=Vi,GFe=ma,UFe=VFe(GFe,"Promise"),KFe=UFe,qFe=Vi,YFe=ma,ZFe=qFe(YFe,"Set"),XFe=ZFe,QFe=Vi,JFe=ma,eje=QFe(JFe,"WeakMap"),tje=eje,_f=WFe,If=xp,Df=KFe,Hf=XFe,zf=tje,Lbe=Wi,kr=kbe,Ib="[object Map]",nje="[object Object]",Db="[object Promise]",Hb="[object Set]",zb="[object WeakMap]",Bb="[object DataView]",aje=kr(_f),ije=kr(If),oje=kr(Df),rje=kr(Hf),sje=kr(zf),wi=Lbe;(_f&&wi(new _f(new ArrayBuffer(1)))!=Bb||If&&wi(new If)!=Ib||Df&&wi(Df.resolve())!=Db||Hf&&wi(new Hf)!=Hb||zf&&wi(new zf)!=zb)&&(wi=function(e){var t=Lbe(e),n=t==nje?e.constructor:void 0,a=n?kr(n):"";if(a)switch(a){case aje:return Bb;case ije:return Ib;case oje:return Db;case rje:return Hb;case sje:return zb}return t});var cd=wi,du=Cp,lje=Sbe,cje=yFe,dje=DFe,Wb=cd,Vb=qn,Gb=gp,uje=fbe,fje=1,Ub="[object Arguments]",Kb="[object Array]",sl="[object Object]",hje=Object.prototype,qb=hje.hasOwnProperty;function pje(e,t,n,a,i,o){var r=Vb(e),s=Vb(t),l=r?Kb:Wb(e),d=s?Kb:Wb(t);l=l==Ub?sl:l,d=d==Ub?sl:d;var u=l==sl,f=d==sl,h=l==d;if(h&&Gb(e)){if(!Gb(t))return!1;r=!0,u=!1}if(h&&!u)return o||(o=new du),r||uje(e)?lje(e,t,n,a,i,o):cje(e,t,l,n,a,i,o);if(!(n&fje)){var p=u&&qb.call(e,"__wrapped__"),b=f&&qb.call(t,"__wrapped__");if(p||b){var m=p?e.value():e,y=b?t.value():t;return o||(o=new du),i(m,y,n,a,o)}}return h?(o||(o=new du),dje(e,t,n,a,i,o)):!1}var gje=pje,mje=gje,Yb=Ha;function Abe(e,t,n,a,i){return e===t?!0:e==null||t==null||!Yb(e)&&!Yb(t)?e!==e&&t!==t:mje(e,t,n,a,Abe,i)}var Nbe=Abe,bje=Cp,yje=Nbe,vje=1,kje=2;function Sje(e,t,n,a){var i=n.length,o=i,r=!a;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(r&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],d=e[l],u=s[1];if(r&&s[2]){if(d===void 0&&!(l in e))return!1}else{var f=new bje;if(a)var h=a(d,u,l,e,t,f);if(!(h===void 0?yje(u,d,vje|kje,a,f):h))return!1}}return!0}var wje=Sje,xje=gr;function $je(e){return e===e&&!xje(e)}var Ebe=$je,Cje=Ebe,Tje=Os;function Lje(e){for(var t=Tje(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,Cje(i)]}return t}var Aje=Lje;function Nje(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Pbe=Nje,Eje=wje,Pje=Aje,Oje=Pbe;function Fje(e){var t=Pje(e);return t.length==1&&t[0][2]?Oje(t[0][0],t[0][1]):function(n){return n===e||Eje(n,e,t)}}var jje=Fje,Mje=Wi,Rje=Ha,_je="[object Symbol]";function Ije(e){return typeof e=="symbol"||Rje(e)&&Mje(e)==_je}var Lp=Ije,Dje=qn,Hje=Lp,zje=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bje=/^\w*$/;function Wje(e,t){if(Dje(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Hje(e)?!0:Bje.test(e)||!zje.test(e)||t!=null&&e in Object(t)}var Ap=Wje,Obe=$p,Vje="Expected a function";function Np(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vje);var n=function(){var a=arguments,i=t?t.apply(this,a):a[0],o=n.cache;if(o.has(i))return o.get(i);var r=e.apply(this,a);return n.cache=o.set(i,r)||o,r};return n.cache=new(Np.Cache||Obe),n}Np.Cache=Obe;var Gje=Np,Uje=Gje,Kje=500;function qje(e){var t=Uje(e,function(a){return n.size===Kje&&n.clear(),a}),n=t.cache;return t}var Yje=qje,Zje=Yje,Xje=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qje=/\\(\\)?/g,Jje=Zje(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xje,function(n,a,i,o){t.push(i?o.replace(Qje,"$1"):a||n)}),t}),eMe=Jje,Zb=Ps,tMe=vbe,nMe=qn,aMe=Lp,Xb=Zb?Zb.prototype:void 0,Qb=Xb?Xb.toString:void 0;function Fbe(e){if(typeof e=="string")return e;if(nMe(e))return tMe(e,Fbe)+"";if(aMe(e))return Qb?Qb.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var iMe=Fbe,oMe=iMe;function rMe(e){return e==null?"":oMe(e)}var sMe=rMe,lMe=qn,cMe=Ap,dMe=eMe,uMe=sMe;function fMe(e,t){return lMe(e)?e:cMe(e,t)?[e]:dMe(uMe(e))}var jbe=fMe,hMe=Lp;function pMe(e){if(typeof e=="string"||hMe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var dd=pMe,gMe=jbe,mMe=dd;function bMe(e,t){t=gMe(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[mMe(t[n++])];return n&&n==a?e:void 0}var Mbe=bMe,yMe=Mbe;function vMe(e,t,n){var a=e==null?void 0:yMe(e,t);return a===void 0?n:a}var kMe=vMe;function SMe(e,t){return e!=null&&t in Object(e)}var wMe=SMe,xMe=jbe,$Me=dbe,CMe=qn,TMe=ube,LMe=mp,AMe=dd;function NMe(e,t,n){t=xMe(t,e);for(var a=-1,i=t.length,o=!1;++a<i;){var r=AMe(t[a]);if(!(o=e!=null&&n(e,r)))break;e=e[r]}return o||++a!=i?o:(i=e==null?0:e.length,!!i&&LMe(i)&&TMe(r,i)&&(CMe(e)||$Me(e)))}var EMe=NMe,PMe=wMe,OMe=EMe;function FMe(e,t){return e!=null&&OMe(e,t,PMe)}var jMe=FMe,MMe=Nbe,RMe=kMe,_Me=jMe,IMe=Ap,DMe=Ebe,HMe=Pbe,zMe=dd,BMe=1,WMe=2;function VMe(e,t){return IMe(e)&&DMe(t)?HMe(zMe(e),t):function(n){var a=RMe(n,e);return a===void 0&&a===t?_Me(n,e):MMe(t,a,BMe|WMe)}}var GMe=VMe;function UMe(e){return function(t){return t==null?void 0:t[e]}}var KMe=UMe,qMe=Mbe;function YMe(e){return function(t){return qMe(t,e)}}var ZMe=YMe,XMe=KMe,QMe=ZMe,JMe=Ap,eRe=dd;function tRe(e){return JMe(e)?XMe(eRe(e)):QMe(e)}var nRe=tRe,aRe=jje,iRe=GMe,oRe=bbe,rRe=qn,sRe=nRe;function lRe(e){return typeof e=="function"?e:e==null?oRe:typeof e=="object"?rRe(e)?iRe(e[0],e[1]):aRe(e):sRe(e)}var cRe=lRe,dRe=id;function uRe(e,t){return function(n,a){if(n==null)return n;if(!dRe(n))return e(n,a);for(var i=n.length,o=t?i:-1,r=Object(n);(t?o--:++o<i)&&a(r[o],o,r)!==!1;);return n}}var fRe=uRe,hRe=mbe,pRe=fRe,gRe=pRe(hRe),mRe=gRe,bRe=mRe,yRe=id;function vRe(e,t){var n=-1,a=yRe(e)?Array(e.length):[];return bRe(e,function(i,o,r){a[++n]=t(i,o,r)}),a}var kRe=vRe,SRe=vbe,wRe=cRe,xRe=kRe,$Re=qn;function CRe(e,t){var n=$Re(e)?SRe:xRe;return n(e,wRe(t))}var TRe=CRe;Object.defineProperty(Es,"__esModule",{value:!0});Es.flattenNames=void 0;var LRe=aOe,ARe=ud(LRe),NRe=kp,ERe=ud(NRe),PRe=c6e,ORe=ud(PRe),FRe=TRe,jRe=ud(FRe);function ud(e){return e&&e.__esModule?e:{default:e}}var MRe=Es.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,jRe.default)(t,function(a){Array.isArray(a)?e(a).map(function(i){return n.push(i)}):(0,ORe.default)(a)?(0,ERe.default)(a,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,ARe.default)(a)&&n.push(a)}),n};Es.default=MRe;var Fs={};function RRe(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var _Re=RRe,IRe=Vi,DRe=function(){try{var e=IRe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),HRe=DRe,Jb=HRe;function zRe(e,t,n){t=="__proto__"&&Jb?Jb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Rbe=zRe,BRe=Rbe,WRe=wp,VRe=Object.prototype,GRe=VRe.hasOwnProperty;function URe(e,t,n){var a=e[t];(!(GRe.call(e,t)&&WRe(a,n))||n===void 0&&!(t in e))&&BRe(e,t,n)}var _be=URe,KRe=_be,qRe=Rbe;function YRe(e,t,n,a){var i=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var s=t[o],l=a?a(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?qRe(n,s,l):KRe(n,s,l)}return n}var fd=YRe,ZRe=fd,XRe=Os;function QRe(e,t){return e&&ZRe(t,XRe(t),e)}var JRe=QRe;function e_e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var t_e=e_e,n_e=gr,a_e=vp,i_e=t_e,o_e=Object.prototype,r_e=o_e.hasOwnProperty;function s_e(e){if(!n_e(e))return i_e(e);var t=a_e(e),n=[];for(var a in e)a=="constructor"&&(t||!r_e.call(e,a))||n.push(a);return n}var l_e=s_e,c_e=hbe,d_e=l_e,u_e=id;function f_e(e){return u_e(e)?c_e(e,!0):d_e(e)}var Ep=f_e,h_e=fd,p_e=Ep;function g_e(e,t){return e&&h_e(t,p_e(t),e)}var m_e=g_e,bc={exports:{}};bc.exports;(function(e,t){var n=ma,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,r=o?n.Buffer:void 0,s=r?r.allocUnsafe:void 0;function l(d,u){if(u)return d.slice();var f=d.length,h=s?s(f):new d.constructor(f);return d.copy(h),h}e.exports=l})(bc,bc.exports);var b_e=bc.exports;function y_e(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var v_e=y_e,k_e=fd,S_e=Tp;function w_e(e,t){return k_e(e,S_e(e),t)}var x_e=w_e,$_e=xbe,C_e=Sp,T_e=Tp,L_e=Cbe,A_e=Object.getOwnPropertySymbols,N_e=A_e?function(e){for(var t=[];e;)$_e(t,T_e(e)),e=C_e(e);return t}:L_e,Ibe=N_e,E_e=fd,P_e=Ibe;function O_e(e,t){return E_e(e,P_e(e),t)}var F_e=O_e,j_e=$be,M_e=Ibe,R_e=Ep;function __e(e){return j_e(e,R_e,M_e)}var I_e=__e,D_e=Object.prototype,H_e=D_e.hasOwnProperty;function z_e(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&H_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var B_e=z_e,ey=wbe;function W_e(e){var t=new e.constructor(e.byteLength);return new ey(t).set(new ey(e)),t}var Pp=W_e,V_e=Pp;function G_e(e,t){var n=t?V_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var U_e=G_e,K_e=/\w*$/;function q_e(e){var t=new e.constructor(e.source,K_e.exec(e));return t.lastIndex=e.lastIndex,t}var Y_e=q_e,ty=Ps,ny=ty?ty.prototype:void 0,ay=ny?ny.valueOf:void 0;function Z_e(e){return ay?Object(ay.call(e)):{}}var X_e=Z_e,Q_e=Pp;function J_e(e,t){var n=t?Q_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eIe=J_e,tIe=Pp,nIe=U_e,aIe=Y_e,iIe=X_e,oIe=eIe,rIe="[object Boolean]",sIe="[object Date]",lIe="[object Map]",cIe="[object Number]",dIe="[object RegExp]",uIe="[object Set]",fIe="[object String]",hIe="[object Symbol]",pIe="[object ArrayBuffer]",gIe="[object DataView]",mIe="[object Float32Array]",bIe="[object Float64Array]",yIe="[object Int8Array]",vIe="[object Int16Array]",kIe="[object Int32Array]",SIe="[object Uint8Array]",wIe="[object Uint8ClampedArray]",xIe="[object Uint16Array]",$Ie="[object Uint32Array]";function CIe(e,t,n){var a=e.constructor;switch(t){case pIe:return tIe(e);case rIe:case sIe:return new a(+e);case gIe:return nIe(e,n);case mIe:case bIe:case yIe:case vIe:case kIe:case SIe:case wIe:case xIe:case $Ie:return oIe(e,n);case lIe:return new a;case cIe:case fIe:return new a(e);case dIe:return aIe(e);case uIe:return new a;case hIe:return iIe(e)}}var TIe=CIe,LIe=gr,iy=Object.create,AIe=function(){function e(){}return function(t){if(!LIe(t))return{};if(iy)return iy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),NIe=AIe,EIe=NIe,PIe=Sp,OIe=vp;function FIe(e){return typeof e.constructor=="function"&&!OIe(e)?EIe(PIe(e)):{}}var jIe=FIe,MIe=cd,RIe=Ha,_Ie="[object Map]";function IIe(e){return RIe(e)&&MIe(e)==_Ie}var DIe=IIe,HIe=DIe,zIe=bp,oy=yp,ry=oy&&oy.isMap,BIe=ry?zIe(ry):HIe,WIe=BIe,VIe=cd,GIe=Ha,UIe="[object Set]";function KIe(e){return GIe(e)&&VIe(e)==UIe}var qIe=KIe,YIe=qIe,ZIe=bp,sy=yp,ly=sy&&sy.isSet,XIe=ly?ZIe(ly):YIe,QIe=XIe,JIe=Cp,eDe=_Re,tDe=_be,nDe=JRe,aDe=m_e,iDe=b_e,oDe=v_e,rDe=x_e,sDe=F_e,lDe=Tbe,cDe=I_e,dDe=cd,uDe=B_e,fDe=TIe,hDe=jIe,pDe=qn,gDe=gp,mDe=WIe,bDe=gr,yDe=QIe,vDe=Os,kDe=Ep,SDe=1,wDe=2,xDe=4,Dbe="[object Arguments]",$De="[object Array]",CDe="[object Boolean]",TDe="[object Date]",LDe="[object Error]",Hbe="[object Function]",ADe="[object GeneratorFunction]",NDe="[object Map]",EDe="[object Number]",zbe="[object Object]",PDe="[object RegExp]",ODe="[object Set]",FDe="[object String]",jDe="[object Symbol]",MDe="[object WeakMap]",RDe="[object ArrayBuffer]",_De="[object DataView]",IDe="[object Float32Array]",DDe="[object Float64Array]",HDe="[object Int8Array]",zDe="[object Int16Array]",BDe="[object Int32Array]",WDe="[object Uint8Array]",VDe="[object Uint8ClampedArray]",GDe="[object Uint16Array]",UDe="[object Uint32Array]",et={};et[Dbe]=et[$De]=et[RDe]=et[_De]=et[CDe]=et[TDe]=et[IDe]=et[DDe]=et[HDe]=et[zDe]=et[BDe]=et[NDe]=et[EDe]=et[zbe]=et[PDe]=et[ODe]=et[FDe]=et[jDe]=et[WDe]=et[VDe]=et[GDe]=et[UDe]=!0;et[LDe]=et[Hbe]=et[MDe]=!1;function Dl(e,t,n,a,i,o){var r,s=t&SDe,l=t&wDe,d=t&xDe;if(n&&(r=i?n(e,a,i,o):n(e)),r!==void 0)return r;if(!bDe(e))return e;var u=pDe(e);if(u){if(r=uDe(e),!s)return oDe(e,r)}else{var f=dDe(e),h=f==Hbe||f==ADe;if(gDe(e))return iDe(e,s);if(f==zbe||f==Dbe||h&&!i){if(r=l||h?{}:hDe(e),!s)return l?sDe(e,aDe(r,e)):rDe(e,nDe(r,e))}else{if(!et[f])return i?e:{};r=fDe(e,f,s)}}o||(o=new JIe);var p=o.get(e);if(p)return p;o.set(e,r),yDe(e)?e.forEach(function(y){r.add(Dl(y,t,n,y,e,o))}):mDe(e)&&e.forEach(function(y,S){r.set(S,Dl(y,t,n,S,e,o))});var b=d?l?cDe:lDe:l?kDe:vDe,m=u?void 0:b(e);return eDe(m||e,function(y,S){m&&(S=y,y=e[S]),tDe(r,S,Dl(y,t,n,S,e,o))}),r}var KDe=Dl,qDe=KDe,YDe=1,ZDe=4;function XDe(e){return qDe(e,YDe|ZDe)}var QDe=XDe;Object.defineProperty(Fs,"__esModule",{value:!0});Fs.mergeClasses=void 0;var JDe=kp,eHe=Bbe(JDe),tHe=QDe,nHe=Bbe(tHe),aHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function Bbe(e){return e&&e.__esModule?e:{default:e}}var iHe=Fs.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=t.default&&(0,nHe.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,eHe.default)(o,function(r,s){a[s]||(a[s]={}),a[s]=aHe({},a[s],o[s])}),i}),a};Fs.default=iHe;var js={};Object.defineProperty(js,"__esModule",{value:!0});js.autoprefix=void 0;var oHe=kp,cy=sHe(oHe),rHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function sHe(e){return e&&e.__esModule?e:{default:e}}var lHe={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var a=n[t];return a||{extend:t}}},cHe=js.autoprefix=function(t){var n={};return(0,cy.default)(t,function(a,i){var o={};(0,cy.default)(a,function(r,s){var l=lHe[s];l?o=rHe({},o,l(r)):o[s]=r}),n[i]=o}),n};js.default=cHe;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.hover=void 0;var dHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},uHe=g,uu=fHe(uHe);function fHe(e){return e&&e.__esModule?e:{default:e}}function hHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function pHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var gHe=Ms.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(a){pHe(i,a);function i(){var o,r,s,l;hHe(this,i);for(var d=arguments.length,u=Array(d),f=0;f<d;f++)u[f]=arguments[f];return l=(r=(s=dy(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return uu.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},uu.default.createElement(t,dHe({},s.props,s.state)))},r),dy(s,l)}return i}(uu.default.Component)};Ms.default=gHe;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.active=void 0;var mHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bHe=g,fu=yHe(bHe);function yHe(e){return e&&e.__esModule?e:{default:e}}function vHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var SHe=Rs.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(a){kHe(i,a);function i(){var o,r,s,l;vHe(this,i);for(var d=arguments.length,u=Array(d),f=0;f<d;f++)u[f]=arguments[f];return l=(r=(s=uy(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return fu.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},fu.default.createElement(t,mHe({},s.props,s.state)))},r),uy(s,l)}return i}(fu.default.Component)};Rs.default=SHe;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});var wHe=function(t,n){var a={},i=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a[r]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),a};Op.default=wHe;Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ReactCSS=Cn.loop=Cn.handleActive=Fp=Cn.handleHover=Cn.hover=void 0;var xHe=Es,$He=Sr(xHe),CHe=Fs,THe=Sr(CHe),LHe=js,AHe=Sr(LHe),NHe=Ms,Wbe=Sr(NHe),EHe=Rs,PHe=Sr(EHe),OHe=Op,FHe=Sr(OHe);function Sr(e){return e&&e.__esModule?e:{default:e}}Cn.hover=Wbe.default;var Fp=Cn.handleHover=Wbe.default;Cn.handleActive=PHe.default;Cn.loop=FHe.default;var jHe=Cn.ReactCSS=function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var o=(0,$He.default)(a),r=(0,THe.default)(t,o);return(0,AHe.default)(r)},$e=Cn.default=jHe,MHe=function(t,n,a,i,o){var r=o.clientWidth,s=o.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,d=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),f=d-(o.getBoundingClientRect().top+window.pageYOffset);if(a==="vertical"){var h=void 0;if(f<0?h=0:f>s?h=1:h=Math.round(f*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var p=void 0;if(u<0?p=0:u>r?p=1:p=Math.round(u*100/r)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},hu={},RHe=function(t,n,a,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=a*2,o.height=a*2;var r=o.getContext("2d");return r?(r.fillStyle=t,r.fillRect(0,0,o.width,o.height),r.fillStyle=n,r.fillRect(0,0,a,a),r.translate(a,a),r.fillRect(0,0,a,a),o.toDataURL()):null},_He=function(t,n,a,i){var o=t+"-"+n+"-"+a+(i?"-server":"");if(hu[o])return hu[o];var r=RHe(t,n,a,i);return hu[o]=r,r},fy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wr=function(t){var n=t.white,a=t.grey,i=t.size,o=t.renderers,r=t.borderRadius,s=t.boxShadow,l=t.children,d=$e({default:{grid:{borderRadius:r,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+_He(n,a,i,o.canvas)+") center left"}}});return g.isValidElement(l)?g.cloneElement(l,fy({},l.props,{style:fy({},l.props.style,d.grid)})):g.createElement("div",{style:d.grid})};wr.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var IHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},DHe=function(){function e(t,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function HHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jp=function(e){zHe(t,e);function t(){var n,a,i,o;HHe(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return o=(a=(i=hy(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i.handleChange=function(d){var u=MHe(d,i.props.hsl,i.props.direction,i.props.a,i.container);u&&typeof i.props.onChange=="function"&&i.props.onChange(u,d)},i.handleMouseDown=function(d){i.handleChange(d),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},a),hy(i,o)}return DHe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var a=this,i=this.props.rgb,o=$e({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
244
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rPe(e,t){if(e){if(typeof e=="string")return mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mb(e,t)}}function mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function sPe(e,t){for(var n=oPe(e),a;!(a=n()).done;){var i=a.value;i&&lPe(i,t)}}function lPe(e,t){typeof e=="function"?e(t):e.current=t}var z0e=R.shape({country_calling_codes:R.object.isRequired,countries:R.object.isRequired}),B0e=R.objectOf(R.string);function Pa(e,t){var n="+"+fi(e,t);return n}function cPe(e){var t=e.value,n=e.phoneNumber,a=e.defaultCountry,i=e.getAnyCountry,o=e.countries,r=e.required,s=e.metadata,l;return n&&n.country?l=n.country:a&&(!t||Io(t,a,s))&&(l=a),o&&o.indexOf(l)<0&&(l=void 0),!l&&r&&o&&o.length>0&&(l=i()),l}function dPe(e){var t=e.countries,n=e.countryNames,a=e.addInternationalOption,i=e.compareStringsLocales,o=e.compareStrings;o||(o=bPe);var r=t.map(function(s){return{value:s,label:n[s]||s}});return r.sort(function(s,l){return o(s.label,l.label,i)}),a&&r.unshift({label:n.ZZ}),r}function W0e(e,t){return A0e(e||"",t)}function uPe(e){return e.formatNational().replace(/\D/g,"")}function fPe(e,t){var n=t.prevCountry,a=t.newCountry,i=t.metadata,o=t.useNationalFormat;if(n===a)return e;if(!e)return o?"":a?Pa(a,i):"";if(a){if(e[0]==="+"){if(o)return e.indexOf("+"+fi(a,i))===0?yPe(e,a,i):"";if(n){var r=Pa(a,i);return e.indexOf(r)===0?e:r}else{var s=Pa(a,i);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return Oo(e,n,i)||"";return e}function Oo(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var a=new pr(t,n);return a.input(e),a.getNumberValue()}if(t){var i=G0e(e,t,n);return"+".concat(fi(t,n)).concat(i||"")}}}function hPe(e,t,n){var a=G0e(e,t,n);if(a){var i=a.length-pPe(t,n);if(i>0)return e.slice(0,e.length-i)}return e}function pPe(e,t){return t=new vt(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function V0e(e,t){var n=t.country,a=t.countries,i=t.defaultCountry,o=t.latestCountrySelectedByUser,r=t.required,s=t.metadata;if(e==="+")return n;var l=mPe(e,s);if(l)return!a||a.indexOf(l)>=0?l:void 0;if(n){if(Io(e,n,s)){if(o&&Io(e,o,s))return o;if(i&&Io(e,i,s))return i;if(!r)return}else if(!r)return}return n}function gPe(e,t){var n=t.prevPhoneDigits,a=t.country,i=t.defaultCountry,o=t.latestCountrySelectedByUser,r=t.countryRequired,s=t.getAnyCountry,l=t.countries,d=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,h=t.metadata;if(d&&f===!1&&a){var p=Pa(a,h);if(e.indexOf(p)!==0){var b,m=e&&e[0]!=="+";return m?(e=p+e,b=Oo(e,a,h)):e=p,{phoneDigits:e,value:b,country:a}}}d===!1&&a&&e&&e[0]==="+"&&(e=bb(e,a,h)),e&&a&&u&&(e=hPe(e,a,h)),e&&e[0]!=="+"&&(!a||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?a=void 0:a=i),e==="+"&&n&&n[0]==="+"&&n.length>1&&(a=void 0);var y;return e&&(e[0]==="+"&&(e==="+"||a&&Pa(a,h).indexOf(e)===0)?y=void 0:y=Oo(e,a,h)),y&&(a=V0e(y,{country:a,countries:l,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:h}),d===!1&&a&&e&&e[0]==="+"&&(e=bb(e,a,h),y=Oo(e,a,h))),!a&&r&&(a=i||s()),{phoneDigits:e,country:a,value:y}}function bb(e,t,n){if(e.indexOf(Pa(t,n))===0){var a=new pr(t,n);a.input(e);var i=a.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function mPe(e,t){var n=new pr(null,t);return n.input(e),n.getCountry()}function bPe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function yPe(e,t,n){if(t){var a="+"+fi(t,n);if(e.length<a.length){if(a.indexOf(e)===0)return""}else if(e.indexOf(a)===0)return e.slice(a.length)}for(var i=0,o=Object.keys(n.country_calling_codes);i<o.length;i++){var r=o[i];if(e.indexOf(r)===1)return e.slice(1+r.length)}return""}function G0e(e,t,n){var a=new pr(t,n);a.input(e);var i=a.getNumber();return i&&i.nationalNumber}function Io(e,t,n){for(var a=Pa(t,n),i=0;i<e.length&&i<a.length;){if(e[i]!==a[i])return!1;i++}return!0}function U0e(e){var t=e.value,n=e.phoneNumber,a=e.defaultCountry,i=e.international,o=e.useNationalFormat,r=e.metadata;return(i===!1||o)&&n&&n.country?uPe(n):!t&&i&&a?Pa(a,r):t}function fs(e){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(n),!0).forEach(function(a){vPe(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function vPe(e,t,n){return t=kPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kPe(e){var t=SPe(e,"string");return fs(t)=="symbol"?t:t+""}function SPe(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(fs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wPe(e,t,n){var a=e.metadata,i=e.countries,o=e.defaultCountry,r=e.value,s=e.reset,l=e.international,d=e.displayInitialValueAsLocalNumber,u=e.initialValueFormat,f=t.defaultCountry,h=t.value,p=t.reset;n.country;var b=n.value,m=n.hasUserSelectedACountry,y=n.latestCountrySelectedByUser,S=function(B){return U0e(rl(rl({},B),{},{international:l,useNationalFormat:d||u==="national",metadata:a}))};if(s!==p)return{phoneDigits:S({value:void 0,defaultCountry:o}),value:void 0,country:o,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(o!==f){var w=!o||ad(o,a),C=!b||l&&b===S({value:void 0,defaultCountry:f}),$=!r&&C;if(!m&&w&&$)return{country:o,phoneDigits:S({value:void 0,defaultCountry:o}),value:void 0}}if(!vb(r,h)&&!vb(r,b)){var x,L;if(r){r&&I0e(r),x=W0e(r,a);var A=D0e(i,a);x&&x.country?(!A||A.indexOf(x.country)>=0)&&(L=x.country):(L=V0e(r,{country:void 0,countries:A,metadata:a}),L||o&&r.indexOf(Pa(o,a))===0&&(L=o))}var E;if(r){if(y){var z=L?y===L:Io(r,y,a);z?L||(L=y):E={latestCountrySelectedByUser:void 0}}}else E={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return rl(rl({},E),{},{phoneDigits:S({phoneNumber:x,value:r,defaultCountry:o}),value:r,country:r?L:o})}}function vb(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var xPe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function K0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(n),!0).forEach(function(a){_n(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Do.apply(this,arguments)}function $Pe(e,t){if(e==null)return{};var n=CPe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function CPe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function TPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sb(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Y0e(a.key),a)}}function LPe(e,t,n){return t&&Sb(e.prototype,t),n&&Sb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function APe(e,t,n){return t=fc(t),NPe(e,q0e()?Reflect.construct(t,n||[],fc(e).constructor):t.apply(e,n))}function NPe(e,t){if(t&&(or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EPe(e)}function EPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q0e=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fc(e)}function PPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ef(e,t)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Ef(e,t)}function _n(e,t,n){return t=Y0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0e(e){var t=OPe(e,"string");return or(t)=="symbol"?t:t+""}function OPe(e,t){if(or(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(or(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FPe=function(e){function t(n){var a;TPe(this,t),a=APe(this,t,[n]),_n(a,"setInputRef",function(y){sPe([a.props.inputRef,a.inputRef],y)}),_n(a,"isCountrySupportedWithError",function(y){var S=a.props.metadata;return ad(y,S)}),_n(a,"onCountryChange",function(y){var S=a.props,w=S.international,C=S.metadata,$=S.onChange,x=S.focusInputOnCountrySelection,L=a.state,A=L.phoneDigits,E=L.country,z=fPe(A,{prevCountry:E,newCountry:y,metadata:C,useNationalFormat:!w}),_=Oo(z,y,C);x&&a.inputRef.current.focus(),a.setState({country:y,latestCountrySelectedByUser:y,hasUserSelectedACountry:!0,phoneDigits:z,value:_},function(){$(_)})}),_n(a,"onChange",function(y){var S=a.props,w=S.defaultCountry,C=S.onChange,$=S.addInternationalOption,x=S.international,L=S.limitMaxLength,A=S.countryCallingCodeEditable,E=S.metadata,z=a.state,_=z.countries,B=z.phoneDigits,U=z.country,ee=z.latestCountrySelectedByUser,Y=gPe(y,{prevPhoneDigits:B,country:U,countryRequired:!$,defaultCountry:w,latestCountrySelectedByUser:ee,getAnyCountry:function(){return a.getFirstSupportedCountry({countries:_})},countries:_,international:x,limitMaxLength:L,countryCallingCodeEditable:A,metadata:E}),re=Y.phoneDigits,Z=Y.country,G=Y.value,J={phoneDigits:re,value:G,country:Z};ee&&G&&!Io(G,ee,E)&&(J.latestCountrySelectedByUser=void 0),A===!1&&!G&&re===a.state.phoneDigits&&(J.forceRerender={}),a.setState(J,function(){return C(G)})}),_n(a,"_onFocus",function(){return a.setState({isFocused:!0})}),_n(a,"_onBlur",function(){return a.setState({isFocused:!1})}),_n(a,"onFocus",function(y){a._onFocus();var S=a.props.onFocus;S&&S(y)}),_n(a,"onBlur",function(y){var S=a.props.onBlur;a._onBlur(),S&&S(y)}),_n(a,"onCountryFocus",function(y){a._onFocus();var S=a.props.countrySelectProps;if(S){var w=S.onFocus;w&&w(y)}}),_n(a,"onCountryBlur",function(y){a._onBlur();var S=a.props.countrySelectProps;if(S){var w=S.onBlur;w&&w(y)}}),a.inputRef=g.createRef();var i=a.props,o=i.value;i.labels;var r=i.international,s=i.addInternationalOption,l=i.displayInitialValueAsLocalNumber,d=i.initialValueFormat,u=i.metadata,f=a.props,h=f.defaultCountry,p=f.countries;h&&(a.isCountrySupportedWithError(h)||(h=void 0)),o&&I0e(o),p=D0e(p,u);var b=W0e(o,u);a.CountryIcon=H0e(a.props);var m=cPe({value:o,phoneNumber:b,defaultCountry:h,required:!s,countries:p||ub(u),getAnyCountry:function(){return a.getFirstSupportedCountry({countries:p})},metadata:u});return a.state={props:a.props,country:m,countries:p,phoneDigits:U0e({value:o,phoneNumber:b,defaultCountry:h,international:r,useNationalFormat:l||d==="national",metadata:u}),value:o},a}return PPe(t,e),LPe(t,[{key:"componentDidMount",value:function(){var a=this.props.onCountryChange,i=this.props.defaultCountry,o=this.state.country;a&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),o!==i&&a(o))}},{key:"componentDidUpdate",value:function(a,i){var o=this.props.onCountryChange,r=this.state.country;o&&r!==i.country&&o(r)}},{key:"getCountrySelectOptions",value:function(a){var i=a.countries,o=this.props,r=o.international,s=o.countryCallingCodeEditable,l=o.countryOptionsOrder,d=o.addInternationalOption,u=o.labels,f=o.locales,h=o.metadata;return this.useMemoCountrySelectOptions(function(){return ePe(dPe({countries:i||ub(h),countryNames:u,addInternationalOption:r&&s===!1?!1:d,compareStringsLocales:f}),tPe(l,h))},[i,l,d,u,h])}},{key:"useMemoCountrySelectOptions",value:function(a,i){return(!this.countrySelectOptionsMemoDependencies||!MPe(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=a(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(a){var i=a.countries,o=this.getCountrySelectOptions({countries:i});return o[0].value}},{key:"render",value:function(){var a=this.props,i=a.name,o=a.disabled,r=a.readOnly,s=a.autoComplete,l=a.style,d=a.className;a.inputRef;var u=a.inputComponent,f=a.numberInputProps,h=a.smartCaret,p=a.countrySelectComponent,b=a.countrySelectProps,m=a.containerComponent,y=a.containerComponentProps;a.defaultCountry,a.countries,a.countryOptionsOrder;var S=a.labels;a.flags,a.flagComponent,a.flagUrl,a.addInternationalOption,a.internationalIcon,a.displayInitialValueAsLocalNumber,a.initialValueFormat,a.onCountryChange,a.limitMaxLength,a.countryCallingCodeEditable,a.focusInputOnCountrySelection,a.reset;var w=a.metadata,C=a.international;a.locales;var $=$Pe(a,xPe),x=this.state,L=x.country,A=x.countries,E=x.phoneDigits,z=x.isFocused,_=h?NEe:jEe,B=this.getCountrySelectOptions({countries:A});return g.createElement(m,Do({style:l,className:rc(d,"PhoneInput",{"PhoneInput--focus":z,"PhoneInput--disabled":o,"PhoneInput--readOnly":r})},y),g.createElement(p,Do({name:i?"".concat(i,"Country"):void 0,"aria-label":S.country},b,{value:L,options:B,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:o||b&&b.disabled,readOnly:r||b&&b.readOnly,iconComponent:this.CountryIcon})),g.createElement(_,Do({ref:this.setInputRef,type:"tel",autoComplete:s},f,$,{inputFormat:C===!0?"INTERNATIONAL":C===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:C?!0:void 0,withCountryCallingCode:C?!0:void 0,name:i,metadata:w,country:L,value:E||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:o,readOnly:r,inputComponent:u,className:rc("PhoneInputInput",f&&f.className,$.className)})))}}],[{key:"getDerivedStateFromProps",value:function(a,i){return K0e({props:a},wPe(a,i.props,i))}}])}(g.PureComponent),Z0e=g.forwardRef(function(e,t){return g.createElement(FPe,Do({},jPe(e),{inputRef:t}))});Z0e.propTypes={value:R.string,onChange:R.func.isRequired,onFocus:R.func,onBlur:R.func,disabled:R.bool,readOnly:R.bool,autoComplete:R.string,initialValueFormat:R.oneOf(["national"]),displayInitialValueAsLocalNumber:R.bool,defaultCountry:R.string,countries:R.arrayOf(R.string),labels:B0e,locales:R.oneOfType([R.string,R.arrayOf(R.string)]),flagUrl:R.string,flags:R.objectOf(R.elementType),flagComponent:R.elementType,addInternationalOption:R.bool,internationalIcon:R.elementType,countryOptionsOrder:R.arrayOf(R.string),style:R.object,className:R.string,countrySelectComponent:R.elementType,countrySelectProps:R.object,inputComponent:R.elementType,numberInputProps:R.object,containerComponent:R.elementType,containerComponentProps:R.object,smartCaret:R.bool,international:R.bool,limitMaxLength:R.bool,countryCallingCodeEditable:R.bool,metadata:z0e,onCountryChange:R.func,focusInputOnCountrySelection:R.bool};var wb={autoComplete:"tel",countrySelectComponent:j0e,flagComponent:dp,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:nd,inputComponent:"input",containerComponent:"div",reset:R.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function jPe(e){e=K0e({},e);for(var t in wb)e[t]===void 0&&(e[t]=wb[t]);return e}function MPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}const RPe={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var _Pe=["metadata","labels"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pf.apply(this,arguments)}function IPe(e,t){if(e==null)return{};var n=DPe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function DPe(e,t){if(e==null)return{};var n={},a=Object.keys(e),i,o;for(o=0;o<a.length;o++)i=a[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function X0e(e){var t=g.forwardRef(function(n,a){var i=n.metadata,o=i===void 0?e:i,r=n.labels,s=r===void 0?RPe:r,l=IPe(n,_Pe);return g.createElement(Z0e,Pf({},l,{ref:a,metadata:o,labels:s}))});return t.propTypes={metadata:z0e,labels:B0e},t}X0e();const HPe=X0e(o0e),Q0e={type:"custom",render:({value:e,onChange:t})=>c.jsx("div",{className:"ve-mt-[12px]",children:c.jsx(be.FieldLabel,{label:M("fields.phoneNumber","Phone Number"),icon:c.jsx(Xwe,{size:16}),children:c.jsx(HPe,{value:e,countryCallingCodeEditable:!0,international:!0,defaultCountry:"US",onChange:n=>{t(n)}})})})},hs=e=>{const{label:t,options:n=[],optionGroups:a=[{options:n}],translateOptions:i=!0,noOptionsPlaceholder:o=M("basicSelectorNoOptionsLabel","No options available"),noOptionsMessage:r,disableSearch:s,icon:l=c.jsx(Mi,{size:16})}=e;return{type:"custom",render:({value:d,onChange:u})=>{const f=i?a.map(b=>({title:b.title&&M(b.title),description:b.description&&M(b.description),options:b.options.map(m=>({...m,label:M(m.label)}))})):a,h=f.reduce((b,m)=>b.concat(m.options),[]),p=h.length===0;return p?c.jsxs(c.Fragment,{children:[c.jsx(be.FieldLabel,{label:t,icon:l}),c.jsx(yt,{variant:"puckSelect",disabled:!0,children:o}),r&&c.jsx("p",{className:"ve-text-xs ve-mt-3",children:r})]}):c.jsx(be.FieldLabel,{label:M(t),icon:l,children:c.jsx(_ge,{selectedOption:h.find(b=>JSON.stringify(b.value)===JSON.stringify(d))??h[0],onChange:u,optionGroups:f,disabled:p,disableSearch:s})})}}},zPe=()=>({label:"",type:"array",arrayFields:{url:{type:"text",label:M("fields.url","URL")}},getItemSummary:(e,t)=>M("photo","Photo")+" "+t}),BPe={type:"custom",render:({value:e,onChange:t})=>c.jsx(be.FieldLabel,{icon:c.jsx(lpe,{size:"16"}),label:M("dateAndTime","Date and Time"),children:c.jsx("input",{className:"date-time-picker",type:"datetime-local",onChange:n=>t(n.target.value),value:e??"",onClick:n=>n.stopPropagation()})})},Fl={image:{url:"https://placehold.co/640x360",height:360,width:640},title:{en:"Event Title",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.",hasLocalizedValue:"true"},dateTime:"2022-12-12T14:00:00",cta:{link:"#",label:{en:"Learn More",hasLocalizedValue:"true"},linkType:"URL"}},WPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:VPe(),value:t.events,onChange:(n,a)=>e({events:n},a)})})},VPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("title","Title"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},title:a,dateTime:BPe,description:i,cta:Xc()},defaultItemProps:Fl,getItemSummary:(o,r)=>{const s=me(o.title,t.language,n);return s||e("event","Event")+" "+((r??0)+1)}}},J0e={type:"custom",render:({value:e,onChange:t})=>c.jsx(be.FieldLabel,{icon:c.jsx(lpe,{size:"16"}),label:M("date","Date"),children:c.jsx("input",{className:"date-time-picker",type:"date",onChange:n=>t(n.target.value),value:e??"",onClick:n=>n.stopPropagation()})})},jl={image:{url:"https://placehold.co/640x360",height:360,width:640},name:{en:"Article Name",hasLocalizedValue:"true"},category:{en:"Category",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo.Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 300 characters",hasLocalizedValue:"true"},publishTime:"2022-08-02",cta:{link:"#",label:{en:"Read More",hasLocalizedValue:"true"},linkType:"URL"}},GPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:UPe(),value:t.insights,onChange:(n,a)=>e({insights:n},a)})})},UPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("category","Category"),{types:["type.string"]}),[]),o=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,category:i,publishTime:J0e,description:o,cta:Xc()},defaultItemProps:jl,getItemSummary:(r,s)=>{const l=me(r.name,t.language,n);return l||e("insight","Insight")+" "+((s??0)+1)}}},Ml={image:{url:"https://placehold.co/640x360",height:360,width:640},name:{en:"Product Title",hasLocalizedValue:"true"},category:{en:"Category, Pricing, etc",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",hasLocalizedValue:"true"},cta:{link:"#",label:{en:"Learn More",hasLocalizedValue:"true"},linkType:"URL"}},KPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:qPe(),value:t.products,onChange:(n,a)=>e({products:n},a)})})},qPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("fields.category","Category"),{types:["type.string"]}),[]),o=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{image:{type:"object",label:e("fields.image","Image"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,category:i,description:o,cta:Xc()},defaultItemProps:Ml,getItemSummary:(r,s)=>{const l=me(r.name,t.language,n);return l||e("product","Product")+" "+((s??0)+1)}}},Rl={question:{en:"Question Lorem ipsum dolor sit amet?",hasLocalizedValue:"true"},answer:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",hasLocalizedValue:"true"}},YPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:ZPe(),value:t.faqs,onChange:(n,a)=>e({faqs:n},a)})})},ZPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.question","Question"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.answer","Answer")),[]);return{label:M("arrayField","Array Field"),type:"array",arrayFields:{question:a,answer:i},defaultItemProps:Rl,getItemSummary:(o,r)=>{const s=me(o.question,t.language,n);return s||e("faq","FAQ")+" "+((r??0)+1)}}},_l={name:{en:"First Last",hasLocalizedValue:"true"},title:{en:"Associate Agent",hasLocalizedValue:"true"},phoneNumber:"(202) 770-6619 ",email:"jkelley@[company].com",cta:{label:{en:"Visit Profile",hasLocalizedValue:"true"},link:"#",linkType:"URL"},headshot:{url:"https://placehold.co/80x80",height:80,width:80}},XPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:QPe(),value:t.people,onChange:(n,a)=>e({people:n},a)})})},QPe=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.name","Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>st(v("fields.title","Title"),{types:["type.string"]}),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{headshot:{type:"object",label:e("fields.headshot","Headshot"),objectFields:{url:{label:e("fields.url","URL"),type:"text"}}},name:a,title:i,phoneNumber:Q0e,email:{type:"text",label:e("fields.email","Email")},cta:Xc()},defaultItemProps:_l,getItemSummary:(o,r)=>{const s=me(o.name,t.language,n);return s||e("teamMember","Team Member")+" "+((r??0)+1)}}},Il={description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",hasLocalizedValue:"true"},contributorName:{en:"Name",hasLocalizedValue:"true"},contributionDate:"July 22, 2022"},JPe={type:"custom",render:({onChange:e,value:t})=>c.jsx("div",{className:"ve-mt-4",children:c.jsx(be.AutoField,{field:e5e(),value:t.testimonials,onChange:(n,a)=>e({testimonials:n},a)})})},e5e=()=>{const{t:e,i18n:t}=Nn(),{document:n}=ve(),a=g.useMemo(()=>st(v("fields.contributorName","Contributor Name"),{types:["type.string"]}),[]),i=g.useMemo(()=>Bi(v("fields.description","Description")),[]);return{label:e("arrayField","Array Field"),type:"array",arrayFields:{description:i,contributorName:a,contributionDate:J0e},defaultItemProps:Il,getItemSummary:(o,r)=>{const s=me(o.contributorName,t.language,n);return s||e("testimonial","Testimonial")+" "+((r??0)+1)}}},ebe=({enabled:e})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"-0.75 0 11 11",fill:"none",children:c.jsx("path",{d:"M4.48673 2.68073C4.48673 2.5887 4.52328 2.50045 4.58836 2.43537C4.65343 2.3703 4.74169 2.33374 4.83371 2.33374C4.92574 2.33374 5.014 2.3703 5.07907 2.43537C5.14414 2.50045 5.1807 2.5887 5.1807 2.68073C5.1807 2.77276 5.14414 2.86101 5.07907 2.92609C5.014 2.99116 4.92574 3.02772 4.83371 3.02772C4.74169 3.02772 4.65343 2.99116 4.58836 2.92609C4.52328 2.86101 4.48673 2.77276 4.48673 2.68073ZM5.06504 3.45711C5.39901 3.35735 5.64335 3.04796 5.64335 2.68073C5.64335 2.23398 5.28046 1.87109 4.83371 1.87109C4.38697 1.87109 4.02408 2.23398 4.02408 2.68073C4.02408 3.04796 4.26841 3.35735 4.60239 3.45711V4.7959C4.47805 4.83349 4.36673 4.89855 4.2742 4.98674L3.19275 4.3694C3.27227 4.03109 3.1248 3.66675 2.80962 3.48458C2.42216 3.25904 1.9277 3.39205 1.7036 3.77952C1.47951 4.16699 1.61252 4.66144 1.99999 4.88554C2.05637 4.91735 2.1142 4.94337 2.17348 4.96072V6.18385C2.1142 6.2012 2.05637 6.22578 1.99999 6.25903C1.61252 6.48312 1.47951 6.97758 1.7036 7.36505C1.9277 7.75252 2.42216 7.88553 2.80962 7.66143C3.12625 7.47927 3.27227 7.11493 3.19275 6.77517L3.86215 6.39349C3.76239 6.27638 3.68432 6.14048 3.63227 5.99156L2.96432 6.37469C2.87035 6.28505 2.75758 6.22144 2.63613 6.18529V4.96072C2.75758 4.92458 2.87035 4.86096 2.96432 4.77132L4.04576 5.38867C4.03131 5.44795 4.02408 5.51012 4.02408 5.57228C4.02408 5.93951 4.26841 6.24891 4.60239 6.34867V7.68746C4.26841 7.78722 4.02408 8.09661 4.02408 8.46384C4.02408 8.91059 4.38697 9.27348 4.83371 9.27348C5.28046 9.27348 5.64335 8.91059 5.64335 8.46384C5.64335 8.09661 5.39901 7.78722 5.06504 7.68746V6.34867C5.18937 6.31108 5.3007 6.24602 5.39323 6.15782L6.47467 6.77517C6.39515 7.11348 6.54262 7.47782 6.8578 7.65999C7.24527 7.88408 7.73973 7.75107 7.96382 7.3636C8.18792 6.97613 8.0549 6.48168 7.66744 6.25758C7.61105 6.22578 7.55322 6.19975 7.49394 6.1824V4.95928C7.55322 4.94193 7.61105 4.91735 7.66744 4.88409C8.0549 4.66 8.18792 4.16554 7.96382 3.77807C7.73973 3.39061 7.24527 3.25904 6.8578 3.48314C6.54118 3.6653 6.39515 4.02964 6.47322 4.36795L5.80383 4.74964C5.90359 4.86675 5.98166 5.00265 6.03371 5.15156L6.70166 4.76988C6.79563 4.85952 6.9084 4.92458 7.02985 4.95928V6.18385C6.9084 6.21999 6.79563 6.28361 6.70166 6.37325L5.62022 5.7559C5.63467 5.69662 5.6419 5.63445 5.6419 5.57228C5.6419 5.20506 5.39757 4.89566 5.06359 4.7959V3.45711H5.06504ZM7.08913 3.88362C7.12862 3.86083 7.17221 3.84605 7.21741 3.84011C7.26262 3.83418 7.30855 3.8372 7.35258 3.84902C7.39662 3.86083 7.43789 3.8812 7.47406 3.90897C7.51022 3.93674 7.54056 3.97135 7.56334 4.01084C7.58612 4.05034 7.60091 4.09393 7.60684 4.13913C7.61278 4.18434 7.60975 4.23027 7.59794 4.2743C7.58613 4.31834 7.56575 4.35961 7.53799 4.39578C7.51022 4.43194 7.4756 4.46228 7.43611 4.48506C7.39662 4.50784 7.35303 4.52263 7.30782 4.52856C7.26262 4.5345 7.21669 4.53147 7.17265 4.51966C7.12862 4.50784 7.08734 4.48747 7.05118 4.45971C7.01502 4.43194 6.98468 4.39732 6.9619 4.35783C6.93911 4.31834 6.92433 4.27475 6.9184 4.22954C6.91246 4.18434 6.91548 4.13841 6.9273 4.09437C6.93911 4.05034 6.95948 4.00906 6.98725 3.9729C7.01502 3.93674 7.04963 3.9064 7.08913 3.88362ZM2.10408 4.01084C2.1501 3.93109 2.22591 3.87288 2.31484 3.84902C2.40377 3.82516 2.49854 3.8376 2.5783 3.88362C2.65806 3.92963 2.71627 4.00544 2.74013 4.09437C2.76399 4.18331 2.75154 4.27807 2.70553 4.35783C2.68274 4.39732 2.65241 4.43194 2.61624 4.45971C2.58008 4.48747 2.5388 4.50784 2.49477 4.51966C2.40584 4.54352 2.31107 4.53107 2.23131 4.48506C2.19182 4.46228 2.1572 4.43194 2.12944 4.39578C2.10167 4.35961 2.0813 4.31834 2.06949 4.2743C2.04563 4.18537 2.05807 4.0906 2.10408 4.01084ZM4.48673 8.46384C4.48673 8.37181 4.52328 8.28356 4.58836 8.21848C4.65343 8.15341 4.74169 8.11685 4.83371 8.11685C4.92574 8.11685 5.014 8.15341 5.07907 8.21848C5.14414 8.28356 5.1807 8.37181 5.1807 8.46384C5.1807 8.55587 5.14414 8.64412 5.07907 8.7092C5.014 8.77427 4.92574 8.81083 4.83371 8.81083C4.74169 8.81083 4.65343 8.77427 4.58836 8.7092C4.52328 8.64412 4.48673 8.55587 4.48673 8.46384ZM2.70553 6.78674C2.72831 6.82623 2.74309 6.86982 2.74903 6.91503C2.75497 6.96023 2.75194 7.00616 2.74013 7.0502C2.72831 7.09423 2.70794 7.13551 2.68017 7.17167C2.65241 7.20783 2.61779 7.23817 2.5783 7.26095C2.53881 7.28374 2.49522 7.29852 2.45001 7.30446C2.40481 7.31039 2.35888 7.30737 2.31484 7.29555C2.27081 7.28374 2.22953 7.26337 2.19337 7.2356C2.15721 7.20783 2.12687 7.17322 2.10408 7.13372C2.0813 7.09423 2.06652 7.05064 2.06058 7.00544C2.05465 6.96023 2.05767 6.9143 2.06949 6.87027C2.0813 6.82623 2.10167 6.78496 2.12944 6.74879C2.1572 6.71263 2.19182 6.68229 2.23131 6.65951C2.2708 6.63673 2.3144 6.62194 2.3596 6.61601C2.4048 6.61007 2.45073 6.6131 2.49477 6.62491C2.5388 6.63672 2.58008 6.6571 2.61624 6.68486C2.65241 6.71263 2.68274 6.74725 2.70553 6.78674ZM7.08913 7.26095C7.04963 7.23817 7.01502 7.20783 6.98725 7.17167C6.95948 7.13551 6.93911 7.09423 6.9273 7.0502C6.91548 7.00616 6.91246 6.96023 6.9184 6.91503C6.92433 6.86982 6.93911 6.82623 6.9619 6.78674C6.98468 6.74725 7.01502 6.71263 7.05118 6.68486C7.08734 6.6571 7.12862 6.63672 7.17265 6.62491C7.21669 6.6131 7.26262 6.61007 7.30782 6.61601C7.35303 6.62194 7.39662 6.63673 7.43611 6.65951C7.4756 6.68229 7.51022 6.71263 7.53799 6.74879C7.56575 6.78496 7.58613 6.82623 7.59794 6.87027C7.60975 6.9143 7.61278 6.96023 7.60684 7.00544C7.60091 7.05064 7.58612 7.09423 7.56334 7.13372C7.54056 7.17322 7.51022 7.20783 7.47406 7.2356C7.43789 7.26337 7.39662 7.28374 7.35258 7.29555C7.30855 7.30737 7.26262 7.31039 7.21741 7.30446C7.17221 7.29852 7.12862 7.28374 7.08913 7.26095ZM4.83371 5.2253C4.92574 5.2253 5.014 5.26186 5.07907 5.32693C5.14414 5.392 5.1807 5.48026 5.1807 5.57228C5.1807 5.66431 5.14414 5.75257 5.07907 5.81764C5.014 5.88271 4.92574 5.91927 4.83371 5.91927C4.74169 5.91927 4.65343 5.88271 4.58836 5.81764C4.52328 5.75257 4.48673 5.66431 4.48673 5.57228C4.48673 5.48026 4.52328 5.392 4.58836 5.32693C4.65343 5.26186 4.74169 5.2253 4.83371 5.2253Z",fill:e?"#5A58F2":"#6b7280"})}),t5e=new Wt,n5e=[{field:"image",type:"type.image",label:v("fields.image","Image")},{field:"primaryCta",type:"type.cta",label:v("fields.primaryCTA","Primary CTA")},{field:"secondaryCta",type:"type.cta",label:v("fields.secondaryCTA","Secondary CTA")}],a5e=[{field:"image",type:"type.image",label:v("fields.image","Image")},{field:"title",type:"type.string",label:v("fields.title","Title")},{field:"description",type:"type.rich_text_v2",label:v("fields.description","Description")},{field:"cta",type:"type.cta",label:v("fields.cta","CTA")}],i5e={"type.hero_section":n5e,"type.promo_section":a5e},o5e=e=>{if(!e)return;const t=i5e[e];if(!t){t5e.log(`No subfields found for ${e}`);return}return t},r5e=["type.hero_section","type.promo_section"],fp=e=>{const t={types:[e.filter.type]};return{type:"custom",label:e.label,render:({value:n,onChange:a})=>{const i=xs(),o=uf(i,t),r=s=>{const l=Object.fromEntries(Object.keys(n.constantValueOverride).map(u=>[u,s]));let d=n.field;n.constantValueEnabled&&!s&&o.length&&(d=o[0].name),a({field:d,constantValue:n.constantValue,constantValueEnabled:s,constantValueOverride:l})};return c.jsxs("div",{className:"ve-flex ve-flex-col ve-gap-3",children:[c.jsx(hp,{fieldTypeFilter:[e.filter.type],constantValueEnabled:!!n.constantValueEnabled,toggleConstantValueEnabled:r,label:M(e.label)}),!n.constantValueEnabled&&c.jsx(abe,{onChange:a,value:n,filter:t,hideSelectAFieldOption:!0}),c.jsx(s5e,{onChange:a,value:n,filter:e.filter,disallowTranslation:e.disallowTranslation??!1})]})}}},s5e=({filter:e,onChange:t,value:n,disallowTranslation:a})=>{const i=o5e(e.type);if(i&&n.constantValueOverride)return c.jsx("div",{className:"ObjectField",children:c.jsx("div",{className:"ObjectField-fieldset",children:i.map(({field:o,type:r,label:s},l)=>{var f,h,p;const d=b=>{t({constantValueOverride:{...n==null?void 0:n.constantValueOverride,[o]:b},field:n==null?void 0:n.field,constantValue:n==null?void 0:n.constantValue})},u=tbe(r,!1,a);if(u)return c.jsxs(g.Fragment,{children:[c.jsx("div",{className:"ve-mt-3 first:ve-mt-0",children:c.jsx(hp,{fieldTypeFilter:[r],constantValueEnabled:(f=n==null?void 0:n.constantValueOverride)==null?void 0:f[o],toggleConstantValueEnabled:d,label:s,showLocale:(r==="type.string"||r==="type.rich_text_v2")&&!a})}),((h=n==null?void 0:n.constantValueOverride)==null?void 0:h[o])&&c.jsx("div",{children:c.jsx(be.AutoField,{onChange:(b,m)=>t({field:n==null?void 0:n.field,constantValue:{...n==null?void 0:n.constantValue,[o]:b},constantValueEnabled:n==null?void 0:n.constantValueEnabled,constantValueOverride:{...n==null?void 0:n.constantValueOverride,[o]:!0}},m),value:(p=n.constantValue)==null?void 0:p[o],field:u})})]},l)})})})},Of=new Wt,Ff={"type.string":R3e,"type.rich_text_v2":_3e,"type.phone":Q0e,"type.image":j3e,"type.address":I3e,"type.cta":H3e,"type.events_section":WPe,"type.insights_section":GPe,"type.products_section":KPe,"type.faq_section":YPe,"type.team_section":XPe,"type.testimonials_section":JPe},jf=()=>({"type.string":D3e,"type.image":zPe()}),l5e={"type.string":p0,"type.rich_text_v2":p0},c5e={"type.string":m0,"type.rich_text_v2":m0},tbe=(e,t,n)=>{if(t)return n?c5e[e]??jf()[e]:jf()[e];const a=n?l5e[e]??Ff[e]:Ff[e];if(!a){Of.log(`No constant configuration for ${e}`);return}return a},d5e=(e,t,n)=>{if(!e)return;let a;for(const i of e){const o=tbe(i,t,n);if(!o){Of.log(`No mapped configuration for ${i}`);return}if(a||(a=o),a!==o){Of.log(`Could not resolve configuration for ${i}`);return}}return a},hc=e=>({type:"custom",render:({value:t,onChange:n})=>{var i;const a=o=>{n({field:(t==null?void 0:t.field)??"",constantValue:(t==null?void 0:t.constantValue)??"",constantValueEnabled:o})};return c.jsxs(c.Fragment,{children:[c.jsx(hp,{fieldTypeFilter:e.filter.types??[],constantValueEnabled:t==null?void 0:t.constantValueEnabled,toggleConstantValueEnabled:a,disableConstantValue:e.disableConstantValueToggle,label:M(e.label),showLocale:((i=e.filter.types)==null?void 0:i.includes("type.string"))&&!e.disallowTranslation}),(t==null?void 0:t.constantValueEnabled)&&c.jsx(u5e,{onChange:n,value:t,filter:e.filter,disallowTranslation:e.disallowTranslation}),!(t!=null&&t.constantValueEnabled)&&c.jsx(abe,{className:"ve-pt-3",onChange:n,value:t,filter:e.filter})]})}}),hp=({fieldTypeFilter:e,constantValueEnabled:t,toggleConstantValueEnabled:n,disableConstantValue:a,label:i,showLocale:o})=>{const r=!a&&(e.some(d=>Object.keys(Ff).includes(d)||Object.keys(jf).includes(d))||e.some(d=>r5e.includes(d))),{i18n:s}=he(),l=s.language;return c.jsxs("div",{className:"ve-w-full ve-flex ve-gap-3",children:[r&&c.jsx(Jh,{children:c.jsxs(ep,{children:[c.jsx(tp,{asChild:!0,children:c.jsx("div",{className:"ve-flex ve-flex-row ve-self-center",children:c.jsx(ap,{onCheckedChange:d=>n(!d),checked:!t,icon:c.jsx(ebe,{enabled:!t}),className:"data-[state=unchecked]:ve-bg-gray-500"})})}),c.jsxs(Yc,{children:[t?M("staticContent","Static content"):M("knowledgeGraphContent","Knowledge Graph content"),c.jsx(np,{fill:"ve-bg-popover"})]})]})}),c.jsx("p",{className:"ve-self-center ve-text-sm ve-text-gray-800 ve-font-semibold",children:o&&t?`${M(i)} (${l})`:`${M(i)}`})]})},u5e=({filter:e,onChange:t,value:n,disallowTranslation:a})=>{var d,u;const i=d5e(e.types,!!e.includeListsOnly,!!a),{i18n:o}=he(),r=o.language;if(!i)return;const l=((d=e.types)==null?void 0:d.includes("type.string"))&&!e.includeListsOnly?c.jsx("div",{className:"ve-pt-3",children:c.jsx(op,{value:((u=n==null?void 0:n.constantValue)==null?void 0:u[r])??"",onChange:f=>{t({field:(n==null?void 0:n.field)??"",constantValue:{...n==null?void 0:n.constantValue,[r]:f},constantValueEnabled:!0})},filter:e})}):c.jsx(be.AutoField,{onChange:(f,h)=>t({field:(n==null?void 0:n.field)??"",constantValue:f,constantValueEnabled:!0},h),value:n==null?void 0:n.constantValue,field:i});return i.type==="custom"?l:c.jsx(be.FieldLabel,{label:i.label??"Value",className:`ve-inline-block w-full ${i.label?"ve-pt-3":""}`,children:l})},nbe=(e,t)=>{let n=uf(e,t);return t.directChildrenOf&&n.length===0&&(n=uf(e,{allowList:[t.directChildrenOf],types:t.types,includeListsOnly:!0})),n.sort((a,i)=>{const o=(a.displayName??a.name).toUpperCase(),r=(i.displayName??i.name).toUpperCase();return o<r?-1:o>r?1:0})},abe=({filter:e,onChange:t,value:n,className:a,hideSelectAFieldOption:i})=>{const o=xs(),r=ETe(),s=g.useMemo(()=>{const l=nbe(o,e),d=l.map(f=>({label:f.displayName??f.name,value:f.name})),u=i?[...d]:[{value:"",label:M("basicSelectorContentLabel","Select a Content field")},...d];return i&&!n.constantValueEnabled&&(l.length>0&&n.field===""&&t({...n,field:l[0].name}),l.length===0&&n.field!==""&&t({...n,field:""})),hs({label:r.entityTypeDisplayName+" "+M("field","Field"),options:u,translateOptions:!1,noOptionsPlaceholder:M("noAvailableFields","No available fields"),noOptionsMessage:f5e(e),icon:null})},[o,e]);return c.jsx("div",{className:"ve-inline-block ve-w-full "+a,children:c.jsx(be.AutoField,{field:s,onChange:(l,d)=>{t({field:l,constantValue:(n==null?void 0:n.constantValue)??"",constantValueEnabled:!1,constantValueOverride:n==null?void 0:n.constantValueOverride},d)},value:n==null?void 0:n.field})})},f5e=e=>{var t;if(!(!((t=e.types)!=null&&t.length)||e.allowList)){if(e.types.includes("type.hero_section"))return M("noHeroFieldsMsg","To use entity content for this section, add a Hero Section field to your page group's entity type.");if(e.types.includes("type.promo_section"))return M("noPromoFieldsMsg","To use entity content for this section, add a Promo Section field to your page group's entity type.")}},h5e="2.15.0",xb={version:h5e},ibe=({children:e,document:t})=>(g.useEffect(()=>{if(t){if(!t.getElementById("mapbox-script")){const n=t.createElement("script");n.id="mapbox-script",n.src=`https://api.mapbox.com/mapbox-gl-js/v${xb.version}/mapbox-gl.js`,t.body.appendChild(n)}if(!t.getElementById("mapbox-stylesheet")){const n=t.createElement("link");n.id="mapbox-stylesheet",n.href=`https://api.mapbox.com/mapbox-gl-js/v${xb.version}/mapbox-gl.css`,n.rel="stylesheet",t.body.appendChild(n)}}},[t]),c.jsx(c.Fragment,{children:e})),so=new Wt,p5e=({puckConfig:e,puckInitialHistory:t,isLoading:n,clearHistory:a,templateMetadata:i,layoutSaveState:o,saveLayoutSaveState:r,publishLayout:s,sendLayoutForApproval:l,sendDevSaveStateData:d,buildVisualConfigLocalStorageKey:u,localDev:f})=>{const[h,p]=g.useState(!1),[b,m]=g.useState(!1),y=g.useRef(0),{i18n:S}=Nn(),w=g.useCallback((_,B)=>{if(B!==0&&y.current!==B&&_.length>0){if(so.logFunc("handleHistoryChange"),so.logData("PUCK_INDEX",B),so.logData("PUCK_HISTORY",_),y.current=B,(f||i.isDevMode)&&(so.logFunc("saveLayoutToLocalStorage"),window.localStorage.setItem(u(),ar.compress(JSON.stringify(_))),f))return;(o==null?void 0:o.hash)!==_[B].id&&(i.isDevMode&&!i.devOverride?(so.logFunc("sendDevSaveStateData"),d({payload:{devSaveStateData:JSON.stringify(_[B].state.data)}})):(so.logFunc("saveLayoutSaveState"),r({payload:{hash:_[B].id,history:JSON.stringify(_[B].state)}})))}},[i,u,o]),C=()=>{a(),y.current=0},$=async _=>{s({payload:{layoutData:JSON.stringify(_)}})},x=async(_,B)=>{l({payload:{layoutData:JSON.stringify(_),comment:B}})},L=async()=>{if(!n&&!h){p(!0);return}},A=_=>{_&&navigator.clipboard.writeText(JSON.stringify(_,null,2))},E=async(_,B,U)=>{if(B!==void 0)try{const ee=await navigator.clipboard.readText(),Y=JSON.parse(ee);if(!Y.props||!Y.type||Y.type!==U){alert("Failed to paste: Invalid component data.");return}_({type:"set",state:re=>{const Z=[...re.data.content];return B!==void 0&&Z[B]&&(Z[B]={...Z[B],props:{...Y.props,id:Z[B].props.id}}),{...re,data:{...re.data,content:Z}}}})}catch{alert("Failed to paste: Invalid component data.")}},z=g.useMemo(()=>{const _={};return Object.entries(e.components).forEach(([B,U])=>{_[B]={...U,label:M(U.label??"")}}),{categories:e.categories,components:_,root:{...e.root,fields:{title:hc({label:v("fields.title","Title"),filter:{types:["type.string"]}}),description:hc({label:v("fields.description","Description"),filter:{types:["type.string"]}})},defaultProps:{title:{field:"name",constantValue:"",constantValueEnabled:!1},description:{field:"description",constantValue:"",constantValueEnabled:!1}}}}},[e,S.language]);return c.jsx(vme,{children:c.jsx(be.Puck,{config:z,data:{},initialHistory:t,onChange:L,overrides:{header:()=>c.jsx(A3e,{templateMetadata:i,clearLocalChangesModalOpen:b,setClearLocalChangesModalOpen:m,onClearLocalChanges:C,onHistoryChange:w,onPublishLayout:$,onSendLayoutForApproval:x,isDevMode:i.isDevMode,localDev:f}),iframe:ibe,fieldTypes:{array:g5e,number:lo,object:lo,radio:lo,select:lo,text:lo,textarea:lo},actionBar:({children:_,label:B})=>{var V,I;const{appState:U,dispatch:ee}=be.usePuck(),Y=(V=U.ui.itemSelector)==null?void 0:V.index,re=(I=U.ui.itemSelector)==null?void 0:I.zone,Z=U.data.content.find((D,F)=>F===Y&&re==="default-zone"),G=Z==null?void 0:Z.type,J=c.jsxs(c.Fragment,{children:[c.jsx(be.ActionBar.Action,{label:M("actions.copyToClipboard","Copy to Clipboard"),onClick:()=>A(Z),children:c.jsx(Kwe,{size:16})}),c.jsx(be.ActionBar.Action,{label:M("actions.pasteFromClipboard","Paste from Clipboard"),onClick:async()=>await E(ee,Y,G),children:c.jsx(qwe,{size:16})})]});return c.jsx(be.ActionBar,{label:B,children:c.jsxs(be.ActionBar.Group,{children:[J,_]})})}}})})},lo=({children:e})=>{const t=n=>g.isValidElement(n)?typeof n.props.children=="string"?g.cloneElement(n,{...n.props,children:M(n.props.children)}):"label"in n.props&&"icon"in n.props||"title"in n.props?g.cloneElement(n,{...n.props,children:g.Children.map(n.props.children,t),label:n.props.label?M(n.props.label):void 0,title:n.props.title?M(n.props.title):void 0}):g.cloneElement(n,{children:g.Children.map(n.props.children,t)}):n;return c.jsx(c.Fragment,{children:g.Children.map(e,t)})},g5e=({children:e})=>{if(g.isValidElement(e))return g.cloneElement(e,{...e.props,label:M(e.props.label)})},m5e="TEMPLATE_",b5e="LAYOUT_",y5e="ENTITY_",v5e=new Wt,obe=(e,t=!1)=>{const n=g.useCallback(()=>e?k5e(e.isDevMode&&!e.devOverride,t,e.templateId,e.layoutId,e.entityId):"",[e]);return{clearVisualConfigLocalStorage:()=>{v5e.logFunc("clearVisualConfigLocalStorage"),window.localStorage.removeItem(n())},buildVisualConfigLocalStorageKey:n}};function k5e(e,t,n,a,i){const o=e?"dev":"";if(!n||!i&&!a)throw new Error(`Unable to generate local storage key, missing query parameters${!i&&" entityId"}${!a&&" layoutId"}`);let r=o+m5e+n;return a&&(r+=b5e+a),t&&i&&(r+=y5e+i),r}const S5e=()=>{const{sendToParent:e}=Jt("saveLayoutSaveState",ct),{sendToParent:t}=Jt("deleteLayoutSaveState",ct),{sendToParent:n}=Jt("sendLayoutForApproval",ct),{sendToParent:a}=Jt("publishLayout",ct);return{saveLayoutSaveState:e,deleteLayoutSaveState:t,sendLayoutForApproval:n,publishLayout:a}},w5e=new Wt,x5e=(e,t)=>{const{iFrameLoaded:n}=zi();g.useEffect(()=>{n({payload:{message:"Layout Editor is loaded"}})},[]);const[a,i]=g.useState(),[o,r]=g.useState(e);return Ea("getLayoutSaveState",ct,(s,l)=>{let d;if(l!=null&&l.history){const u=JSON.parse(l.history),f={...u,data:nr(u.data,tr)};d={hash:l.hash,history:f}}w5e.logData("LAYOUT_SAVE_STATE",d),i(d),r(!0),s({status:"success",payload:{message:"layoutSaveState received"}})}),{layoutSaveState:a,layoutSaveStateFetched:o}},$5e="SITE_",C5e="THEME_",T5e=new Wt,rbe=e=>{const t=g.useCallback(()=>e!=null&&e.themeEntityId?L5e(e.isDevMode,e.siteId,e.themeEntityId):"",[e]);return{clearThemeLocalStorage:()=>{T5e.logFunc("clearThemeLocalStorage"),window.localStorage.removeItem(t())},buildThemeLocalStorageKey:t}};function L5e(e,t,n){if(!n)throw new Error("Unable to generate local storage key for themes, missing themeId");return(e?"dev":"")+$5e+t+C5e+n}const pp=({minProgress:e=0,maxProgress:t=100,completionCriteria:n})=>{const a=g.useMemo(()=>n.includes(!1),[n]),i=g.useMemo(()=>{const o=n.filter(Boolean).length,r=n.length,s=r>0?o/r:0;return Math.round(e+s*(t-e))},[n,e,t]);return{isLoading:a,progress:i}},Sa=new Wt,A5e=e=>{const{puckConfig:t,templateMetadata:n,layoutData:a,themeData:i,themeConfig:o,localDev:r}=e,{saveLayoutSaveState:s,publishLayout:l,sendLayoutForApproval:d,deleteLayoutSaveState:u}=S5e(),{sendDevLayoutSaveStateData:f,sendDevThemeSaveStateData:h}=zi(),{layoutSaveState:p,layoutSaveStateFetched:b}=x5e(r),{buildVisualConfigLocalStorageKey:m,clearVisualConfigLocalStorage:y}=obe(n),{buildThemeLocalStorageKey:S}=rbe(n),[w,C]=g.useState(),[$,x]=g.useState(!1),L=()=>{Sa.logFunc("clearHistory"),y(),!r&&u()};g.useEffect(()=>{if(o){if(n.isDevMode){const _=ar.decompress(window.localStorage.getItem(S())||""),B=_?JSON.parse(_):[];if(B.length>0){const U=B[B.length-1].data;Sa.log("Layout Dev Mode - Using theme data from local storage"),h({payload:{devThemeSaveStateData:JSON.stringify(U)}}),Qo(U,o);return}}i&&Qo(i,o)}},[i,o,n]);const A=g.useCallback(()=>{if(n){if(Sa.logFunc("loadPuckInitialHistory"),n.isDevMode&&!n.devOverride){const _=ar.decompress(window.localStorage.getItem(m())||"");if(_){Sa.log("Layout Dev Mode - Using layout data from localStorage");const B=JSON.parse(_).map(ee=>({id:ee.id,state:{data:nr(ee.state.data),ui:ee.state.ui}})),U=B.length-1;C({histories:B,index:U,appendData:!1}),x(!0);return}Sa.log("Layout Dev Mode - No localStorage. Using layout data from Content"),a&&C({histories:[{id:"root",state:{data:a}}],appendData:!1}),x(!0);return}if(!p){y(),Sa.log("Layout Prod Mode - No saveState. Using layout data from Content"),a&&C({histories:[{id:"root",state:{data:a}}],appendData:!1}),x(!0);return}Sa.log("Layout Prod Mode - Using layout saveState"),C({histories:a?[{id:"root",state:{data:a}},{id:p.hash,state:{data:p.history.data}}]:[{id:p.hash,state:{data:p.history.data}}],index:a?1:0,appendData:!1}),x(!0)}},[C,x,y,m]);g.useEffect(()=>{b&&A()},[n,b]),g.useEffect(()=>{w&&Sa.logData("PUCK_INITIAL_HISTORY",w)},[w]),g.useEffect(()=>{if(!$)return;const _=w==null?void 0:w.histories[w.histories.length-1].state.data;Sa.logFunc("sendDevSaveStateData useEffect"),f({payload:{devSaveStateData:JSON.stringify(_)}})},[$,w,n]);const{isLoading:E,progress:z}=pp({minProgress:60,completionCriteria:[$,b]});return E?c.jsx(Xh,{progress:z,platformLanguageIsSet:!!(n!=null&&n.platformLocale)}):c.jsx(p5e,{puckConfig:t,puckInitialHistory:w,isLoading:E,clearHistory:L,templateMetadata:n,layoutSaveState:p,saveLayoutSaveState:s,publishLayout:l,sendLayoutForApproval:d,sendDevSaveStateData:f,buildVisualConfigLocalStorageKey:m,localDev:r})},N5e=di("ve-relative ve-rounded ve-border ve-mx-4 ve-my-3 ve-p-4 ve-[&>svg~*]:pl-7 ve-[&>svg+div]:translate-y-[-3px] ve-[&>svg]:absolute ve-[&>svg]:left-4 ve-[&>svg]:top-4 ve-[&>svg]:text-foreground",{variants:{variant:{default:"ve-bg-background ve-text-foreground",destructive:"ve-border-destructive/50 ve-text-destructive ve-dark:border-destructive ve-[&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Mf=g.forwardRef(({className:e,variant:t,...n},a)=>c.jsx("div",{ref:a,role:"alert",className:tt(N5e({variant:t}),e),...n}));Mf.displayName="Alert";const E5e=g.forwardRef(({className:e,...t},n)=>c.jsx("h5",{ref:n,className:tt("ve-mb-1 ve-font-medium ve-leading-none ve-tracking-tight",e),...t}));E5e.displayName="AlertTitle";const Rf=g.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:tt("ve-text-sm [&_p]:ve-leading-relaxed",e),...t}));Rf.displayName="AlertDescription";var Cn={},Es={},P5e=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,sbe=P5e,O5e=sbe,F5e=typeof self=="object"&&self&&self.Object===Object&&self,j5e=O5e||F5e||Function("return this")(),ma=j5e,M5e=ma,R5e=M5e.Symbol,Ps=R5e,$b=Ps,lbe=Object.prototype,_5e=lbe.hasOwnProperty,I5e=lbe.toString,Hr=$b?$b.toStringTag:void 0;function D5e(e){var t=_5e.call(e,Hr),n=e[Hr];try{e[Hr]=void 0;var a=!0}catch{}var i=I5e.call(e);return a&&(t?e[Hr]=n:delete e[Hr]),i}var H5e=D5e,z5e=Object.prototype,B5e=z5e.toString;function W5e(e){return B5e.call(e)}var V5e=W5e,Cb=Ps,G5e=H5e,U5e=V5e,K5e="[object Null]",q5e="[object Undefined]",Tb=Cb?Cb.toStringTag:void 0;function Y5e(e){return e==null?e===void 0?q5e:K5e:Tb&&Tb in Object(e)?G5e(e):U5e(e)}var Wi=Y5e,Z5e=Array.isArray,qn=Z5e;function X5e(e){return e!=null&&typeof e=="object"}var Ha=X5e,Q5e=Wi,J5e=qn,eOe=Ha,tOe="[object String]";function nOe(e){return typeof e=="string"||!J5e(e)&&eOe(e)&&Q5e(e)==tOe}var aOe=nOe;function iOe(e){return function(t,n,a){for(var i=-1,o=Object(t),r=a(t),s=r.length;s--;){var l=r[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var oOe=iOe,rOe=oOe,sOe=rOe(),lOe=sOe;function cOe(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var dOe=cOe,uOe=Wi,fOe=Ha,hOe="[object Arguments]";function pOe(e){return fOe(e)&&uOe(e)==hOe}var gOe=pOe,Lb=gOe,mOe=Ha,cbe=Object.prototype,bOe=cbe.hasOwnProperty,yOe=cbe.propertyIsEnumerable,vOe=Lb(function(){return arguments}())?Lb:function(e){return mOe(e)&&bOe.call(e,"callee")&&!yOe.call(e,"callee")},dbe=vOe,pc={exports:{}};function kOe(){return!1}var SOe=kOe;pc.exports;(function(e,t){var n=ma,a=SOe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,r=o&&o.exports===i,s=r?n.Buffer:void 0,l=s?s.isBuffer:void 0,d=l||a;e.exports=d})(pc,pc.exports);var gp=pc.exports,wOe=9007199254740991,xOe=/^(?:0|[1-9]\d*)$/;function $Oe(e,t){var n=typeof e;return t=t??wOe,!!t&&(n=="number"||n!="symbol"&&xOe.test(e))&&e>-1&&e%1==0&&e<t}var ube=$Oe,COe=9007199254740991;function TOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=COe}var mp=TOe,LOe=Wi,AOe=mp,NOe=Ha,EOe="[object Arguments]",POe="[object Array]",OOe="[object Boolean]",FOe="[object Date]",jOe="[object Error]",MOe="[object Function]",ROe="[object Map]",_Oe="[object Number]",IOe="[object Object]",DOe="[object RegExp]",HOe="[object Set]",zOe="[object String]",BOe="[object WeakMap]",WOe="[object ArrayBuffer]",VOe="[object DataView]",GOe="[object Float32Array]",UOe="[object Float64Array]",KOe="[object Int8Array]",qOe="[object Int16Array]",YOe="[object Int32Array]",ZOe="[object Uint8Array]",XOe="[object Uint8ClampedArray]",QOe="[object Uint16Array]",JOe="[object Uint32Array]",at={};at[GOe]=at[UOe]=at[KOe]=at[qOe]=at[YOe]=at[ZOe]=at[XOe]=at[QOe]=at[JOe]=!0;at[EOe]=at[POe]=at[WOe]=at[OOe]=at[VOe]=at[FOe]=at[jOe]=at[MOe]=at[ROe]=at[_Oe]=at[IOe]=at[DOe]=at[HOe]=at[zOe]=at[BOe]=!1;function e8e(e){return NOe(e)&&AOe(e.length)&&!!at[LOe(e)]}var t8e=e8e;function n8e(e){return function(t){return e(t)}}var bp=n8e,gc={exports:{}};gc.exports;(function(e,t){var n=sbe,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,r=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||r&&r.binding&&r.binding("util")}catch{}}();e.exports=s})(gc,gc.exports);var yp=gc.exports,a8e=t8e,i8e=bp,Ab=yp,Nb=Ab&&Ab.isTypedArray,o8e=Nb?i8e(Nb):a8e,fbe=o8e,r8e=dOe,s8e=dbe,l8e=qn,c8e=gp,d8e=ube,u8e=fbe,f8e=Object.prototype,h8e=f8e.hasOwnProperty;function p8e(e,t){var n=l8e(e),a=!n&&s8e(e),i=!n&&!a&&c8e(e),o=!n&&!a&&!i&&u8e(e),r=n||a||i||o,s=r?r8e(e.length,String):[],l=s.length;for(var d in e)(t||h8e.call(e,d))&&!(r&&(d=="length"||i&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||d8e(d,l)))&&s.push(d);return s}var hbe=p8e,g8e=Object.prototype;function m8e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||g8e;return e===n}var vp=m8e;function b8e(e,t){return function(n){return e(t(n))}}var pbe=b8e,y8e=pbe,v8e=y8e(Object.keys,Object),k8e=v8e,S8e=vp,w8e=k8e,x8e=Object.prototype,$8e=x8e.hasOwnProperty;function C8e(e){if(!S8e(e))return w8e(e);var t=[];for(var n in Object(e))$8e.call(e,n)&&n!="constructor"&&t.push(n);return t}var T8e=C8e;function L8e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gr=L8e,A8e=Wi,N8e=gr,E8e="[object AsyncFunction]",P8e="[object Function]",O8e="[object GeneratorFunction]",F8e="[object Proxy]";function j8e(e){if(!N8e(e))return!1;var t=A8e(e);return t==P8e||t==O8e||t==E8e||t==F8e}var gbe=j8e,M8e=gbe,R8e=mp;function _8e(e){return e!=null&&R8e(e.length)&&!M8e(e)}var id=_8e,I8e=hbe,D8e=T8e,H8e=id;function z8e(e){return H8e(e)?I8e(e):D8e(e)}var Os=z8e,B8e=lOe,W8e=Os;function V8e(e,t){return e&&B8e(e,t,W8e)}var mbe=V8e;function G8e(e){return e}var bbe=G8e,U8e=bbe;function K8e(e){return typeof e=="function"?e:U8e}var q8e=K8e,Y8e=mbe,Z8e=q8e;function X8e(e,t){return e&&Y8e(e,Z8e(t))}var kp=X8e,Q8e=pbe,J8e=Q8e(Object.getPrototypeOf,Object),Sp=J8e,e6e=Wi,t6e=Sp,n6e=Ha,a6e="[object Object]",i6e=Function.prototype,o6e=Object.prototype,ybe=i6e.toString,r6e=o6e.hasOwnProperty,s6e=ybe.call(Object);function l6e(e){if(!n6e(e)||e6e(e)!=a6e)return!1;var t=t6e(e);if(t===null)return!0;var n=r6e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ybe.call(n)==s6e}var c6e=l6e;function d6e(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}var vbe=d6e;function u6e(){this.__data__=[],this.size=0}var f6e=u6e;function h6e(e,t){return e===t||e!==e&&t!==t}var wp=h6e,p6e=wp;function g6e(e,t){for(var n=e.length;n--;)if(p6e(e[n][0],t))return n;return-1}var od=g6e,m6e=od,b6e=Array.prototype,y6e=b6e.splice;function v6e(e){var t=this.__data__,n=m6e(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():y6e.call(t,n,1),--this.size,!0}var k6e=v6e,S6e=od;function w6e(e){var t=this.__data__,n=S6e(t,e);return n<0?void 0:t[n][1]}var x6e=w6e,$6e=od;function C6e(e){return $6e(this.__data__,e)>-1}var T6e=C6e,L6e=od;function A6e(e,t){var n=this.__data__,a=L6e(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var N6e=A6e,E6e=f6e,P6e=k6e,O6e=x6e,F6e=T6e,j6e=N6e;function mr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}mr.prototype.clear=E6e;mr.prototype.delete=P6e;mr.prototype.get=O6e;mr.prototype.has=F6e;mr.prototype.set=j6e;var rd=mr,M6e=rd;function R6e(){this.__data__=new M6e,this.size=0}var _6e=R6e;function I6e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var D6e=I6e;function H6e(e){return this.__data__.get(e)}var z6e=H6e;function B6e(e){return this.__data__.has(e)}var W6e=B6e,V6e=ma,G6e=V6e["__core-js_shared__"],U6e=G6e,lu=U6e,Eb=function(){var e=/[^.]+$/.exec(lu&&lu.keys&&lu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function K6e(e){return!!Eb&&Eb in e}var q6e=K6e,Y6e=Function.prototype,Z6e=Y6e.toString;function X6e(e){if(e!=null){try{return Z6e.call(e)}catch{}try{return e+""}catch{}}return""}var kbe=X6e,Q6e=gbe,J6e=q6e,e9e=gr,t9e=kbe,n9e=/[\\^$.*+?()[\]{}|]/g,a9e=/^\[object .+?Constructor\]$/,i9e=Function.prototype,o9e=Object.prototype,r9e=i9e.toString,s9e=o9e.hasOwnProperty,l9e=RegExp("^"+r9e.call(s9e).replace(n9e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c9e(e){if(!e9e(e)||J6e(e))return!1;var t=Q6e(e)?l9e:a9e;return t.test(t9e(e))}var d9e=c9e;function u9e(e,t){return e==null?void 0:e[t]}var f9e=u9e,h9e=d9e,p9e=f9e;function g9e(e,t){var n=p9e(e,t);return h9e(n)?n:void 0}var Vi=g9e,m9e=Vi,b9e=ma,y9e=m9e(b9e,"Map"),xp=y9e,v9e=Vi,k9e=v9e(Object,"create"),sd=k9e,Pb=sd;function S9e(){this.__data__=Pb?Pb(null):{},this.size=0}var w9e=S9e;function x9e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $9e=x9e,C9e=sd,T9e="__lodash_hash_undefined__",L9e=Object.prototype,A9e=L9e.hasOwnProperty;function N9e(e){var t=this.__data__;if(C9e){var n=t[e];return n===T9e?void 0:n}return A9e.call(t,e)?t[e]:void 0}var E9e=N9e,P9e=sd,O9e=Object.prototype,F9e=O9e.hasOwnProperty;function j9e(e){var t=this.__data__;return P9e?t[e]!==void 0:F9e.call(t,e)}var M9e=j9e,R9e=sd,_9e="__lodash_hash_undefined__";function I9e(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=R9e&&t===void 0?_9e:t,this}var D9e=I9e,H9e=w9e,z9e=$9e,B9e=E9e,W9e=M9e,V9e=D9e;function br(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}br.prototype.clear=H9e;br.prototype.delete=z9e;br.prototype.get=B9e;br.prototype.has=W9e;br.prototype.set=V9e;var G9e=br,Ob=G9e,U9e=rd,K9e=xp;function q9e(){this.size=0,this.__data__={hash:new Ob,map:new(K9e||U9e),string:new Ob}}var Y9e=q9e;function Z9e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var X9e=Z9e,Q9e=X9e;function J9e(e,t){var n=e.__data__;return Q9e(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ld=J9e,e7e=ld;function t7e(e){var t=e7e(this,e).delete(e);return this.size-=t?1:0,t}var n7e=t7e,a7e=ld;function i7e(e){return a7e(this,e).get(e)}var o7e=i7e,r7e=ld;function s7e(e){return r7e(this,e).has(e)}var l7e=s7e,c7e=ld;function d7e(e,t){var n=c7e(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var u7e=d7e,f7e=Y9e,h7e=n7e,p7e=o7e,g7e=l7e,m7e=u7e;function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}yr.prototype.clear=f7e;yr.prototype.delete=h7e;yr.prototype.get=p7e;yr.prototype.has=g7e;yr.prototype.set=m7e;var $p=yr,b7e=rd,y7e=xp,v7e=$p,k7e=200;function S7e(e,t){var n=this.__data__;if(n instanceof b7e){var a=n.__data__;if(!y7e||a.length<k7e-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new v7e(a)}return n.set(e,t),this.size=n.size,this}var w7e=S7e,x7e=rd,$7e=_6e,C7e=D6e,T7e=z6e,L7e=W6e,A7e=w7e;function vr(e){var t=this.__data__=new x7e(e);this.size=t.size}vr.prototype.clear=$7e;vr.prototype.delete=C7e;vr.prototype.get=T7e;vr.prototype.has=L7e;vr.prototype.set=A7e;var Cp=vr,N7e="__lodash_hash_undefined__";function E7e(e){return this.__data__.set(e,N7e),this}var P7e=E7e;function O7e(e){return this.__data__.has(e)}var F7e=O7e,j7e=$p,M7e=P7e,R7e=F7e;function mc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new j7e;++t<n;)this.add(e[t])}mc.prototype.add=mc.prototype.push=M7e;mc.prototype.has=R7e;var _7e=mc;function I7e(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var D7e=I7e;function H7e(e,t){return e.has(t)}var z7e=H7e,B7e=_7e,W7e=D7e,V7e=z7e,G7e=1,U7e=2;function K7e(e,t,n,a,i,o){var r=n&G7e,s=e.length,l=t.length;if(s!=l&&!(r&&l>s))return!1;var d=o.get(e),u=o.get(t);if(d&&u)return d==t&&u==e;var f=-1,h=!0,p=n&U7e?new B7e:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var b=e[f],m=t[f];if(a)var y=r?a(m,b,f,t,e,o):a(b,m,f,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!W7e(t,function(S,w){if(!V7e(p,w)&&(b===S||i(b,S,n,a,o)))return p.push(w)})){h=!1;break}}else if(!(b===m||i(b,m,n,a,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var Sbe=K7e,q7e=ma,Y7e=q7e.Uint8Array,wbe=Y7e;function Z7e(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}var X7e=Z7e;function Q7e(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}var J7e=Q7e,Fb=Ps,jb=wbe,eFe=wp,tFe=Sbe,nFe=X7e,aFe=J7e,iFe=1,oFe=2,rFe="[object Boolean]",sFe="[object Date]",lFe="[object Error]",cFe="[object Map]",dFe="[object Number]",uFe="[object RegExp]",fFe="[object Set]",hFe="[object String]",pFe="[object Symbol]",gFe="[object ArrayBuffer]",mFe="[object DataView]",Mb=Fb?Fb.prototype:void 0,cu=Mb?Mb.valueOf:void 0;function bFe(e,t,n,a,i,o,r){switch(n){case mFe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gFe:return!(e.byteLength!=t.byteLength||!o(new jb(e),new jb(t)));case rFe:case sFe:case dFe:return eFe(+e,+t);case lFe:return e.name==t.name&&e.message==t.message;case uFe:case hFe:return e==t+"";case cFe:var s=nFe;case fFe:var l=a&iFe;if(s||(s=aFe),e.size!=t.size&&!l)return!1;var d=r.get(e);if(d)return d==t;a|=oFe,r.set(e,t);var u=tFe(s(e),s(t),a,i,o,r);return r.delete(e),u;case pFe:if(cu)return cu.call(e)==cu.call(t)}return!1}var yFe=bFe;function vFe(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}var xbe=vFe,kFe=xbe,SFe=qn;function wFe(e,t,n){var a=t(e);return SFe(e)?a:kFe(a,n(e))}var $be=wFe;function xFe(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var r=e[n];t(r,n,e)&&(o[i++]=r)}return o}var $Fe=xFe;function CFe(){return[]}var Cbe=CFe,TFe=$Fe,LFe=Cbe,AFe=Object.prototype,NFe=AFe.propertyIsEnumerable,Rb=Object.getOwnPropertySymbols,EFe=Rb?function(e){return e==null?[]:(e=Object(e),TFe(Rb(e),function(t){return NFe.call(e,t)}))}:LFe,Tp=EFe,PFe=$be,OFe=Tp,FFe=Os;function jFe(e){return PFe(e,FFe,OFe)}var Tbe=jFe,_b=Tbe,MFe=1,RFe=Object.prototype,_Fe=RFe.hasOwnProperty;function IFe(e,t,n,a,i,o){var r=n&MFe,s=_b(e),l=s.length,d=_b(t),u=d.length;if(l!=u&&!r)return!1;for(var f=l;f--;){var h=s[f];if(!(r?h in t:_Fe.call(t,h)))return!1}var p=o.get(e),b=o.get(t);if(p&&b)return p==t&&b==e;var m=!0;o.set(e,t),o.set(t,e);for(var y=r;++f<l;){h=s[f];var S=e[h],w=t[h];if(a)var C=r?a(w,S,h,t,e,o):a(S,w,h,e,t,o);if(!(C===void 0?S===w||i(S,w,n,a,o):C)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var $=e.constructor,x=t.constructor;$!=x&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof x=="function"&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}var DFe=IFe,HFe=Vi,zFe=ma,BFe=HFe(zFe,"DataView"),WFe=BFe,VFe=Vi,GFe=ma,UFe=VFe(GFe,"Promise"),KFe=UFe,qFe=Vi,YFe=ma,ZFe=qFe(YFe,"Set"),XFe=ZFe,QFe=Vi,JFe=ma,eje=QFe(JFe,"WeakMap"),tje=eje,_f=WFe,If=xp,Df=KFe,Hf=XFe,zf=tje,Lbe=Wi,kr=kbe,Ib="[object Map]",nje="[object Object]",Db="[object Promise]",Hb="[object Set]",zb="[object WeakMap]",Bb="[object DataView]",aje=kr(_f),ije=kr(If),oje=kr(Df),rje=kr(Hf),sje=kr(zf),wi=Lbe;(_f&&wi(new _f(new ArrayBuffer(1)))!=Bb||If&&wi(new If)!=Ib||Df&&wi(Df.resolve())!=Db||Hf&&wi(new Hf)!=Hb||zf&&wi(new zf)!=zb)&&(wi=function(e){var t=Lbe(e),n=t==nje?e.constructor:void 0,a=n?kr(n):"";if(a)switch(a){case aje:return Bb;case ije:return Ib;case oje:return Db;case rje:return Hb;case sje:return zb}return t});var cd=wi,du=Cp,lje=Sbe,cje=yFe,dje=DFe,Wb=cd,Vb=qn,Gb=gp,uje=fbe,fje=1,Ub="[object Arguments]",Kb="[object Array]",sl="[object Object]",hje=Object.prototype,qb=hje.hasOwnProperty;function pje(e,t,n,a,i,o){var r=Vb(e),s=Vb(t),l=r?Kb:Wb(e),d=s?Kb:Wb(t);l=l==Ub?sl:l,d=d==Ub?sl:d;var u=l==sl,f=d==sl,h=l==d;if(h&&Gb(e)){if(!Gb(t))return!1;r=!0,u=!1}if(h&&!u)return o||(o=new du),r||uje(e)?lje(e,t,n,a,i,o):cje(e,t,l,n,a,i,o);if(!(n&fje)){var p=u&&qb.call(e,"__wrapped__"),b=f&&qb.call(t,"__wrapped__");if(p||b){var m=p?e.value():e,y=b?t.value():t;return o||(o=new du),i(m,y,n,a,o)}}return h?(o||(o=new du),dje(e,t,n,a,i,o)):!1}var gje=pje,mje=gje,Yb=Ha;function Abe(e,t,n,a,i){return e===t?!0:e==null||t==null||!Yb(e)&&!Yb(t)?e!==e&&t!==t:mje(e,t,n,a,Abe,i)}var Nbe=Abe,bje=Cp,yje=Nbe,vje=1,kje=2;function Sje(e,t,n,a){var i=n.length,o=i,r=!a;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(r&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],d=e[l],u=s[1];if(r&&s[2]){if(d===void 0&&!(l in e))return!1}else{var f=new bje;if(a)var h=a(d,u,l,e,t,f);if(!(h===void 0?yje(u,d,vje|kje,a,f):h))return!1}}return!0}var wje=Sje,xje=gr;function $je(e){return e===e&&!xje(e)}var Ebe=$je,Cje=Ebe,Tje=Os;function Lje(e){for(var t=Tje(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,Cje(i)]}return t}var Aje=Lje;function Nje(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Pbe=Nje,Eje=wje,Pje=Aje,Oje=Pbe;function Fje(e){var t=Pje(e);return t.length==1&&t[0][2]?Oje(t[0][0],t[0][1]):function(n){return n===e||Eje(n,e,t)}}var jje=Fje,Mje=Wi,Rje=Ha,_je="[object Symbol]";function Ije(e){return typeof e=="symbol"||Rje(e)&&Mje(e)==_je}var Lp=Ije,Dje=qn,Hje=Lp,zje=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bje=/^\w*$/;function Wje(e,t){if(Dje(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Hje(e)?!0:Bje.test(e)||!zje.test(e)||t!=null&&e in Object(t)}var Ap=Wje,Obe=$p,Vje="Expected a function";function Np(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vje);var n=function(){var a=arguments,i=t?t.apply(this,a):a[0],o=n.cache;if(o.has(i))return o.get(i);var r=e.apply(this,a);return n.cache=o.set(i,r)||o,r};return n.cache=new(Np.Cache||Obe),n}Np.Cache=Obe;var Gje=Np,Uje=Gje,Kje=500;function qje(e){var t=Uje(e,function(a){return n.size===Kje&&n.clear(),a}),n=t.cache;return t}var Yje=qje,Zje=Yje,Xje=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qje=/\\(\\)?/g,Jje=Zje(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xje,function(n,a,i,o){t.push(i?o.replace(Qje,"$1"):a||n)}),t}),eMe=Jje,Zb=Ps,tMe=vbe,nMe=qn,aMe=Lp,Xb=Zb?Zb.prototype:void 0,Qb=Xb?Xb.toString:void 0;function Fbe(e){if(typeof e=="string")return e;if(nMe(e))return tMe(e,Fbe)+"";if(aMe(e))return Qb?Qb.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var iMe=Fbe,oMe=iMe;function rMe(e){return e==null?"":oMe(e)}var sMe=rMe,lMe=qn,cMe=Ap,dMe=eMe,uMe=sMe;function fMe(e,t){return lMe(e)?e:cMe(e,t)?[e]:dMe(uMe(e))}var jbe=fMe,hMe=Lp;function pMe(e){if(typeof e=="string"||hMe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var dd=pMe,gMe=jbe,mMe=dd;function bMe(e,t){t=gMe(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[mMe(t[n++])];return n&&n==a?e:void 0}var Mbe=bMe,yMe=Mbe;function vMe(e,t,n){var a=e==null?void 0:yMe(e,t);return a===void 0?n:a}var kMe=vMe;function SMe(e,t){return e!=null&&t in Object(e)}var wMe=SMe,xMe=jbe,$Me=dbe,CMe=qn,TMe=ube,LMe=mp,AMe=dd;function NMe(e,t,n){t=xMe(t,e);for(var a=-1,i=t.length,o=!1;++a<i;){var r=AMe(t[a]);if(!(o=e!=null&&n(e,r)))break;e=e[r]}return o||++a!=i?o:(i=e==null?0:e.length,!!i&&LMe(i)&&TMe(r,i)&&(CMe(e)||$Me(e)))}var EMe=NMe,PMe=wMe,OMe=EMe;function FMe(e,t){return e!=null&&OMe(e,t,PMe)}var jMe=FMe,MMe=Nbe,RMe=kMe,_Me=jMe,IMe=Ap,DMe=Ebe,HMe=Pbe,zMe=dd,BMe=1,WMe=2;function VMe(e,t){return IMe(e)&&DMe(t)?HMe(zMe(e),t):function(n){var a=RMe(n,e);return a===void 0&&a===t?_Me(n,e):MMe(t,a,BMe|WMe)}}var GMe=VMe;function UMe(e){return function(t){return t==null?void 0:t[e]}}var KMe=UMe,qMe=Mbe;function YMe(e){return function(t){return qMe(t,e)}}var ZMe=YMe,XMe=KMe,QMe=ZMe,JMe=Ap,eRe=dd;function tRe(e){return JMe(e)?XMe(eRe(e)):QMe(e)}var nRe=tRe,aRe=jje,iRe=GMe,oRe=bbe,rRe=qn,sRe=nRe;function lRe(e){return typeof e=="function"?e:e==null?oRe:typeof e=="object"?rRe(e)?iRe(e[0],e[1]):aRe(e):sRe(e)}var cRe=lRe,dRe=id;function uRe(e,t){return function(n,a){if(n==null)return n;if(!dRe(n))return e(n,a);for(var i=n.length,o=t?i:-1,r=Object(n);(t?o--:++o<i)&&a(r[o],o,r)!==!1;);return n}}var fRe=uRe,hRe=mbe,pRe=fRe,gRe=pRe(hRe),mRe=gRe,bRe=mRe,yRe=id;function vRe(e,t){var n=-1,a=yRe(e)?Array(e.length):[];return bRe(e,function(i,o,r){a[++n]=t(i,o,r)}),a}var kRe=vRe,SRe=vbe,wRe=cRe,xRe=kRe,$Re=qn;function CRe(e,t){var n=$Re(e)?SRe:xRe;return n(e,wRe(t))}var TRe=CRe;Object.defineProperty(Es,"__esModule",{value:!0});Es.flattenNames=void 0;var LRe=aOe,ARe=ud(LRe),NRe=kp,ERe=ud(NRe),PRe=c6e,ORe=ud(PRe),FRe=TRe,jRe=ud(FRe);function ud(e){return e&&e.__esModule?e:{default:e}}var MRe=Es.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,jRe.default)(t,function(a){Array.isArray(a)?e(a).map(function(i){return n.push(i)}):(0,ORe.default)(a)?(0,ERe.default)(a,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,ARe.default)(a)&&n.push(a)}),n};Es.default=MRe;var Fs={};function RRe(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var _Re=RRe,IRe=Vi,DRe=function(){try{var e=IRe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),HRe=DRe,Jb=HRe;function zRe(e,t,n){t=="__proto__"&&Jb?Jb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Rbe=zRe,BRe=Rbe,WRe=wp,VRe=Object.prototype,GRe=VRe.hasOwnProperty;function URe(e,t,n){var a=e[t];(!(GRe.call(e,t)&&WRe(a,n))||n===void 0&&!(t in e))&&BRe(e,t,n)}var _be=URe,KRe=_be,qRe=Rbe;function YRe(e,t,n,a){var i=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var s=t[o],l=a?a(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?qRe(n,s,l):KRe(n,s,l)}return n}var fd=YRe,ZRe=fd,XRe=Os;function QRe(e,t){return e&&ZRe(t,XRe(t),e)}var JRe=QRe;function e_e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var t_e=e_e,n_e=gr,a_e=vp,i_e=t_e,o_e=Object.prototype,r_e=o_e.hasOwnProperty;function s_e(e){if(!n_e(e))return i_e(e);var t=a_e(e),n=[];for(var a in e)a=="constructor"&&(t||!r_e.call(e,a))||n.push(a);return n}var l_e=s_e,c_e=hbe,d_e=l_e,u_e=id;function f_e(e){return u_e(e)?c_e(e,!0):d_e(e)}var Ep=f_e,h_e=fd,p_e=Ep;function g_e(e,t){return e&&h_e(t,p_e(t),e)}var m_e=g_e,bc={exports:{}};bc.exports;(function(e,t){var n=ma,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,r=o?n.Buffer:void 0,s=r?r.allocUnsafe:void 0;function l(d,u){if(u)return d.slice();var f=d.length,h=s?s(f):new d.constructor(f);return d.copy(h),h}e.exports=l})(bc,bc.exports);var b_e=bc.exports;function y_e(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var v_e=y_e,k_e=fd,S_e=Tp;function w_e(e,t){return k_e(e,S_e(e),t)}var x_e=w_e,$_e=xbe,C_e=Sp,T_e=Tp,L_e=Cbe,A_e=Object.getOwnPropertySymbols,N_e=A_e?function(e){for(var t=[];e;)$_e(t,T_e(e)),e=C_e(e);return t}:L_e,Ibe=N_e,E_e=fd,P_e=Ibe;function O_e(e,t){return E_e(e,P_e(e),t)}var F_e=O_e,j_e=$be,M_e=Ibe,R_e=Ep;function __e(e){return j_e(e,R_e,M_e)}var I_e=__e,D_e=Object.prototype,H_e=D_e.hasOwnProperty;function z_e(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&H_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var B_e=z_e,ey=wbe;function W_e(e){var t=new e.constructor(e.byteLength);return new ey(t).set(new ey(e)),t}var Pp=W_e,V_e=Pp;function G_e(e,t){var n=t?V_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var U_e=G_e,K_e=/\w*$/;function q_e(e){var t=new e.constructor(e.source,K_e.exec(e));return t.lastIndex=e.lastIndex,t}var Y_e=q_e,ty=Ps,ny=ty?ty.prototype:void 0,ay=ny?ny.valueOf:void 0;function Z_e(e){return ay?Object(ay.call(e)):{}}var X_e=Z_e,Q_e=Pp;function J_e(e,t){var n=t?Q_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eIe=J_e,tIe=Pp,nIe=U_e,aIe=Y_e,iIe=X_e,oIe=eIe,rIe="[object Boolean]",sIe="[object Date]",lIe="[object Map]",cIe="[object Number]",dIe="[object RegExp]",uIe="[object Set]",fIe="[object String]",hIe="[object Symbol]",pIe="[object ArrayBuffer]",gIe="[object DataView]",mIe="[object Float32Array]",bIe="[object Float64Array]",yIe="[object Int8Array]",vIe="[object Int16Array]",kIe="[object Int32Array]",SIe="[object Uint8Array]",wIe="[object Uint8ClampedArray]",xIe="[object Uint16Array]",$Ie="[object Uint32Array]";function CIe(e,t,n){var a=e.constructor;switch(t){case pIe:return tIe(e);case rIe:case sIe:return new a(+e);case gIe:return nIe(e,n);case mIe:case bIe:case yIe:case vIe:case kIe:case SIe:case wIe:case xIe:case $Ie:return oIe(e,n);case lIe:return new a;case cIe:case fIe:return new a(e);case dIe:return aIe(e);case uIe:return new a;case hIe:return iIe(e)}}var TIe=CIe,LIe=gr,iy=Object.create,AIe=function(){function e(){}return function(t){if(!LIe(t))return{};if(iy)return iy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),NIe=AIe,EIe=NIe,PIe=Sp,OIe=vp;function FIe(e){return typeof e.constructor=="function"&&!OIe(e)?EIe(PIe(e)):{}}var jIe=FIe,MIe=cd,RIe=Ha,_Ie="[object Map]";function IIe(e){return RIe(e)&&MIe(e)==_Ie}var DIe=IIe,HIe=DIe,zIe=bp,oy=yp,ry=oy&&oy.isMap,BIe=ry?zIe(ry):HIe,WIe=BIe,VIe=cd,GIe=Ha,UIe="[object Set]";function KIe(e){return GIe(e)&&VIe(e)==UIe}var qIe=KIe,YIe=qIe,ZIe=bp,sy=yp,ly=sy&&sy.isSet,XIe=ly?ZIe(ly):YIe,QIe=XIe,JIe=Cp,eDe=_Re,tDe=_be,nDe=JRe,aDe=m_e,iDe=b_e,oDe=v_e,rDe=x_e,sDe=F_e,lDe=Tbe,cDe=I_e,dDe=cd,uDe=B_e,fDe=TIe,hDe=jIe,pDe=qn,gDe=gp,mDe=WIe,bDe=gr,yDe=QIe,vDe=Os,kDe=Ep,SDe=1,wDe=2,xDe=4,Dbe="[object Arguments]",$De="[object Array]",CDe="[object Boolean]",TDe="[object Date]",LDe="[object Error]",Hbe="[object Function]",ADe="[object GeneratorFunction]",NDe="[object Map]",EDe="[object Number]",zbe="[object Object]",PDe="[object RegExp]",ODe="[object Set]",FDe="[object String]",jDe="[object Symbol]",MDe="[object WeakMap]",RDe="[object ArrayBuffer]",_De="[object DataView]",IDe="[object Float32Array]",DDe="[object Float64Array]",HDe="[object Int8Array]",zDe="[object Int16Array]",BDe="[object Int32Array]",WDe="[object Uint8Array]",VDe="[object Uint8ClampedArray]",GDe="[object Uint16Array]",UDe="[object Uint32Array]",et={};et[Dbe]=et[$De]=et[RDe]=et[_De]=et[CDe]=et[TDe]=et[IDe]=et[DDe]=et[HDe]=et[zDe]=et[BDe]=et[NDe]=et[EDe]=et[zbe]=et[PDe]=et[ODe]=et[FDe]=et[jDe]=et[WDe]=et[VDe]=et[GDe]=et[UDe]=!0;et[LDe]=et[Hbe]=et[MDe]=!1;function Dl(e,t,n,a,i,o){var r,s=t&SDe,l=t&wDe,d=t&xDe;if(n&&(r=i?n(e,a,i,o):n(e)),r!==void 0)return r;if(!bDe(e))return e;var u=pDe(e);if(u){if(r=uDe(e),!s)return oDe(e,r)}else{var f=dDe(e),h=f==Hbe||f==ADe;if(gDe(e))return iDe(e,s);if(f==zbe||f==Dbe||h&&!i){if(r=l||h?{}:hDe(e),!s)return l?sDe(e,aDe(r,e)):rDe(e,nDe(r,e))}else{if(!et[f])return i?e:{};r=fDe(e,f,s)}}o||(o=new JIe);var p=o.get(e);if(p)return p;o.set(e,r),yDe(e)?e.forEach(function(y){r.add(Dl(y,t,n,y,e,o))}):mDe(e)&&e.forEach(function(y,S){r.set(S,Dl(y,t,n,S,e,o))});var b=d?l?cDe:lDe:l?kDe:vDe,m=u?void 0:b(e);return eDe(m||e,function(y,S){m&&(S=y,y=e[S]),tDe(r,S,Dl(y,t,n,S,e,o))}),r}var KDe=Dl,qDe=KDe,YDe=1,ZDe=4;function XDe(e){return qDe(e,YDe|ZDe)}var QDe=XDe;Object.defineProperty(Fs,"__esModule",{value:!0});Fs.mergeClasses=void 0;var JDe=kp,eHe=Bbe(JDe),tHe=QDe,nHe=Bbe(tHe),aHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function Bbe(e){return e&&e.__esModule?e:{default:e}}var iHe=Fs.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=t.default&&(0,nHe.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,eHe.default)(o,function(r,s){a[s]||(a[s]={}),a[s]=aHe({},a[s],o[s])}),i}),a};Fs.default=iHe;var js={};Object.defineProperty(js,"__esModule",{value:!0});js.autoprefix=void 0;var oHe=kp,cy=sHe(oHe),rHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function sHe(e){return e&&e.__esModule?e:{default:e}}var lHe={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var a=n[t];return a||{extend:t}}},cHe=js.autoprefix=function(t){var n={};return(0,cy.default)(t,function(a,i){var o={};(0,cy.default)(a,function(r,s){var l=lHe[s];l?o=rHe({},o,l(r)):o[s]=r}),n[i]=o}),n};js.default=cHe;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.hover=void 0;var dHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},uHe=g,uu=fHe(uHe);function fHe(e){return e&&e.__esModule?e:{default:e}}function hHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function pHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var gHe=Ms.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(a){pHe(i,a);function i(){var o,r,s,l;hHe(this,i);for(var d=arguments.length,u=Array(d),f=0;f<d;f++)u[f]=arguments[f];return l=(r=(s=dy(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return uu.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},uu.default.createElement(t,dHe({},s.props,s.state)))},r),dy(s,l)}return i}(uu.default.Component)};Ms.default=gHe;var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.active=void 0;var mHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bHe=g,fu=yHe(bHe);function yHe(e){return e&&e.__esModule?e:{default:e}}function vHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var SHe=Rs.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(a){kHe(i,a);function i(){var o,r,s,l;vHe(this,i);for(var d=arguments.length,u=Array(d),f=0;f<d;f++)u[f]=arguments[f];return l=(r=(s=uy(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return fu.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},fu.default.createElement(t,mHe({},s.props,s.state)))},r),uy(s,l)}return i}(fu.default.Component)};Rs.default=SHe;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});var wHe=function(t,n){var a={},i=function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a[r]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),a};Op.default=wHe;Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ReactCSS=Cn.loop=Cn.handleActive=Fp=Cn.handleHover=Cn.hover=void 0;var xHe=Es,$He=Sr(xHe),CHe=Fs,THe=Sr(CHe),LHe=js,AHe=Sr(LHe),NHe=Ms,Wbe=Sr(NHe),EHe=Rs,PHe=Sr(EHe),OHe=Op,FHe=Sr(OHe);function Sr(e){return e&&e.__esModule?e:{default:e}}Cn.hover=Wbe.default;var Fp=Cn.handleHover=Wbe.default;Cn.handleActive=PHe.default;Cn.loop=FHe.default;var jHe=Cn.ReactCSS=function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var o=(0,$He.default)(a),r=(0,THe.default)(t,o);return(0,AHe.default)(r)},$e=Cn.default=jHe,MHe=function(t,n,a,i,o){var r=o.clientWidth,s=o.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,d=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),f=d-(o.getBoundingClientRect().top+window.pageYOffset);if(a==="vertical"){var h=void 0;if(f<0?h=0:f>s?h=1:h=Math.round(f*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var p=void 0;if(u<0?p=0:u>r?p=1:p=Math.round(u*100/r)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},hu={},RHe=function(t,n,a,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=a*2,o.height=a*2;var r=o.getContext("2d");return r?(r.fillStyle=t,r.fillRect(0,0,o.width,o.height),r.fillStyle=n,r.fillRect(0,0,a,a),r.translate(a,a),r.fillRect(0,0,a,a),o.toDataURL()):null},_He=function(t,n,a,i){var o=t+"-"+n+"-"+a+(i?"-server":"");if(hu[o])return hu[o];var r=RHe(t,n,a,i);return hu[o]=r,r},fy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wr=function(t){var n=t.white,a=t.grey,i=t.size,o=t.renderers,r=t.borderRadius,s=t.boxShadow,l=t.children,d=$e({default:{grid:{borderRadius:r,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+_He(n,a,i,o.canvas)+") center left"}}});return g.isValidElement(l)?g.cloneElement(l,fy({},l.props,{style:fy({},l.props.style,d.grid)})):g.createElement("div",{style:d.grid})};wr.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var IHe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},DHe=function(){function e(t,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function HHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hy(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jp=function(e){zHe(t,e);function t(){var n,a,i,o;HHe(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return o=(a=(i=hy(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i.handleChange=function(d){var u=MHe(d,i.props.hsl,i.props.direction,i.props.a,i.container);u&&typeof i.props.onChange=="function"&&i.props.onChange(u,d)},i.handleMouseDown=function(d){i.handleChange(d),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},a),hy(i,o)}return DHe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var a=this,i=this.props.rgb,o=$e({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
245
245
  rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
246
246
  rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:IHe({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return g.createElement("div",{style:o.alpha},g.createElement("div",{style:o.checkboard},g.createElement(wr,{renderers:this.props.renderers})),g.createElement("div",{style:o.gradient}),g.createElement("div",{style:o.container,ref:function(s){return a.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("div",{style:o.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:o.slider}))))}}]),t}(g.PureComponent||g.Component),BHe=function(){function e(t,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function WHe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GHe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function UHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KHe=1,Vbe=38,qHe=40,YHe=[Vbe,qHe],ZHe=function(t){return YHe.indexOf(t)>-1},XHe=function(t){return Number(String(t).replace(/%/g,""))},QHe=1,Me=function(e){UHe(t,e);function t(n){VHe(this,t);var a=GHe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(i){a.setUpdatedValue(i.target.value,i)},a.handleKeyDown=function(i){var o=XHe(i.target.value);if(!isNaN(o)&&ZHe(i.keyCode)){var r=a.getArrowOffset(),s=i.keyCode===Vbe?o+r:o-r;a.setUpdatedValue(s,i)}},a.handleDrag=function(i){if(a.props.dragLabel){var o=Math.round(a.props.value+i.movementX);o>=0&&o<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(o),i)}},a.handleMouseDown=function(i){a.props.dragLabel&&(i.preventDefault(),a.handleDrag(i),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},a.inputId="rc-editable-input-"+QHe++,a}return BHe(t,[{key:"componentDidUpdate",value:function(a,i){this.props.value!==this.state.value&&(a.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return WHe({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||KHe}},{key:"setUpdatedValue",value:function(a,i){var o=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(o,i),this.setState({value:a})}},{key:"render",value:function(){var a=this,i=$e({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return g.createElement("div",{style:i.wrap},g.createElement("input",{id:this.inputId,style:i.input,ref:function(r){return a.input=r},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?g.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(g.PureComponent||g.Component),JHe=function(t,n,a,i){var o=i.clientWidth,r=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,d=s-(i.getBoundingClientRect().left+window.pageXOffset),u=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(u<0)f=359;else if(u>r)f=0;else{var h=-(u*100/r)+100;f=360*h/100}if(a.h!==f)return{h:f,s:a.s,l:a.l,a:a.a,source:"hsl"}}else{var p=void 0;if(d<0)p=0;else if(d>o)p=359;else{var b=d*100/o;p=360*b/100}if(a.h!==p)return{h:p,s:a.s,l:a.l,a:a.a,source:"hsl"}}return null},eze=function(){function e(t,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function tze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function py(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var xr=function(e){nze(t,e);function t(){var n,a,i,o;tze(this,t);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return o=(a=(i=py(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i.handleChange=function(d){var u=JHe(d,i.props.direction,i.props.hsl,i.container);u&&typeof i.props.onChange=="function"&&i.props.onChange(u,d)},i.handleMouseDown=function(d){i.handleChange(d),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},a),py(i,o)}return eze(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var a=this,i=this.props.direction,o=i===void 0?"horizontal":i,r=$e({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:o==="vertical"});return g.createElement("div",{style:r.hue},g.createElement("div",{className:"hue-"+o,style:r.container,ref:function(l){return a.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
247
247
  .hue-horizontal {
@@ -273,4 +273,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
273
273
  pointer-events: none !important;
274
274
  }
275
275
  `,x.contentDocument.head.appendChild(L)}},[]);const b=()=>o?o.index>0:!1,m=()=>{o&&n({histories:o.histories,index:o.index-1})},y=()=>o?o.index<o.histories.length-1:!1,S=()=>{o&&n({histories:o.histories,index:o.index+1})};return g.useEffect(()=>{h({type:"setUi",ui:{leftSideBarVisible:!1}})},[h]),c.jsxs("header",{className:"puck-header",children:[c.jsx("div",{className:"header-left",children:c.jsx(Sme,{showLeft:!1})}),f&&c.jsx(t0e,{}),c.jsx("div",{className:"header-center"}),c.jsxs("div",{className:"actions",children:[c.jsx(yt,{variant:"ghost",size:"icon",disabled:!b(),onClick:m,"aria-label":M("undo","Undo"),children:c.jsx(dpe,{className:"sm-icon"})}),c.jsx(yt,{variant:"ghost",size:"icon",disabled:!y(),onClick:S,"aria-label":M("redo","Redo"),children:c.jsx(upe,{className:"sm-icon"})}),c.jsx(oc,{orientation:"vertical",decorative:!0,className:"ve-mx-4 ve-h-7 ve-w-px ve-bg-gray-300 ve-my-auto"}),c.jsx(e0e,{modalOpen:l,setModalOpen:d,disabled:((w=o==null?void 0:o.histories)==null?void 0:w.length)===1,onClearLocalChanges:()=>{var $,x,L,A,E,z;r(),i&&Qo((x=($=o==null?void 0:o.histories)==null?void 0:$[0])==null?void 0:x.data,i),n({histories:[{id:((A=(L=o==null?void 0:o.histories)==null?void 0:L[0])==null?void 0:A.id)??"",data:((z=(E=o==null?void 0:o.histories)==null?void 0:E[0])==null?void 0:z.data)??{}}],index:0})}}),!t&&c.jsx(yt,{variant:"secondary",disabled:((C=o==null?void 0:o.histories)==null?void 0:C.length)===1,onClick:async()=>{await a()},children:`${M("update","Update")} ${u} ${u===1?M("page","Page"):M("pages","Pages")}`})]})]})},ul=new Wt,UUe=({puckConfig:e,puckInitialHistory:t,isLoading:n,templateMetadata:a,publishTheme:i,themeConfig:o,saveThemeSaveState:r,themeHistories:s,setThemeHistories:l,clearThemeHistory:d,sendDevThemeSaveStateData:u,buildThemeLocalStorageKey:f,localDev:h})=>{const[p,b]=g.useState(!1),[m,y]=g.useState(!1),S=g.useRef(s);g.useEffect(()=>{S.current=s},[s]);const w=async()=>{if(ul.logFunc("saveThemeData"),!s)return;const L=s.histories[s.index];i({payload:{saveThemeData:JSON.stringify(L.data)}}),d(),l({histories:[L],index:0})},C=L=>{var E,z,_;if(!S.current||!o)return;const A={histories:[...S.current.histories.slice(0,S.current.index+1),{id:Gke.v4(),data:L}],index:S.current.index+1};if(h||a.isDevMode){ul.logFunc("saveThemeToLocalStorage"),window.localStorage.setItem(f(),ar.compress(JSON.stringify(A.histories))),Qo(L,o),l(A);return}a.isDevMode&&!a.devOverride?(ul.logFunc("sendDevThemeSaveStateData"),u({payload:{devThemeSaveStateData:JSON.stringify((E=A.histories[A.index])==null?void 0:E.data)}})):(ul.logFunc("saveTheme"),r({payload:{history:JSON.stringify((z=A.histories[A.index])==null?void 0:z.data),hash:(_=A.histories[A.index])==null?void 0:_.id}})),Qo(L,o),l(A)},$=async()=>{if(!n&&!p){b(!0);return}},x=g.useCallback(()=>c.jsx(VUe,{themeHistoriesRef:S,themeConfig:o,onThemeChange:C}),[]);return c.jsx(vme,{children:c.jsx(be.Puck,{config:e,data:{},initialHistory:t,onChange:$,permissions:{drag:!1,duplicate:!1,delete:!1,insert:!1,edit:!1},overrides:{header:()=>c.jsx(GUe,{themeConfig:o,themeHistories:s,onPublishTheme:w,isDevMode:a.isDevMode,setThemeHistories:l,clearThemeHistory:d,puckInitialHistory:t,clearLocalChangesModalOpen:m,setClearLocalChangesModalOpen:y,totalEntityCount:a.totalEntityCount,localDev:h}),actionBar:()=>c.jsx(c.Fragment,{}),components:()=>c.jsx(c.Fragment,{}),fields:x,iframe:ibe}})})},KUe=()=>{const{sendToParent:e}=Jt("saveThemeSaveState",ct),{sendToParent:t}=Jt("deleteThemeSaveState",ct),{sendToParent:n}=Jt("publishTheme",ct);return{saveThemeSaveState:e,deleteThemeSaveState:t,publishTheme:n}},qUe=new Wt,YUe=e=>{const{iFrameLoaded:t}=zi();g.useEffect(()=>{t({payload:{message:"Theme Editor is loaded"}})},[]);const[n,a]=g.useState(),[i,o]=g.useState(e);return Ea("getThemeSaveState",ct,(r,s)=>{let l;s!=null&&s.history&&(l={hash:s.hash,history:{data:JSON.parse(s.history)}}),qUe.logData("THEME_SAVE_STATE",l),a(l),o(!0),r({status:"success",payload:{message:"themeSaveState received"}})}),{themeSaveState:n,themeSaveStateFetched:i}},fn=new Wt,ZUe=e=>{const{puckConfig:t,templateMetadata:n,layoutData:a,themeData:i,themeConfig:o,localDev:r}=e,{sendDevLayoutSaveStateData:s,sendDevThemeSaveStateData:l}=zi(),{saveThemeSaveState:d,publishTheme:u,deleteThemeSaveState:f}=KUe(),{themeSaveState:h,themeSaveStateFetched:p}=YUe(r),{buildThemeLocalStorageKey:b,clearThemeLocalStorage:m}=rbe(n),{buildVisualConfigLocalStorageKey:y}=obe(n),[S,w]=g.useState(),[C,$]=g.useState(!1),[x,L]=g.useState(),[A,E]=g.useState(!1),z=g.useCallback(()=>{if(n){if(fn.logFunc("loadPuckInitialHistory"),n.isDevMode){const Y=ar.decompress(window.localStorage.getItem(y())||""),re=Y?JSON.parse(Y):[],Z=re.length-1;if(Z>=0){fn.log("Theme Dev Mode - Using layout data from local storage");const G=re.map(V=>({id:V.id,state:{data:{...V.state.data}}}));w({histories:G,index:Z,appendData:!1});const J=G[G.length-1].state.data;s({payload:{devSaveStateData:JSON.stringify(J)}})}$(!0);return}a&&w({histories:[{id:"root",state:{data:a}}],appendData:!1}),$(!0)}},[w,$,a]),_=g.useCallback(()=>{if(n){if(fn.logFunc("loadThemeHistory"),fn.logData("THEME_DATA",i),fn.logData("THEME_SAVE_STATE",h),n.isDevMode&&!n.devOverride){const Y=ar.decompress(window.localStorage.getItem(b())||"");if(Y){fn.log("Theme Dev Mode - Using theme localStorage");const re=JSON.parse(Y),Z=re.length-1;L({histories:re,index:Z}),E(!0);return}fn.log("Theme Dev Mode - No localStorage. Using theme data from Content"),i&&L({histories:[{id:"root",data:i}],index:0}),E(!0);return}if(!h){fn.log("Theme Prod Mode - No saveState. Using theme data from Content"),i&&L({histories:[{id:"root",data:i}],index:0}),E(!0);return}fn.log("Theme Prod Mode - Using themeSaveState"),L({histories:i?[{id:"root",data:i},{id:h.hash,data:h.history.data}]:[{id:h.hash,data:h.history.data}],index:i?1:0}),E(!0)}},[L,E,m,b]);g.useEffect(()=>{var Y;fn.logData("THEME_HISTORIES",x),x&&o&&Qo((Y=x.histories[x.index])==null?void 0:Y.data,o)},[x,o]),g.useEffect(()=>{p&&(z(),_())},[n,p,a]),g.useEffect(()=>{S&&fn.logData("PUCK_INITIAL_HISTORY",S)},[S]);const B=()=>{fn.logFunc("clearHistory"),m(),!r&&f()};g.useEffect(()=>{var re;if(!A)return;const Y=(re=x==null?void 0:x.histories[x.index])==null?void 0:re.data;fn.logFunc("sendDevThemeSaveStateData useEffect"),l({payload:{devThemeSaveStateData:JSON.stringify(Y)}})},[A,x,n]);const{isLoading:U,progress:ee}=pp({minProgress:60,completionCriteria:[C,A,p]});return U?c.jsx(Xh,{progress:ee,platformLanguageIsSet:!!(n!=null&&n.platformLocale)}):c.jsx(UUe,{puckConfig:t,puckInitialHistory:S,isLoading:U,templateMetadata:n,publishTheme:u,themeConfig:o,saveThemeSaveState:d,themeHistories:x,setThemeHistories:L,clearThemeHistory:B,sendDevThemeSaveStateData:l,buildThemeLocalStorageKey:b,localDev:r})},XUe=new Wt,QUe=({document:e,componentRegistry:t,themeConfig:n,localDev:a,forceThemeMode:i})=>{e&&XUe.logData("DOCUMENT",e);const[o,r]=g.useState(void 0),[s,l]=g.useState(void 0),[d,u]=g.useState(!1),f=xs(),{templateMetadata:h,puckConfig:p,layoutData:b,layoutDataFetched:m,themeData:y,themeDataFetched:S}=NTe(t,!!a),{pushPageSets:w,sendError:C}=zi();oTe();const $=(A,E)=>{C({payload:{error:A,info:E}})};g.useEffect(()=>{typeof window<"u"&&!a&&(window.parent!==window.self?u(!0):window.location.assign("/404.html"))},[]),g.useEffect(()=>{if(h!=null&&h.isDevMode)try{r(pageSets),l(siteStream)}catch{console.warn("pageSets are not defined")}},[h==null?void 0:h.isDevMode]),g.useEffect(()=>{typeof window<"u"&&(h!=null&&h.isDevMode)&&o&&w({payload:{...o,siteStream:s}})},[h==null?void 0:h.isDevMode,o]),g.useEffect(()=>{h!=null&&h.platformLocale&&cr.changeLanguage(h==null?void 0:h.platformLocale)},[h==null?void 0:h.platformLocale]);const{isLoading:x,progress:L}=pp({maxProgress:60,completionCriteria:[!!p,!!h,!!e,m,S,f!==null]});return c.jsx(rme.Provider,{value:h,children:c.jsxs(y4e,{fallback:c.jsx(c.Fragment,{}),onError:$,children:[x?d&&c.jsx(Xh,{progress:L,platformLanguageIsSet:!!(h!=null&&h.platformLocale)}):h!=null&&h.isThemeMode||i?c.jsx(ZUe,{puckConfig:p,templateMetadata:h,layoutData:b,themeData:y,themeConfig:n,localDev:!!a}):c.jsx(A5e,{puckConfig:p,templateMetadata:h,layoutData:b,themeData:y,themeConfig:n,localDev:!!a}),c.jsx(iTe,{closeButton:!0,richColors:!0})]})})},Sye=({fieldLabel:e,hideNumberFieldRadioLabel:t,showNumberFieldRadioLabel:n,defaultCustomValue:a})=>{const i=n.toLowerCase();return{type:"custom",render:({onChange:o,value:r})=>c.jsxs(be.FieldLabel,{label:e,children:[c.jsx(be.AutoField,{field:{type:"radio",options:[{value:t,label:t},{value:i,label:n}]},onChange:s=>o(s===t?t:a),value:r===t?t:i}),r!==t&&c.jsx(be.AutoField,{field:{type:"number"},value:r,onChange:o})]})}};function T(e,t){if(t.type==="entityField")return hc({label:e,filter:t.filter,disableConstantValueToggle:t.disableConstantValueToggle,disallowTranslation:t.disallowTranslation});if(t.type==="optionalNumber")return Sye({fieldLabel:e,hideNumberFieldRadioLabel:t.hideNumberFieldRadioLabel,showNumberFieldRadioLabel:t.showNumberFieldRadioLabel,defaultCustomValue:t.defaultCustomValue});if(t.type==="select"&&t.options==="BACKGROUND_COLOR"){const n=ze[t.options];return hs({label:e,optionGroups:n,disableSearch:!0})}if(t.type==="select"&&t.hasSearch){const n=typeof t.options=="string"?ze[t.options]:t.options;return hs({label:e,options:n})}return(t.type==="select"||t.type==="radio")&&typeof t.options=="string"?{label:e,type:t.type,options:ze[t.options]}:t.type==="text"?{label:e,type:t.isMultiline?"textarea":"text"}:{label:e,...t}}const wye=di("components font-body-fontFamily font-body-fontWeight",{variants:{variant:{xs:"text-body-xs-fontSize",sm:"text-body-sm-fontSize",base:"text-body-fontSize",lg:"text-body-lg-fontSize"}},defaultVariants:{variant:"base"}}),Qe=k.forwardRef(({className:e,variant:t,...n},a)=>c.jsx("p",{className:lt(wye({variant:t,className:e}),e),ref:a,...n,children:n.children}));Qe.displayName="Body";const xye=di("components h-fit flex items-center justify-center whitespace-nowrap",{variants:{variant:{primary:"bg-palette-primary text-palette-primary-contrast border-palette-primary",secondary:"bg-none",link:"w-fit underline",directoryLink:"border-b-gray-400 border-b sm:border-transparent w-full sm:w-fit sm:underline py-3",headerFooterMainLink:"font-link-fontWeight text-link-sm-fontSize hover:underline hover:cursor-pointer",headerFooterSecondaryLink:"text-link-xs-fontSize hover:underline hover:cursor-pointer"},hasDarkBackground:{true:"",false:""}},compoundVariants:[{variant:["primary","secondary"],className:"font-button-fontFamily text-button-fontSize font-button-fontWeight tracking-button-letterSpacing rounded-button-borderRadius hover:underline focus:underline active:underline sm:w-fit w-full px-6 py-3 border-2 border-solid"},{variant:["link","directoryLink"],className:"bg-none justify-between gap-2 decoration-0 hover:no-underline font-link-fontFamily text-link-fontSize font-link-fontWeight tracking-link-letterSpacing "},{variant:["headerFooterMainLink","headerFooterSecondaryLink"],className:"no-underline font-link-fontFamily tracking-link-letterSpacing"},{variant:"secondary",hasDarkBackground:!1,className:"text-palette-primary-dark border-palette-primary-dark"},{variant:"secondary",hasDarkBackground:!0,className:"text-white border-white"},{variant:["link","directoryLink","headerFooterMainLink","headerFooterSecondaryLink"],hasDarkBackground:!1,className:"text-palette-primary-dark"},{hasDarkBackground:!0,variant:["link","directoryLink","headerFooterMainLink","headerFooterSecondaryLink"],className:"text-white"}],defaultVariants:{variant:"primary",hasDarkBackground:!1}}),Cr=k.forwardRef(({className:e,variant:t,asChild:n=!1,...a},i)=>{const o=n?hpe:"button",r=lr();return c.jsx(o,{className:lt(xye({variant:t,hasDarkBackground:r==null?void 0:r.isDarkBackground}),e),style:{textTransform:t!=null&&t.toLowerCase().includes("link")?"var(--textTransform-link-textTransform)":"var(--textTransform-button-textTransform)"},ref:i,...a})});Cr.displayName="Button";var $ye={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ov=g.createContext&&g.createContext($ye),JUe=["attr","size","title"];function eKe(e,t){if(e==null)return{};var n=tKe(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function tKe(e,t){if(e==null)return{};var n={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$c.apply(this,arguments)}function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rv(Object(n),!0).forEach(function(a){nKe(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rv(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function nKe(e,t,n){return t=aKe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aKe(e){var t=iKe(e,"string");return typeof t=="symbol"?t:t+""}function iKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cye(e){return e&&e.map((t,n)=>g.createElement(t.tag,Cc({key:n},t.attr),Cye(t.child)))}function gt(e){return t=>g.createElement(oKe,$c({attr:Cc({},e.attr)},t),Cye(e.child))}function oKe(e){var t=n=>{var{attr:a,size:i,title:o}=e,r=eKe(e,JUe),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),g.createElement("svg",$c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,r,{className:l,style:Cc(Cc({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&g.createElement("title",null,o),e.children)};return ov!==void 0?g.createElement(ov.Consumer,null,n=>t(n)):t($ye)}function Tye(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(e)}function Lye(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function Aye(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(e)}function Nye(e){return gt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},child:[]}]})(e)}function Eye(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function rKe(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function Pye(e){return gt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function Oye(e){return gt({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},child:[]}]})(e)}function Yf(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Zf(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function rg(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(e)}function sKe(e){return gt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function Fye(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function lKe(e){return gt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function sv(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},child:[]}]})(e)}function cKe(e){return gt({attr:{viewBox:"0 0 536 512"},child:[{tag:"path",attr:{d:"M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"},child:[]}]})(e)}function dKe(e){return gt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"},child:[]}]})(e)}function uKe(e){return gt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function jye(e){return gt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function fKe(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"},child:[]}]})(e)}function hKe(e){return gt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},child:[]}]})(e)}const Ze=({label:e,link:t,linkType:n,variant:a,eventName:i,className:o,target:r,alwaysHideCaret:s,ariaLabel:l})=>{let d="none";return s||a==="link"&&n!=="EMAIL"&&n!=="PHONE"&&(d="var(--display-link-caret)"),c.jsx(Cr,{asChild:!0,className:lt("flex",o),variant:a,children:c.jsxs(Pe.Link,{cta:{link:t||"#",linkType:n??"URL"},eventName:i,target:r,"aria-label":l,children:[e??"",c.jsx(Oye,{size:"12px",className:a==="directoryLink"?"block sm:hidden":"",style:{display:a==="directoryLink"?"":d}})]})})};Ze.displayName="CTA";const Mye=di("components",{variants:{level:{1:"font-h2-fontWeight text-h2-fontSize font-h2-fontFamily sm:font-h1-fontWeight sm:text-h1-fontSize sm:font-h1-fontFamily",2:"font-h3-fontWeight text-h3-fontSize font-h3-fontFamily sm:font-h2-fontWeight sm:text-h2-fontSize sm:font-h2-fontFamily",3:"font-h4-fontWeight text-h4-fontSize font-h4-fontFamily sm:font-h3-fontWeight sm:text-h3-fontSize sm:font-h3-fontFamily",4:"font-h5-fontWeight text-h5-fontSize font-h5-fontFamily sm:font-h4-fontWeight sm:text-h4-fontSize sm:font-h4-fontFamily",5:"font-h6-fontWeight text-h6-fontSize font-h6-fontFamily sm:font-h5-fontWeight sm:text-h5-fontSize sm:font-h5-fontFamily",6:"font-h6-fontWeight text-h6-fontSize font-h6-fontFamily"},fontSize:{default:"",xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},weight:{default:"",100:"font-thin",200:"font-extralight",300:"font-light",400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold",800:"font-extrabold",900:"font-black"},transform:{none:"",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"}},defaultVariants:{fontSize:"default",weight:"default",transform:"none"}}),Ue=k.forwardRef(({className:e,level:t=1,weight:n,transform:a,fontSize:i,semanticLevelOverride:o,...r},s)=>{const l=o?typeof o=="string"?o:`h${o}`:`h${t}`;return c.jsx(l,{className:lt(Mye({fontSize:i,weight:n,transform:a,level:t}),l==="span"&&"block",e),ref:s,...r,children:r.children})});Ue.displayName="Heading";const sg=e=>{const{hours:t,className:n,startOfWeek:a,collapseDays:i,timeOptions:o}=e,{t:r,i18n:s}=he(),l={monday:r("monday","Monday"),tuesday:r("tuesday","Tuesday"),wednesday:r("wednesday","Wednesday"),thursday:r("thursday","Thursday"),friday:r("friday","Friday"),saturday:r("saturday","Saturday"),sunday:r("sunday","Sunday")};return c.jsx(Pe.HoursTable,{hours:t,dayOfWeekNames:l,startOfWeek:a,collapseDays:i,timeOptions:o,intervalTranslations:{isClosed:r("closed","Closed"),open24Hours:r("open24Hours","Open 24 Hours"),reopenDate:r("reopenDate","Reopen Date"),timeFormatLocale:s.language},className:lt("text-body-fontSize font-body-fontWeight font-body-fontFamily",n)})},vn=({image:e,aspectRatio:t,width:n,className:a})=>{const i=n&&t?n/t:void 0,o=n?"overflow-hidden":"overflow-hidden w-full";return c.jsx("div",{className:lt(o,a),style:n?{width:`${n}px`}:void 0,children:t?c.jsx(Pe.Image,{image:e,layout:"aspect",aspectRatio:t,className:"object-cover w-full h-full"}):n&&i?c.jsx(Pe.Image,{image:e,layout:"fixed",width:n,height:i,className:"object-cover"}):c.jsx("img",{src:lv(e)?e.image.url:e.url,alt:lv(e)?e.image.alternateText??"":e.alternateText??"",className:"object-cover w-full h-full"})})};function lv(e){return"image"in e}const pi=e=>{const{href:t,children:n,className:a,eventName:i,alwaysHideCaret:o,variant:r="link"}=e;return t?c.jsx(Ze,{link:t,label:n,linkType:"URL",eventName:i,variant:r,className:a,alwaysHideCaret:o}):c.jsx(c.Fragment,{children:e.children})},Rye=({data:e,bodyVariant:t="base",...n})=>{const a=lr();if(!e)return c.jsx(c.Fragment,{});if(typeof e=="string")return c.jsx(Qe,{...n,variant:t,children:e});if(typeof e=="object"){if("html"in e&&e.html)return c.jsx("div",{...n,dangerouslySetInnerHTML:{__html:e.html},className:`rtf-theme ${(a==null?void 0:a.textColor)=="text-white"?"rtf-dark-background":"rtf-light-background"} rtf-body-${t}`});if("json"in e&&e.json)return c.jsx(Pe.LexicalRichText,{serializedAST:JSON.stringify(e.json)})}return c.jsx(c.Fragment,{})},pKe=di("",{variants:{verticalPadding:{sm:"py-4",default:"py-pageSection-verticalPadding",header:"py-2 sm:py-6",footer:"py-8 sm:py-20",footerSecondary:"py-8 sm:py-10"}},defaultVariants:{verticalPadding:"default"}}),De=k.forwardRef(({className:e,background:t,verticalPadding:n,outerClassName:a,as:i,...o},r)=>{const s=i??"section";return c.jsx(pt,{className:lt("components w-full px-4",pKe({verticalPadding:n}),a),background:t,ref:r,children:c.jsx(s,{className:lt("max-w-pageSection-contentWidth mx-auto",e),...o,children:o.children})})});De.displayName="PageSection";function gKe(e,t){var n=Array.prototype.slice.call(t);return n.push(o0e),e.apply(this,n)}function mKe(){return gKe(A0e,arguments)}const Tr=e=>{const t=_ye(e.phoneNumber,e.format);return c.jsxs("div",{className:"components flex gap-2 items-center",children:[e.includeIcon&&(e.backgroundColor?c.jsx("div",{className:`h-10 w-10 flex justify-center rounded-full items-center ${e.backgroundColor.bgColor} ${e.backgroundColor.textColor}`,children:c.jsx(sv,{className:"w-4 h-4"})}):c.jsx(sv,{className:"w-4 h-4"})),e.label&&c.jsx(Qe,{className:"font-bold",children:e.label}),e.includeHyperlink?c.jsx(Ze,{link:e.phoneNumber,label:t,linkType:"PHONE",variant:"link",eventName:e.eventName}):c.jsx(Qe,{children:t})]})},_ye=(e,t="domestic")=>{const n=mKe(e);return n?t==="international"?n.formatInternational():n.formatNational():e},pt=k.forwardRef(({className:e,background:t,as:n,children:a,...i},o)=>{var h;const r=ve(),s=n??"div",l=t??ye.background1.value;let d,u;if(typeof window<"u"&&typeof window.document<"u"){const p=window.document.getElementById("visual-editor-theme");u=(p==null?void 0:p.innerText)??""}else if((h=r==null?void 0:r.__)!=null&&h.theme)try{d=JSON.parse(r.__.theme)}catch{}const f=k.useMemo(()=>{if(l.textColor==="text-white"||l.textColor==="text-black")return{bgColor:l.bgColor,textColor:l.textColor,isDarkBackground:l.textColor==="text-white"};const b=`--colors-${l.bgColor.replace("bg-","")}-contrast`;if(d){let m;const y=d[b];if(y)m=y==="#FFFFFF";else switch(b){case"--colors-palette-primary-contrast":m=!0;break;case"--colors-palette-secondary-contrast":m=!0;break;case"--colors-palette-tertiary-contrast":m=!1;break;case"--colors-palette-quaternary-contrast":m=!0;break;default:m=!1;break}return{bgColor:l.bgColor,textColor:l.textColor,isDarkBackground:m}}if(u){const m=new RegExp(`${b}\\s*:\\s*([^;!]+)`,"i"),y=u.match(m);return{bgColor:l.bgColor,textColor:l.textColor,isDarkBackground:!!(y&&y[1].trim()==="#FFFFFF")}}return{bgColor:l.bgColor,textColor:l.textColor,isDarkBackground:!1}},[l,d,u]);return c.jsx(Qv,{value:f,children:c.jsx(s,{className:lt("components",t==null?void 0:t.bgColor,t==null?void 0:t.textColor,e),ref:o,...i,children:a})})});pt.displayName="Background";const bKe=di("components",{variants:{size:{md:"text-3xl",lg:"text-7xl"}},defaultVariants:{size:"lg"}}),wt=({liveVisibility:e,isEditing:t,iconSize:n,children:a})=>e===void 0?c.jsx(c.Fragment,{children:a}):!e&&!t?null:!e&&t?c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"opacity-30",children:a}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:c.jsx(lKe,{className:lt(bKe({size:n}),"fill-gray-500")})})]}):c.jsx(c.Fragment,{children:a}),kd=({hours:e,className:t,showCurrentStatus:n=!0,showDayNames:a=!0,timeFormat:i,dayOfWeekFormat:o="long",timezone:r})=>{const{t:s,i18n:l}=he();return c.jsx(Pe.HoursStatus,{hours:e,className:lt("components mb-2 font-body-fontWeight text-body-lg-fontSize",t),currentTemplate:n?d=>yKe(d,s):()=>c.jsx(c.Fragment,{}),futureTemplate:d=>vKe(d,s),separatorTemplate:n?void 0:()=>c.jsx(c.Fragment,{}),dayOfWeekTemplate:a?d=>kKe(d,l.language):()=>c.jsx(c.Fragment,{}),dayOptions:{weekday:o},timeOptions:i?{hour12:i==="12h"}:void 0,timezone:r??Intl.DateTimeFormat().resolvedOptions().timeZone,timeTemplate:d=>SKe(d,l.language)})};function yKe(e,t){var n,a;return(a=(n=e==null?void 0:e.currentInterval)==null?void 0:n.is24h)!=null&&a.call(n)?c.jsx("span",{className:"HoursStatus-current",children:t("open24Hours","Open 24 Hours")}):e.futureInterval?c.jsx("span",{className:"HoursStatus-current",children:e.isOpen?t("openNow","Open Now"):t("closed","Closed")}):c.jsx("span",{className:"HoursStatus-current",children:t("temporarilyClosed","Temporarily Closed")})}function vKe(e,t){var n,a;return(a=(n=e==null?void 0:e.currentInterval)==null?void 0:n.is24h)!=null&&a.call(n)||!e.futureInterval?null:c.jsx("span",{className:"HoursStatus-future",children:e.isOpen?t("closesAt","Closes at"):t("opensAt","Opens at")})}function kKe(e,t){var i,o,r,s;if((o=(i=e==null?void 0:e.currentInterval)==null?void 0:i.is24h)!=null&&o.call(i)||!e.futureInterval)return null;const n={weekday:"long",...e.dayOptions};let a="";if(e.isOpen){const l=e.currentInterval;a+=((r=l==null?void 0:l.end)==null?void 0:r.setLocale(t).toLocaleString(n))||""}else{const l=e.futureInterval;a+=((s=l==null?void 0:l.start)==null?void 0:s.setLocale(t).toLocaleString(n))||""}return c.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",a]})}const SKe=(e,t)=>{var a,i;if((i=(a=e==null?void 0:e.currentInterval)==null?void 0:a.is24h)!=null&&i.call(a)||!e.futureInterval)return null;let n="";if(e.isOpen){const o=e.currentInterval;n+=o?o.getEndTime(t,e.timeOptions):""}else{const o=e.futureInterval;n+=o?o.getStartTime(t,e.timeOptions):""}return c.jsxs("span",{className:"HoursStatus-time",children:[" ",n]})},wKe={month:"short",day:"numeric",year:"numeric",timeZone:"UTC"},xKe={timeZoneName:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};var Ds=(e=>(e.DATE="DATE",e.DATE_TIME="DATE_TIME",e.DATE_RANGE="DATE_RANGE",e.DATE_TIME_RANGE="DATE_TIME_RANGE",e))(Ds||{});function $Ke({date:e,option:t="DATE",endDate:n,timeZone:a,hideTimeZone:i,locale:o,dateFormatOverride:r,dateTimeFormatOverride:s}){let l=r?{...r}:wKe,d=s?{...s}:xKe;a&&(l={...l,timeZone:a},d={...d,timeZone:a}),i&&(d={...d,timeZoneName:void 0});const u=o?[o,"en-US"]:"en-US",f=new Intl.DateTimeFormat(u,l),h=new Intl.DateTimeFormat(u,{hour:"numeric",minute:"numeric",...a&&{timeZone:a},...i&&{timeZoneName:void 0}});switch(t){case"DATE":return f.format(e);case"DATE_TIME":return new Intl.DateTimeFormat(u,d).format(e);case"DATE_RANGE":return new Intl.DateTimeFormat(u,l).formatRange(e,n);case"DATE_TIME_RANGE":{const b=e.toDateString()===n.toDateString()?f.format(e):`${f.format(e)} - ${f.format(n)}`,m=`${h.format(e)} - ${h.format(n)}`;return`${b} | ${m}`}default:return f.format(e)}}function Hs({date:e,option:t="DATE",endDate:n="",timeZone:a,hideTimeZone:i=!1,locale:o,dateFormatOverride:r,dateTimeFormatOverride:s}){let l;try{const d=e.length===10?new Date(e+"T12:00:00.000Z"):new Date(e),u=n?n.length===10?new Date(n+"T12:00:00.000Z"):new Date(n):void 0;l=$Ke({date:d,option:t,endDate:u,timeZone:a,hideTimeZone:i,locale:o,dateFormatOverride:r,dateTimeFormatOverride:s})}catch(d){return console.warn("error formatting timestamp:",d),c.jsx(c.Fragment,{})}return c.jsx("div",{className:"components font-body-fontFamily font-body-fontWeight text-body-fontSize inline-block",children:l})}var Iye="Toggle",Dye=k.forwardRef((e,t)=>{const{pressed:n,defaultPressed:a,onPressedChange:i,...o}=e,[r,s]=ha({prop:n,onChange:i,defaultProp:a??!1,caller:Iye});return c.jsx(Ce.button,{type:"button","aria-pressed":r,"data-state":r?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:ge(e.onClick,()=>{e.disabled||s(!r)})})});Dye.displayName=Iye;var CKe=Dye;function Hye({className:e,...t}){return c.jsx(CKe,{"data-slot":"toggle",style:{textTransform:"var(--textTransform-button-textTransform)"},className:lt("items-center justify-center gap-2 rounded-full text-black data-[state=on]:bg-palette-secondary data-[state=on]:border-palette-secondary whitespace-nowrap border-gray-200 border border-solid hover:underline font-button-fontFamily text-button-fontSize font-button-fontWeight tracking-button-letterSpacing",e),...t})}const Sd=e=>{const{averageRating:t,reviewCount:n}=e,a=lr(),i=a==null?void 0:a.isDarkBackground,o=Math.round(t*10)/10,r=i?dKe:cKe,s=i?"text-white":"text-palette-primary-dark",{t:l}=he();return c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Qe,{className:"font-bold",children:o}),c.jsx("div",{className:`flex items-center gap-0.5 ${s}`,children:Array.from({length:5}).fill(null).map((d,u)=>t-u>=.75?c.jsx(uKe,{},u):t-u>=.25?c.jsx(r,{},u):c.jsx(hKe,{style:i?{display:"none"}:void 0},u))}),n&&c.jsxs(Qe,{className:"ml-1",children:["(",l("totalReviews",`${n} reviews`,{count:n}),")"]})]})};function lg(e){const t=e==null?void 0:e.ref_reviewsAgg;if(!Array.isArray(t))return{averageRating:0,reviewCount:0};const n=t.find(a=>a.publisher==="FIRSTPARTY"&&typeof a.averageRating=="number"&&typeof a.reviewCount=="number");return n?{averageRating:n.averageRating,reviewCount:n.reviewCount}:{averageRating:0,reviewCount:0}}const TKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{text:T(v("fields.text","Text"),{type:"entityField",filter:{types:["type.string"]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),textAlignment:T(v("fields.textAlignment","Text Alignment"),{type:"radio",options:"ALIGNMENT"})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},LKe=({data:e,styles:t})=>{const{i18n:n}=he(),a=n.language,i=ve(),o=fa(we(i,e.text,a),a),r={left:"justify-start",center:"justify-center",right:"justify-end"}[t.textAlignment];return o?c.jsx(De,{background:t.backgroundColor,verticalPadding:"sm",className:`flex ${r} items-center`,children:c.jsx(le,{displayName:M("fields.bannerText","Banner Text"),fieldId:e.text.field,constantValueEnabled:e.text.constantValueEnabled,children:o})}):c.jsx(c.Fragment,{})},zye={label:v("components.bannerSection","Banner Section"),fields:TKe,defaultProps:{data:{text:{field:"",constantValue:{en:"Banner Text",hasLocalizedValue:"true"},constantValueEnabled:!0}},styles:{backgroundColor:ye.background6.value,textAlignment:"center"},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(LKe,{...e})})},AKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{directoryRoot:st(v("fields.directoryRootLinkLabel","Directory Root Link Label"),{types:["type.string"]})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},NKe=e=>{for(const t in e)if(t.startsWith("dm_directoryParents_")&&EKe(e[t]))return e[t];return[]};function EKe(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&typeof(t==null?void 0:t.name)=="string"&&typeof(t==null?void 0:t.slug)=="string")}const Bye=({data:e,styles:t})=>{const{t:n,i18n:a}=he(),i="/",{document:o,relativePrefixToRoot:r}=sr();let s=NKe(o);((s==null?void 0:s.length)>0||o.dm_directoryChildren)&&(s=[...s,{name:o.name,slug:""}].filter(d=>d.name));const l=me(e.directoryRoot,a.language,o);return s!=null&&s.length?c.jsx(De,{as:"nav",verticalPadding:"sm","aria-label":n("breadcrumb","Breadcrumb"),background:t==null?void 0:t.backgroundColor,children:c.jsx("ol",{className:"flex flex-wrap",children:s.map(({name:d,slug:u},f)=>{const h=f===0,p=f===s.length-1,b=r?r+u:u;return c.jsxs("li",{className:"flex items-center",children:[c.jsx(pi,{eventName:`link${f}`,href:p?"":b,className:"text-body-sm-fontSize font-link-fontFamily",alwaysHideCaret:!0,children:c.jsx(Qe,{variant:"sm",children:h&&l?l:d})}),!p&&c.jsx("span",{className:"mx-2",children:i})]},f)})})}):c.jsx(De,{})},Wye={label:v("components.breadcrumbs","Breadcrumbs"),fields:AKe,defaultProps:{data:{directoryRoot:{en:"Directory Root",hasLocalizedValue:"true"}},styles:{backgroundColor:ye.background1.value},analytics:{scope:"breadcrumbs"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e==null?void 0:e.analytics)==null?void 0:t.scope)??"breadcrumbs",children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(Bye,{...e})})})}},PKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{info:T(v("fields.infoColumn","Info Column"),{type:"object",objectFields:{headingText:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),address:T(v("fields.address","Address"),{type:"entityField",filter:{types:["type.address"]}}),phoneNumbers:T(v("fields.phoneNumbers","Phone Numbers"),{type:"array",arrayFields:{number:T(v("fields.phoneNumber","Phone Number"),{type:"entityField",filter:{types:["type.phone"]}}),label:st(v("fields.label","Label"),{types:["type.string"]})},getItemSummary:e=>{const{i18n:t}=Nn(),n=me(e.label,t.language,document);return n||M("phone","Phone")}}),emails:T(v("fields.emails","Emails"),{type:"entityField",filter:{types:["type.string"],includeListsOnly:!0,allowList:["emails"]},disallowTranslation:!0})}}),hours:T(v("fields.hoursColumn","Hours Column"),{type:"object",objectFields:{headingText:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),hours:T(v("fields.hours","Hours"),{type:"entityField",filter:{types:["type.hours"]}})}}),services:T(v("fields.servicesColumn","Services Column"),{type:"object",objectFields:{headingText:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),servicesList:T(v("fields.servicesList","Services List"),{type:"entityField",filter:{types:["type.string"],includeListsOnly:!0,allowList:["services"]}})}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),info:T(v("fields.infoColumn","Info Column"),{type:"object",objectFields:{showGetDirectionsLink:T(v("fields.showGetDirectionsLink","Show Get Directions Link"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),phoneFormat:T(v("fields.phoneFormat","Phone Format"),{type:"radio",options:"PHONE_OPTIONS"}),includePhoneHyperlink:T(v("fields.includePhoneHyperlink","Include Phone Hyperlink"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}}),hours:T(v("fields.hoursColumn","Hours Column"),{type:"object",objectFields:{startOfWeek:T(v("fields.startOfTheWeek","Start of the Week"),{type:"select",hasSearch:!0,options:"HOURS_OPTIONS"}),collapseDays:T(v("fields.collapseDays","Collapse Days"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),showAdditionalHoursText:T(v("fields.options.showAdditionalHoursText","Show additional hours text"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},OKe=({data:e,styles:t})=>{var y,S,w;const{t:n,i18n:a}=he(),i=a.language,o=ve(),r=me(we(o,e.info.headingText,i),i),s=we(o,e.info.address,i),l=we(o,e.info.emails,i),d=me(we(o,e.hours.headingText,i),a.language),u=we(o,e.hours.hours,i),f=me(we(o,e.services.headingText,i),a.language),h=(y=we(o,e.services.servicesList,i))==null?void 0:y.map(C=>me(C,a.language,o)),p=Pe.getDirections(s,void 0,void 0,{provider:"google"}),{additionalHoursText:b}=o,m=(S=t==null?void 0:t.heading)!=null&&S.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{className:`flex flex-col md:flex-row justify-between w-full gap-8 ${!u&&h||u&&!h?"md:[&>section]:w-1/2":"md:[&>section]:w-1/3"}`,background:t==null?void 0:t.backgroundColor,"aria-label":n("coreInfoSection","Core Info Section"),children:[c.jsxs("section",{"aria-label":n("informationSection","Information Section"),className:"flex flex-col gap-4",children:[r&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.info.headingText.field,constantValueEnabled:e.info.headingText.constantValueEnabled,children:c.jsx("div",{className:`flex ${m}`,children:c.jsx(Ue,{level:((w=t==null?void 0:t.heading)==null?void 0:w.level)??2,children:r})})}),c.jsxs("div",{className:"flex flex-col gap-2 text-body-fontSize font-body-fontWeight font-body-fontFamily",children:[s&&c.jsx(le,{displayName:M("fields.address","Address"),fieldId:e.info.address.field,constantValueEnabled:e.info.address.constantValueEnabled,children:c.jsx(Pe.Address,{address:s,lines:[["line1"],["line2"],["city",",","region","postalCode"]]})}),p&&t.info.showGetDirectionsLink&&c.jsx(Ze,{eventName:"getDirections",className:"font-bold",link:p,label:n("getDirections","Get Directions"),linkType:"DRIVING_DIRECTIONS",target:"_blank",variant:t.info.ctaVariant})]}),e.info.phoneNumbers&&c.jsx("ul",{className:"flex flex-col gap-4",children:e.info.phoneNumbers.map((C,$)=>{const x=we(o,C.number,i);if(!x)return;const L=me(C.label,a.language,o);return c.jsx("li",{className:"flex gap-2 items-center",children:c.jsx(le,{displayName:M("fields.phoneNumber","Phone Number"),fieldId:C.number.field,constantValueEnabled:C.number.constantValueEnabled,children:c.jsx("div",{className:"flex items-center gap-3",children:c.jsx("div",{className:"flex gap-2 items-center",children:c.jsx(Tr,{eventName:`phone${$}`,backgroundColor:ye.background2.value,label:L,phoneNumber:x,format:t.info.phoneFormat,includeHyperlink:t.info.includePhoneHyperlink,includeIcon:!0})})})})},L)})}),l&&c.jsx(le,{displayName:M("fields.emailList","Email List"),fieldId:e.info.emails.field,constantValueEnabled:e.info.emails.constantValueEnabled,children:c.jsx("ul",{className:"list-inside flex flex-col gap-4",children:l.slice(0,e.info.emails.constantValueEnabled?l.length:Math.min(l.length,t.info.emailsListLength)).map((C,$)=>c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx(pt,{background:ye.background2.value,className:"h-10 w-10 flex justify-center rounded-full items-center",children:c.jsx(fKe,{className:"w-4 h-4"})}),c.jsx(Ze,{eventName:`email${$}`,link:C,label:C,linkType:"EMAIL",variant:"link"})]},$))})})]}),u&&c.jsxs("section",{"aria-label":n("hoursSection","Hours Section"),className:"flex flex-col gap-4",children:[d&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.hours.headingText.field,constantValueEnabled:e.hours.headingText.constantValueEnabled,children:c.jsx(Ue,{level:t.heading.level,children:d})}),c.jsx(le,{displayName:M("fields.hours","Hours"),fieldId:"hours",constantValueEnabled:e.hours.hours.constantValueEnabled,children:c.jsx(sg,{hours:u,startOfWeek:t.hours.startOfWeek,collapseDays:t.hours.collapseDays})}),b&&t.hours.showAdditionalHoursText&&c.jsx(le,{displayName:M("fields.hoursText","Hours Text"),fieldId:"additionalHoursText",children:c.jsx(Qe,{className:"mt-4 text-body-sm-fontSize",children:b})})]}),h&&h.length>0&&c.jsxs("section",{"aria-label":n("servicesSection","Services Section"),className:"flex flex-col gap-4",children:[f&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.services.headingText.field,constantValueEnabled:e.services.headingText.constantValueEnabled,children:c.jsx(Ue,{level:t.heading.level,children:f})}),c.jsx(le,{displayName:M("fields.textList","Text List"),fieldId:e.services.servicesList.field,constantValueEnabled:e.services.servicesList.constantValueEnabled,children:c.jsx("ul",{className:"list-disc list-inside text-body-fontSize font-body-fontFamily font-body-fontWeight",children:h.map((C,$)=>c.jsx("li",{className:"mb-2",children:C},$))})})]})]})},Vye={label:v("components.coreInfoSection","Core Info Section"),fields:PKe,resolveFields:(e,{fields:t})=>e.props.data.info.emails.constantValueEnabled?t:{...t,styles:{...t.styles,objectFields:{...t.styles.objectFields,info:{...t.styles.objectFields.info,objectFields:{...t.styles.objectFields.info.objectFields,emailsListLength:T(v("fields.emailsListLength","Emails List Length"),{type:"number",min:0,max:3})}}}}},defaultProps:{data:{info:{headingText:{field:"",constantValue:{en:"Information",hasLocalizedValue:"true"},constantValueEnabled:!0},address:{field:"address",constantValue:{line1:"",city:"",postalCode:"",countryCode:""}},phoneNumbers:[{number:{field:"mainPhone",constantValue:""},label:{en:"Phone",hasLocalizedValue:"true"}}],emails:{field:"emails",constantValue:[]}},hours:{headingText:{field:"",constantValue:{en:"Hours",hasLocalizedValue:"true"},constantValueEnabled:!0},hours:{field:"hours",constantValue:{}}},services:{headingText:{field:"",constantValue:{en:"Services",hasLocalizedValue:"true"},constantValueEnabled:!0},servicesList:{field:"services",constantValue:[]}}},styles:{heading:{level:3,align:"left"},backgroundColor:ye.background1.value,info:{showGetDirectionsLink:!0,phoneFormat:"domestic",includePhoneHyperlink:!0,emailsListLength:1,ctaVariant:"link"},hours:{startOfWeek:"today",collapseDays:!1,showAdditionalHoursText:!0}},analytics:{scope:"coreInfoSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"coreInfoSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(OKe,{...e})})})}},FKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.sectionHeading","Section Heading"),{type:"entityField",filter:{types:["type.string"]}}),events:T(v("fields.events","Events"),{type:"entityField",filter:{types:[Ia.EventSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},jKe=({cardNumber:e,event:t,cardStyles:n,sectionHeadingLevel:a,ctaVariant:i})=>{const{i18n:o}=he(),{document:r}=ve();return c.jsxs(pt,{background:n.backgroundColor,className:"flex flex-col md:flex-row rounded-lg overflow-hidden h-fit md:h-64",children:[c.jsx("div",{className:"lg:w-[45%] w-full h-full",children:t.image&&c.jsx("div",{className:"h-full",children:c.jsx(vn,{image:t.image,aspectRatio:t.image.width&&t.image.height?t.image.width/t.image.height:1.78})})}),c.jsxs("div",{className:"flex flex-col gap-2 p-6 w-full md:w-[55%]",children:[t.title&&c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:a<6?a+1:"span",children:me(t.title,o.language,r)}),t.dateTime&&c.jsx(Hs,{date:t.dateTime,option:Ds.DATE_TIME,hideTimeZone:!0}),fa(t.description,o.language),t.cta&&c.jsx(Ze,{eventName:`cta${e}`,label:me(t.cta.label,o.language,r),link:t.cta.link,linkType:t.cta.linkType,variant:i})]})]})},MKe=e=>{var d,u;const{i18n:t}=he(),n=t.language,{data:a,styles:i}=e,o=ve(),r=we(o,a.events,n),s=me(we(o,a.heading,n),t.language),l=(d=i==null?void 0:i.heading)!=null&&d.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[i.heading.align]:"justify-start";return c.jsxs(De,{background:i==null?void 0:i.backgroundColor,className:"flex flex-col gap-8",children:[s&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:a.heading.field,constantValueEnabled:a.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${l}`,children:c.jsx(Ue,{level:((u=i==null?void 0:i.heading)==null?void 0:u.level)??2,children:s})})}),(r==null?void 0:r.events)&&c.jsx(le,{displayName:M("fields.events","Events"),fieldId:a.events.field,constantValueEnabled:a.events.constantValueEnabled,children:c.jsx("div",{className:"flex flex-col gap-8",children:r.events.map((f,h)=>c.jsx(jKe,{cardNumber:h,event:f,cardStyles:i.cards,sectionHeadingLevel:i.heading.level,ctaVariant:i.cards.ctaVariant},h))})})]})},Gye={label:v("components.eventsSection","Events Section"),fields:FKe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Upcoming Events",hasLocalizedValue:"true"},constantValueEnabled:!0},events:{field:"",constantValue:{events:[Fl,Fl,Fl]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background3.value,heading:{level:2,align:"left"},cards:{headingLevel:3,backgroundColor:ye.background1.value,ctaVariant:"primary"}},analytics:{scope:"eventsSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"eventsSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(MKe,{...e})})})}},rr={width:T(v("fields.options.width","Width"),{type:"number",min:0}),aspectRatio:T(v("fields.options.aspectRatio","Aspect Ratio"),{type:"select",options:[{label:"1:1",value:1},{label:"5:4",value:1.25},{label:"4:3",value:1.33},{label:"3:2",value:1.5},{label:"5:3",value:1.67},{label:"16:9",value:1.78},{label:"2:1",value:2},{label:"3:1",value:3},{label:"4:1",value:4},{label:"4:5",value:.8},{label:"3:4",value:.75},{label:"2:3",value:.67},{label:"3:5",value:.6},{label:"9:16",value:.56},{label:"1:2",value:.5},{label:"1:3",value:.33},{label:"1:4",value:.25}]})},RKe="https://placehold.co/640x360",vu={data:T(v("fields.data","Data"),{type:"object",objectFields:{businessName:T(v("fields.businessName","Business Name"),{type:"entityField",filter:{types:["type.string"]}}),localGeoModifier:T(v("fields.localGeomodifier","Local GeoModifier"),{type:"entityField",filter:{types:["type.string"]}}),hours:T(v("fields.hours","Hours"),{type:"entityField",filter:{types:["type.hours"]}}),hero:fp({label:v("fields.hero","Hero"),filter:{type:Ia.HeroSection.type}}),showAverageReview:T(v("fields.showAverageReview","Show Average Review"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),imageOrientation:T(v("fields.imageOrientation","Image Orientation"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]}),businessNameLevel:T(v("fields.businessNameHeadingLevel","Business Name Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),localGeoModifierLevel:T(v("fields.localGeomodifierHeadingLevel","Local GeoModifier Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),primaryCTA:T(v("fields.primaryCTAVariant","Primary CTA Variant"),{type:"radio",options:"CTA_VARIANT"}),secondaryCTA:T(v("fields.secondaryCTAVariant","Secondary CTA Variant"),{type:"radio",options:"CTA_VARIANT"}),image:T(v("fields.image","Image"),{type:"object",objectFields:rr})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},_Ke=({data:e,styles:t})=>{var p,b,m,y;const{t:n,i18n:a}=he(),i=a.language,o=ve(),r=me(we(o,e==null?void 0:e.businessName,i),i),s=me(we(o,e==null?void 0:e.localGeoModifier,i),i),l=we(o,e==null?void 0:e.hours,i),d=uh(o,e==null?void 0:e.hero,i),{timezone:u}=o,{averageRating:f,reviewCount:h}=lg(o);return c.jsxs(De,{background:t.backgroundColor,"aria-label":n("heroBanner","Hero Banner"),className:`flex flex-col gap-6 md:gap-10 ${t.imageOrientation==="right"?"md:flex-row":"md:flex-row-reverse"}`,children:[c.jsxs("div",{className:"flex flex-col justify-center gap-y-6 w-full break-words md:gap-y-8","aria-labelledby":"hero-heading",children:[c.jsxs("header",{className:"flex flex-col gap-y-4","aria-label":n("heroHeader","Hero Header"),children:[c.jsxs("section",{className:"flex flex-col gap-y-0","aria-label":n("businessInformation","Business Information"),children:[r&&c.jsx(le,{displayName:M("fields.businessName","Business Name"),fieldId:e==null?void 0:e.businessName.field,constantValueEnabled:e==null?void 0:e.businessName.constantValueEnabled,children:c.jsx(Ue,{level:t==null?void 0:t.businessNameLevel,children:r})}),s&&c.jsx(le,{displayName:M("fields.localGeomodifier","Local GeoModifier"),fieldId:e==null?void 0:e.localGeoModifier.field,constantValueEnabled:e==null?void 0:e.localGeoModifier.constantValueEnabled,children:c.jsx(Ue,{level:t==null?void 0:t.localGeoModifierLevel,children:s})})]}),l&&c.jsx(le,{displayName:M("fields.hours","Hours"),fieldId:e==null?void 0:e.hours.field,constantValueEnabled:e==null?void 0:e.hours.constantValueEnabled,children:c.jsx(kd,{hours:l,timezone:u})}),h>0&&e.showAverageReview&&c.jsx(Sd,{averageRating:f,reviewCount:h})]}),(((p=d==null?void 0:d.primaryCta)==null?void 0:p.label)||((b=d==null?void 0:d.secondaryCta)==null?void 0:b.label))&&c.jsxs("div",{className:"flex flex-col gap-y-4 md:flex-row md:gap-x-4","aria-label":n("callToActions","Call to Actions"),children:[((m=d==null?void 0:d.primaryCta)==null?void 0:m.label)&&c.jsx(le,{displayName:M("fields.primaryCta","Primary CTA"),fieldId:e.hero.field,constantValueEnabled:e.hero.constantValueOverride.primaryCta,children:c.jsx(Ze,{eventName:"primaryCta",variant:t==null?void 0:t.primaryCTA,label:me(d.primaryCta.label,a.language),link:d.primaryCta.link,linkType:d.primaryCta.linkType,className:"py-3"})}),((y=d==null?void 0:d.secondaryCta)==null?void 0:y.label)&&c.jsx(le,{displayName:M("fields.secondaryCta","Secondary CTA"),fieldId:e.hero.field,constantValueEnabled:e.hero.constantValueOverride.secondaryCta,children:c.jsx(Ze,{eventName:"secondaryCta",variant:t==null?void 0:t.secondaryCTA,label:me(d.secondaryCta.label,a.language),link:d.secondaryCta.link,linkType:d.secondaryCta.linkType,className:"py-3"})})]})]}),(d==null?void 0:d.image)&&c.jsx(le,{displayName:M("fields.image","Image"),fieldId:e.hero.field,constantValueEnabled:e.hero.constantValueOverride.image,children:c.jsx("div",{className:"w-full",role:"region","aria-label":n("heroImage","Hero Image"),children:c.jsx(vn,{image:d==null?void 0:d.image,aspectRatio:t.image.aspectRatio,width:t.image.width||640,className:"max-w-full sm:max-w-initial rounded-image-borderRadius"})})})]})},Uye={label:v("components.heroSection","Hero Section"),fields:vu,defaultProps:{data:{businessName:{field:"",constantValueEnabled:!0,constantValue:{en:"Business Name",hasLocalizedValue:"true"}},localGeoModifier:{field:"",constantValueEnabled:!0,constantValue:{en:"Geomodifier",hasLocalizedValue:"true"}},hours:{field:"hours",constantValue:{}},hero:{field:"",constantValueEnabled:!0,constantValue:{primaryCta:{label:{en:"Call To Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},secondaryCta:{label:{en:"Call To Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},image:{url:RKe,height:360,width:640}},constantValueOverride:{image:!0,primaryCta:!0,secondaryCta:!0}},showAverageReview:!0},styles:{backgroundColor:ye.background1.value,imageOrientation:"right",businessNameLevel:3,localGeoModifierLevel:1,primaryCTA:"primary",secondaryCTA:"secondary",image:{aspectRatio:1.78}},analytics:{scope:"heroSection"},liveVisibility:!0},resolveFields:(e,{lastData:t})=>!e.props.data.hero.constantValueEnabled&&e.props.data.hero.field===""?(e.props.liveVisibility=!1,{...vu,liveVisibility:void 0}):((e.props.data.hero.constantValueEnabled&&!(t!=null&&t.props.data.hero.constantValueEnabled)&&e.props.data.hero.field===""||(t==null?void 0:t.props.data.hero.field)===""&&e.props.data.hero.field!=="")&&(e.props.liveVisibility=!0),vu),render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"heroSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:!!e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(_Ke,{...e})})})}},IKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.sectionHeading","Section Heading"),{type:"entityField",filter:{types:["type.string"]}}),insights:T(v("fields.insightSection","Insight Section"),{type:"entityField",filter:{types:[Ia.InsightSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},DKe=({cardNumber:e,insight:t,cardStyles:n,sectionHeadingLevel:a,ctaVariant:i})=>{const{i18n:o}=he();return c.jsxs(pt,{className:"rounded h-full flex flex-col",background:n.backgroundColor,children:[t.image?c.jsx(vn,{image:t.image,aspectRatio:1.778,className:"rounded-t-[inherit] h-[200px]"}):c.jsx("div",{className:"sm:h-[200px]"}),c.jsxs("div",{className:"flex flex-col gap-8 p-8 flex-grow",children:[c.jsxs("div",{className:"flex flex-col gap-4",children:[(t.category||t.publishTime)&&c.jsxs("div",{className:`flex ${t.category&&t.publishTime&&"gap-4"}`,children:[c.jsx(Qe,{children:me(t.category,o.language)}),t.category&&t.publishTime&&c.jsx(Qe,{children:"|"}),t.publishTime&&c.jsx(Hs,{date:t.publishTime,hideTimeZone:!0})]}),t.name&&c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:a<6?a+1:"span",children:me(t.name,o.language)}),fa(t.description,o.language)]}),t.cta&&c.jsx(Ze,{eventName:`cta${e}`,variant:i,label:me(t.cta.label,o.language),link:t.cta.link,linkType:t.cta.linkType??"URL",className:"mt-auto"})]})]})},HKe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.insights,a),r=me(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t==null?void 0:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:((d=t==null?void 0:t.heading)==null?void 0:d.level)??2,children:r})})}),(o==null?void 0:o.insights)&&c.jsx(le,{displayName:M("fields.insights","Insights"),fieldId:e.insights.field,constantValueEnabled:e.insights.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.insights.map((u,f)=>c.jsx(DKe,{cardNumber:f,insight:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level,ctaVariant:t.cards.ctaVariant},f))})})]})},Kye={label:v("components.insightsSection","Insights Section"),fields:IKe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Insights",hasLocalizedValue:"true"},constantValueEnabled:!0},insights:{field:"",constantValue:{insights:[jl,jl,jl]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background2.value,heading:{level:3,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:4,ctaVariant:"primary"}},analytics:{scope:"insightsSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"insightsSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(HKe,{...e})})})}},zKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.heading","Heading"),{type:"entityField",filter:{types:["type.string"]}}),coordinate:T(v("fields.coordinates","Coordinates"),{type:"entityField",filter:{types:["type.coordinate"]}}),radius:T(v("fields.radiusMiles","Radius (Miles)"),{type:"number",min:0}),limit:T(v("fields.limit","Limit"),{type:"number",min:0,max:50})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}}),phoneNumberFormat:T(v("fields.phoneNumberFormat","Phone Number Format"),{type:"radio",options:"PHONE_OPTIONS"}),phoneNumberLink:T(v("fields.includePhoneHyperlink","Include Phone Hyperlink"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),hours:T(v("fields.hours","Hours"),{type:"object",objectFields:{showCurrentStatus:T(v("fields.showCurrentStatus","Show Current Status"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),timeFormat:T(v("fields.timeFormat","Time Format"),{type:"radio",options:[{label:v("fields.options.hour12","12-hour"),value:"12h"},{label:v("fields.options.hour24","24-hour"),value:"24h"}]}),showDayNames:T(v("fields.showDayNames","Show Day Names"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),dayOfWeekFormat:T(v("fields.dayOfWeekFormat","Day of Week Format"),{type:"radio",options:[{label:v("fields.options.short","Short"),value:"short"},{label:v("fields.options.long","Long"),value:"long"}]})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},BKe=({cardNumber:e,styles:t,name:n,hours:a,address:i,timezone:o,mainPhone:r,id:s,slug:l})=>{var f,h;const{relativePrefixToRoot:d}=sr(),{i18n:u}=he();return c.jsxs(pt,{background:t==null?void 0:t.cards.backgroundColor,className:"flex flex-col flew-grow h-full rounded-lg overflow-hidden border p-6 sm:p-8",as:"section",children:[c.jsx(pi,{eventName:`link${e}`,alwaysHideCaret:!0,className:"mb-2",href:Gc({address:i,slug:l,id:s},u.language,d),children:c.jsx(Ue,{level:t==null?void 0:t.cards.headingLevel,semanticLevelOverride:t.heading.level<6?t.heading.level+1:"span",children:n})}),a&&c.jsx("div",{className:"mb-2 font-semibold font-body-fontFamily text-body-fontSize",children:c.jsx(kd,{hours:a,className:"h-full",timezone:o,showCurrentStatus:(f=t==null?void 0:t.hours)==null?void 0:f.showCurrentStatus,dayOfWeekFormat:(h=t==null?void 0:t.hours)==null?void 0:h.dayOfWeekFormat})}),r&&c.jsx(Tr,{eventName:`phone${e}`,phoneNumber:r,format:t==null?void 0:t.phoneNumberFormat,includeHyperlink:t==null?void 0:t.phoneNumberLink,includeIcon:!1}),i&&c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-fontSize",children:c.jsx(Pe.Address,{address:i,lines:[["line1"],["line2"],["city",",","region","postalCode"]]})})]})},WKe=({styles:e,data:t,contentEndpointIdEnvVar:n})=>{var y,S,w;const a=ve(),{i18n:i}=he(),o=i.language,r=we(a,t==null?void 0:t.coordinate,o),s=me(we(a,t==null?void 0:t.heading,o),o),{businessId:l,entityId:d,apiKey:u,contentEndpointId:f,contentDeliveryAPIDomain:h}=k.useMemo(()=>VKe(a,n),[a,n]),{data:p,status:b}=ipe({queryKey:["NearbyLocations",l,d,u,f,h,r==null?void 0:r.latitude,r==null?void 0:r.longitude,t==null?void 0:t.radius,t==null?void 0:t.limit],queryFn:async()=>await Dge({businessId:l,entityId:d,apiKey:u,contentEndpointId:f,contentDeliveryAPIDomain:h,latitude:(r==null?void 0:r.latitude)||0,longitude:(r==null?void 0:r.longitude)||0,radiusMi:t==null?void 0:t.radius,limit:t==null?void 0:t.limit,locale:i.language}),enabled:!!l&&!!d&&!!u&&!!f&&!!h&&!!(r!=null&&r.latitude)&&!!r.longitude&&!!(t!=null&&t.radius)&&!!(t!=null&&t.limit)}),m=(y=e==null?void 0:e.heading)!=null&&y.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[e.heading.align]:"justify-start";return c.jsx(De,{background:e==null?void 0:e.backgroundColor,children:c.jsxs("div",{className:"space-y-6",children:[s&&c.jsx("div",{className:`flex ${m}`,children:c.jsx(Ue,{level:((S=e==null?void 0:e.heading)==null?void 0:S.level)??2,children:s})}),b==="success"&&!!((w=p==null?void 0:p.response)!=null&&w.docs)&&c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-stretch",children:p.response.docs.map((C,$)=>c.jsx(BKe,{cardNumber:$,styles:e,id:C.id,name:C.name,address:C.address,hours:C.hours,timezone:C.timezone,mainPhone:C.mainPhone,slug:C.slug},$))})]})})};function VKe(e,t){var s,l,d,u,f;const n=e==null?void 0:e.businessId;n||console.warn("Missing businessId! Unable to fetch nearby locations.");const a=e==null?void 0:e.id;a||console.warn("Missing entityId! Unable to fetch nearby locations.");const i=(s=e==null?void 0:e._env)==null?void 0:s.YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY;i||console.warn("Missing YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY! Unable to fetch nearby locations.");let o="";if(e!=null&&e._pageset)try{const h=JSON.parse(e==null?void 0:e._pageset);o=(d=(l=h==null?void 0:h.typeConfig)==null?void 0:l.entityConfig)==null?void 0:d.contentEndpointId}catch(h){console.error("Failed to parse pageset from document. err=",h)}else t&&(o=(u=e==null?void 0:e._env)==null?void 0:u[t]);o||console.warn("Missing contentEndpointId! Unable to fetch nearby locations.");const r=(f=e==null?void 0:e._yext)==null?void 0:f.contentDeliveryAPIDomain;return r||console.warn("Missing contentDeliveryAPIDomain! Unable to fetch nearby locations."),{businessId:n,entityId:a,apiKey:i,contentEndpointId:o,contentDeliveryAPIDomain:r}}const qye={label:v("components.nearbyLocationsSection","Nearby Locations Section"),fields:zKe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Nearby Locations",hasLocalizedValue:"true"},constantValueEnabled:!0},coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}},radius:10,limit:3},styles:{backgroundColor:ye.background1.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3},hours:{showCurrentStatus:!0,timeFormat:"12h",showDayNames:!0,dayOfWeekFormat:"long"},phoneNumberFormat:"domestic",phoneNumberLink:!1},analytics:{scope:"nearbyLocationsSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"nearbyLocationsSection",children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(WKe,{...e})})})}},GKe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.sectionHeading","Section Heading"),{type:"entityField",filter:{types:["type.string"]}}),products:T(v("fields.products","Products"),{type:"entityField",filter:{types:[Ia.ProductSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},UKe=({cardNumber:e,product:t,cardStyles:n,sectionHeadingLevel:a,ctaVariant:i})=>{const{i18n:o}=he(),{document:r}=ve();return c.jsxs(pt,{className:"flex flex-col rounded-lg overflow-hidden border h-full",background:n.backgroundColor,children:[t.image?c.jsx(vn,{image:t.image,aspectRatio:1.778,className:"h-[200px]"}):c.jsx("div",{className:"sm:h-[200px]"}),c.jsxs("div",{className:"p-8 gap-8 flex flex-col flex-grow",children:[c.jsxs("div",{className:"gap-4 flex flex-col",children:[t.name&&c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:a<6?a+1:"span",className:"mb-2",children:me(t.name,o.language,r)}),t.category&&c.jsx(pt,{background:ye.background5.value,className:"py-2 px-4 rounded w-fit",children:c.jsx(Qe,{children:me(t.category,o.language,r)})}),fa(t.description,o.language)]}),t.cta&&c.jsx(Ze,{eventName:`cta${e}`,variant:i,label:me(t.cta.label,o.language,r),link:t.cta.link,linkType:t.cta.linkType,className:"mt-auto"})]})]})},KKe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.products,a),r=fa(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t==null?void 0:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:(d=t==null?void 0:t.heading)==null?void 0:d.level,children:r})})}),(o==null?void 0:o.products)&&c.jsx(le,{displayName:M("fields.products","Products"),fieldId:e.products.field,constantValueEnabled:e.products.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:o.products.map((u,f)=>c.jsx(UKe,{cardNumber:f,product:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level,ctaVariant:t.cards.ctaVariant},f))})})]})},Yye={label:v("components.productsSection","Products Section"),fields:GKe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Featured Products",hasLocalizedValue:"true"},constantValueEnabled:!0},products:{field:"",constantValue:{products:[Ml,Ml,Ml]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background2.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3,ctaVariant:"primary"}},analytics:{scope:"productsSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"productsSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(KKe,{...e})})})}},qKe="https://placehold.co/640x360",ku={data:T(v("fields.data","Data"),{type:"object",objectFields:{promo:fp({label:v("fields.promo","Promo"),filter:{type:Ia.PromoSection.type}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),orientation:T(v("fields.imageOrientation","Image Orientation"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),image:T(v("fields.image","Image"),{type:"object",objectFields:rr})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},YKe=({data:e,styles:t})=>{var r,s;const{i18n:n}=he(),a=ve(),i=uh(a,e==null?void 0:e.promo,n.language),o=(r=t==null?void 0:t.heading)!=null&&r.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t.backgroundColor,className:lt("flex flex-col md:flex-row md:gap-8",t.orientation==="right"&&"md:flex-row-reverse"),children:[(i==null?void 0:i.image)&&c.jsx(le,{displayName:M("fields.image","Image"),fieldId:e.promo.field,constantValueEnabled:e.promo.constantValueOverride.image,children:c.jsx("div",{className:"w-full",children:c.jsx(vn,{image:i.image,aspectRatio:t.image.aspectRatio??1.78,width:t.image.width||640,className:"max-w-full sm:max-w-initial rounded-image-borderRadius"})})}),c.jsxs("div",{className:"flex flex-col justify-center gap-y-4 md:gap-y-8 md:px-16 pt-4 md:pt-0 w-full break-words",children:[(i==null?void 0:i.title)&&c.jsx(le,{displayName:M("fields.title","Title"),fieldId:e.promo.field,constantValueEnabled:e.promo.constantValueOverride.title,children:c.jsx("div",{className:`flex ${o}`,children:c.jsx(Ue,{level:t.heading.level,children:me(i==null?void 0:i.title,n.language,a)})})}),c.jsx(le,{displayName:M("fields.description","Description"),fieldId:e.promo.field,constantValueEnabled:!(i!=null&&i.description)||e.promo.constantValueOverride.description,children:fa(i==null?void 0:i.description,n.language)}),((s=i==null?void 0:i.cta)==null?void 0:s.label)&&c.jsx(le,{displayName:M("fields.callToAction","Call To Action"),fieldId:e.promo.field,constantValueEnabled:e.promo.constantValueOverride.cta,children:c.jsx(Ze,{eventName:"cta",variant:t==null?void 0:t.ctaVariant,label:me(i==null?void 0:i.cta.label,n.language,a),link:i==null?void 0:i.cta.link,linkType:i==null?void 0:i.cta.linkType})})]})]})},Zye={label:v("components.promoSection","Promo Section"),fields:ku,defaultProps:{data:{promo:{field:"",constantValueEnabled:!0,constantValue:{image:{height:360,width:640,url:qKe},title:{en:"Featured Promotion",hasLocalizedValue:"true"},description:{en:"Lorem ipsum dolor sit amet, consectetur adipiscing. Maecenas finibus placerat justo. 100 characters",hasLocalizedValue:"true"},cta:{label:{en:"Learn More",hasLocalizedValue:"true"},link:"#",linkType:"URL"}},constantValueOverride:{image:!0,title:!0,description:!0,cta:!0}}},styles:{backgroundColor:ye.background1.value,orientation:"left",ctaVariant:"primary",heading:{level:2,align:"left"},image:{aspectRatio:1.78}},analytics:{scope:"promoSection"},liveVisibility:!0},resolveFields:(e,{lastData:t})=>!e.props.data.promo.constantValueEnabled&&e.props.data.promo.field===""?(e.props.liveVisibility=!1,{...ku,liveVisibility:void 0}):((e.props.data.promo.constantValueEnabled&&!(t!=null&&t.props.data.promo.constantValueEnabled)&&e.props.data.promo.field===""||(t==null?void 0:t.props.data.promo.field)===""&&e.props.data.promo.field!=="")&&(e.props.liveVisibility=!0),ku),render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"promoSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:!!e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(YKe,{...e})})})}};function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(a){Ke(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function It(e,t,n){return t&&dv(e.prototype,t),n&&dv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dt(){return(dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function nn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xye(e,t)}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Xye(e,t){return(Xye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n})(e,t)}function ZKe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XKe(e,t){if(e==null)return{};var n,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Tt(e,t){if(e==null)return{};var n,a,i=XKe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QKe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return je(e)}function an(e){var t=ZKe();return function(){var n,a=Xf(e);if(t){var i=Xf(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return QKe(this,n)}}function Su(e){return JKe(e)||eqe(e)||tqe(e)||nqe()}function JKe(e){if(Array.isArray(e))return Qf(e)}function eqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tqe(e,t){if(e){if(typeof e=="string")return Qf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qf(e,t):void 0}}function Qf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function nqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
276
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qye(e,t){return t={exports:{}},e(t,t.exports),t.exports}function Jye(){}function eve(){}function ut(e){return e.map(function(t){return t===!1?null:t}).join(" ").replace(/\s+/g," ").trim()}function uv(e,t){return 100/e*t/t}function fv(e,t){return 100*e/t}function mn(e){return"".concat(e,"%")}function wd(e,t,n){if(e===t)return!0;var a=pn[eh(e)],i=pn[eh(t)];return!(!a||a!==i)&&a(e,t,n)}function hv(e){return function(t,n,a){if(!a)return e(t,n,[]);for(var i,o=a.length;i=a[--o];)if(i[0]===t&&i[1]===n)return!0;return e(t,n,a)}}function aqe(e,t,n){var a=e.length;if(a!==t.length)return!1;for(n.push([e,t]);a--;)if(!wd(e[a],t[a],n))return!1;return!0}function iqe(e,t,n){if(typeof e.equal=="function")return n.push([e,t]),e.equal(t,n);var a=pv(e),i=pv(t),o=a.length;if(o!==i.length)return!1;for(a.sort(),i.sort();o--;)if(a[o]!==i[o])return!1;for(n.push([e,t]),o=a.length;o--;){var r=a[o];if(!wd(e[r],t[r],n))return!1}return!0}function pv(e){var t=[];for(var n in e)n!=="constructor"&&t.push(n);return t}function oqe(e){return!!e&&typeof e=="object"}function rqe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sqe(e)}function sqe(e){return e.$$typeof===yqe}function lqe(e){return Array.isArray(e)?[]:{}}function Tc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ms(lqe(e),e,t):e}function cqe(e,t,n){return e.concat(t).map(function(a){return Tc(a,n)})}function dqe(e,t,n){var a={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){a[i]=Tc(e[i],n)}),Object.keys(t).forEach(function(i){n.isMergeableObject(t[i])&&e[i]?a[i]=ms(e[i],t[i],n):a[i]=Tc(t[i],n)}),a}function ms(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||cqe,n.isMergeableObject=n.isMergeableObject||mqe;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):dqe(e,t,n):Tc(t,n)}function Zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return{}},n=function(a){function i(r,s){var l;return _t(this,i),l=o.call(this,r,s),l.state=t(Fo({},s.state)),l.updateStateProps=l.updateStateProps.bind(je(l)),l}nn(i,a);var o=an(i);return It(i,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(r,s){return!bv(s,this.state)||!bv(r,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(Fo({},this.context.state)))}},{key:"render",value:function(){var r=this,s=zl(this.state,this.props);return g.createElement(e,dt({ref:function(l){r.instance=l}},s,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),i}(g.Component);return Ke(n,"contextType",cg),Ke(n,"propTypes",{children:Mt.children}),Ke(n,"defaultProps",{children:null}),n}var uqe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fqe=uqe;eve.resetWarningCache=Jye;var hqe=function(){function e(a,i,o,r,s,l){if(l!==fqe){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eve,resetWarningCache:Jye};return n.PropTypes=n,n},j=Qye(function(e){e.exports=hqe()}),wu="loading",gv="success",mv="error",Mt={children:j.oneOfType([j.arrayOf(j.node),j.node]),direction:j.oneOf(["forward","backward"]),orientation:j.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return e[t]===!0&&e.tag==="img"?new Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},Hl=function(e){var t=e.min,n=e.max,a=e.x;return Math.min(n,Math.max(t,a))},pqe={buttonBack:"buttonBack___1mlaL"},gqe=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Jf=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.currentSlide,s=i.onClick,l=i.step,d=i.infinite,u=i.visibleSlides,f=i.totalSlides-u,h=Math.max(r-l,0);d&&(h=r===0?f:h),o.setStoreState({currentSlide:h,isPlaying:!1},s!==null&&s.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=(a.currentSlide,a.disabled,a.onClick,a.step,a.totalSlides,a.visibleSlides,a.infinite),r=Tt(a,gqe),s=ut([pqe.buttonBack,"carousel__back-button",i]),l=t.setDisabled(this.props.disabled,this.props.currentSlide,o);return g.createElement("button",dt({type:"button","aria-label":"previous",className:s,onClick:this.handleOnClick,disabled:l},r),this.props.children)}}],[{key:"setDisabled",value:function(a,i,o){return a!==null?a:i===0&&!o}}]),t}(g.Component);Ke(Jf,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),Ke(Jf,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var eh=Qye(function(e,t){var n={}.toString,a=typeof window<"u"?window.Node:Function;e.exports=t=function(o){var r=typeof o;if(r!="object")return r;if(r=i[n.call(o)],r=="object")return o instanceof Map?"map":o instanceof Set?"set":"object";if(r)return r;if(o instanceof a)switch(o.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}});eh.types;var pn={};pn.number=function(e,t){return e!==e&&t!==t},pn.function=function(e,t,n){return e.toString()===t.toString()&&pn.object(e,t,n)&&wd(e.prototype,t.prototype)},pn.date=function(e,t){return+e==+t},pn.regexp=function(e,t){return e.toString()===t.toString()},pn.element=function(e,t){return e.outerHTML===t.outerHTML},pn.textnode=function(e,t){return e.textContent===t.textContent},pn.arguments=pn["bit-array"]=pn.array=hv(aqe),pn.object=hv(iqe);var bv=wd,mqe=function(e){return oqe(e)&&!rqe(e)},bqe=typeof Symbol=="function"&&Symbol.for,yqe=bqe?Symbol.for("react.element"):60103;ms.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,a){return ms(n,a,t)},{})};var zl=ms,cg=g.createContext(),yv=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||t[n]===null||typeof t[n]!="object"&&typeof t[n]!="function"||Object.isFrozen(t[n])||e(t[n])}),t},vqe={masterSpinnerFinished:!1},kqe=function(){function e(t){_t(this,e),this.state=yv(zl(vqe,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return It(e,[{key:"setStoreState",value:function(t,n){this.state=yv(zl(this.state,t)),this.updateSubscribers(n)}},{key:"getStoreState",value:function(){return zl({},this.state)}},{key:"subscribe",value:function(t){this.subscriptions.push(t)}},{key:"unsubscribe",value:function(t){var n=this.subscriptions.indexOf(t);n!==-1&&this.subscriptions.splice(n,1)}},{key:"updateSubscribers",value:function(t){this.subscriptions.forEach(function(n){return n()}),typeof t=="function"&&t(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(t){Object.keys(this.masterSpinnerSubscriptions).indexOf(t)===-1&&(this.masterSpinnerSubscriptions[t]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(t){return Object.keys(this.masterSpinnerSubscriptions).indexOf(t)!==-1&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[t])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(t){this.masterSpinnerSubscriptions[t].success=!0,this.masterSpinnerSubscriptions[t].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(t){this.masterSpinnerSubscriptions[t].error=!0,this.masterSpinnerSubscriptions[t].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var t=this;return Object.keys(this.masterSpinnerSubscriptions).filter(function(n){return t.masterSpinnerSubscriptions[n].complete!==!0}).length===0}}]),e}(),Sqe=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],fl,wqe=(fl=function(e){function t(a){var i;if(_t(this,t),i=n.call(this,a),a.isIntrinsicHeight&&a.orientation!=="horizontal")throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var o={currentSlide:a.currentSlide,disableAnimation:a.disableAnimation,disableKeyboard:a.disableKeyboard,hasMasterSpinner:a.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:a.interval,isPageScrollLocked:a.isPageScrollLocked,isPlaying:a.isPlaying,lockOnWindowScroll:a.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:a.naturalSlideHeight,naturalSlideWidth:a.naturalSlideWidth,orientation:a.orientation,playDirection:a.playDirection,privateUnDisableAnimation:!1,slideSize:uv(a.totalSlides,a.visibleSlides),slideTraySize:fv(a.totalSlides,a.visibleSlides),step:a.step,dragStep:a.dragStep,totalSlides:a.totalSlides,touchEnabled:a.touchEnabled,dragEnabled:a.dragEnabled,visibleSlides:a.visibleSlides,infinite:a.infinite,isIntrinsicHeight:a.isIntrinsicHeight};return i.carouselStore=new kqe(o),i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidUpdate",value:function(a){var i=this,o={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(r){a[r]!==i.props[r]&&(o[r]=i.props[r])}),this.props.currentSlide!==a.currentSlide&&!this.props.disableAnimation&&(o.disableAnimation=!0,o.privateUnDisableAnimation=!0),this.props.totalSlides===a.totalSlides&&this.props.visibleSlides===a.visibleSlides||(o.slideSize=uv(this.props.totalSlides,this.props.visibleSlides),o.slideTraySize=fv(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(o.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(o).length>0&&this.carouselStore.setStoreState(o)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var a=this.props,i=(a.children,a.className,a.currentSlide,a.disableAnimation,a.disableKeyboard,a.hasMasterSpinner,a.interval,a.isPageScrollLocked,a.isPlaying,a.lockOnWindowScroll,a.naturalSlideHeight,a.naturalSlideWidth,a.orientation,a.playDirection,a.step,a.dragStep,a.tag),o=(a.totalSlides,a.touchEnabled,a.dragEnabled,a.visibleSlides,a.infinite,a.isIntrinsicHeight,Tt(a,Sqe)),r=ut(["carousel",this.props.className]);return g.createElement(i,dt({className:r},o),g.createElement(cg.Provider,{value:this.carouselStore},this.props.children))}}]),t}(g.Component),Ke(fl,"propTypes",{children:Mt.children.isRequired,className:j.string,currentSlide:j.number,disableAnimation:j.bool,disableKeyboard:j.bool,hasMasterSpinner:j.bool,interval:j.number,isPageScrollLocked:j.bool,isPlaying:j.bool,lockOnWindowScroll:j.bool,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,orientation:Mt.orientation,playDirection:Mt.direction,step:j.number,dragStep:j.number,tag:j.string,totalSlides:j.number.isRequired,touchEnabled:j.bool,dragEnabled:j.bool,visibleSlides:j.number,infinite:j.bool,isIntrinsicHeight:j.bool}),Ke(fl,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),fl);cg.Consumer;var vv=Zn(Jf,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),xqe={buttonFirst:"buttonFirst___2rhFr"},$qe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],hl,Cqe=(hl=function(e){function t(){var a;return _t(this,t),a=n.call(this),a.handleOnClick=a.handleOnClick.bind(je(a)),a}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick;o.setStoreState({currentSlide:0,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.totalSlides,Tt(a,$qe)),l=ut([xqe.buttonFirst,"carousel__first-button",i]),d=r!==null?r:o===0;return g.createElement("button",dt({type:"button","aria-label":"first",className:l,onClick:this.handleOnClick,disabled:d},s),this.props.children)}}]),t}(g.Component),Ke(hl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired}),Ke(hl,"defaultProps",{className:null,disabled:null,onClick:null}),hl);Zn(Cqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}});var Tqe={buttonLast:"buttonLast___2yuh0"},Lqe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],pl,Aqe=(pl=function(e){function t(){var a;return _t(this,t),a=n.call(this),a.handleOnClick=a.handleOnClick.bind(je(a)),a}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick,s=i.totalSlides,l=i.visibleSlides;o.setStoreState({currentSlide:s-l,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.totalSlides),l=a.visibleSlides,d=Tt(a,Lqe),u=ut([Tqe.buttonLast,"carousel__last-button",i]),f=r!==null?r:o>=s-l;return g.createElement("button",dt({type:"button","aria-label":"last",className:u,onClick:this.handleOnClick,disabled:f},d),this.props.children)}}]),t}(g.Component),Ke(pl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),Ke(pl,"defaultProps",{className:null,disabled:null,onClick:null}),pl);Zn(Aqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}});var Nqe={buttonNext:"buttonNext___2mOCa"},Eqe=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],gl,Pqe=(gl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.currentSlide,r=i.onClick,s=i.step,l=i.carouselStore,d=i.infinite,u=i.totalSlides-i.visibleSlides,f=s+o,h=Math.min(f,u);d&&(h=u===o?0:h),l.setStoreState({currentSlide:h,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.step,a.totalSlides),l=a.visibleSlides,d=a.infinite,u=Tt(a,Eqe),f=ut([Nqe.buttonNext,"carousel__next-button",i]),h=t.setDisabled(r,o,l,s,d);return g.createElement("button",dt({type:"button","aria-label":"next",className:f,onClick:this.handleOnClick,disabled:h},u),this.props.children)}}],[{key:"setDisabled",value:function(a,i,o,r,s){return a!==null?a:i>=r-o&&!s}}]),t}(g.PureComponent),Ke(gl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),Ke(gl,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),gl),kv=Zn(Pqe,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),Oqe={buttonNext:"buttonNext___3Lm3s"},Fqe=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],ml,jqe=(ml=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},i!==null&&i.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.childrenPaused),o=a.childrenPlaying,r=a.className,s=a.isPlaying,l=(a.onClick,Tt(a,Fqe)),d=ut([Oqe.buttonNext,"carousel__play-button",r]);return g.createElement("button",dt({type:"button","aria-label":"play",className:d,onClick:this.handleOnClick},l),s&&o,!s&&i,this.props.children)}}]),t}(g.PureComponent),Ke(ml,"propTypes",{carouselStore:j.object.isRequired,children:j.node,childrenPaused:j.node,childrenPlaying:j.node,className:j.string,isPlaying:j.bool.isRequired,onClick:j.func}),Ke(ml,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),ml);Zn(jqe,function(e){return{isPlaying:e.isPlaying}});var Sv={dot:"dot___3c3SI"},Mqe=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],bl,Rqe=(bl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick,s=i.slide,l=i.totalSlides,d=i.visibleSlides,u=s>=l-d?l-d:s;o.setStoreState({currentSlide:u,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.selected),l=a.slide,d=(a.totalSlides,a.visibleSlides),u=Tt(a,Mqe),f=l>=o&&l<o+d,h=typeof s=="boolean"?s:f,p=f===!0,b=typeof r=="boolean"?r:p,m=ut([Sv.dot,h&&Sv.dotSelected,"carousel__dot","carousel__dot--".concat(l),h&&"carousel__dot--selected",i]);return g.createElement("button",dt({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:m,disabled:b},u),this.props.children)}}]),t}(g.Component),Ke(bl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,selected:j.bool,slide:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),Ke(bl,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),bl),th=Zn(Rqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),_qe={},Iqe=["renderDots"],Dqe=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],yl,Hqe=(yl=function(e){function t(){return _t(this,t),n.apply(this,arguments)}nn(t,e);var n=an(t);return It(t,[{key:"renderDots",value:function(){var a=this.props,i=a.currentSlide,o=a.totalSlides,r=a.visibleSlides,s=a.disableActiveDots,l=a.showAsSelectedForCurrentSlideOnly,d=a.renderDots;if(d){var u=this.props;return u.renderDots,d(Tt(u,Iqe))}for(var f=[],h=0;h<o;h+=1){var p=h>=i&&h<i+r,b=h===i,m=l?b:p,y=h>=o-r?o-r:h;f.push(g.createElement(th,{key:h,slide:y,selected:m,disabled:!!s&&m},g.createElement("span",{className:ut["carousel__dot-group-dot"]},this.props.dotNumbers&&h+1)))}return f}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children),o=a.className,r=(a.currentSlide,a.dotNumbers,a.totalSlides,a.visibleSlides,a.disableActiveDots,a.showAsSelectedForCurrentSlideOnly,a.renderDots,Tt(a,Dqe)),s=ut([_qe.DotGroup,"carousel__dot-group",o]);return g.createElement("div",dt({className:s},r),this.renderDots(),i)}}]),t}(g.Component),Ke(yl,"propTypes",{children:Mt.children,className:j.string,currentSlide:j.number.isRequired,carouselStore:j.object.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,dotNumbers:j.bool,disableActiveDots:j.bool,showAsSelectedForCurrentSlideOnly:j.bool,renderDots:j.func}),Ke(yl,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),yl);Zn(Hqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}});var Vr={image:"image___xtQGH"},zqe=["src","alt"],Bqe=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],nh=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.state={imageStatus:wu},i.handleImageLoad=i.handleImageLoad.bind(je(i)),i.handleImageError=i.handleImageError.bind(je(i)),i.image=null,i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(a){a.src!==this.props.src&&(t.unsubscribeMasterSpinner(a),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:wu}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var a=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=a}}},{key:"handleImageLoad",value:function(a){this.setState({imageStatus:gv}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(a)}},{key:"handleImageError",value:function(a){this.setState({imageStatus:mv}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(a)}},{key:"tempTag",value:function(){return this.props.tag==="img"?"div":this.props.tag}},{key:"customRender",value:function(a){return typeof this.props[a]=="function"?this.props[a]():this.props.children}},{key:"renderLoading",value:function(a){var i=this.tempTag(),o=ut([Vr.image,Vr.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return g.createElement(i,dt({className:o},a),this.customRender("renderLoading"))}},{key:"renderError",value:function(a){var i=this.tempTag(),o=ut([Vr.image,Vr.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return g.createElement(i,dt({className:o},a),this.customRender("renderError"))}},{key:"renderSuccess",value:function(a){var i=this.props,o=i.style,r=i.tag,s=ut([Vr.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),l=dt({},o),d=a;if(r!=="img"){var u=a.src;a.alt,d=Tt(a,zqe),l=dt({},o,{backgroundImage:'url("'.concat(u,'")'),backgroundSize:"cover"})}return g.createElement(r,dt({className:s,style:l},d),this.props.children)}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.className,a.hasMasterSpinner,a.isBgImage,a.onError,a.onLoad,a.renderError,a.renderLoading,a.style,a.tag,Tt(a,Bqe));switch(this.state.imageStatus){case wu:return this.renderLoading(i);case gv:return this.renderSuccess(i);case mv:return this.renderError(i);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(a){a.hasMasterSpinner&&a.carouselStore.subscribeMasterSpinner(a.src)}},{key:"unsubscribeMasterSpinner",value:function(a){a.hasMasterSpinner&&a.carouselStore.unsubscribeMasterSpinner(a.src)}}]),t}(g.Component);Ke(nh,"propTypes",{alt:j.string,carouselStore:j.object.isRequired,children:Mt.children,className:j.string,hasMasterSpinner:j.bool.isRequired,isBgImage:Mt.isBgImage,onError:j.func,onLoad:j.func,renderError:j.func,renderLoading:j.func,src:j.string.isRequired,style:j.object,tag:j.string}),Ke(nh,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var wv=Zn(nh,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),Wqe={spinner:"spinner___27VUp"},Vqe=["className"],vl,tve=(vl=function(e){function t(){return _t(this,t),n.apply(this,arguments)}nn(t,e);var n=an(t);return It(t,[{key:"render",value:function(){var a=this.props,i=a.className,o=Tt(a,Vqe),r=ut([Wqe.spinner,"carousel__spinner",i]);return g.createElement("div",dt({className:r},o))}}]),t}(g.PureComponent),Ke(vl,"propTypes",{className:j.string}),Ke(vl,"defaultProps",{className:null}),vl),co={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},Gqe=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],kl,Uqe=2,Kqe=3,qqe=(kl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.state={isImageLoading:!0,isImageLoadingError:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},i.tpCache={},i.handleImageComplete=i.handleImageComplete.bind(je(i)),i.handleImageLoadError=i.handleImageLoadError.bind(je(i)),i.handleOnMouseMove=i.handleOnMouseMove.bind(je(i)),i.handleOnMouseOut=i.handleOnMouseOut.bind(je(i)),i.handleOnMouseOver=i.handleOnMouseOver.bind(je(i)),i.handleOnTouchEnd=i.handleOnTouchEnd.bind(je(i)),i.handleOnTouchMove=i.handleOnTouchMove.bind(je(i)),i.handleOnTouchStart=i.handleOnTouchStart.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidUpdate",value:function(a,i){i.isZooming===!1&&this.state.isZooming===!0&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),i.isZooming===!0&&this.state.isZooming===!1&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(a){this.setState({isImageLoading:!1}),this.props&&this.props.onLoad&&this.props.onLoad(a)}},{key:"handleImageLoadError",value:function(a){this.setState({isImageLoadingError:!0,isImageLoading:!1}),this.props&&this.props.onError&&this.props.onError(a)}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:Uqe})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(a){if(!this.state.isZooming){var i=mn(a.nativeEvent.offsetX/a.target.offsetWidth*100),o=mn(a.nativeEvent.offsetY/a.target.offsetHeight*100);this.setState({x:i,y:o})}}},{key:"handleOnTouchStart",value:function(a){var i=this;this.props.isPinchZoomEnabled&&(Su(a.targetTouches).forEach(function(o){i.tpCache[o.identifier]={clientX:o.clientX,clientY:o.clientY}}),this.setState(function(o){return{isZooming:o.isZooming||Object.keys(i.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(a){var i=this;if(this.state.isZooming){a.persist();var o=Su(a.targetTouches).filter(function(y){return i.tpCache[y.identifier]}).slice(0,2);if(o.length===2){a.stopPropagation();var r=a.target.getBoundingClientRect(),s=o[0].identifier,l=o[1].identifier,d={x1:this.tpCache[s].clientX,y1:this.tpCache[s].clientY,x2:this.tpCache[l].clientX,y2:this.tpCache[l].clientY};d.distance=t.distanceBetweenTwoTouches(Fo({},d));var u=t.midpointBetweenTwoTouches(Fo({},d));d.cx=u.x,d.cy=u.y;var f={x1:o[0].clientX,y1:o[0].clientY,x2:o[1].clientX,y2:o[1].clientY};f.distance=t.distanceBetweenTwoTouches(Fo({},f));var h=t.midpointBetweenTwoTouches(Fo({},f));f.cx=h.x,f.cy=h.y;var p=mn(Hl({min:0,max:100,x:(f.cx-r.left)/r.width*100})),b=mn(Hl({min:0,max:100,x:(f.cy-r.top)/r.height*100})),m=function(y){return Hl({min:1,max:Kqe,x:y.scale+(f.distance-d.distance)/100})};this.setState(function(y){return{isZooming:m(y)!==1,scale:m(y),x:p,y:b}})}}}},{key:"handleOnTouchEnd",value:function(a){var i=this;this.props.isPinchZoomEnabled&&(Su(a.changedTouches).forEach(function(o){delete i.tpCache[o.identifier]}),Object.keys(this.tpCache).length===0&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var a=this.props.spinner;return g.createElement("div",{className:ut([co.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},a&&a(),!a&&g.createElement(tve,null))}return null}},{key:"render",value:function(){var a=this.props,i=a.alt,o=a.bgImageProps,r=a.bgImageTag,s=(a.carouselStore,a.className),l=a.imageClassName,d=a.overlayClassName,u=(a.isPinchZoomEnabled,a.spinner,a.src),f=a.srcZoomed,h=a.tag,p=Tt(a,Gqe),b=ut([co.container,s]),m=ut([co.image,"carousel__zoom-image",l]),y=ut([co.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&co.hover,this.state.isZooming&&co.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",d]),S={};return(this.state.isHovering||this.state.isZooming)&&(S.transformOrigin="".concat(this.state.x," ").concat(this.state.y),S.transform="scale(".concat(this.state.scale,")")),g.createElement(h,dt({className:b},p),g.createElement(wv,dt({alt:i,className:m,tag:r,src:u,onLoad:this.handleImageComplete,onError:this.handleImageLoadError},o)),g.createElement(wv,{className:y,tag:"div",src:f||u,style:S,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(a){var i=a.x1,o=a.y1;return{x:(i+a.x2)/2,y:(o+a.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(a){var i=a.x1,o=a.y1,r=a.x2,s=a.y2;return Math.sqrt(Math.pow(r-i,2)+Math.pow(s-o,2))}}]),t}(g.Component),Ke(kl,"propTypes",{alt:j.string,bgImageProps:j.object,bgImageTag:j.string,carouselStore:j.object.isRequired,className:j.string,imageClassName:j.string,overlayClassName:j.string,spinner:j.func,onLoad:j.func,onError:j.func,src:j.string.isRequired,srcZoomed:j.string,tag:j.string,isPinchZoomEnabled:j.bool}),Ke(kl,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,onLoad:null,onError:null,srcZoomed:null,tag:"div"}),kl);Zn(qqe,function(){return{}});var Sl={slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"},Yqe=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tag","totalSlides","visibleSlides","isIntrinsicHeight"],wl,Zqe=(wl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnFocus=i.handleOnFocus.bind(je(i)),i.handleOnBlur=i.handleOnBlur.bind(je(i)),i.state={focused:!1},i}nn(t,e);var n=an(t);return It(t,[{key:"isVisible",value:function(){var a=this.props,i=a.currentSlide,o=a.index,r=a.visibleSlides;return o>=i&&o<i+r}},{key:"handleOnFocus",value:function(a){var i=this,o=this.props.onFocus;this.setState({focused:!0},function(){o!==null&&o.call(i,a)})}},{key:"handleOnBlur",value:function(a){var i=this,o=this.props.onBlur;this.setState({focused:!1},function(){o!==null&&o.call(i,a)})}},{key:"renderFocusRing",value:function(){return this.state.focused?g.createElement("div",{className:[Sl.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var a=this,i=this.props,o=i.ariaLabel,r=(i.carouselStore,i.children,i.className),s=i.classNameHidden,l=i.classNameVisible,d=(i.currentSlide,i.index,i.innerClassName),u=i.innerTag,f=i.naturalSlideHeight,h=i.naturalSlideWidth,p=(i.onBlur,i.onFocus,i.orientation),b=i.slideSize,m=i.style,y=i.tag,S=i.totalSlides,w=(i.visibleSlides,i.isIntrinsicHeight),C=Tt(i,Yqe),$={};p==="horizontal"?($.width=mn(b),$.paddingBottom=mn(100*f/(h*S))):($.width=mn(100),$.paddingBottom=mn(100*f/h));var x={};w&&(p==="horizontal"?$.height="unset":$.width="unset",$.paddingBottom="unset",x.position="unset");var L=dt({},$,m),A=this.isVisible(),E=ut([Sl.slide,p==="horizontal"&&Sl.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",A&&l,A&&"carousel__slide--visible",!A&&s,!A&&"carousel__slide--hidden",r]),z=ut([Sl.slideInner,"carousel__inner-slide",d]);return g.createElement(y,dt({ref:function(_){a.tagRef=_},"aria-selected":this.isVisible(),"aria-label":o,role:this.props.role,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:E,style:L},C),g.createElement(u,{ref:function(_){a.innerTagRef=_},className:z,style:x},this.props.children,this.renderFocusRing()))}}]),t}(g.PureComponent),Ke(wl,"propTypes",{ariaLabel:j.string,carouselStore:j.object,children:Mt.children,className:j.string,classNameHidden:j.string,classNameVisible:j.string,currentSlide:j.number.isRequired,index:j.number.isRequired,innerClassName:j.string,innerTag:j.string,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onBlur:j.func,onFocus:j.func,orientation:Mt.orientation.isRequired,slideSize:j.number.isRequired,role:j.string,style:j.object,tag:j.string,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,isIntrinsicHeight:j.bool}),Ke(wl,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,role:"option",style:{},tag:"div",isIntrinsicHeight:!1}),wl),xv=Zn(Zqe,function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Xqe=function(){function e(){_t(this,e)}return It(e,[{key:"parents",value:function(t,n){return t.parentNode===null?n:this.parents(t.parentNode,n.concat([t]))}},{key:"scrollParent",value:function(t){for(var n=this.parents(t.parentNode,[]),a=0;a<n.length;a+=1)if(e.scroll(n[a]))return n[a];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(t,n){return getComputedStyle(t,null).getPropertyValue(n)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(t){return t instanceof HTMLElement||t instanceof SVGElement}}]),e}(),Rn={horizontalSlider:"horizontalSlider___281Ls",touchDisabled:"touchDisabled___2qs4y",verticalSlider:"verticalSlider___34ZFD",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Qqe=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],Jqe=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],eYe=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],xl,tYe=(xl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.getSliderRef=i.getSliderRef.bind(je(i)),i.handleDocumentScroll=i.handleDocumentScroll.bind(je(i)),i.handleOnClickCapture=i.handleOnClickCapture.bind(je(i)),i.handleOnKeyDown=i.handleOnKeyDown.bind(je(i)),i.handleOnMouseDown=i.handleOnMouseDown.bind(je(i)),i.handleOnMouseMove=i.handleOnMouseMove.bind(je(i)),i.handleOnMouseUp=i.handleOnMouseUp.bind(je(i)),i.handleOnTouchCancel=i.handleOnTouchCancel.bind(je(i)),i.handleOnTouchEnd=i.handleOnTouchEnd.bind(je(i)),i.handleOnTouchMove=i.handleOnTouchMove.bind(je(i)),i.handleOnTouchStart=i.handleOnTouchStart.bind(je(i)),i.playBackward=i.playBackward.bind(je(i)),i.playForward=i.playForward.bind(je(i)),i.callCallback=i.callCallback.bind(je(i)),i.blockWindowScroll=i.blockWindowScroll.bind(je(i)),i.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},i.interval=null,i.isDocumentScrolling=null,i.moveTimer=null,i.originalOverflow=null,i.scrollParent=null,i.scrollStopTimer=null,i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(a){!a.isPlaying&&this.props.isPlaying&&this.play(),a.isPlaying&&!this.props.isPlaying&&this.stop(),!a.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),a.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),a.privateUnDisableAnimation===!1&&this.props.privateUnDisableAnimation===!0&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(a){if(this.sliderTrayElement=a,a&&window){var i=a.closest(".carousel");i&&(this.rtl=window.getComputedStyle(i,null).getPropertyValue("direction")==="rtl")}}},{key:"fakeOnDragStart",value:function(a){var i=a.screenX,o=a.screenY,r=a.touchDrag,s=r!==void 0&&r,l=a.mouseDrag,d=l!==void 0&&l;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:s,isBeingMouseDragged:d,startX:i,startY:o})}},{key:"fakeOnDragMove",value:function(a,i){var o=this;window.cancelAnimationFrame.call(window,this.moveTimer),this.moveTimer=window.requestAnimationFrame.call(window,function(){o.setState(function(r){return{deltaX:(a-r.startX)*(o.rtl?-1:1),deltaY:i-r.startY,preventingVerticalScroll:Math.abs(i-r.startY)<=o.props.verticalPixelThreshold&&Math.abs(a-r.startX)>=o.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(a,i){var o=this.props.trayProps;o&&typeof o[a]=="function"&&(i.persist(),o[a](i))}},{key:"handleOnMouseDown",value:function(a){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",a);a.preventDefault(),this.fakeOnDragStart({screenX:a.screenX,screenY:a.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",a)}},{key:"handleOnMouseMove",value:function(a){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),a.preventDefault(),this.fakeOnDragMove(a.screenX,a.screenY))}},{key:"handleOnMouseUp",value:function(a){this.state.isBeingMouseDragged&&(a.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(a){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",a);a.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",a)}},{key:"handleOnTouchStart",value:function(a){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",a);this.props.orientation==="vertical"&&a.preventDefault();var i=a.targetTouches[0];this.fakeOnDragStart({screenX:i.screenX,screenY:i.screenY,touchDrag:!0}),this.callCallback("onTouchStart",a)}},{key:"handleDocumentScroll",value:function(){var a=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){a.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(a){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",a);var i=a.targetTouches[0];i&&(this.fakeOnDragMove(i.screenX,i.screenY),this.callCallback("onTouchMove",a))}},{key:"forward",value:function(){var a=this.props,i=a.currentSlide,o=a.step,r=a.totalSlides,s=a.visibleSlides;return Math.min(i+o,r-s)}},{key:"backward",value:function(){var a=this.props,i=a.currentSlide,o=a.step;return Math.max(i-o,0)}},{key:"handleOnKeyDown",value:function(a){var i=a.keyCode,o=this.props,r=o.carouselStore,s=o.currentSlide,l=o.disableKeyboard,d=o.totalSlides,u=o.visibleSlides,f={};l===!0||d<=u||(i===37&&(a.preventDefault(),this.focus(),f.currentSlide=Math.max(0,s-1),f.isPlaying=!1),i===39&&(a.preventDefault(),this.focus(),f.currentSlide=Math.min(d-u,s+1),f.isPlaying=!1),r.setStoreState(f))}},{key:"playForward",value:function(){var a=this.props,i=a.carouselStore,o=a.currentSlide;i.setStoreState({currentSlide:this.forward()===o?0:this.forward()})}},{key:"playBackward",value:function(){var a=this.props,i=a.carouselStore,o=a.currentSlide,r=a.totalSlides,s=a.visibleSlides;i.setStoreState({currentSlide:this.backward()===o?r-s:this.backward()})}},{key:"play",value:function(){var a=this.props.playDirection;this.interval=setInterval(a==="forward"?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var a=new Xqe;this.scrollParent=a.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(a){this.state.preventingVerticalScroll&&(a.preventDefault(),a.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var a=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),i=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,a,this.props.dragStep),o=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),r=Hl({min:0,max:o,x:this.props.currentSlide+i});this.props.infinite&&(this.props.currentSlide>=o&&i>0&&(r=0),this.props.currentSlide===0&&i<0&&(r=o)),this.props.carouselStore.setStoreState({currentSlide:r})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(a){this.endTouchMove(),this.callCallback("onTouchEnd",a)}},{key:"handleOnTouchCancel",value:function(a){this.endTouchMove(),this.callCallback("onTouchCancel",a)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var a=this.props,i=a.hasMasterSpinner,o=a.masterSpinnerFinished,r=a.spinner;return i&&!o?(typeof this.props.onMasterSpinner=="function"&&this.props.onMasterSpinner(),g.createElement("div",{className:ut([Rn.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&g.createElement(tve,null))):null}},{key:"render",value:function(){var a=this,i=this.props,o=i.ariaLabel,r=(i.carouselStore,i.children),s=i.className,l=i.classNameAnimation,d=i.classNameTray,u=i.classNameTrayWrap,f=i.currentSlide,h=i.disableAnimation,p=(i.disableKeyboard,i.dragEnabled,i.hasMasterSpinner,i.interval,i.isPageScrollLocked,i.isPlaying,i.lockOnWindowScroll,i.masterSpinnerFinished,i.moveThreshold,i.naturalSlideHeight),b=i.naturalSlideWidth,m=(i.onMasterSpinner,i.orientation),y=(i.playDirection,i.privateUnDisableAnimation,i.slideSize),S=i.slideTraySize,w=(i.spinner,i.style),C=(i.totalSlides,i.touchEnabled),$=i.trayProps,x=i.trayTag,L=i.visibleSlides,A=i.isIntrinsicHeight,E=Tt(i,Qqe),z=dt({},w),_={};m==="vertical"&&(_.height=0,_.paddingBottom=mn(100*p*L/b),_.width=mn(100));var B={},U=mn(y*f*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||h)&&(B.transition="none"),A&&(B.display="flex",B.alignItems="stretch"),m==="vertical"?(B.transform="translateY(".concat(U,") translateY(").concat(this.state.deltaY,"px)"),B.width=mn(100),B.flexDirection="column"):(B.width=mn(S),B.transform="translateX(".concat(U,") translateX(").concat(this.state.deltaX,"px)"),B.flexDirection="row");var ee=ut([m==="vertical"?Rn.verticalSlider:Rn.horizontalSlider,!C&&Rn.touchDisabled,"carousel__slider",m==="vertical"?"carousel__slider--vertical":"carousel__slider--horizontal",s]),Y=ut([Rn.sliderTrayWrap,"carousel__slider-tray-wrapper",m==="vertical"?Rn.verticalSlideTrayWrap:Rn.horizontalTrayWrap,m==="vertical"?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",u]),re=ut([Rn.sliderTray,l||Rn.sliderAnimation,"carousel__slider-tray",m==="vertical"?Rn.verticalTray:Rn.horizontalTray,m==="vertical"?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",d]),Z=(E.dragStep,E.step,E.infinite,E.preventVerticalScrollOnTouch,E.preventingVerticalScroll,E.horizontalPixelThreshold,E.verticalPixelThreshold,Tt(E,Jqe)),G=($.className,$.onClickCapture,$.onMouseDown,$.onTouchCancel,$.onTouchEnd,$.onTouchMove,$.onTouchStart,$.ref,$.style,Tt($,eYe));return g.createElement("div",dt({ref:function(J){a.sliderElement=J},className:ee,"aria-live":"polite","aria-label":o,role:this.props.role,style:z,onKeyDown:this.handleOnKeyDown},Z),g.createElement("div",{className:Y,style:_},g.createElement(x,dt({ref:this.getSliderRef,className:re,style:B,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},G),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(a,i,o,r){return(a==="horizontal"?i:o)/r}},{key:"slidesMoved",value:function(a,i,o,r,s,l){var d=i==="horizontal"?o:r,u=Math.abs(Math.round(d/s)),f=Math.abs(d)>=s*a?l:0,h=Math.max(f,u);if(d<0)return h;var p=-h;return p===0?0:p}}]),t}(g.Component),Ke(xl,"propTypes",{ariaLabel:j.string,carouselStore:j.object.isRequired,children:j.node.isRequired,className:j.string,classNameAnimation:j.string,classNameTray:j.string,classNameTrayWrap:j.string,currentSlide:j.number.isRequired,disableAnimation:j.bool,disableKeyboard:j.bool,dragEnabled:j.bool.isRequired,dragStep:j.number,hasMasterSpinner:j.bool.isRequired,infinite:j.bool,interval:j.number.isRequired,isPageScrollLocked:j.bool.isRequired,isPlaying:j.bool.isRequired,lockOnWindowScroll:j.bool.isRequired,preventVerticalScrollOnTouch:j.bool,horizontalPixelThreshold:j.number,verticalPixelThreshold:j.number,masterSpinnerFinished:j.bool.isRequired,moveThreshold:j.number,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onMasterSpinner:j.func,orientation:Mt.orientation.isRequired,playDirection:Mt.direction.isRequired,privateUnDisableAnimation:j.bool,role:j.string,slideSize:j.number.isRequired,slideTraySize:j.number.isRequired,spinner:j.func,step:j.number.isRequired,style:j.object,totalSlides:j.number.isRequired,touchEnabled:j.bool.isRequired,trayProps:j.shape({className:j.string,onClickCapture:j.func,onMouseDown:j.func,onTouchCancel:j.func,onTouchEnd:j.func,onTouchMove:j.func,onTouchStart:j.func,ref:j.shape({}),style:j.string}),trayTag:j.string,visibleSlides:j.number,isIntrinsicHeight:j.bool}),Ke(xl,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,role:"listbox",spinner:null,style:{},trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),xl),$v=Zn(tYe,function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}});const xu="https://placehold.co/1000x570/png",uo=({children:e,category:t})=>{const n=lr(),a=n==null?void 0:n.isDarkBackground,i=t==="slide"?a?"bg-white disabled:bg-gray-400":"bg-palette-primary-dark disabled:bg-gray-400":a?"text-white disabled:text-gray-400":"text-palette-primary-dark disabled:text-gray-400";return g.cloneElement(e,{className:lt(e.props.className,i)})},nYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.heading","Heading"),{type:"entityField",filter:{types:["type.string"]}}),images:T(v("fields.images","Images"),{type:"entityField",filter:{types:["type.image"],includeListsOnly:!0}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),image:T(v("fields.image","Image"),{type:"object",objectFields:rr})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},aYe=({data:e,styles:t})=>{const{t:n,i18n:a}=he(),i=a.language,o=ve(),r=me(we(o,e.heading,i),a.language),l=(we(o,e.images,i)||[]).filter(u=>!!u).map(u=>({image:{...u,height:"height"in u&&u.height?u.height:570,width:"width"in u&&u.width?u.width:1e3},aspectRatio:t.image.aspectRatio,width:t.image.width||1e3})),d={left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align];return c.jsxs(De,{"aria-label":n("photoGallerySection","Photo Gallery Section"),background:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${d}`,children:c.jsx(Ue,{level:t.heading.level,children:r})})}),l&&l.length>0&&c.jsxs(wqe,{className:"flex flex-col gap-8",naturalSlideWidth:100,naturalSlideHeight:100,totalSlides:l.length,isIntrinsicHeight:!0,children:[c.jsx("div",{className:"hidden md:flex justify-center w-full",children:c.jsxs("div",{className:"flex items-center gap-2",style:{width:`${(t.image.width||1e3)+96}px`,maxWidth:"100%",minWidth:"fit-content"},children:[c.jsx(uo,{category:"arrow",children:c.jsx(vv,{className:"my-auto pointer-events-auto w-8 h-8 sm:w-10 sm:h-10 disabled:cursor-default",children:c.jsx(Yf,{className:"h-10 w-fit"})})}),c.jsxs("div",{className:"flex flex-col gap-y-8 items-center w-auto",children:[c.jsx(le,{displayName:M("fields.images","Images"),fieldId:e.images.field,constantValueEnabled:e.images.constantValueEnabled,children:c.jsx($v,{className:"w-auto",style:{width:t.image.width||1e3},children:l.map((u,f)=>c.jsx(xv,{index:f,children:c.jsx("div",{className:"flex justify-center",children:c.jsx(vn,{image:u.image,aspectRatio:u.aspectRatio,width:u.width,className:"rounded-image-borderRadius"})})},f))})}),c.jsx("div",{className:"hidden md:flex justify-center",children:l.map((u,f)=>c.jsx("div",{className:"w-16 flex justify-center",children:c.jsx(uo,{category:"slide",children:c.jsx(th,{slide:f,className:"text-center w-16 mx-2 basis-0 flex-grow h-1 rounded-full disabled:cursor-default after:content-[' '] after:py-2 after:block"})})},f))})]}),c.jsx(uo,{category:"arrow",children:c.jsx(kv,{className:"pointer-events-auto w-8 h-8 sm:w-10 sm:h-10 disabled:cursor-default my-auto",children:c.jsx(Zf,{className:"h-10 w-fit"})})})]})}),c.jsxs("div",{className:"flex flex-col gap-y-8 items-center justify-center md:hidden",children:[c.jsx(le,{displayName:M("fields.images","Images"),fieldId:e.images.field,constantValueEnabled:e.images.constantValueEnabled,children:c.jsx($v,{children:l.map((u,f)=>c.jsx(xv,{index:f,children:c.jsx("div",{className:"flex justify-center",children:c.jsx(vn,{image:u.image,aspectRatio:u.aspectRatio,width:u.width})})},f))})}),c.jsxs("div",{className:"flex justify-between items-center px-4 gap-6 w-full",children:[c.jsx(uo,{category:"arrow",children:c.jsx(vv,{className:"pointer-events-auto w-8 h-8 disabled:cursor-default",children:c.jsx(Yf,{className:"h-6 w-fit"})})}),c.jsx("div",{className:"flex gap-2 justify-center flex-grow w-full",children:l.map((u,f)=>c.jsx(uo,{category:"slide",children:c.jsx(th,{slide:f,className:" h-1.5 w-full rounded-full disabled:cursor-default"})},f))}),c.jsx(uo,{category:"arrow",children:c.jsx(kv,{className:"pointer-events-auto w-8 h-8 disabled:cursor-default",children:c.jsx(Zf,{className:"h-6 w-fit"})})})]})]})]})]})},nve={label:v("components.photoGallerySection","Photo Gallery Section"),fields:nYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Gallery",hasLocalizedValue:"true"},constantValueEnabled:!0},images:{field:"",constantValue:[{url:xu},{url:xu},{url:xu}],constantValueEnabled:!0}},styles:{backgroundColor:ye.background1.value,heading:{level:2,align:"left"},image:{aspectRatio:1.78}},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(aYe,{...e})})},iYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("div",{ref:a,className:`flex flex-col ${t}`,...n})}),oYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("details",{ref:a,className:`group border-b py-4 last:border-none ${t}`,...n})}),rYe=g.forwardRef(function({className:t="",children:n,...a},i){return c.jsxs("summary",{ref:i,className:`flex cursor-pointer list-none items-center justify-between ${t}`,...a,children:[c.jsx("span",{children:n}),c.jsx("svg",{className:"ml-4 h-5 w-5 flex-shrink-0 transition-transform duration-300 group-open:rotate-180",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]})}),sYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("div",{ref:a,className:`pt-4 ${t}`,...n})}),lYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.sectionHeading","Section Heading"),{type:"entityField",filter:{types:["type.string"]}}),faqs:T(v("fields.faqs","FAQs"),{type:"entityField",filter:{types:[Ia.FAQSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},cYe=({data:e,styles:t})=>{var d,u,f,h;const{i18n:n}=he(),a=n.language,i=ve(),o=me(we(i,e==null?void 0:e.heading,a),n.language),r=we(i,e==null?void 0:e.faqs,a),s=Pe.useAnalytics(),l=(d=t==null?void 0:t.heading)!=null&&d.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t.backgroundColor,className:"flex flex-col gap-8 md:gap-12",children:[o&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${l}`,children:c.jsx(Ue,{level:((u=t==null?void 0:t.heading)==null?void 0:u.level)??2,children:o})})}),(r==null?void 0:r.faqs)&&((f=r.faqs)==null?void 0:f.length)>0&&c.jsx(le,{displayName:M("fields.faqs","FAQs"),fieldId:e==null?void 0:e.faqs.field,constantValueEnabled:e==null?void 0:e.faqs.constantValueEnabled,children:c.jsx(iYe,{children:(h=r==null?void 0:r.faqs)==null?void 0:h.map((p,b)=>c.jsxs(oYe,{"data-ya-action":s!=null&&s.getDebugEnabled()?"EXPAND/COLLAPSE":void 0,"data-ya-eventname":s!=null&&s.getDebugEnabled()?`toggleFAQ${b}`:void 0,onToggle:m=>m.currentTarget.open?s==null?void 0:s.track({action:"EXPAND",eventName:`toggleFAQ${b}`}):s==null?void 0:s.track({action:"COLLAPSE",eventName:`toggleFAQ${b}`}),children:[c.jsx(rYe,{children:c.jsx(Qe,{children:me(p.question,n.language)})}),c.jsx(sYe,{children:c.jsx(le,{displayName:M("fields.answer","Answer"),fieldId:e.faqs.field,constantValueEnabled:e.faqs.constantValueEnabled,children:c.jsx(Qe,{children:fa(p.answer,n.language)})})})]},b))})})]})},ave={label:v("components.faqsSection","FAQs Section"),fields:lYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Frequently Asked Questions",hasLocalizedValue:"true"},constantValueEnabled:!0},faqs:{field:"",constantValue:{faqs:[Rl,Rl,Rl]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background2.value,heading:{level:2,align:"left"}},liveVisibility:!0,analytics:{scope:"faqsSection"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"faqsSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(cYe,{...e})})})}},ive=5,dYe={month:"long",day:"numeric",year:"numeric"},uYe={backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})},fYe=e=>{var S,w,C;const t=ve(),n=(S=t==null?void 0:t._env)==null?void 0:S.YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY;if(!n)return console.warn("Missing YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY, unable to access reviews content endpoint."),c.jsx(c.Fragment,{});const a=Number(t==null?void 0:t.businessId),i=(w=t==null?void 0:t._yext)==null?void 0:w.contentDeliveryAPIDomain,o=t==null?void 0:t.uid,[r,s]=k.useState(1),[l,d]=k.useState({}),{data:u,status:f,isLoading:h}=ipe({queryKey:["reviews",o,r,l[r]],queryFn:async()=>zge({businessId:a,apiKey:n,contentDeliveryAPIDomain:i,entityId:o,limit:ive,pageToken:l[r]}),enabled:!!a&&!!n&&!!i&&!!o});k.useEffect(()=>{var $;($=u==null?void 0:u.response)!=null&&$.nextPageToken&&d(x=>({...x,[r+1]:u.response.nextPageToken}))},[u,r]);const{averageRating:p,reviewCount:b}=lg(t);if(f!=="success"||!h&&b===0)return c.jsx(c.Fragment,{});const m={averageRating:p,reviewCount:b,isLoading:h},y={reviewCount:b,currentPageNumber:r,fetchData:s};return c.jsxs(De,{className:"flex flex-col gap-12",background:e.backgroundColor,children:[c.jsx(hYe,{...m}),u&&c.jsxs(c.Fragment,{children:[c.jsx(pYe,{reviews:(C=u==null?void 0:u.response)==null?void 0:C.docs}),c.jsx(yYe,{...y})]})]})},hYe=e=>{const{averageRating:t,reviewCount:n,isLoading:a}=e,{t:i}=he();return c.jsxs("div",{className:"flex flex-col gap-3",children:[c.jsx(Ue,{level:3,className:"text-center",children:i("recentReviews","Recent Reviews")}),c.jsx("div",{className:"flex flex-row gap-3 items-center justify-center",children:a?c.jsx(Qe,{children:i("loadingReviews","Loading reviews...")}):c.jsx(Sd,{averageRating:t,reviewCount:n})})]})},pYe=({reviews:e})=>e?c.jsx("div",{className:"flex flex-col gap-4",children:e.map((t,n)=>c.jsx(gYe,{index:n,review:t},`review-${n}`))}):c.jsx(c.Fragment,{}),gYe=({review:e,index:t})=>{const n={author:e.authorName,date:e.reviewDate},a={rating:e.rating,...e.content&&{content:e.content},index:t};let i;if(Array.isArray(e.comments)&&e.comments.length>0){const o=e.comments[0].content,r=e.comments[0].commentDate;i={businessName:ve().name||"",content:o,date:r,index:t}}return c.jsx(c.Fragment,{children:c.jsxs("div",{className:"border-t border-gray-400 flex flex-col md:flex-row gap-2 p-4",children:[c.jsx("div",{className:"w-full md:w-1/3",children:c.jsx(ove,{...n})}),c.jsxs("div",{className:"w-full md:w-2/3 flex flex-col gap-8",children:[c.jsx(mYe,{...a}),i&&c.jsx(bYe,{...i})]})]})})},ove=({author:e,date:t})=>{const n=ve();return c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx(Qe,{variant:"lg",className:"font-bold",children:e}),c.jsx(Hs,{date:t,option:Ds.DATE,hideTimeZone:!0,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,locale:n==null?void 0:n.locale,dateFormatOverride:dYe})]})},mYe=({rating:e,content:t,index:n})=>{const a=c.jsx(Sd,{averageRating:e});if(!t)return c.jsx("div",{className:"flex flex-col gap-2",children:a});const i={content:t,preContentElement:a,analyticsName:`review${n}`};return c.jsx(rve,{...i})},bYe=({businessName:e,content:t,date:n,index:a})=>{const{t:i}=he(),o={author:i("responseFrom",`Response from ${e}`,{businessName:e}),date:n},r=c.jsx(ove,{...o}),s={content:t,preContentElement:r,analyticsName:`businessResponse${a}`};return c.jsx(rve,{...s})},rve=({content:e,preContentElement:t,analyticsName:n})=>{const[a,i]=k.useState(!1),[o,r]=k.useState(!1),s=k.useRef(null);return k.useEffect(()=>{s.current&&!a?r(s.current.scrollHeight>s.current.clientHeight):r(!1)},[e,a]),c.jsxs("div",{className:"flex flex-col gap-2",children:[t,c.jsx(Qe,{ref:s,className:`transition-all duration-200 ${a?"":"line-clamp-3"}`,style:{overflowWrap:"anywhere"},children:e}),(o||a)&&c.jsx(vYe,{expanded:a,setExpanded:i,analyticsName:n})]})},yYe=({reviewCount:e,currentPageNumber:t,fetchData:n})=>{const a=Pe.useAnalytics(),i=lr(),o=Math.ceil(e/ive);if(o<=1)return c.jsx(c.Fragment,{});const r=`cursor-pointer ${i!=null&&i.isDarkBackground?"text-white":"text-palette-primary-dark"}`,s="opacity-50 cursor-default";return c.jsxs(Qe,{className:"flex flex-row justify-center items-center gap-5",children:[c.jsx(Yf,{className:`${t===1?s:r}`,"data-ya-action":a!=null&&a.getDebugEnabled()?"PAGINATE":void 0,"data-ya-eventname":a!=null&&a.getDebugEnabled()?"previousPage":void 0,onClick:()=>{t>1&&(n(t-1),a==null||a.track({eventName:"previousPage",action:"PAGINATE"}))}}),c.jsx(Zf,{className:`${t===o?s:r}`,"data-ya-action":a!=null&&a.getDebugEnabled()?"PAGINATE":void 0,"data-ya-eventname":a!=null&&a.getDebugEnabled()?"nextPage":void 0,onClick:()=>{t<o&&(n(t+1),a==null||a.track({eventName:"nextPage",action:"PAGINATE"}))}})]})},vYe=({expanded:e,setExpanded:t,analyticsName:n})=>{const{t:a}=he(),i=Pe.useAnalytics();return c.jsxs(Cr,{className:"font-body-fontFamily text-body-fontSize underline cursor-pointer inline-flex items-center gap-2",onClick:()=>{e?i==null||i.track({action:"COLLAPSE",eventName:`${n}-showLess`}):i==null||i.track({action:"EXPAND",eventName:`${n}-showMore`}),t(!e)},variant:"link","data-ya-action":i!=null&&i.getDebugEnabled()?e?"COLLAPSE":"EXPAND":void 0,"data-ya-eventname":i!=null&&i.getDebugEnabled()?`${n}-${e?"showLess":"showMore"}`:void 0,children:[e?a("showLess","Show less"):a("showMore","Show more"),c.jsx(sKe,{className:`transition-transform ${e?"rotate-180":""}`,style:{textDecoration:"underline"}})]})},sve={fields:uYe,label:v("components.reviewsSection","Reviews Section"),defaultProps:{backgroundColor:ye.background1.value,analytics:{scope:"reviewsSection"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"reviewsSection"}${ga(e.id)}`,children:c.jsx(fYe,{...e})})}},kYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),testimonials:T(v("fields.testimonialSection","Testimonial Section"),{type:"entityField",filter:{types:[Ia.TestimonialSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},SYe=({testimonial:e,cardStyles:t,sectionHeadingLevel:n})=>{const{i18n:a}=he();return c.jsxs("div",{className:"flex flex-col rounded-lg overflow-hidden border h-full",children:[c.jsx(pt,{background:ye.background1.value,className:"p-8 grow",children:fa(e.description,a.language)}),c.jsxs(pt,{background:t.backgroundColor,className:"p-8",children:[e.contributorName&&c.jsx(Ue,{level:t.headingLevel,semanticLevelOverride:n<6?n+1:"span",children:me(e.contributorName,a.language)}),e.contributionDate&&c.jsx(Hs,{date:e.contributionDate,option:Ds.DATE,hideTimeZone:!0})]})]})},wYe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.testimonials,a),r=me(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:(d=t==null?void 0:t.heading)==null?void 0:d.level,children:r})})}),(o==null?void 0:o.testimonials)&&c.jsx(le,{displayName:M("fields.testimonials","Testimonials"),fieldId:e.testimonials.field,constantValueEnabled:e.testimonials.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center",children:o.testimonials.map((u,f)=>c.jsx(SYe,{testimonial:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level},f))})})]})},lve={label:v("components.testimonialsSection","Testimonials Section"),fields:kYe,defaultProps:{styles:{backgroundColor:ye.background2.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3}},data:{heading:{field:"",constantValue:{en:"Featured Testimonials",hasLocalizedValue:"true"},constantValueEnabled:!0},testimonials:{field:"",constantValue:{testimonials:[Il,Il,Il]},constantValueEnabled:!0}},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(wYe,{...e})})},xYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),people:T(v("fields.teamSection","Team Section"),{type:"entityField",filter:{types:[Ia.TeamSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},$Ye=({cardNumber:e,person:t,cardStyles:n,sectionHeadingLevel:a,ctaVariant:i})=>{const{i18n:o}=he();return c.jsxs("div",{className:"flex flex-col rounded-lg overflow-hidden border bg-white h-full",children:[c.jsxs(pt,{background:n.backgroundColor,className:"flex p-8 gap-6",children:[c.jsx("div",{className:"w-20 h-20 flex-shrink-0 rounded-full overflow-hidden",children:t.headshot&&c.jsx(vn,{image:t.headshot,aspectRatio:t.headshot.width&&t.headshot.height?t.headshot.width/t.headshot.height:1.78})}),c.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[t.name&&c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:a<6?a+1:"span",children:me(t.name,o.language)}),t.title&&c.jsx(Qe,{variant:"base",children:me(t.title,o.language)})]})]}),c.jsx("hr",{className:"border"}),c.jsx(pt,{background:ye.background1.value,className:"p-8",children:c.jsxs("div",{className:"flex flex-col gap-4",children:[t.phoneNumber&&c.jsx(Tr,{eventName:`phone${e}`,phoneNumber:t.phoneNumber,includeHyperlink:!0,includeIcon:!0,format:t.phoneNumber.slice(0,2)==="+1"?"domestic":"international"}),t.email&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-palette-primary-light flex items-center justify-center",children:c.jsx(Fye,{})}),c.jsx(Ze,{eventName:`email${e}`,link:t.email,label:t.email,linkType:"EMAIL",variant:"link"})]}),t.cta&&c.jsx("div",{className:"flex justify-start gap-2",children:c.jsx(Ze,{eventName:`cta${e}`,label:me(t.cta.label,o.language),link:t.cta.link,linkType:t.cta.linkType,variant:i})})]})})]})},CYe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.people,a),r=me(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t==null?void 0:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:((d=t==null?void 0:t.heading)==null?void 0:d.level)??2,children:r})})}),(o==null?void 0:o.people)&&c.jsx(le,{displayName:M("fields.team","Team"),fieldId:e.people.field,constantValueEnabled:e.people.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center",children:o.people.map((u,f)=>c.jsx($Ye,{cardNumber:f,person:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level,ctaVariant:t.cards.ctaVariant},f))})})]})},cve={label:v("components.teamSection","Team Section"),fields:xYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Meet Our Team",hasLocalizedValue:"true"},constantValueEnabled:!0},people:{field:"",constantValue:{people:[_l,_l,_l]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background3.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3,ctaVariant:"primary"}},analytics:{scope:"teamSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"teamSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(CYe,{...e})})})}},Lc=di("components w-full",{variants:{gap:{none:"",0:"gap-0","0.5":"gap-0.5",1:"gap-1","1.5":"gap-1.5",2:"gap-2","2.5":"gap-2.5",3:"gap-3","3.5":"gap-3.5",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9",10:"gap-10",11:"gap-11",12:"gap-12",14:"gap-14",16:"gap-16",20:"gap-20",24:"gap-24"},verticalPadding:{none:"",default:"py-pageSection-verticalPadding",0:"py-0","0.5":"py-0.5",1:"py-1","1.5":"py-1.5",2:"py-2","2.5":"py-2.5",3:"py-3","3.5":"py-3.5",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",14:"py-14",16:"py-16",20:"py-20",24:"py-24"},horizontalPadding:{none:"",0:"px-0","0.5":"px-0.5",1:"px-1","1.5":"px-1.5",2:"px-2","2.5":"px-2.5",3:"px-3","3.5":"px-3.5",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",14:"px-14",16:"px-16",20:"px-20",24:"px-24"},columnFormatting:{none:"",default:"md:grid md:grid-cols-12",forceHorizontal:"!grid grid-cols-12"}},defaultVariants:{gap:"none",verticalPadding:"none",horizontalPadding:"none",columnFormatting:"none"}}),dve={backgroundColor:T("Background Color",{type:"select",options:"BACKGROUND_COLOR"}),gap:Nl("Gap","gap",!1),verticalPadding:Nl("Top/Bottom Padding","padding",!0),horizontalPadding:Nl("Left/Right Padding","padding",!1)},uve=k.forwardRef(({direction:e,justifyContent:t,alignItems:n,wrap:a,gap:i,verticalPadding:o,horizontalPadding:r,backgroundColor:s},l)=>c.jsx(pt,{background:s,className:lt(Lc({verticalPadding:o,horizontalPadding:r})),ref:l,children:c.jsx(be.DropZone,{className:lt(Lc({gap:i}),"flex w-full",e),zone:"flex-container",style:{justifyContent:t,alignItems:n,flexWrap:a},allow:[...Eg,...Ng]})}));uve.displayName="Flex";const TYe={direction:T("Direction",{type:"radio",options:[{label:"Horizontal",value:"flex-row"},{label:"Vertical",value:"flex-col"}]}),justifyContent:T("Justify Content",{type:"radio",options:"JUSTIFY_CONTENT"}),alignItems:T("Align Items",{type:"radio",options:"JUSTIFY_CONTENT"}),wrap:T("Wrap",{type:"radio",options:[{label:"No Wrap",value:"nowrap"},{label:"Wrap",value:"wrap"}]}),...dve,liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},fve={label:"Flex",fields:TYe,defaultProps:{direction:"flex-row",justifyContent:"start",alignItems:"start",wrap:"nowrap",gap:"4",verticalPadding:"0",horizontalPadding:"0",backgroundColor:ye.background1.value,liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(uve,{...e})})},hve=k.forwardRef(({className:e,rows:t=1,columns:n=2,gap:a,verticalPadding:i,horizontalPadding:o,backgroundColor:r,columnFormatting:s,...l},d)=>{var u;return c.jsx(pt,{background:r,className:lt(Lc({verticalPadding:i,horizontalPadding:o})),children:c.jsx("div",{className:lt(Lc({gap:a,columnFormatting:s}),"flex flex-col min-h-0 min-w-0 max-w-pageSection-contentWidth",e),ref:d,style:{gridTemplateColumns:`repeat(${n}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`},...l,children:(u=Array.from({length:n*t}))==null?void 0:u.map((f,h)=>c.jsx("div",{className:"w-full",children:c.jsx(be.DropZone,{className:"flex flex-col w-full",zone:`column-${h}`,allow:[...Eg,...Ng]})},h))})})});hve.displayName="GridSection";const LYe={rows:T("Rows",{type:"number",min:1,max:12}),columns:T("Columns",{type:"number",min:1,max:12}),...dve,liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},pve={label:"Grid",fields:LYe,defaultProps:{rows:1,columns:2,gap:"4",verticalPadding:"0",horizontalPadding:"0",backgroundColor:ye.background1.value,columnFormatting:"default",liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(hve,{...e})})},AYe={address:T("Address",{type:"entityField",filter:{types:["type.address"]}}),showGetDirections:T("Show Get Directions Link",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},NYe=({address:e,showGetDirections:t})=>{const{t:n,i18n:a}=he(),i=ve(),o=we(i,e,a.language),r=Pe.getDirections(o,void 0,void 0,{provider:"google"});return c.jsx(c.Fragment,{children:o&&c.jsxs(le,{displayName:n("address","Address"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:[c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-fontSize",children:c.jsx(Pe.Address,{address:o,lines:[["line1"],["line2","city","region","postalCode"]]})}),r&&t&&c.jsx(Ze,{link:r,label:"Get Directions",linkType:"DRIVING_DIRECTIONS",target:"_blank",variant:"link"})]})})},gve={label:"Address",fields:AYe,defaultProps:{address:{field:"address",constantValue:{line1:"",city:"",region:"",postalCode:"",countryCode:""}},showGetDirections:!0},render:e=>c.jsx(NYe,{...e})},EYe={text:T("Text",{type:"entityField",filter:{types:["type.string"]}}),variant:T("Variant",{type:"radio",options:"BODY_VARIANT"})},mve=k.forwardRef(({text:e,...t},n)=>{const{t:a,i18n:i}=he(),o=ve();return c.jsx(le,{displayName:a("body","Body"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Qe,{ref:n,...t,children:me(we(o,e,i.language),i.language)})})});mve.displayName="BodyText";const bve={label:"Body Text",fields:EYe,defaultProps:{text:{field:"",constantValue:"Text",constantValueEnabled:!0},variant:"base"},render:e=>c.jsx(mve,{...e})},PYe={entityField:T("CTA",{type:"entityField",filter:{types:["type.cta"]}}),variant:T("Variant",{type:"radio",options:"CTA_VARIANT"})},OYe=({entityField:e,variant:t,className:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);return c.jsx(le,{displayName:a("cta","CTA"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Ze,{label:r==null?void 0:r.label,link:r==null?void 0:r.link,linkType:r==null?void 0:r.linkType,variant:t,className:n})})},yve={label:"Call to Action",fields:PYe,defaultProps:{entityField:{field:"",constantValue:{label:"Call to Action"}},variant:"primary"},render:e=>c.jsx(OYe,{...e})},FYe={list:T("Emails",{type:"entityField",filter:{types:["type.string"],allowList:["emails"],includeListsOnly:!0}}),includeHyperlink:T("Include Hyperlink",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},jYe=({list:e,includeHyperlink:t,listLength:n})=>{var s;const{t:a,i18n:i}=he(),o=ve();let r=we(o,e,i.language);if(r)Array.isArray(r)||(r=[r]);else return;return c.jsx(le,{displayName:a("emailList","Email List"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx("ul",{className:"components list-inside",children:(s=r.slice(0,e.constantValueEnabled?r.length:Math.min(r.length,n)))==null?void 0:s.map((l,d)=>c.jsxs("li",{className:"mb-2 flex items-center",children:[c.jsx(Fye,{className:"mr-2 my-auto"}),t&&l?c.jsx(Ze,{link:l,label:l,linkType:"EMAIL",variant:"link"}):c.jsx(Qe,{children:l})]},d))})})},vve={label:"Emails",fields:FYe,resolveFields:(e,{fields:t})=>e.props.list.constantValueEnabled?t:{...t,listLength:T("List Length",{type:"number",min:1,max:100})},defaultProps:{list:{field:"emails",constantValue:[]},includeHyperlink:!0,listLength:5},render:e=>c.jsx(jYe,{...e})},MYe={coordinate:T("Coordinates",{type:"entityField",filter:{types:["type.coordinate"]}}),variant:T("Variant",{type:"radio",options:"CTA_VARIANT"})},RYe=({variant:e,coordinate:t})=>{const{t:n,i18n:a}=he(),i=ve(),o=we(i,t,a.language);o||console.warn("yextDisplayCoordinate is not present in the stream");const r=Pe.getDirections(void 0,void 0,void 0,{provider:"google"},o);return c.jsx(le,{displayName:M("getDirections","Get Directions"),fieldId:t.field,constantValueEnabled:t.constantValueEnabled,children:c.jsx(Ze,{label:n("getDirections","Get Directions"),link:r,linkType:"DRIVING_DIRECTIONS",variant:e})})},kve={label:"Get Directions",fields:MYe,defaultProps:{variant:"primary",coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}},render:e=>c.jsx(RYe,{...e})},Sve=k.forwardRef(({text:e,...t},n)=>{const a=ve(),{i18n:i}=he();return c.jsx(le,{displayName:"Heading "+t.level,fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Ue,{ref:n,...t,children:me(we(a,e,i.language),i.language)})})});Sve.displayName="HeadingText";const _Ye={text:T("Text",{type:"entityField",filter:{types:["type.string"]}}),level:T("Heading Level",{type:"select",hasSearch:!0,options:"HEADING_LEVEL"})},wve={label:"Heading Text",fields:_Ye,defaultProps:{text:{field:"",constantValue:"Text",constantValueEnabled:!0},content:"Heading",level:2},render:e=>c.jsx(Sve,{...e})},IYe={hours:T("Hours",{type:"entityField",filter:{types:["type.hours"]}}),startOfWeek:T("Start of the Week",{type:"select",hasSearch:!0,options:"HOURS_OPTIONS"}),collapseDays:T("Collapse days",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),showAdditionalHoursText:T("Show additional hours text",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),alignment:T("Align card",{type:"radio",options:[{label:"Left",value:"items-start"},{label:"Center",value:"items-center"}]})},DYe=({hours:e,startOfWeek:t,collapseDays:n,showAdditionalHoursText:a,alignment:i})=>{const{t:o,i18n:r}=he(),s=ve(),l=we(s,e,r.language),{additionalHoursText:d}=s;return c.jsxs("div",{className:`flex flex-col ${i}`,children:[l&&c.jsx(le,{displayName:o("hours","Hours"),fieldId:"hours",constantValueEnabled:e.constantValueEnabled,children:c.jsx(sg,{hours:l,startOfWeek:t,collapseDays:n})}),d&&a&&c.jsx(le,{displayName:o("hoursText","Hours Text"),fieldId:"additionalHoursText",children:c.jsx("div",{className:"mt-4 text-body-sm-fontSize",children:d})})]})},xve={fields:IYe,defaultProps:{hours:{field:"hours",constantValue:{}},startOfWeek:"today",collapseDays:!1,showAdditionalHoursText:!0,alignment:"items-center"},label:"Hours Table",render:e=>c.jsx(DYe,{...e})},HYe={hours:T("Hours",{type:"entityField",filter:{types:["type.hours"]}}),showCurrentStatus:T("Show Current Status",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),timeFormat:T("Time Format",{type:"radio",options:[{label:"12-hour",value:"12h"},{label:"24-hour",value:"24h"}]}),showDayNames:T("Show Day Names",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),dayOfWeekFormat:T("Day of Week Format",{type:"radio",options:[{label:"Short",value:"short"},{label:"Long",value:"long"}]})},zYe=({hours:e,className:t,showCurrentStatus:n,timeFormat:a,showDayNames:i,dayOfWeekFormat:o})=>{const r=ve(),{t:s,i18n:l}=he(),d=we(r,e,l.language);return d?c.jsx(le,{displayName:s("hours","Hours"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(kd,{hours:d,className:t,showCurrentStatus:n,showDayNames:i,timeFormat:a,dayOfWeekFormat:o})}):null},$ve={label:"Hours Status",fields:HYe,defaultProps:{hours:{field:"hours",constantValue:{}},className:"",showCurrentStatus:!0,timeFormat:"12h",showDayNames:!0,dayOfWeekFormat:"long"},render:e=>c.jsx(zYe,{...e})},BYe="https://placehold.co/640x360",WYe={image:T(v("fields.options.image","Image"),{type:"entityField",filter:{types:["type.image"]}}),width:T(v("fields.options.width","Width"),{type:"number",min:0}),aspectRatio:T(v("fields.options.aspectRatio","Aspect Ratio"),{type:"select",options:[{label:"1:1",value:1},{label:"5:4",value:1.25},{label:"4:3",value:1.33},{label:"3:2",value:1.5},{label:"5:3",value:1.67},{label:"16:9",value:1.78},{label:"2:1",value:2},{label:"3:1",value:3},{label:"4:1",value:4},{label:"4:5",value:.8},{label:"3:4",value:.75},{label:"2:3",value:.67},{label:"3:5",value:.6},{label:"9:16",value:.56},{label:"1:2",value:.5},{label:"1:3",value:.33},{label:"1:4",value:.25}]})},VYe=({image:e,aspectRatio:t,width:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);return r?c.jsx(le,{displayName:a("image","Image"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(vn,{image:r,aspectRatio:t,width:n})}):null},Cve={label:"Image",fields:WYe,defaultProps:{image:{field:"",constantValue:{url:BYe,height:360,width:640},constantValueEnabled:!0},aspectRatio:1.78},render:e=>c.jsx(VYe,{...e})},GYe={apiKey:T("API Key",{type:"text"}),coordinate:T("Coordinates",{type:"entityField",filter:{types:["type.coordinate"]}})},UYe=1024,KYe=300,qYe=300,YYe=100,Cv=1280,ZYe=e=>{var t,n,a,i,o,r,s,l,d,u;if((t=e==null?void 0:e.__)!=null&&t.theme)return((o=(i=(a=JSON.parse((n=e==null?void 0:e.__)==null?void 0:n.theme))==null?void 0:a["--colors-palette-primary"])==null?void 0:i.trim())==null?void 0:o.replace("#",""))??"000000";{const f=(r=window.document)==null?void 0:r.querySelector("iframe"),h=(s=f==null?void 0:f.contentDocument)==null?void 0:s.querySelector(".components");return h?(u=(d=(l=getComputedStyle(h))==null?void 0:l.getPropertyValue("--colors-palette-primary"))==null?void 0:d.trim())==null?void 0:u.replace("#",""):"000000"}};function XYe(){const e=k.useRef(null),[t,n]=k.useState(0),a=k.useRef(null),[i,o]=k.useState({width:UYe,height:KYe});k.useEffect(()=>{let l=a.current;if(!l)return;for(let f=0;f<2;f++)if(l=l==null?void 0:l.parentElement,!l)return;if(window.getComputedStyle(l).display==="none")return;const u=l.getBoundingClientRect();o({width:Math.max(Math.min(u.width||l.clientWidth,Cv),YYe),height:Math.max(Math.min(u.height||l.clientHeight,Cv),qYe)})},[t]);const r=["resize","load","visibilitychange","focus","deviceorientation"],s=k.useCallback(()=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(l=>l+1)},1e3)},[n]);return k.useEffect(()=>{const l=new AbortController,d=l.signal;return r.forEach(u=>{window.addEventListener(u,s,{signal:d})}),()=>{l.abort()}},[]),[a,i]}const Tve=({apiKey:e,coordinate:t,zoom:n=14,mapStyle:a="light-v11"})=>{const{t:i,i18n:o}=he(),r=ve(),[s,l]=XYe(),d=we(r,t,o.language);if(d){if(!e)return console.warn("API Key is required for MapboxStaticMap"),c.jsx(c.Fragment,{})}else return console.warn(`${t} is not present in the stream`),c.jsx(c.Fragment,{});const u=`pin-l+${ZYe(r)}(${d.longitude},${d.latitude})`;return c.jsx(le,{displayName:i("coordinate","Coordinate"),fieldId:t.field,constantValueEnabled:t.constantValueEnabled,children:c.jsx("img",{ref:s,alt:i("map","Map"),className:"components w-full h-full object-cover",src:`https://api.mapbox.com/styles/v1/mapbox/${a}/static/${u}/${d.longitude},${d.latitude},${n}/${l.width.toFixed(0)}x${l.height.toFixed(0)}?access_token=${e}`})})},Lve={label:"Mapbox Static Map",fields:GYe,defaultProps:{apiKey:"",coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}},render:e=>c.jsx(Tve,{...e})},QYe={phone:T("Phone Number",{type:"entityField",filter:{types:["type.phone"]}}),format:T("Format",{type:"radio",options:"PHONE_OPTIONS"}),includeHyperlink:T("Include Hyperlink",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},JYe=({phone:e,format:t,includeHyperlink:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);if(r)return c.jsx(le,{displayName:a("phone","Phone"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Tr,{phoneNumber:r,format:t,includeHyperlink:n,includeIcon:!0})})},Ave={label:"Phone",fields:QYe,defaultProps:{phone:{field:"mainPhone",constantValue:""},includeHyperlink:!0},render:e=>c.jsx(JYe,{...e})},eZe={list:T("Values",{type:"entityField",filter:{types:["type.string"],includeListsOnly:!0}})},tZe=({list:e})=>{var o;const{t,i18n:n}=he(),a=ve();let i=we(a,e,n.language);return e.constantValueEnabled&&!((o=e.constantValue)!=null&&o.length)?i=["Sample text 1","Sample text 2","Sample text 3"]:i&&!Array.isArray(i)&&(i=[i]),c.jsx(le,{displayName:t("textList","Text List"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:i&&i.length>0?c.jsx("ul",{className:"components list-disc list-inside text-body-fontSize font-body-fontFamily font-body-fontWeight",children:i.map((r,s)=>c.jsx("li",{className:"mb-2",children:me(r,n.language,a)},s))}):null})},Nve={label:"Text List",fields:eZe,defaultProps:{list:{field:"",constantValue:[]}},render:e=>c.jsx(tZe,{...e})};function dg(e){const t=e+"CollectionProvider",[n,a]=kn(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),r=m=>{const{scope:y,children:S}=m,w=g.useRef(null),C=g.useRef(new Map).current;return c.jsx(i,{scope:y,itemMap:C,collectionRef:w,children:S})};r.displayName=t;const s=e+"CollectionSlot",l=Ri(s),d=g.forwardRef((m,y)=>{const{scope:S,children:w}=m,C=o(s,S),$=Xe(y,C.collectionRef);return c.jsx(l,{ref:$,children:w})});d.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ri(u),p=g.forwardRef((m,y)=>{const{scope:S,children:w,...C}=m,$=g.useRef(null),x=Xe(y,$),L=o(u,S);return g.useEffect(()=>(L.itemMap.set($,{ref:$,...C}),()=>void L.itemMap.delete($))),c.jsx(h,{[f]:"",ref:x,children:w})});p.displayName=u;function b(m){const y=o(e+"CollectionConsumer",m);return g.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((L,A)=>C.indexOf(L.ref.current)-C.indexOf(A.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:r,Slot:d,ItemSlot:p},b,a]}var nZe=k.createContext(void 0);function ug(e){const t=k.useContext(nZe);return e||t||"ltr"}var $u="rovingFocusGroup.onEntryFocus",aZe={bubbles:!1,cancelable:!0},zs="RovingFocusGroup",[ah,Eve,iZe]=dg(zs),[oZe,Pve]=kn(zs,[iZe]),[rZe,sZe]=oZe(zs),Ove=k.forwardRef((e,t)=>c.jsx(ah.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(ah.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(lZe,{...e,ref:t})})}));Ove.displayName=zs;var lZe=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:o,currentTabStopId:r,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,h=k.useRef(null),p=Xe(t,h),b=ug(o),[m,y]=ha({prop:r,defaultProp:s??null,onChange:l,caller:zs}),[S,w]=k.useState(!1),C=ja(d),$=Eve(n),x=k.useRef(!1),[L,A]=k.useState(0);return k.useEffect(()=>{const E=h.current;if(E)return E.addEventListener($u,C),()=>E.removeEventListener($u,C)},[C]),c.jsx(rZe,{scope:n,orientation:a,dir:b,loop:i,currentTabStopId:m,onItemFocus:k.useCallback(E=>y(E),[y]),onItemShiftTab:k.useCallback(()=>w(!0),[]),onFocusableItemAdd:k.useCallback(()=>A(E=>E+1),[]),onFocusableItemRemove:k.useCallback(()=>A(E=>E-1),[]),children:c.jsx(Ce.div,{tabIndex:S||L===0?-1:0,"data-orientation":a,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{x.current=!0}),onFocus:ge(e.onFocus,E=>{const z=!x.current;if(E.target===E.currentTarget&&z&&!S){const _=new CustomEvent($u,aZe);if(E.currentTarget.dispatchEvent(_),!_.defaultPrevented){const B=$().filter(Z=>Z.focusable),U=B.find(Z=>Z.active),ee=B.find(Z=>Z.id===m),re=[U,ee,...B].filter(Boolean).map(Z=>Z.ref.current);Mve(re,u)}}x.current=!1}),onBlur:ge(e.onBlur,()=>w(!1))})})}),Fve="RovingFocusGroupItem",jve=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:o,children:r,...s}=e,l=jt(),d=o||l,u=sZe(Fve,n),f=u.currentTabStopId===d,h=Eve(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:m}=u;return k.useEffect(()=>{if(a)return p(),()=>b()},[a,p,b]),c.jsx(ah.ItemSlot,{scope:n,id:d,focusable:a,active:i,children:c.jsx(Ce.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ge(e.onMouseDown,y=>{a?u.onItemFocus(d):y.preventDefault()}),onFocus:ge(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:ge(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const S=uZe(y,u.orientation,u.dir);if(S!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let C=h().filter($=>$.focusable).map($=>$.ref.current);if(S==="last")C.reverse();else if(S==="prev"||S==="next"){S==="prev"&&C.reverse();const $=C.indexOf(y.currentTarget);C=u.loop?fZe(C,$+1):C.slice($+1)}setTimeout(()=>Mve(C))}}),children:typeof r=="function"?r({isCurrentTabStop:f,hasTabStop:m!=null}):r})})});jve.displayName=Fve;var cZe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dZe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uZe(e,t,n){const a=dZe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return cZe[a]}function Mve(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function fZe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var hZe=Ove,pZe=jve,ih=["Enter"," "],gZe=["ArrowDown","PageUp","Home"],Rve=["ArrowUp","PageDown","End"],mZe=[...gZe,...Rve],bZe={ltr:[...ih,"ArrowRight"],rtl:[...ih,"ArrowLeft"]},yZe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bs="Menu",[bs,vZe,kZe]=dg(Bs),[Zi,_ve]=kn(Bs,[kZe,hr,Pve]),xd=hr(),Ive=Pve(),[SZe,Xi]=Zi(Bs),[wZe,Ws]=Zi(Bs),Dve=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:i,onOpenChange:o,modal:r=!0}=e,s=xd(t),[l,d]=k.useState(null),u=k.useRef(!1),f=ja(o),h=ug(i);return k.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Vh,{...s,children:c.jsx(SZe,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:d,children:c.jsx(wZe,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:h,modal:r,children:a})})})};Dve.displayName=Bs;var xZe="MenuAnchor",fg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,i=xd(n);return c.jsx(Wc,{...i,...a,ref:t})});fg.displayName=xZe;var hg="MenuPortal",[$Ze,Hve]=Zi(hg,{forceMount:void 0}),zve=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:i}=e,o=Xi(hg,t);return c.jsx($Ze,{scope:t,forceMount:n,children:c.jsx(En,{present:n||o.open,children:c.jsx(Mc,{asChild:!0,container:i,children:a})})})};zve.displayName=hg;var Tn="MenuContent",[CZe,pg]=Zi(Tn),Bve=k.forwardRef((e,t)=>{const n=Hve(Tn,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,o=Xi(Tn,e.__scopeMenu),r=Ws(Tn,e.__scopeMenu);return c.jsx(bs.Provider,{scope:e.__scopeMenu,children:c.jsx(En,{present:a||o.open,children:c.jsx(bs.Slot,{scope:e.__scopeMenu,children:r.modal?c.jsx(TZe,{...i,ref:t}):c.jsx(LZe,{...i,ref:t})})})})}),TZe=k.forwardRef((e,t)=>{const n=Xi(Tn,e.__scopeMenu),a=k.useRef(null),i=Xe(t,a);return k.useEffect(()=>{const o=a.current;if(o)return Sh(o)},[]),c.jsx(gg,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ge(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LZe=k.forwardRef((e,t)=>{const n=Xi(Tn,e.__scopeMenu);return c.jsx(gg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),AZe=Ri("MenuContent.ScrollLock"),gg=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:p,disableOutsideScroll:b,...m}=e,y=Xi(Tn,n),S=Ws(Tn,n),w=xd(n),C=Ive(n),$=vZe(n),[x,L]=k.useState(null),A=k.useRef(null),E=Xe(t,A,y.onContentChange),z=k.useRef(0),_=k.useRef(""),B=k.useRef(0),U=k.useRef(null),ee=k.useRef("right"),Y=k.useRef(0),re=b?_c:k.Fragment,Z=b?{as:AZe,allowPinchZoom:!0}:void 0,G=V=>{var X,ue;const I=_.current+V,D=$().filter(oe=>!oe.disabled),F=document.activeElement,H=(X=D.find(oe=>oe.ref.current===F))==null?void 0:X.textValue,K=D.map(oe=>oe.textValue),W=HZe(K,I,H),te=(ue=D.find(oe=>oe.textValue===W))==null?void 0:ue.ref.current;(function oe(pe){_.current=pe,window.clearTimeout(z.current),pe!==""&&(z.current=window.setTimeout(()=>oe(""),1e3))})(I),te&&setTimeout(()=>te.focus())};k.useEffect(()=>()=>window.clearTimeout(z.current),[]),kh();const J=k.useCallback(V=>{var D,F;return ee.current===((D=U.current)==null?void 0:D.side)&&BZe(V,(F=U.current)==null?void 0:F.area)},[]);return c.jsx(CZe,{scope:n,searchRef:_,onItemEnter:k.useCallback(V=>{J(V)&&V.preventDefault()},[J]),onItemLeave:k.useCallback(V=>{var I;J(V)||((I=A.current)==null||I.focus(),L(null))},[J]),onTriggerLeave:k.useCallback(V=>{J(V)&&V.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:k.useCallback(V=>{U.current=V},[]),children:c.jsx(re,{...Z,children:c.jsx(jc,{asChild:!0,trapped:i,onMountAutoFocus:ge(o,V=>{var I;V.preventDefault(),(I=A.current)==null||I.focus({preventScroll:!0})}),onUnmountAutoFocus:r,children:c.jsx(Ts,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:p,children:c.jsx(hZe,{asChild:!0,...C,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:x,onCurrentTabStopIdChange:L,onEntryFocus:ge(l,V=>{S.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Gh,{role:"menu","aria-orientation":"vertical","data-state":ike(y.open),"data-radix-menu-content":"",dir:S.dir,...w,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:ge(m.onKeyDown,V=>{const D=V.target.closest("[data-radix-menu-content]")===V.currentTarget,F=V.ctrlKey||V.altKey||V.metaKey,H=V.key.length===1;D&&(V.key==="Tab"&&V.preventDefault(),!F&&H&&G(V.key));const K=A.current;if(V.target!==K||!mZe.includes(V.key))return;V.preventDefault();const te=$().filter(X=>!X.disabled).map(X=>X.ref.current);Rve.includes(V.key)&&te.reverse(),IZe(te)}),onBlur:ge(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(z.current),_.current="")}),onPointerMove:ge(e.onPointerMove,ys(V=>{const I=V.target,D=Y.current!==V.clientX;if(V.currentTarget.contains(I)&&D){const F=V.clientX>Y.current?"right":"left";ee.current=F,Y.current=V.clientX}}))})})})})})})});Bve.displayName=Tn;var NZe="MenuGroup",mg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"group",...a,ref:t})});mg.displayName=NZe;var EZe="MenuLabel",Wve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{...a,ref:t})});Wve.displayName=EZe;var Ac="MenuItem",Tv="menu.itemSelect",$d=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...i}=e,o=k.useRef(null),r=Ws(Ac,e.__scopeMenu),s=pg(Ac,e.__scopeMenu),l=Xe(t,o),d=k.useRef(!1),u=()=>{const f=o.current;if(!n&&f){const h=new CustomEvent(Tv,{bubbles:!0,cancelable:!0});f.addEventListener(Tv,p=>a==null?void 0:a(p),{once:!0}),bpe(f,h),h.defaultPrevented?d.current=!1:r.onClose()}};return c.jsx(Vve,{...i,ref:l,disabled:n,onClick:ge(e.onClick,u),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),d.current=!0},onPointerUp:ge(e.onPointerUp,f=>{var h;d.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:ge(e.onKeyDown,f=>{const h=s.searchRef.current!=="";n||h&&f.key===" "||ih.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});$d.displayName=Ac;var Vve=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:i,...o}=e,r=pg(Ac,n),s=Ive(n),l=k.useRef(null),d=Xe(t,l),[u,f]=k.useState(!1),[h,p]=k.useState("");return k.useEffect(()=>{const b=l.current;b&&p((b.textContent??"").trim())},[o.children]),c.jsx(bs.ItemSlot,{scope:n,disabled:a,textValue:i??h,children:c.jsx(pZe,{asChild:!0,...s,focusable:!a,children:c.jsx(Ce.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:d,onPointerMove:ge(e.onPointerMove,ys(b=>{a?r.onItemLeave(b):(r.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ge(e.onPointerLeave,ys(b=>r.onItemLeave(b))),onFocus:ge(e.onFocus,()=>f(!0)),onBlur:ge(e.onBlur,()=>f(!1))})})})}),PZe="MenuCheckboxItem",Gve=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...i}=e;return c.jsx(Zve,{scope:e.__scopeMenu,checked:n,children:c.jsx($d,{role:"menuitemcheckbox","aria-checked":Nc(n)?"mixed":n,...i,ref:t,"data-state":yg(n),onSelect:ge(i.onSelect,()=>a==null?void 0:a(Nc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Gve.displayName=PZe;var Uve="MenuRadioGroup",[OZe,FZe]=Zi(Uve,{value:void 0,onValueChange:()=>{}}),Kve=k.forwardRef((e,t)=>{const{value:n,onValueChange:a,...i}=e,o=ja(a);return c.jsx(OZe,{scope:e.__scopeMenu,value:n,onValueChange:o,children:c.jsx(mg,{...i,ref:t})})});Kve.displayName=Uve;var qve="MenuRadioItem",Yve=k.forwardRef((e,t)=>{const{value:n,...a}=e,i=FZe(qve,e.__scopeMenu),o=n===i.value;return c.jsx(Zve,{scope:e.__scopeMenu,checked:o,children:c.jsx($d,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":yg(o),onSelect:ge(a.onSelect,()=>{var r;return(r=i.onValueChange)==null?void 0:r.call(i,n)},{checkForDefaultPrevented:!1})})})});Yve.displayName=qve;var bg="MenuItemIndicator",[Zve,jZe]=Zi(bg,{checked:!1}),Xve=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...i}=e,o=jZe(bg,n);return c.jsx(En,{present:a||Nc(o.checked)||o.checked===!0,children:c.jsx(Ce.span,{...i,ref:t,"data-state":yg(o.checked)})})});Xve.displayName=bg;var MZe="MenuSeparator",Qve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});Qve.displayName=MZe;var RZe="MenuArrow",Jve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,i=xd(n);return c.jsx(Uh,{...i,...a,ref:t})});Jve.displayName=RZe;var _Ze="MenuSub",[XQe,eke]=Zi(_Ze),Zr="MenuSubTrigger",tke=k.forwardRef((e,t)=>{const n=Xi(Zr,e.__scopeMenu),a=Ws(Zr,e.__scopeMenu),i=eke(Zr,e.__scopeMenu),o=pg(Zr,e.__scopeMenu),r=k.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,d={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{r.current&&window.clearTimeout(r.current),r.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),c.jsx(fg,{asChild:!0,...d,children:c.jsx(Vve,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":ike(n.open),...e,ref:Oa(t,i.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ge(e.onPointerMove,ys(f=>{o.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!r.current&&(o.onPointerGraceIntentChange(null),r.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ge(e.onPointerLeave,ys(f=>{var p,b;u();const h=(p=n.content)==null?void 0:p.getBoundingClientRect();if(h){const m=(b=n.content)==null?void 0:b.dataset.side,y=m==="right",S=y?-5:5,w=h[y?"left":"right"],C=h[y?"right":"left"];o.onPointerGraceIntentChange({area:[{x:f.clientX+S,y:f.clientY},{x:w,y:h.top},{x:C,y:h.top},{x:C,y:h.bottom},{x:w,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(f),f.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:ge(e.onKeyDown,f=>{var p;const h=o.searchRef.current!=="";e.disabled||h&&f.key===" "||bZe[a.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});tke.displayName=Zr;var nke="MenuSubContent",ake=k.forwardRef((e,t)=>{const n=Hve(Tn,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,o=Xi(Tn,e.__scopeMenu),r=Ws(Tn,e.__scopeMenu),s=eke(nke,e.__scopeMenu),l=k.useRef(null),d=Xe(t,l);return c.jsx(bs.Provider,{scope:e.__scopeMenu,children:c.jsx(En,{present:a||o.open,children:c.jsx(bs.Slot,{scope:e.__scopeMenu,children:c.jsx(gg,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:"start",side:r.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;r.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ge(e.onFocusOutside,u=>{u.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ge(e.onEscapeKeyDown,u=>{r.onClose(),u.preventDefault()}),onKeyDown:ge(e.onKeyDown,u=>{var p;const f=u.currentTarget.contains(u.target),h=yZe[r.dir].includes(u.key);f&&h&&(o.onOpenChange(!1),(p=s.trigger)==null||p.focus(),u.preventDefault())})})})})})});ake.displayName=nke;function ike(e){return e?"open":"closed"}function Nc(e){return e==="indeterminate"}function yg(e){return Nc(e)?"indeterminate":e?"checked":"unchecked"}function IZe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function DZe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function HZe(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let r=DZe(e,Math.max(o,0));i.length===1&&(r=r.filter(d=>d!==n));const l=r.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function zZe(e,t){const{x:n,y:a}=e;let i=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){const s=t[o],l=t[r],d=s.x,u=s.y,f=l.x,h=l.y;u>a!=h>a&&n<(f-d)*(a-u)/(h-u)+d&&(i=!i)}return i}function BZe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return zZe(n,t)}function ys(e){return t=>t.pointerType==="mouse"?e(t):void 0}var WZe=Dve,VZe=fg,GZe=zve,UZe=Bve,KZe=mg,qZe=Wve,YZe=$d,ZZe=Gve,XZe=Kve,QZe=Yve,JZe=Xve,eXe=Qve,tXe=Jve,nXe=tke,aXe=ake,Cd="DropdownMenu",[iXe,QQe]=kn(Cd,[_ve]),Kt=_ve(),[oXe,oke]=iXe(Cd),vg=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:i,defaultOpen:o,onOpenChange:r,modal:s=!0}=e,l=Kt(t),d=k.useRef(null),[u,f]=ha({prop:i,defaultProp:o??!1,onChange:r,caller:Cd});return c.jsx(oXe,{scope:t,triggerId:jt(),triggerRef:d,contentId:jt(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(h=>!h),[f]),modal:s,children:c.jsx(WZe,{...l,open:u,onOpenChange:f,dir:a,modal:s,children:n})})};vg.displayName=Cd;var rke="DropdownMenuTrigger",kg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...i}=e,o=oke(rke,n),r=Kt(n);return c.jsx(VZe,{asChild:!0,...r,children:c.jsx(Ce.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...i,ref:Oa(t,o.triggerRef),onPointerDown:ge(e.onPointerDown,s=>{!a&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:ge(e.onKeyDown,s=>{a||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});kg.displayName=rke;var rXe="DropdownMenuPortal",ske=e=>{const{__scopeDropdownMenu:t,...n}=e,a=Kt(t);return c.jsx(GZe,{...a,...n})};ske.displayName=rXe;var lke="DropdownMenuContent",Sg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=oke(lke,n),o=Kt(n),r=k.useRef(!1);return c.jsx(UZe,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...a,ref:t,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var l;r.current||(l=i.triggerRef.current)==null||l.focus(),r.current=!1,s.preventDefault()}),onInteractOutside:ge(e.onInteractOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;(!i.modal||u)&&(r.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sg.displayName=lke;var sXe="DropdownMenuGroup",lXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(KZe,{...i,...a,ref:t})});lXe.displayName=sXe;var cXe="DropdownMenuLabel",dXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(qZe,{...i,...a,ref:t})});dXe.displayName=cXe;var uXe="DropdownMenuItem",wg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(YZe,{...i,...a,ref:t})});wg.displayName=uXe;var fXe="DropdownMenuCheckboxItem",hXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(ZZe,{...i,...a,ref:t})});hXe.displayName=fXe;var pXe="DropdownMenuRadioGroup",gXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(XZe,{...i,...a,ref:t})});gXe.displayName=pXe;var mXe="DropdownMenuRadioItem",bXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(QZe,{...i,...a,ref:t})});bXe.displayName=mXe;var yXe="DropdownMenuItemIndicator",vXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(JZe,{...i,...a,ref:t})});vXe.displayName=yXe;var kXe="DropdownMenuSeparator",SXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(eXe,{...i,...a,ref:t})});SXe.displayName=kXe;var wXe="DropdownMenuArrow",xXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(tXe,{...i,...a,ref:t})});xXe.displayName=wXe;var $Xe="DropdownMenuSubTrigger",CXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(nXe,{...i,...a,ref:t})});CXe.displayName=$Xe;var TXe="DropdownMenuSubContent",LXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(aXe,{...i,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});LXe.displayName=TXe;var AXe=vg,NXe=kg,EXe=ske,PXe=Sg,OXe=wg;function FXe({...e}){return c.jsx(AXe,{"data-slot":"dropdown-menu",...e})}function jXe({...e}){return c.jsx(NXe,{"data-slot":"dropdown-menu-trigger",...e})}function MXe({className:e,sideOffset:t=4,...n}){return c.jsx(EXe,{children:c.jsx(PXe,{"data-slot":"dropdown-menu-content",sideOffset:t,className:lt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden outline-hidden overflow-y-auto rounded-md border bg-white p-1 shadow-md",e),...n})})}function RXe({className:e,inset:t,...n}){return c.jsx(OXe,{"data-slot":"dropdown-menu-item","data-inset":t,className:lt("relative flex cursor-default items-center gap-2 rounded-sm px-6 py-4 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}var Td="Collapsible",[_Xe,cke]=kn(Td),[IXe,xg]=_Xe(Td),dke=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:o,onOpenChange:r,...s}=e,[l,d]=ha({prop:a,defaultProp:i??!1,onChange:r,caller:Td});return c.jsx(IXe,{scope:n,disabled:o,contentId:jt(),open:l,onOpenToggle:k.useCallback(()=>d(u=>!u),[d]),children:c.jsx(Ce.div,{"data-state":Cg(l),"data-disabled":o?"":void 0,...s,ref:t})})});dke.displayName=Td;var uke="CollapsibleTrigger",fke=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,...a}=e,i=xg(uke,n);return c.jsx(Ce.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Cg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...a,ref:t,onClick:ge(e.onClick,i.onOpenToggle)})});fke.displayName=uke;var $g="CollapsibleContent",hke=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,i=xg($g,e.__scopeCollapsible);return c.jsx(En,{present:n||i.open,children:({present:o})=>c.jsx(DXe,{...a,ref:t,present:o})})});hke.displayName=$g;var DXe=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:i,...o}=e,r=xg($g,n),[s,l]=k.useState(a),d=k.useRef(null),u=Xe(t,d),f=k.useRef(0),h=f.current,p=k.useRef(0),b=p.current,m=r.open||s,y=k.useRef(m),S=k.useRef(void 0);return k.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),Fa(()=>{const w=d.current;if(w){S.current=S.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();f.current=C.height,p.current=C.width,y.current||(w.style.transitionDuration=S.current.transitionDuration,w.style.animationName=S.current.animationName),l(a)}},[r.open,a]),c.jsx(Ce.div,{"data-state":Cg(r.open),"data-disabled":r.disabled?"":void 0,id:r.contentId,hidden:!m,...o,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:m&&i})});function Cg(e){return e?"open":"closed"}var HXe=dke,zXe=fke,BXe=hke,Xn="Accordion",WXe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Tg,VXe,GXe]=dg(Xn),[Ld,JQe]=kn(Xn,[GXe,cke]),Lg=cke(),pke=g.forwardRef((e,t)=>{const{type:n,...a}=e,i=a,o=a;return c.jsx(Tg.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(YXe,{...o,ref:t}):c.jsx(qXe,{...i,ref:t})})});pke.displayName=Xn;var[gke,UXe]=Ld(Xn),[mke,KXe]=Ld(Xn,{collapsible:!1}),qXe=g.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:i=()=>{},collapsible:o=!1,...r}=e,[s,l]=ha({prop:n,defaultProp:a??"",onChange:i,caller:Xn});return c.jsx(gke,{scope:e.__scopeAccordion,value:g.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:g.useCallback(()=>o&&l(""),[o,l]),children:c.jsx(mke,{scope:e.__scopeAccordion,collapsible:o,children:c.jsx(bke,{...r,ref:t})})})}),YXe=g.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:i=()=>{},...o}=e,[r,s]=ha({prop:n,defaultProp:a??[],onChange:i,caller:Xn}),l=g.useCallback(u=>s((f=[])=>[...f,u]),[s]),d=g.useCallback(u=>s((f=[])=>f.filter(h=>h!==u)),[s]);return c.jsx(gke,{scope:e.__scopeAccordion,value:r,onItemOpen:l,onItemClose:d,children:c.jsx(mke,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(bke,{...o,ref:t})})})}),[ZXe,Ad]=Ld(Xn),bke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:a,dir:i,orientation:o="vertical",...r}=e,s=g.useRef(null),l=Xe(s,t),d=VXe(n),f=ug(i)==="ltr",h=ge(e.onKeyDown,p=>{var E;if(!WXe.includes(p.key))return;const b=p.target,m=d().filter(z=>{var _;return!((_=z.ref.current)!=null&&_.disabled)}),y=m.findIndex(z=>z.ref.current===b),S=m.length;if(y===-1)return;p.preventDefault();let w=y;const C=0,$=S-1,x=()=>{w=y+1,w>$&&(w=C)},L=()=>{w=y-1,w<C&&(w=$)};switch(p.key){case"Home":w=C;break;case"End":w=$;break;case"ArrowRight":o==="horizontal"&&(f?x():L());break;case"ArrowDown":o==="vertical"&&x();break;case"ArrowLeft":o==="horizontal"&&(f?L():x());break;case"ArrowUp":o==="vertical"&&L();break}const A=w%S;(E=m[A].ref.current)==null||E.focus()});return c.jsx(ZXe,{scope:n,disabled:a,direction:i,orientation:o,children:c.jsx(Tg.Slot,{scope:n,children:c.jsx(Ce.div,{...r,"data-orientation":o,ref:l,onKeyDown:a?void 0:h})})})}),Ec="AccordionItem",[XXe,Ag]=Ld(Ec),yke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,value:a,...i}=e,o=Ad(Ec,n),r=UXe(Ec,n),s=Lg(n),l=jt(),d=a&&r.value.includes(a)||!1,u=o.disabled||e.disabled;return c.jsx(XXe,{scope:n,open:d,disabled:u,triggerId:l,children:c.jsx(HXe,{"data-orientation":o.orientation,"data-state":xke(d),...s,...i,ref:t,disabled:u,open:d,onOpenChange:f=>{f?r.onItemOpen(a):r.onItemClose(a)}})})});yke.displayName=Ec;var vke="AccordionHeader",QXe=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(vke,n);return c.jsx(Ce.h3,{"data-orientation":i.orientation,"data-state":xke(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:t})});QXe.displayName=vke;var oh="AccordionTrigger",kke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(oh,n),r=KXe(oh,n),s=Lg(n);return c.jsx(Tg.ItemSlot,{scope:n,children:c.jsx(zXe,{"aria-disabled":o.open&&!r.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...a,ref:t})})});kke.displayName=oh;var Ske="AccordionContent",wke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(Ske,n),r=Lg(n);return c.jsx(BXe,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...r,...a,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wke.displayName=Ske;function xke(e){return e?"open":"closed"}const Pc=({className:e,businessId:t,entityId:n,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:o,locales:r,currentLocale:s,background:l})=>{const d=new Set(r),[u,f]=k.useState({[s]:""}),[h,p]=k.useState(s),[b,m]=k.useState("UNSET"),[y,S]=k.useState(!1);k.useEffect(()=>{p(s)},[s]);const w=async $=>{if(S($),$&&b==="UNSET"){m("LOADING");try{const x=await Hge({businessId:t,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:o,entityId:n}),L={};for(const[A,E]of Object.entries(x))d.has(A)&&(L[A]=E);Object.keys(L).length>1&&f({[s]:L[s],...L})}catch{f({[s]:""}),m("ERROR"),console.error("failed to fetch locales for entity")}finally{m("COMPLETE")}}},C=($,x)=>{$!==h&&(p($),window.location.href=`/${x}`)};return c.jsxs(pt,{background:l,as:"div",className:e,children:[c.jsx("div",{className:"hidden md:block",children:c.jsxs(FXe,{open:y,onOpenChange:w,children:[c.jsxs(jXe,{className:"flex flex-row items-center gap-4 justify-between w-full",children:[c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsx(ym,{className:"w-4 h-4"}),c.jsx(Qe,{variant:"xs",children:$l(h)})]}),c.jsx(Mi,{})]}),c.jsx(MXe,{align:"end",className:"w-40 rounded p-0",children:(b==="COMPLETE"||b==="ERROR")&&Object.entries(u).map(([$,x])=>c.jsx(RXe,{onSelect:()=>C($,x),className:lt("components font-body-fontFamily font-normal bg-white py-4 px-6 text-body-sm-fontSize","hover:bg-[#EDEDED] active:bg-[#EDEDED] cursor-pointer data-[highlighted]:outline-none data-[highlighted]:shadow-none",h===$&&"font-bold"),children:$l($)}))})]})}),c.jsx("div",{className:"md:hidden block w-full",children:c.jsx(pke,{type:"single",collapsible:!0,className:"w-full",onValueChange:$=>w(!!$),children:c.jsxs(yke,{value:"language-selector",children:[c.jsxs(kke,{className:"group flex w-full items-center justify-between text-body-sm-fontSize font-medium text-gray-900 px-4 py-6 md:pb-4 ",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ym,{className:"w-4 h-4"}),c.jsx(Qe,{variant:"xs",children:$l(h)})]}),c.jsx(Mi,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180",size:16})]}),c.jsx(wke,{className:"overflow-hidden data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp bg-white",children:c.jsx("div",{className:"flex flex-col pl-6",children:(b==="COMPLETE"||b==="ERROR")&&Object.entries(u).map(([$,x])=>c.jsx("button",{onClick:()=>C($,x),className:lt("text-left py-3 px-2 rounded text-body-sm-fontSize",h===$&&"font-body-fontWeight"),children:$l($)},$))})})]})})})]})};function $l(e){try{const n=new Intl.DisplayNames([e],{type:"language"}).of(e);return JXe(n)}catch{console.warn(`Unsupported locale: ${e}`);return}}function JXe(e){if(e)return/^[a-zA-Z]/.test(e.charAt(0))?e.charAt(0).toUpperCase()+e.slice(1):e}function $ke(e){var l,d,u,f,h;const t=e==null?void 0:e.businessId;if(!t){console.warn("Missing businessId! Unable to use language dropdown.");return}const n=e==null?void 0:e.id;if(!n){console.warn("Missing entityId! Unable to use language dropdown.");return}const a=(l=e==null?void 0:e._env)==null?void 0:l.YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY;if(!a){console.warn("Missing YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY! Unable to use language dropdown.");return}let i="",o=[];if(e!=null&&e._pageset)try{const p=JSON.parse(e==null?void 0:e._pageset);i=(u=(d=p==null?void 0:p.typeConfig)==null?void 0:d.entityConfig)==null?void 0:u.contentEndpointId,o=(f=p==null?void 0:p.scope)==null?void 0:f.locales}catch(p){console.error("Failed to parse pageset from document. err=",p);return}if(!i){console.warn("Missing contentEndpointId! Unable to use language dropdown.");return}if(!o){console.warn("Missing locales! Unable to use language dropdown");return}const r=(h=e==null?void 0:e._yext)==null?void 0:h.contentDeliveryAPIDomain;if(!r){console.warn("Missing contentDeliveryAPIDomain! Unable to use language dropdown.");return}const s=e==null?void 0:e.locale;if(!s){console.warn("Missing locale! Unable to use language dropdown.");return}return{businessId:t,entityId:n,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:r,locales:o,currentLocale:s}}const eQe={image:{url:"https://placehold.co/50",height:50,width:50,alternateText:"Placeholder Logo"}},tQe={logoWidth:T(v("fields.logoWidth","Logo Width"),{type:"number",min:0}),enableLanguageSelector:T(v("fields.enableLanguageSelector","Enable Language Selector"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]})},Cke={label:v("components.header","Header"),fields:tQe,defaultProps:{logoWidth:80,enableLanguageSelector:!1,analytics:{scope:"header"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"header",children:c.jsx(nQe,{...e})})}},nQe=({logoWidth:e,enableLanguageSelector:t})=>{var o,r,s;const n=ve(),a=((r=(o=n._site)==null?void 0:o.header)==null?void 0:r.links)??[],i=((s=n._site)==null?void 0:s.logo)??eQe;return c.jsx(aQe,{links:a,logo:i,logoWidth:e,enableLanguageSelector:t,languageDropDownProps:$ke(n)})},aQe=e=>{var h;const{t}=he(),[n,a]=k.useState(!1),i=Pe.useAnalytics(),{logo:o,logoWidth:r,logoLink:s,links:l,languageDropDownProps:d,enableLanguageSelector:u}=e,f=d&&u&&((h=d.locales)==null?void 0:h.length)>1;return c.jsxs(De,{as:"header",verticalPadding:"header",background:ye.background1.value,children:[c.jsxs("div",{className:"flex justify-start md:justify-between items-center",children:[o&&c.jsx(le,{displayName:M("fields.businessLogo","Business Logo"),fieldId:"site.businessLogo",children:c.jsx(iQe,{logo:o,logoLink:s,logoWidth:r})}),((l==null?void 0:l.length)>0||f)&&c.jsxs(c.Fragment,{children:[c.jsx(le,{displayName:M("fields.headerLinks","Header Links"),fieldId:"site.header.links",children:c.jsx(oQe,{links:l})}),c.jsx("button",{className:"flex md:hidden ml-auto my-auto",onClick:()=>{i==null||i.track({action:n?"COLLAPSE":"EXPAND",eventName:"toggleMobileMenu"}),a(!n)},"data-ya-action":i!=null&&i.getDebugEnabled()?"EXPAND/COLLAPSE":void 0,"data-ya-eventname":i!=null&&i.getDebugEnabled()?"toggleMobileMenu":void 0,"aria-label":n?t("closeHeaderMenu","Close header menu"):t("openHeaderMenu","Open header menu"),children:n?c.jsx(jye,{size:"1.5rem"}):c.jsx(rg,{size:"1.5rem"})})]}),f&&c.jsx(Pc,{...d,className:"hidden md:flex"})]}),((l==null?void 0:l.length)>0||f)&&c.jsx(rQe,{isOpen:n,links:l,languageDropdownProps:f?d:void 0})]})},iQe=e=>c.jsx(pi,{href:e.logoLink,children:c.jsx("div",{className:"flex mr-2",style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.logo.image.width/e.logo.image.height})})}),oQe=e=>c.jsx("div",{className:"hidden md:flex items-center",children:c.jsx("ul",{className:"flex gap-4 lg:gap-10",children:e.links.filter(t=>!!(t!=null&&t.link)).map((t,n)=>c.jsx("li",{children:c.jsx(Ze,{label:t.label,link:t.link,linkType:t.linkType,variant:"link",eventName:`link${n}`,alwaysHideCaret:!0})},t.link+n))})}),rQe=e=>{const{isOpen:t,links:n,languageDropdownProps:a}=e;return c.jsx("div",{className:`${t?"visible":"hidden"} bg-white text-blackcomponents absolute left-0 right-0 h-screen z-50`,children:c.jsxs(pt,{background:ye.background1.value,className:"container",children:[n.length>0&&c.jsx("ul",{className:"flex flex-col p-4 gap-4",children:n.map((i,o)=>c.jsx("li",{children:c.jsx(Ze,{link:i.link,label:i.label,linkType:i.linkType,variant:"link",eventName:`mobilelink${o}`})},i.link))}),a&&c.jsx(Pc,{...a,className:"p-4 gap-4 w-full"})]})})},Tke="https://placehold.co/100",Xr={linkType:"URL",label:{en:"Main Header Link",hasLocalizedValue:"true"},link:"#"},Po={linkType:"URL",label:{en:"Secondary Header Link",hasLocalizedValue:"true"},link:"#"},sQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{primaryHeader:T(v("fields.primaryHeader","Primary Header"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"text"}),links:T(v("fields.links","Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Xr}),primaryCTA:T(v("fields.primaryCTA","Primary CTA"),{type:"object",objectFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}}}),showPrimaryCTA:T(v("fields.showPrimaryCTA","Show Primary CTA"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]}),secondaryCTA:T(v("fields.secondaryCTA","Secondary CTA"),{type:"object",objectFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}}}),showSecondaryCTA:T(v("fields.showSecondaryCTA","Show Secondary CTA"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})}}),secondaryHeader:T(v("fields.secondaryHeader","Secondary Header"),{type:"object",objectFields:{show:T(v("fields.show","Show"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),showLanguageDropdown:T(v("fields.showLanguageDropdown","Show Language Dropdown"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),secondaryLinks:T(v("fields.secondaryLinks","Secondary Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Po})}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{primaryHeader:T(v("fields.primaryHeader","Primary Header"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"object",objectFields:rr}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),primaryCtaVariant:T(v("fields.primaryCTAVariant","Primary CTA Variant"),{type:"radio",options:"CTA_VARIANT"}),secondaryCtaVariant:T(v("fields.secondaryCTAVariant","Secondary CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}}),secondaryHeader:T(v("fields.secondaryHeader","Secondary Header"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"})}})}})},lQe=({data:e,styles:t})=>{var B;const{primaryHeader:n,secondaryHeader:a}=e,{primaryHeader:i,secondaryHeader:o}=t,{t:r}=he(),s=ve(),{logo:l,links:d,primaryCTA:u,secondaryCTA:f,showPrimaryCTA:h,showSecondaryCTA:p}=n,{show:b,showLanguageDropdown:m,secondaryLinks:y}=a,{backgroundColor:S,logo:w,primaryCtaVariant:C,secondaryCtaVariant:$}=i,{backgroundColor:x}=o,L=$ke(s),A=L&&((B=L.locales)==null?void 0:B.length)>1,[E,z]=k.useState(!1),_=(u==null?void 0:u.label)&&(u==null?void 0:u.link)||(f==null?void 0:f.label)&&(f==null?void 0:f.link)||d.some(U=>U.label&&U.link)||b&&(y.some(U=>U.label&&U.link)||m);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"hidden md:flex flex-col","aria-label":r("expandedHeaderDesktop","Expanded Header Desktop"),children:[b&&c.jsxs(De,{verticalPadding:"sm",background:x,className:"flex justify-end gap-6 items-center",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryHeaderLinks","Secondary Header Links"),children:c.jsx(Cl,{links:y,type:"Secondary"})}),m&&A&&c.jsx(Pc,{...L,className:"hidden md:flex"})]}),c.jsxs(De,{verticalPadding:"header",background:S,className:"flex flex-row justify-between w-full items-center gap-8",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.logoUrl","Logo"),children:c.jsx(Lv,{logo:Nv(l,w.width??200),logoWidth:w.width??200,aspectRatio:w.aspectRatio})}),c.jsxs("div",{className:"flex gap-8 items-center",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryHeaderLinks","Primary Header Links"),children:c.jsx(Cl,{links:d})}),(h||p)&&c.jsx(Av,{document:s,primaryCTA:u,secondaryCTA:f,primaryVariant:C,secondaryVariant:$,showPrimaryCTA:h,showSecondaryCTA:p})]})]})]}),c.jsx("div",{className:"flex md:hidden flex-col","aria-label":r("expandedHeaderMobile","Expanded Header Mobile"),children:c.jsxs(De,{verticalPadding:"header",background:S,className:"flex items-center justify-between",children:[c.jsx(Lv,{logo:Nv(l,w.width||100),logoWidth:w.width||100,aspectRatio:w.aspectRatio}),_&&c.jsx("button",{onClick:()=>z(!E),"aria-label":E?r("closeMenu","Close menu"):r("openMenu","Open menu"),"aria-expanded":E,"aria-controls":"mobile-menu",className:"text-xl",children:E?c.jsx(jye,{size:"1.5rem"}):c.jsx(rg,{size:"1.5rem"})})]})}),E&&c.jsxs("div",{id:"mobile-menu",className:`md:hidden transition-all duration-300 ease-in-out ${E?"max-h-[1000px] opacity-100":"max-h-0 opacity-0 overflow-scroll"}`,children:[c.jsx(De,{verticalPadding:"sm",background:S,children:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryHeaderLinks","Primary Header Links"),children:c.jsx(Cl,{links:d})})}),b&&c.jsxs(De,{verticalPadding:"sm",background:x,children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryHeaderLinks","Secondary Header Links"),children:c.jsx(Cl,{links:y,type:"Secondary"})}),m&&A&&c.jsx(Pc,{background:x,...L,className:"flex md:hidden"})]}),(h||p)&&c.jsx(De,{verticalPadding:"sm",background:S,children:c.jsx(Av,{document:s,primaryCTA:u,secondaryCTA:f,primaryVariant:C,secondaryVariant:$,showPrimaryCTA:h,showSecondaryCTA:p})})]})]})},Cl=({links:e,type:t="Primary"})=>{const{i18n:n}=he(),{document:a}=ve(),i=5,o=t==="Secondary",r=(s,l,d)=>c.jsx(Ze,{variant:t==="Primary"?"headerFooterMainLink":"headerFooterSecondaryLink",eventName:`cta.${d}.${l}`,label:me(s.label,n.language,a),linkType:s.linkType,link:s.link,className:"justify-start w-full text-left"});return c.jsx("nav",{"aria-label":`${t} Header Links`,children:c.jsxs("ul",{className:"flex flex-col md:flex-row gap-0 md:gap-6 md:items-center",children:[e.filter(s=>!!(s!=null&&s.link)).map((s,l)=>{const d=o&&l>=i;return c.jsx("li",{className:`py-4 md:py-0 ${d?"md:hidden":""}`,children:r(s,l,t.toLowerCase())},`${t.toLowerCase()}.${l}`)}),o&&e.length>i&&c.jsx("li",{className:"hidden md:block py-4 md:py-0",children:c.jsxs(vg,{children:[c.jsx(kg,{className:"flex flex-row md:items-center gap-4 justify-between w-full",children:c.jsx("div",{className:"flex gap-4 items-center",children:c.jsx(rg,{})})}),c.jsx(Sg,{className:"bg-white border rounded shadow-md p-2 min-w-[200px] z-[9999]",children:e.filter(s=>!!(s!=null&&s.link)).slice(i).map((s,l)=>c.jsx(wg,{className:"cursor-pointer p-2 text-body-sm-fontSize hover:bg-gray-100",children:r(s,l+i,"overflow")},`overflow-${l}`))})]})})]})})},Lv=e=>c.jsx(pi,{href:e.logo.image.url,alwaysHideCaret:!0,children:c.jsx("figure",{style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.aspectRatio||e.logo.image.width/e.logo.image.height})})}),Av=e=>{const{i18n:t}=he(),{primaryCTA:n,secondaryCTA:a,primaryVariant:i,secondaryVariant:o,showPrimaryCTA:r,showSecondaryCTA:s}=e;if(!(!n&&!a))return c.jsxs("div",{className:"flex flex-col md:flex-row gap-4 md:gap-2 md:items-center",children:[r&&(n==null?void 0:n.link)&&(n==null?void 0:n.label)&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryCta","Primary CTA"),children:c.jsx(Ze,{eventName:"primaryCta",variant:i,label:me(n==null?void 0:n.label,t.language,document),link:n.link,linkType:n.linkType})}),s&&(a==null?void 0:a.link)&&(a==null?void 0:a.label)&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryCta","Secondary CTA"),children:c.jsx(Ze,{eventName:"secondaryCta",variant:o,label:me(a.label,t.language,document),link:a.link,linkType:a.linkType})})]})},Nv=(e,t)=>({image:{url:e||Tke,width:t,height:t/2,alternateText:"Logo"}}),Lke={label:v("components.expandedHeader","Expanded Header"),fields:sQe,defaultProps:{data:{primaryHeader:{logo:Tke,links:[Xr,Xr,Xr,Xr],primaryCTA:{label:{en:"Call to Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},showPrimaryCTA:!0,secondaryCTA:{label:{en:"Call to Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},showSecondaryCTA:!0},secondaryHeader:{show:!1,showLanguageDropdown:!1,secondaryLinks:[Po,Po,Po,Po,Po]}},styles:{primaryHeader:{logo:{width:void 0,aspectRatio:2},backgroundColor:ye.background1.value,primaryCtaVariant:"primary",secondaryCtaVariant:"secondary"},secondaryHeader:{backgroundColor:ye.background2.value}},analytics:{scope:"expandedHeader"}},resolveFields:(e,{fields:t})=>{var s;const n=(s=e.props.data.secondaryHeader)==null?void 0:s.show,a={...t.data.objectFields},i={...t.styles.objectFields},o={...a.primaryHeader.objectFields},r={...a.secondaryHeader.objectFields};return n||(delete r.showLanguageDropdown,delete r.secondaryLinks,delete i.secondaryHeader),{...t,data:{...t.data,objectFields:{...a,primaryHeader:{...a.primaryHeader,objectFields:o},secondaryHeader:{...a.secondaryHeader,objectFields:r}}},styles:{...t.styles,objectFields:i}}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"expandedHeader",children:c.jsx(lQe,{...e})})}},cQe={backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})},Ake={label:v("components.footer","Footer"),fields:cQe,defaultProps:{backgroundColor:ye.background1.value,analytics:{scope:"footer"}},inline:!0,render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"footer",children:c.jsx(dQe,{...e})})}},dQe=e=>{var s,l,d,u,f,h,p,b,m,y;const t=ve(),{backgroundColor:n=ye.background1.value,puck:a}=e,i=((l=(s=t==null?void 0:t._site)==null?void 0:s.footer)==null?void 0:l.links)??[],o=(d=t==null?void 0:t._site)==null?void 0:d.copyrightMessage,r=[{name:"facebook",link:(u=t==null?void 0:t._site)==null?void 0:u.facebookPageUrl,label:c.jsx(Tye,{className:"w-5 h-5 mr-4"})},{name:"instagram",prefix:"//www.instagram.com/",link:(f=t==null?void 0:t._site)==null?void 0:f.instagramHandle,label:c.jsx(Lye,{className:"w-5 h-5 mr-4"})},{name:"youtube",link:(h=t==null?void 0:t._site)==null?void 0:h.youTubeChannelUrl,label:c.jsx(Pye,{className:"w-5 h-5 mr-4"})},{name:"linkedIn",link:(p=t==null?void 0:t._site)==null?void 0:p.linkedInUrl,label:c.jsx(Aye,{className:"w-5 h-5 mr-4"})},{name:"twitter",prefix:"//www.twitter.com/",link:(b=t==null?void 0:t._site)==null?void 0:b.twitterHandle,label:c.jsx(rKe,{className:"w-5 h-5 mr-4"})},{name:"pinterest",link:(m=t==null?void 0:t._site)==null?void 0:m.pinterestUrl,label:c.jsx(Nye,{className:"w-5 h-5 mr-4"})},{name:"tiktok",link:(y=t==null?void 0:t._site)==null?void 0:y.tikTokUrl,label:c.jsx(Eye,{className:"w-5 h-5 mr-4"})}].filter(S=>S.link);return c.jsxs(De,{background:n,className:"flex flex-col",outerClassName:"mt-auto",as:"footer",ref:a.dragRef,children:[c.jsxs("div",{className:"flex flex-col sm:flex-row justify-between w-full items-center text-body-fontSize font-body-fontFamily",children:[i&&c.jsx(le,{displayName:M("fields.footerLinks","Footer Links"),fieldId:"site.footer.links",children:c.jsx(uQe,{links:i})}),r&&c.jsx(le,{displayName:M("fields.footerSocialIcons","Footer Social Icons"),fieldId:"site.footer",children:c.jsx(fQe,{socialLinks:r})})]}),o&&c.jsx("div",{className:"text-body-sm-fontSize text-center sm:text-left ",children:c.jsx(le,{displayName:M("fields.copyrightText","Copyright Text"),fieldId:"site.copyrightMessage",children:c.jsx(Qe,{children:o})})})]})},uQe=e=>c.jsx("ul",{className:"flex flex-col sm:flex-row items-center pb-4",children:e.links.filter(t=>!!(t!=null&&t.link)).map((t,n)=>c.jsx("li",{children:c.jsx(Ze,{link:t.link,label:t.label,linkType:t.linkType,eventName:`link${n}`,variant:"link",alwaysHideCaret:!0,className:"sm:pr-8"})},t.link))}),fQe=({socialLinks:e})=>{const{t}=he();return c.jsx("div",{className:"flex flex-row items-center justify-center sm:justify-end pb-4",children:e.map((n,a)=>n.link?c.jsx(Ze,{label:n.label,link:`${n.prefix??""}${n.link}`,variant:"link",eventName:`socialLink${a}`,alwaysHideCaret:!0,ariaLabel:n.label+" "+t("link","link")},a):null)})},hQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{title:T(v("fields.title","Title"),{type:"entityField",filter:{types:["type.string"]}}),directoryRoot:st(v("fields.directoryRootLinkLabel","Directory Root Link Label"),{types:["type.string"]})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),breadcrumbsBackgroundColor:T(v("fields.breadcrumbsBackgroundColor","Breadcrumbs Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}})}})},Ev=e=>e.length>0&&"address"in e[0],Nke=(e,t)=>{const n=(a,i)=>{const o=a[t]??"",r=i[t]??"";return o===r?0:o<r?-1:1};return e.sort(n)},pQe=({cardNumber:e,profile:t,cardStyles:n})=>{const{relativePrefixToRoot:a}=sr(),{i18n:i}=he();return c.jsxs(pt,{className:"h-full flex flex-col p-8 border border-gray-400 rounded gap-4",background:n.backgroundColor,children:[c.jsxs("div",{children:[c.jsx(pi,{eventName:`link${e}`,alwaysHideCaret:!0,className:"mb-2",href:Gc(t,i.language,a),children:c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:3,children:t.name})}),t.hours&&c.jsx("div",{className:"font-semibold font-body-fontFamily text-body-fontSize",children:c.jsx(Pe.HoursStatus,{hours:t.hours,timezone:t.timezone,className:"h-full",dayOfWeekTemplate:()=>c.jsx(c.Fragment,{})})})]}),t.mainPhone&&c.jsx(Tr,{phoneNumber:t.mainPhone,includeHyperlink:!1,includeIcon:!1,format:t.mainPhone.slice(0,2)==="+1"?"domestic":"international"}),t.address&&c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-fontSize",children:c.jsx(Pe.Address,{address:t.address,lines:[["line1"],["line2"],["city","region","postalCode"]]})})]})},gQe=({directoryChildren:e,cardStyles:t})=>{const n=Nke(e,"name");return c.jsx(De,{verticalPadding:"sm",background:ye.background1.value,className:lt("flex min-h-0 min-w-0 mx-auto flex-col md:grid md:grid-cols-12 gap-4 sm:gap-8"),style:{gridTemplateColumns:"repeat(3, 1fr)"},children:n==null?void 0:n.map((a,i)=>c.jsx(pQe,{cardNumber:i,profile:a,cardStyles:t},i))})},mQe=({directoryChildren:e,relativePrefixToRoot:t,level:n})=>{const a=Nke(e,"name");return c.jsx(De,{verticalPadding:"sm",background:ye.background1.value,children:c.jsx("ul",{className:"grid lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2 grid-cols-1",children:a.map((i,o)=>{let r;switch(n){case"dm_root":r=i.dm_addressCountryDisplayName??i.name;break;case"dm_country":r=i.dm_addressRegionDisplayName??i.name;break;default:r=i.name}return c.jsx("li",{children:c.jsx(pi,{eventName:`child${o}`,variant:"directoryLink",href:t?t+i.slug:i.slug,children:c.jsx(Qe,{children:r})})},o)})})})},bQe=({data:e,styles:t})=>{var r,s,l;const{i18n:n}=he(),{document:a,relativePrefixToRoot:i}=sr(),o=me(we(a,e.title,n.language),n.language);return c.jsxs(pt,{background:t.backgroundColor,children:[c.jsx(Bye,{data:{directoryRoot:e.directoryRoot},liveVisibility:!0,styles:{backgroundColor:t.breadcrumbsBackgroundColor}}),c.jsxs(De,{className:"flex flex-col items-center gap-2",children:[((r=a._site)==null?void 0:r.name)&&c.jsx(Ue,{level:4,children:a._site.name}),o&&c.jsx(Ue,{level:2,children:o})]}),a.dm_directoryChildren&&Ev(a.dm_directoryChildren)&&c.jsx(gQe,{directoryChildren:a.dm_directoryChildren,cardStyles:t.cards}),a.dm_directoryChildren&&!Ev(a.dm_directoryChildren)&&c.jsx(mQe,{directoryChildren:a.dm_directoryChildren,relativePrefixToRoot:i,level:(l=(s=a==null?void 0:a.meta)==null?void 0:s.entityType)==null?void 0:l.id})]})},Eke={label:v("components.directory","Directory"),fields:hQe,defaultProps:{data:{title:{field:"",constantValueEnabled:!0,constantValue:{en:"[[name]]",hasLocalizedValue:"true"}},directoryRoot:{en:"Directory Root",hasLocalizedValue:"true"}},styles:{backgroundColor:ye.background1.value,breadcrumbsBackgroundColor:ye.background1.value,cards:{backgroundColor:ye.background1.value,headingLevel:3}},analytics:{scope:"directory"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e==null?void 0:e.analytics)==null?void 0:t.scope)??"directory",children:c.jsx(bQe,{...e})})}},yQe=({width:e,height:t,color:n,resultIndex:a})=>c.jsxs("svg",{className:`${n} hover:cursor-pointer`,display:"block",height:t,width:e,viewBox:"0 0 27 41",children:[c.jsx("defs",{children:c.jsxs("radialGradient",{id:"shadowGradient",children:[c.jsx("stop",{offset:"10%",stopOpacity:"0.4"}),c.jsx("stop",{offset:"100%",stopOpacity:"0.05"})]})}),c.jsx("ellipse",{cx:"13.5",cy:"34.8",rx:"10.5",ry:"5.25",fill:"url(#shadowGradient)"}),c.jsx("path",{fill:"currentColor",d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"}),c.jsx("path",{opacity:"0.25",d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"}),a&&c.jsx("text",{textAnchor:"middle",fontWeight:"bold",fontSize:"14",x:"50%",y:"50%",fill:"white",children:a})]}),vQe="builtin.location",Cu="location",rh=[-74.005371,40.741611],Pv=40233.6,Ov="builtin.hours",kQe={mapStyle:hs({label:v("fields.mapStyle","Map Style"),options:[{label:v("fields.options.default","Default"),value:"mapbox://styles/mapbox/streets-v12"},{label:v("fields.options.satellite","Satellite"),value:"mapbox://styles/mapbox/satellite-streets-v12"},{label:v("fields.options.light","Light"),value:"mapbox://styles/mapbox/light-v11"},{label:v("fields.options.dark","Dark"),value:"mapbox://styles/mapbox/dark-v11"},{label:v("fields.options.navigationDay","Navigation (Day)"),value:"mapbox://styles/mapbox/navigation-day-v1"},{label:v("fields.options.navigationNight","Navigation (Night)"),value:"mapbox://styles/mapbox/navigation-night-v1"}]}),openNowButton:T(v("fields.options.includeOpenNow","Include Open Now Button"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]})},Pke={fields:kQe,label:v("components.locator","Locator"),render:e=>c.jsx(SQe,{...e})},SQe=e=>{const t=ve(),{searchAnalyticsConfig:n,searcher:a}=k.useMemo(()=>{const i=Wge(t,e.experienceKeyEnvVar);return i===void 0?{searchAnalyticsConfig:void 0,searcher:void 0}:{searchAnalyticsConfig:Vge(t),searcher:Ft.provideHeadless(i)}},[t.id,t.locale]);return a===void 0||n===void 0?(console.warn("Could not create Locator component because Search Headless or Search Analytics config is undefined. Please check your environment variables."),c.jsx(c.Fragment,{})):(a.setSessionTrackingEnabled(!0),c.jsx(Ft.SearchHeadlessProvider,{searcher:a,children:c.jsx(ra.SearchI18nextProvider,{searcher:a,children:c.jsx(ra.AnalyticsProvider,{...n,children:c.jsx(wQe,{...e})})})}))},wQe=e=>{const{t}=he(),{mapStyle:n,openNowButton:a,entityTypeEnvVar:i}=e,o=TQe(i),r=Ft.useSearchState(G=>G.vertical.resultsCount||0),[s,l]=k.useState(!1),[d,u]=k.useState(),[f,h]=k.useState(),p=(G,J)=>{u(G),h(J),l(!0)},b=()=>{if(d&&f){const G={selected:!0,displayName:"",filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:d.lat,lng:d.lng,radius:f.getNorthEast().distanceTo(d)},matcher:Ft.Matcher.Near}};m.setStaticFilters([G]),m.executeVerticalQuery(),L("loading"),l(!1)}},m=Ft.useSearchActions(),y=Ft.useSearchState(G=>{var J,V;return(V=(J=G.filters.static)==null?void 0:J[0])==null?void 0:V.displayName}),S=G=>{const J={displayName:G.newDisplayName,selected:!0,filter:{kind:"fieldValue",fieldId:G.newFilter.fieldId,value:G.newFilter.value,matcher:Ft.Matcher.Near}};m.setStaticFilters([J]),m.executeVerticalQuery(),L("loading")},[w,C]=k.useState(void 0);k.useEffect(()=>{ra.getUserLocation().then(G=>{C([G.coords.longitude,G.coords.latitude]),m.setStaticFilters([{selected:!0,displayName:"",filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:G.coords.latitude,lng:G.coords.longitude,radius:Pv},matcher:Ft.Matcher.Near}}])}).catch(()=>{m.setStaticFilters([{selected:!0,displayName:t("newYorkCity","New York City, New York, United States"),filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:rh[1],lng:rh[0],radius:Pv},matcher:Ft.Matcher.Near}}])}).then(()=>{m.executeVerticalQuery(),L("loading")})},[]);const $=Ft.useSearchState(G=>G.searchStatus.isLoading),[x,L]=k.useState("not started");k.useEffect(()=>{!$&&x==="loading"&&L("complete")},[$,x]);const A=k.useRef([]),E=k.useRef(null),z=k.useCallback(G=>A!=null&&A.current?J=>A.current[G]=J:null,[]),_=k.useCallback(G=>{var J;if(G){let V=0;const I=A.current.filter((D,F)=>D&&G.index&&F<G.index);I.length>0&&(V=I.map(D=>(D==null?void 0:D.scrollHeight)??0).reduce((D,F)=>D+F)),(J=E.current)==null||J.scroll({top:V,behavior:"smooth"})}},[E]),B=k.useCallback(G=>({offset:new Uke.Point(0,G?-21:-14)}),[]),U={...w&&{centerCoords:w},...n&&{mapStyle:n},onDragHandler:p,scrollToResult:_,markerOptionsOverride:B},[ee,Y]=k.useState(!1),re=G=>{m.setFilterOption({filter:{kind:"fieldValue",fieldId:Ov,matcher:Ft.Matcher.OpenAt,value:"now"},selected:G,displayName:t("openNow","Open Now")}),Y(ee),m.setOffset(0),m.resetFacets(),ra.executeSearch(m)},Z=Ft.useSearchState(G=>G.filters);return k.useEffect(()=>{Y(Z.static?!!Z.static.find(G=>G.filter.kind==="fieldValue"&&G.filter.fieldId===Ov&&G.selected===!0):!1)},[Z]),c.jsxs("div",{className:"components flex ve-h-screen ve-w-screen mx-auto",children:[c.jsxs("div",{className:"w-full ve-h-screen md:w-2/5 lg:w-1/3 flex flex-col",children:[c.jsxs("div",{className:"px-8 py-6 gap-4 flex flex-col",children:[c.jsx(Ue,{level:3,children:t("findALocation","Find a Location")}),c.jsx(ra.FilterSearch,{searchFields:[{fieldApiName:vQe,entityType:o}],onSelect:G=>S(G),placeholder:t("searchHere","Search here..."),ariaLabel:t("searchDropdownHere","Search Dropdown Input"),customCssClasses:{focusedOption:"bg-gray-200 hover:bg-gray-200",option:"hover:bg-gray-100 px-4 py-3",inputElement:"rounded-md p-4 h-11",currentLocationButton:"h-7 w-7 text-palette-primary-dark"},showCurrentLocationButton:!!w,geolocationProps:{radius:25}}),a&&c.jsx(Hye,{pressed:ee,onPressedChange:G=>re(G),className:"py-2 px-2",children:t("openNow","Open Now")})]}),c.jsxs("div",{className:"px-8 py-4 text-body-fontSize border-y border-gray-300",children:[r===0&&x==="not started"&&t("useOurLocatorToFindALocationNearYou","Use our locator to find a location near you"),r===0&&x==="complete"&&t("noResultsFoundForThisArea","No results found for this area"),r>0&&y&&t("locationsNear",`${r} locations near "${y}"`,{count:r,filterDisplayName:y})]}),c.jsx("div",{id:"innerDiv",className:"overflow-y-auto",ref:E,children:r>0&&c.jsx(ra.VerticalResults,{CardComponent:CQe,setResultsRef:z})})]}),c.jsxs("div",{className:"md:w-3/5 lg:w-2/3 md:flex hidden relative",children:[c.jsx(xQe,{...U}),s&&c.jsx("div",{className:"absolute bottom-10 left-0 right-0 flex justify-center",children:c.jsx(Cr,{onClick:b,className:"py-2 px-4 shadow-xl",children:t("searchThisArea","Search This Area")})})]})]})},xQe=({mapStyle:e,centerCoords:t,onDragHandler:n,scrollToResult:a,markerOptionsOverride:i})=>{var d,u,f;const{t:o}=he(),r=typeof document>"u"?void 0:document.getElementById("preview-frame");if(r!=null&&r.contentDocument&&!((d=r.contentWindow)!=null&&d.mapboxgl))return c.jsx("div",{className:"flex items-center justify-center w-full h-full",children:c.jsx("div",{className:"border border-gray-300 rounded-lg p-6 bg-white shadow-md",children:c.jsx("span",{className:"text-gray-700 text-lg font-medium font-body-fontFamily",children:o("loadingMap","Loading Map...")})})});const s=ve();let l=(u=s._env)==null?void 0:u.YEXT_MAPBOX_API_KEY;return r!=null&&r.contentDocument&&((f=s._env)!=null&&f.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY)&&(l=s._env.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY),c.jsx(ra.MapboxMap,{mapboxAccessToken:l||"",mapboxOptions:{center:t??rh,...e?{style:e}:{}},onDrag:n,PinComponent:$Qe,iframeWindow:(r==null?void 0:r.contentWindow)??void 0,allowUpdates:!!(r!=null&&r.contentDocument),onPinClick:a,markerOptionsOverride:i})},$Qe=e=>{const{result:t,selected:n}=e,{width:a,height:i,color:o}=k.useMemo(()=>n?{height:"61.5px",width:"40.5px",color:"text-palette-secondary-dark"}:{height:"41px",width:"27px",color:"text-palette-primary-dark"},[n]);return c.jsx(yQe,{height:i,width:a,color:o,resultIndex:t.index})},CQe=({result:e})=>{const{t,i18n:n}=he(),{relativePrefixToRoot:a}=sr(),i=e.rawData,o=e.distance,r=h=>`https://www.google.com/maps/dir/?api=1&destination=${h.latitude},${h.longitude}`,s=o?(o/1609.344).toFixed(1):void 0,l=o?(o/1e3).toFixed(1):void 0,d=ra.useCardAnalyticsCallback(e,"DRIVING_DIRECTIONS"),u=ra.useCardAnalyticsCallback(e,"VIEW_WEBSITE"),f=ra.useCardAnalyticsCallback(e,"TAP_TO_CALL");return c.jsxs(pt,{background:ye.background1.value,className:"container flex flex-row border-b border-gray-300 p-8 gap-4",children:[c.jsx(pt,{background:ye.background6.value,className:"flex-shrink-0 w-6 h-6 rounded-full font-bold flex items-center justify-center text-body-sm-fontSize",children:e.index}),c.jsxs("div",{className:"flex flex-wrap gap-6 w-full",children:[c.jsxs("div",{className:"w-full flex flex-col gap-4",children:[c.jsxs("div",{className:"flex flex-row justify-between items-center",children:[c.jsx(Ue,{className:"font-bold text-palette-primary-dark",level:4,children:i.name}),o&&c.jsx("div",{className:"font-body-fontFamily font-body-sm-fontWeight text-body-sm-fontSize",children:t("distanceInUnit",`${s} mi`,{distanceInMiles:s,distanceInKilometers:l})})]}),i.hours&&c.jsx("div",{className:"font-body-fontFamily text-body-fontSize gap-8",children:c.jsx(Pe.HoursStatus,{hours:i.hours,timezone:i.timezone})}),i.mainPhone&&c.jsx("a",{href:i.mainPhone,onClick:f,className:"components h-fit w-fit underline decoration-0 hover:no-underline font-link-fontFamily text-link-fontSize tracking-link-letterSpacing text-palette-primary-dark",children:_ye(i.mainPhone,i.mainPhone.slice(0,2)==="+1"?"domestic":"international")}),c.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[i.address&&c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-md-fontSize gap-4",children:c.jsx(Pe.Address,{address:i.address,lines:[["line1"],["line2"],["city","region","postalCode"]]})}),i.yextDisplayCoordinate&&c.jsxs("a",{href:r(i.yextDisplayCoordinate||{latitude:0,longitude:0}),onClick:d,className:"components h-fit items-center w-fit underline gap-2 decoration-0 hover:no-underline font-link-fontFamily text-link-fontSize tracking-link-letterSpacing flex font-bold text-palette-primary-dark",children:[t("getDirections","Get Directions"),c.jsx(Oye,{size:"12px"})]})]})]}),c.jsx(Cr,{asChild:!0,className:"basis-full",variant:"primary",children:c.jsx("a",{href:Gc(i,n.language,a),onClick:u,children:t("visitPage","Visit Page")})})]})]})},TQe=e=>{var n;const t=ve();if(!t._pageset&&e)return((n=t._env)==null?void 0:n[e])||Cu;try{return JSON.parse(t._pageset).typeConfig.locatorConfig.entityType||Cu}catch{return Cu}},LQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{apiKey:T(v("fields.apiKey","API Key"),{type:"text"})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},AQe=({data:e})=>c.jsx(De,{background:ye.background1.value,className:"flex items-center",children:c.jsx(Tve,{apiKey:e.apiKey,coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}})}),NQe={label:v("components.staticMapSection","Static Map Section"),fields:LQe,defaultProps:{data:{apiKey:""},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(AQe,{...e})})};function EQe(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}const PQe="https://placehold.co/100",OQe={linkType:"URL",label:{en:"Footer Link",hasLocalizedValue:"true"},links:[]},Ie={linkType:"URL",label:{en:"Footer Link",hasLocalizedValue:"true"},link:"#"},Si={xLink:/^https:\/\/(www\.)?(x\.com|twitter\.com)\/.+/,facebookLink:/^https:\/\/(www\.)?facebook\.com\/.+/,instagramLink:/^https:\/\/(www\.)?instagram\.com\/.+/,pinterestLink:/^https:\/\/(www\.)?pinterest\.com\/.+/,linkedInLink:/^https:\/\/(www\.)?linkedin\.com\/.+/,youtubeLink:/^(https:\/\/(www\.)?youtube\.com\/.+|https:\/\/youtu\.be\/.+)$/,tiktokLink:/^https:\/\/(www\.)?tiktok\.com\/.+/},FQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{primaryFooter:T(v("fields.primaryFooter","Primary Footer"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"text"}),facebookLink:T(v("fields.facebookLink","Facebook Link"),{type:"text"}),instagramLink:T(v("fields.instagramLink","Instagram Link"),{type:"text"}),linkedInLink:T(v("fields.linkedInLink","LinkedIn Link"),{type:"text"}),pinterestLink:T(v("fields.pinterestLink","Pinterest Link"),{type:"text"}),tiktokLink:T(v("fields.tiktokLink","Tiktok Link"),{type:"text"}),xLink:T(v("fields.xLink","X Link"),{type:"text"}),youtubeLink:T(v("fields.youtubeLink","YouTube Link"),{type:"text"}),utilityImages:T(v("fields.utilityImages","Utility Images"),{type:"array",arrayFields:{url:T(v("fields.imageUrl","Image URL"),{type:"text"}),linkTarget:T(v("fields.destinationURL","Destination URL"),{type:"text"})}}),expandedFooter:T(v("fields.expandFooter","Expand Footer"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),expandedFooterLinks:T(v("fields.expandedFooterLinks","Expanded Footer Links"),{type:"array",arrayFields:{label:T(v("fields.label","Label"),{type:"text"}),links:T(v("fields.links","Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})},defaultItemProps:OQe}),footerLinks:T(v("fields.footerLinks","Footer Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})}}),secondaryFooter:T(v("fields.secondaryFooterLinks","Secondary Footer Links"),{type:"object",objectFields:{show:T(v("fields.show","Show"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),copyrightMessage:st(v("fields.copyrightMessage","Copyright Message"),{types:["type.string"]}),secondaryFooterLinks:T(v("fields.secondaryFooterLinks","Secondary Footer Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{primaryFooter:T(v("fields.primaryFooter","Primary Footer"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),linksAlignment:T(v("fields.linksAlignment","Links Alignment"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]}),logo:T(v("fields.logo","Logo"),{type:"object",objectFields:rr}),utilityImages:T(v("fields.utilityImages","Utility Images"),{type:"object",objectFields:rr})}}),secondaryFooter:T(v("fields.secondaryFooter","Secondary Footer"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),linksAlignment:T(v("fields.linksAlignment","Links Alignment"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]})}})}})},jQe=({data:e,styles:t,puck:n})=>{const{primaryFooter:a,secondaryFooter:i}=e,{primaryFooter:o,secondaryFooter:r}=t,{logo:s,footerLinks:l,xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m,utilityImages:y,expandedFooterLinks:S,expandedFooter:w}=a,{show:C,copyrightMessage:$,secondaryFooterLinks:x}=i,{linksAlignment:L,backgroundColor:A,logo:{width:E,aspectRatio:z},utilityImages:{width:_,aspectRatio:B}}=o,{backgroundColor:U,linksAlignment:ee}=r,{i18n:Y}=he(),{document:re}=ve();return c.jsxs(pt,{className:"mt-auto",ref:n.dragRef,as:"footer",children:[c.jsxs(De,{verticalPadding:"footer",background:A,className:`flex flex-col ${L==="right"?"md:flex-row":"md:flex-row-reverse"} md:justify-start w-full md:items-start gap-8 md:gap-10`,children:[c.jsxs("div",{className:`flex flex-col gap-10 md:gap-8 ${L==="left"?"items-end":"items-start"}`,children:[s&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.logo","Logo"),children:c.jsx(Tu,{aspectRatio:z,logo:RQe(s,E||100),logoWidth:E||100})}),c.jsxs("div",{className:"hidden md:block space-y-8",children:[c.jsx(Mv,{xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m}),y&&y.length>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.utilityImages","Utility Images"),children:c.jsx("div",{className:"grid grid-cols-3 gap-8",children:y.map((Z,G)=>c.jsx(Tu,{aspectRatio:B,logo:jv(Z.url,_||60),logoWidth:_||60},G))})})]})]}),w?c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.expandedFooterLinks","Expanded Footer Links"),children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 w-full text-center md:text-left justify-items-center md:justify-items-start gap-6",children:S.map((Z,G)=>c.jsx(MQe,{label:me(Z.label,Y.language,re),links:Z.links},G))})}):c.jsx("div",{className:"w-full",children:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.footerLinks","Footer Links"),children:c.jsx(Fv,{links:l,type:"Primary"})})}),c.jsxs("div",{className:"md:hidden block space-y-10",children:[c.jsx(Mv,{xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m}),y&&y.length>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.utilityImages","Utility Images"),children:c.jsx("div",{className:"grid grid-cols-3 gap-8",children:c.jsx("div",{className:"col-span-3 flex justify-center",children:y.map((Z,G)=>c.jsx(Tu,{aspectRatio:B,logo:jv(Z.url,E||100),logoWidth:_||100},G))})})})]})]}),C&&c.jsxs(De,{verticalPadding:"footerSecondary",background:U,className:`flex flex-col gap-5 ${ee==="left"?"md:items-start":"md:items-end"}`,children:[(x==null?void 0:x.length)>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryFooterLinks","Secondary Footer Links"),children:c.jsx(Fv,{links:x,type:"Secondary"})}),$&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.copyrightMessage","Copyright Message"),children:c.jsx(Qe,{variant:"xs",className:"text-center md:text-left",children:me($,Y.language,re)})})]})]})},Fv=({links:e,type:t="Primary"})=>{const{i18n:n}=he(),{document:a}=ve();return c.jsx("ul",{className:`w-full ${t==="Secondary"?"gap-4 flex flex-col md:flex-row":"grid grid-cols-1 md:grid-cols-5 gap-6"}`,children:e.map((i,o)=>c.jsx("li",{children:c.jsx(Ze,{variant:t==="Primary"?"headerFooterMainLink":"headerFooterSecondaryLink",eventName:`cta.${t.toLowerCase()}.${o}-Link-${o+1}`,label:me(i.label,n.language,a),linkType:i.linkType,link:i.link,className:"justify-center md:justify-start block break-words whitespace-normal"})},`${t.toLowerCase()}.${o}`))})},MQe=({links:e,label:t})=>{const{i18n:n}=he(),{document:a}=ve();return c.jsxs("ul",{className:"flex flex-col items-center md:items-start gap-4 w-full",children:[c.jsx("li",{className:"w-full",children:c.jsx(Qe,{className:"break-words",children:t})}),e.map((i,o)=>c.jsx("li",{className:"w-full",children:c.jsx(Ze,{variant:"headerFooterMainLink",eventName:`cta${o}-Link-${o+1}`,label:me(i.label,n.language,a),linkType:i.linkType,link:i.link,className:"justify-start block break-words whitespace-normal"})},o))]})},Tu=e=>c.jsx(pi,{href:e.logoLink,alwaysHideCaret:!0,children:c.jsx("div",{style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.aspectRatio||e.logo.image.width/e.logo.image.height})})}),RQe=(e,t)=>({image:{url:e,alternateText:"Logo",height:t/2,width:t}}),jv=(e,t)=>({image:{url:e,height:t,width:t,alternateText:"Utility Image"}}),Mv=({xLink:e,facebookLink:t,instagramLink:n,pinterestLink:a,linkedInLink:i,youtubeLink:o,tiktokLink:r})=>{const{t:s}=he(),d=[{link:e,icon:c.jsx(EQe,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"X (Twitter)",valid:Si.xLink.test(e)},{link:t,icon:c.jsx(Tye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Facebook",valid:Si.facebookLink.test(t)},{link:n,icon:c.jsx(Lye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Instagram",valid:Si.instagramLink.test(n)},{link:a,icon:c.jsx(Nye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Pinterest",valid:Si.pinterestLink.test(a)},{link:i,icon:c.jsx(Aye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"LinkedIn",valid:Si.linkedInLink.test(i)},{link:o,icon:c.jsx(Pye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"YouTube",valid:Si.youtubeLink.test(o)},{link:r,icon:c.jsx(Eye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"TikTok",valid:Si.tiktokLink.test(r)}].filter(({valid:u})=>u);return d.length===0?null:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.socialLinks","Social Links"),children:c.jsx("div",{className:"flex gap-6 items-center justify-center md:justify-start",children:d.map(({link:u,icon:f,label:h},p)=>c.jsx(Ze,{label:f,link:u,linkType:"URL",variant:"link",eventName:`socialLink.${h.toLowerCase()}`,ariaLabel:`${h} ${s("link","link")}`,alwaysHideCaret:!0,className:"block break-words whitespace-normal"},p))})})},Oke={label:v("components.expandedFooter","Expanded Footer"),fields:FQe,defaultProps:{data:{primaryFooter:{logo:PQe,footerLinks:[Ie,Ie,Ie,Ie,Ie],xLink:"",facebookLink:"",instagramLink:"",pinterestLink:"",linkedInLink:"",youtubeLink:"",tiktokLink:"",utilityImages:[],expandedFooter:!1,expandedFooterLinks:[{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]}]},secondaryFooter:{show:!1,copyrightMessage:{en:"",hasLocalizedValue:"true"},secondaryFooterLinks:[Ie,Ie,Ie,Ie,Ie]}},styles:{primaryFooter:{logo:{width:0,aspectRatio:1.78},utilityImages:{width:0,aspectRatio:1},backgroundColor:ye.background6.value,linksAlignment:"right"},secondaryFooter:{backgroundColor:ye.background2.value,linksAlignment:"left"}},analytics:{scope:"expandedFooter"}},resolveFields:(e,{fields:t})=>{const n=e.props.data.primaryFooter.expandedFooter,a=e.props.data.secondaryFooter.show,i={...t.data.objectFields.primaryFooter.objectFields},o={...t.data.objectFields.secondaryFooter.objectFields},r={...t.styles.objectFields},s={...t.styles.objectFields.secondaryFooter.objectFields};return n?delete i.footerLinks:delete i.expandedFooterLinks,a?r.secondaryFooter={...t.styles.objectFields.secondaryFooter,objectFields:s}:(delete o.secondaryFooterLinks,delete o.copyrightMessage,delete r.secondaryFooter),{...t,data:{...t.data,objectFields:{...t.data.objectFields,primaryFooter:{...t.data.objectFields.primaryFooter,objectFields:i},secondaryFooter:{...t.data.objectFields.secondaryFooter,objectFields:o}}},styles:{...t.styles,objectFields:r}}},inline:!0,render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"expandedFooter",children:c.jsx(jQe,{...e})})}},Fke={BannerSection:zye,BreadcrumbsSection:Wye,CoreInfoSection:Vye,EventSection:Gye,FAQSection:ave,HeroSection:Uye,InsightSection:Kye,NearbyLocationsSection:qye,PhotoGallerySection:nve,ProductSection:Yye,PromoSection:Zye,ReviewsSection:sve,StaticMapSection:NQe,TeamSection:cve,TestimonialSection:lve},jke=Object.keys(Fke),Mke={ExpandedHeader:Lke,ExpandedFooter:Oke},Rke=Object.keys(Mke),_ke={Directory:Eke},_Qe=Object.keys(_ke),Ike={Locator:Pke},IQe=Object.keys(Ike),Dke={Header:Cke,Footer:Ake},DQe=Object.keys(Dke),Hke={Flex:fve,Grid:pve},Ng=Object.keys(Hke),zke={Address:gve,BodyText:bve,CTAWrapper:yve,Emails:vve,GetDirections:kve,HeadingText:wve,HoursStatus:$ve,HoursTable:xve,ImageWrapper:Cve,MapboxStaticMap:Lve,Phone:Ave,TextList:Nve},Eg=Object.keys(zke),HQe={background:T("Background Color",{type:"select",options:"BACKGROUND_COLOR"}),sectionHeading:T("Section Heading",{type:"object",objectFields:{text:T("Section Heading Text",{type:"entityField",filter:{types:["type.string"]}}),level:T("Heading Level",{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),alignment:T("Alignment",{type:"radio",options:ze.ALIGNMENT})}}),liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},zQe=e=>{const{background:t,sectionHeading:n}=e,a=ve(),{i18n:i}=he(),o=i.language,r=me(we(a,n.text,o),o),s={left:"justify-start",center:"justify-center",right:"justify-end"}[n.alignment];return c.jsxs(De,{background:t,children:[r&&c.jsx(Ue,{level:n.level,className:`flex pb-8 ${s}`,children:r}),c.jsx(be.DropZone,{zone:"page-section",disallow:[...Rke,...jke]})]})},BQe={label:"Section Container",fields:HQe,defaultProps:{background:ye.background1.value,sectionHeading:{text:{field:"",constantValue:"Section",constantValueEnabled:!0},level:2,alignment:"left"},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(zQe,{...e})})},Bke={...$s},xa=jhe(Bke),$a=e=>()=>Rhe({fontCssVariable:e,fontList:Bke}),WQe={palette:{label:v("theme.colors.colors","Colors"),styles:{primary:{label:v("theme.colors.primary","Primary"),type:"color",default:"#CF0A2C",plugin:"colors"},secondary:{label:v("theme.colors.secondary","Secondary"),type:"color",default:"#737B82",plugin:"colors"},tertiary:{label:v("theme.colors.tertiary","Tertiary"),type:"color",default:"#FF7E7E",plugin:"colors"},quaternary:{label:v("theme.colors.quaternary","Quaternary"),type:"color",default:"#000000",plugin:"colors"}}},h1:{label:"H1",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"48px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h1-fontFamily"),default:"700"}}},h2:{label:"H2",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"40px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h2-fontFamily"),default:"700"}}},h3:{label:"H3",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"32px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h3-fontFamily"),default:"700"}}},h4:{label:"H4",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"24px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h4-fontFamily"),default:"700"}}},h5:{label:"H5",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"20px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h5-fontFamily"),default:"700"}}},h6:{label:"H6",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"18px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h6-fontFamily"),default:"700"}}},body:{label:v("theme.bodyText","Body Text"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-body-fontFamily"),default:"400"}}},pageSection:{label:v("theme.pageSection","Page Section"),styles:{contentWidth:{label:v("theme.contentWidth.contentWidth","Content Width"),type:"select",plugin:"maxWidth",options:[{label:v("theme.contentWidth.compact","Compact (768px)"),value:"768px"},{label:v("theme.contentWidth.narrow","Narrow (960px)"),value:"960px"},{label:v("theme.contentWidth.standard","Standard (1024px)"),value:"1024px"},{label:v("theme.contentWidth.wide","Wide (1280px)"),value:"1280px"},{label:v("theme.contentWidth.extraWide","Extra Wide (1440px)"),value:"1440px"}],default:"1024px"},verticalPadding:{label:v("theme.topBottomPadding","Top/Bottom Padding"),type:"select",plugin:"padding",options:ze.SPACING,default:"32px"}}},button:{label:v("theme.button","Button"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-button-fontFamily"),default:"400"},borderRadius:{label:v("theme.borderRadius","Border Radius"),type:"select",plugin:"borderRadius",options:ze.BUTTON_BORDER_RADIUS,default:"4px"},textTransform:{label:v("theme.textTransform.textTransform","Text Transform"),type:"select",plugin:"textTransform",options:ze.TEXT_TRANSFORM,default:"none"},letterSpacing:{label:v("theme.letterSpacing.letterSpacing","Letter Spacing"),type:"select",plugin:"letterSpacing",options:ze.LETTER_SPACING,default:"0em"}}},link:{label:v("theme.links","Links"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-link-fontFamily"),default:"400"},textTransform:{label:v("theme.textTransform.textTransform","Text Transform"),type:"select",plugin:"textTransform",options:ze.TEXT_TRANSFORM,default:"none"},letterSpacing:{label:v("theme.letterSpacing.letterSpacing","Letter Spacing"),type:"select",plugin:"letterSpacing",options:ze.LETTER_SPACING,default:"0em"},caret:{label:v("theme.includeCaret","Include Caret"),type:"select",plugin:"display",options:[{label:v("fields.options.yes","Yes"),value:"block"},{label:v("fields.options.no","No"),value:"none"}],default:"block"}}},image:{label:v("theme.image","Image"),styles:{borderRadius:{label:v("theme.borderRadius","Border Radius"),type:"select",plugin:"borderRadius",options:ze.IMAGE_BORDER_RADIUS,default:"0px"}}}};exports.Address=gve;exports.Background=pt;exports.BackgroundProvider=Qv;exports.BannerSection=zye;exports.BasicSelector=hs;exports.Body=Qe;exports.BodyText=bve;exports.BreadcrumbsSection=Wye;exports.Button=Cr;exports.CTA=Ze;exports.CTAWrapper=yve;exports.ComponentFields=Ia;exports.ContentBlockCategory=Eg;exports.ContentBlockCategoryComponents=zke;exports.CoreInfoSection=Vye;exports.DeprecatedCategory=DQe;exports.DeprecatedCategoryComponents=Dke;exports.Directory=Eke;exports.DirectoryCategory=_Qe;exports.DirectoryCategoryComponents=_ke;exports.Editor=QUe;exports.Emails=vve;exports.EmbeddedFieldStringInput=op;exports.EntityField=le;exports.EventSection=Gye;exports.ExpandedFooter=Oke;exports.ExpandedHeader=Lke;exports.FAQSection=ave;exports.Flex=fve;exports.FontSizeSelector=OCe;exports.Footer=Ake;exports.GetDirections=kve;exports.Grid=pve;exports.Header=Cke;exports.Heading=Ue;exports.HeadingText=wve;exports.HeroSection=Uye;exports.HoursStatus=$ve;exports.HoursStatusAtom=kd;exports.HoursTable=xve;exports.HoursTableAtom=sg;exports.Image=vn;exports.ImageWrapper=Cve;exports.InsightSection=Kye;exports.KnowledgeGraphIcon=ebe;exports.LayoutBlockCategory=Ng;exports.LayoutBlockCategoryComponents=Hke;exports.LocatorCategory=IQe;exports.LocatorCategoryComponents=Ike;exports.LocatorComponent=Pke;exports.MapboxStaticMap=Lve;exports.MaybeLink=pi;exports.MaybeRTF=Rye;exports.NearbyLocationsSection=qye;exports.OptionalNumberField=Sye;exports.OtherCategory=Rke;exports.OtherCategoryComponents=Mke;exports.PageSection=De;exports.PageSectionCategory=jke;exports.PageSectionCategoryComponents=Fke;exports.Phone=Ave;exports.PhoneAtom=Tr;exports.PhotoGallerySection=nve;exports.ProductSection=Yye;exports.PromoSection=Zye;exports.ReviewStars=Sd;exports.ReviewsSection=sve;exports.SectionContainer=BQe;exports.SpacingSelector=Nl;exports.TailwindConfigContext=lh;exports.TeamSection=cve;exports.TemplatePropsContext=Oc;exports.TestimonialSection=lve;exports.TextList=Nve;exports.ThemeOptions=ze;exports.Timestamp=Hs;exports.TimestampOption=Ds;exports.Toggle=Hye;exports.TranslatableRichTextField=Bi;exports.TranslatableStringField=st;exports.VisibilityWrapper=wt;exports.VisualEditorProvider=Rwe;exports.YextEntityFieldSelector=hc;exports.YextField=T;exports.YextStructFieldSelector=fp;exports.addHeadingAlignmentMigration=qge;exports.applyAnalytics=ZCe;exports.applyHeaderScript=XCe;exports.applyTheme=gSe;exports.backgroundColors=ye;exports.bodyVariants=wye;exports.buttonVariants=xye;exports.constructFontSelectOptions=jhe;exports.createSearchAnalyticsConfig=Vge;exports.createSearchHeadlessConfig=Wge;exports.defaultFonts=$s;exports.defaultThemeConfig=WQe;exports.defaultThemeTailwindExtensions=DCe;exports.fetchLocalesToPathsForEntity=Hge;exports.fetchNearbyLocations=Dge;exports.fetchReviewsForEntity=zge;exports.getAggregateRating=lg;exports.getAnalyticsScopeHash=ga;exports.getFontWeightOptions=Rhe;exports.getFontWeightOverrideOptions=hSe;exports.getLocationPath=Gc;exports.getPageMetadata=QCe;exports.headingVariants=Mye;exports.i18nComponentsInstance=rs;exports.i18nPlatformInstance=cr;exports.migrate=nr;exports.migrationRegistry=tr;exports.msg=v;exports.normalizeSlug=bh;exports.pt=M;exports.resolveTranslatableRichText=fa;exports.resolveTranslatableString=me;exports.resolveYextEntityField=we;exports.resolveYextStructField=uh;exports.themeManagerCn=lt;exports.themeManagerTwMergeConfiguration=Khe;exports.themeResolver=kSe;exports.useBackground=lr;exports.useDocument=ve;exports.useEntityFields=xs;exports.usePlatformBridgeDocument=Xke;exports.usePlatformBridgeEntityFields=Qke;exports.usePlatformTranslation=Nn;exports.useTailwindConfig=ch;exports.useTemplateProps=sr;exports.validateSlug=zwe;exports.withPropOverrides=m4e;
276
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qye(e,t){return t={exports:{}},e(t,t.exports),t.exports}function Jye(){}function eve(){}function ut(e){return e.map(function(t){return t===!1?null:t}).join(" ").replace(/\s+/g," ").trim()}function uv(e,t){return 100/e*t/t}function fv(e,t){return 100*e/t}function mn(e){return"".concat(e,"%")}function wd(e,t,n){if(e===t)return!0;var a=pn[eh(e)],i=pn[eh(t)];return!(!a||a!==i)&&a(e,t,n)}function hv(e){return function(t,n,a){if(!a)return e(t,n,[]);for(var i,o=a.length;i=a[--o];)if(i[0]===t&&i[1]===n)return!0;return e(t,n,a)}}function aqe(e,t,n){var a=e.length;if(a!==t.length)return!1;for(n.push([e,t]);a--;)if(!wd(e[a],t[a],n))return!1;return!0}function iqe(e,t,n){if(typeof e.equal=="function")return n.push([e,t]),e.equal(t,n);var a=pv(e),i=pv(t),o=a.length;if(o!==i.length)return!1;for(a.sort(),i.sort();o--;)if(a[o]!==i[o])return!1;for(n.push([e,t]),o=a.length;o--;){var r=a[o];if(!wd(e[r],t[r],n))return!1}return!0}function pv(e){var t=[];for(var n in e)n!=="constructor"&&t.push(n);return t}function oqe(e){return!!e&&typeof e=="object"}function rqe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sqe(e)}function sqe(e){return e.$$typeof===yqe}function lqe(e){return Array.isArray(e)?[]:{}}function Tc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ms(lqe(e),e,t):e}function cqe(e,t,n){return e.concat(t).map(function(a){return Tc(a,n)})}function dqe(e,t,n){var a={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){a[i]=Tc(e[i],n)}),Object.keys(t).forEach(function(i){n.isMergeableObject(t[i])&&e[i]?a[i]=ms(e[i],t[i],n):a[i]=Tc(t[i],n)}),a}function ms(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||cqe,n.isMergeableObject=n.isMergeableObject||mqe;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):dqe(e,t,n):Tc(t,n)}function Zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return{}},n=function(a){function i(r,s){var l;return _t(this,i),l=o.call(this,r,s),l.state=t(Fo({},s.state)),l.updateStateProps=l.updateStateProps.bind(je(l)),l}nn(i,a);var o=an(i);return It(i,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(r,s){return!bv(s,this.state)||!bv(r,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(Fo({},this.context.state)))}},{key:"render",value:function(){var r=this,s=zl(this.state,this.props);return g.createElement(e,dt({ref:function(l){r.instance=l}},s,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),i}(g.Component);return Ke(n,"contextType",cg),Ke(n,"propTypes",{children:Mt.children}),Ke(n,"defaultProps",{children:null}),n}var uqe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fqe=uqe;eve.resetWarningCache=Jye;var hqe=function(){function e(a,i,o,r,s,l){if(l!==fqe){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:eve,resetWarningCache:Jye};return n.PropTypes=n,n},j=Qye(function(e){e.exports=hqe()}),wu="loading",gv="success",mv="error",Mt={children:j.oneOfType([j.arrayOf(j.node),j.node]),direction:j.oneOf(["forward","backward"]),orientation:j.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return e[t]===!0&&e.tag==="img"?new Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},Hl=function(e){var t=e.min,n=e.max,a=e.x;return Math.min(n,Math.max(t,a))},pqe={buttonBack:"buttonBack___1mlaL"},gqe=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Jf=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.currentSlide,s=i.onClick,l=i.step,d=i.infinite,u=i.visibleSlides,f=i.totalSlides-u,h=Math.max(r-l,0);d&&(h=r===0?f:h),o.setStoreState({currentSlide:h,isPlaying:!1},s!==null&&s.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=(a.currentSlide,a.disabled,a.onClick,a.step,a.totalSlides,a.visibleSlides,a.infinite),r=Tt(a,gqe),s=ut([pqe.buttonBack,"carousel__back-button",i]),l=t.setDisabled(this.props.disabled,this.props.currentSlide,o);return g.createElement("button",dt({type:"button","aria-label":"previous",className:s,onClick:this.handleOnClick,disabled:l},r),this.props.children)}}],[{key:"setDisabled",value:function(a,i,o){return a!==null?a:i===0&&!o}}]),t}(g.Component);Ke(Jf,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),Ke(Jf,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var eh=Qye(function(e,t){var n={}.toString,a=typeof window<"u"?window.Node:Function;e.exports=t=function(o){var r=typeof o;if(r!="object")return r;if(r=i[n.call(o)],r=="object")return o instanceof Map?"map":o instanceof Set?"set":"object";if(r)return r;if(o instanceof a)switch(o.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}});eh.types;var pn={};pn.number=function(e,t){return e!==e&&t!==t},pn.function=function(e,t,n){return e.toString()===t.toString()&&pn.object(e,t,n)&&wd(e.prototype,t.prototype)},pn.date=function(e,t){return+e==+t},pn.regexp=function(e,t){return e.toString()===t.toString()},pn.element=function(e,t){return e.outerHTML===t.outerHTML},pn.textnode=function(e,t){return e.textContent===t.textContent},pn.arguments=pn["bit-array"]=pn.array=hv(aqe),pn.object=hv(iqe);var bv=wd,mqe=function(e){return oqe(e)&&!rqe(e)},bqe=typeof Symbol=="function"&&Symbol.for,yqe=bqe?Symbol.for("react.element"):60103;ms.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,a){return ms(n,a,t)},{})};var zl=ms,cg=g.createContext(),yv=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||t[n]===null||typeof t[n]!="object"&&typeof t[n]!="function"||Object.isFrozen(t[n])||e(t[n])}),t},vqe={masterSpinnerFinished:!1},kqe=function(){function e(t){_t(this,e),this.state=yv(zl(vqe,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return It(e,[{key:"setStoreState",value:function(t,n){this.state=yv(zl(this.state,t)),this.updateSubscribers(n)}},{key:"getStoreState",value:function(){return zl({},this.state)}},{key:"subscribe",value:function(t){this.subscriptions.push(t)}},{key:"unsubscribe",value:function(t){var n=this.subscriptions.indexOf(t);n!==-1&&this.subscriptions.splice(n,1)}},{key:"updateSubscribers",value:function(t){this.subscriptions.forEach(function(n){return n()}),typeof t=="function"&&t(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(t){Object.keys(this.masterSpinnerSubscriptions).indexOf(t)===-1&&(this.masterSpinnerSubscriptions[t]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(t){return Object.keys(this.masterSpinnerSubscriptions).indexOf(t)!==-1&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[t])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(t){this.masterSpinnerSubscriptions[t].success=!0,this.masterSpinnerSubscriptions[t].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(t){this.masterSpinnerSubscriptions[t].error=!0,this.masterSpinnerSubscriptions[t].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var t=this;return Object.keys(this.masterSpinnerSubscriptions).filter(function(n){return t.masterSpinnerSubscriptions[n].complete!==!0}).length===0}}]),e}(),Sqe=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],fl,wqe=(fl=function(e){function t(a){var i;if(_t(this,t),i=n.call(this,a),a.isIntrinsicHeight&&a.orientation!=="horizontal")throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var o={currentSlide:a.currentSlide,disableAnimation:a.disableAnimation,disableKeyboard:a.disableKeyboard,hasMasterSpinner:a.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:a.interval,isPageScrollLocked:a.isPageScrollLocked,isPlaying:a.isPlaying,lockOnWindowScroll:a.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:a.naturalSlideHeight,naturalSlideWidth:a.naturalSlideWidth,orientation:a.orientation,playDirection:a.playDirection,privateUnDisableAnimation:!1,slideSize:uv(a.totalSlides,a.visibleSlides),slideTraySize:fv(a.totalSlides,a.visibleSlides),step:a.step,dragStep:a.dragStep,totalSlides:a.totalSlides,touchEnabled:a.touchEnabled,dragEnabled:a.dragEnabled,visibleSlides:a.visibleSlides,infinite:a.infinite,isIntrinsicHeight:a.isIntrinsicHeight};return i.carouselStore=new kqe(o),i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidUpdate",value:function(a){var i=this,o={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(r){a[r]!==i.props[r]&&(o[r]=i.props[r])}),this.props.currentSlide!==a.currentSlide&&!this.props.disableAnimation&&(o.disableAnimation=!0,o.privateUnDisableAnimation=!0),this.props.totalSlides===a.totalSlides&&this.props.visibleSlides===a.visibleSlides||(o.slideSize=uv(this.props.totalSlides,this.props.visibleSlides),o.slideTraySize=fv(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(o.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(o).length>0&&this.carouselStore.setStoreState(o)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var a=this.props,i=(a.children,a.className,a.currentSlide,a.disableAnimation,a.disableKeyboard,a.hasMasterSpinner,a.interval,a.isPageScrollLocked,a.isPlaying,a.lockOnWindowScroll,a.naturalSlideHeight,a.naturalSlideWidth,a.orientation,a.playDirection,a.step,a.dragStep,a.tag),o=(a.totalSlides,a.touchEnabled,a.dragEnabled,a.visibleSlides,a.infinite,a.isIntrinsicHeight,Tt(a,Sqe)),r=ut(["carousel",this.props.className]);return g.createElement(i,dt({className:r},o),g.createElement(cg.Provider,{value:this.carouselStore},this.props.children))}}]),t}(g.Component),Ke(fl,"propTypes",{children:Mt.children.isRequired,className:j.string,currentSlide:j.number,disableAnimation:j.bool,disableKeyboard:j.bool,hasMasterSpinner:j.bool,interval:j.number,isPageScrollLocked:j.bool,isPlaying:j.bool,lockOnWindowScroll:j.bool,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,orientation:Mt.orientation,playDirection:Mt.direction,step:j.number,dragStep:j.number,tag:j.string,totalSlides:j.number.isRequired,touchEnabled:j.bool,dragEnabled:j.bool,visibleSlides:j.number,infinite:j.bool,isIntrinsicHeight:j.bool}),Ke(fl,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),fl);cg.Consumer;var vv=Zn(Jf,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),xqe={buttonFirst:"buttonFirst___2rhFr"},$qe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],hl,Cqe=(hl=function(e){function t(){var a;return _t(this,t),a=n.call(this),a.handleOnClick=a.handleOnClick.bind(je(a)),a}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick;o.setStoreState({currentSlide:0,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.totalSlides,Tt(a,$qe)),l=ut([xqe.buttonFirst,"carousel__first-button",i]),d=r!==null?r:o===0;return g.createElement("button",dt({type:"button","aria-label":"first",className:l,onClick:this.handleOnClick,disabled:d},s),this.props.children)}}]),t}(g.Component),Ke(hl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired}),Ke(hl,"defaultProps",{className:null,disabled:null,onClick:null}),hl);Zn(Cqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}});var Tqe={buttonLast:"buttonLast___2yuh0"},Lqe=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],pl,Aqe=(pl=function(e){function t(){var a;return _t(this,t),a=n.call(this),a.handleOnClick=a.handleOnClick.bind(je(a)),a}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick,s=i.totalSlides,l=i.visibleSlides;o.setStoreState({currentSlide:s-l,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.totalSlides),l=a.visibleSlides,d=Tt(a,Lqe),u=ut([Tqe.buttonLast,"carousel__last-button",i]),f=r!==null?r:o>=s-l;return g.createElement("button",dt({type:"button","aria-label":"last",className:u,onClick:this.handleOnClick,disabled:f},d),this.props.children)}}]),t}(g.Component),Ke(pl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),Ke(pl,"defaultProps",{className:null,disabled:null,onClick:null}),pl);Zn(Aqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}});var Nqe={buttonNext:"buttonNext___2mOCa"},Eqe=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],gl,Pqe=(gl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.currentSlide,r=i.onClick,s=i.step,l=i.carouselStore,d=i.infinite,u=i.totalSlides-i.visibleSlides,f=s+o,h=Math.min(f,u);d&&(h=u===o?0:h),l.setStoreState({currentSlide:h,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.step,a.totalSlides),l=a.visibleSlides,d=a.infinite,u=Tt(a,Eqe),f=ut([Nqe.buttonNext,"carousel__next-button",i]),h=t.setDisabled(r,o,l,s,d);return g.createElement("button",dt({type:"button","aria-label":"next",className:f,onClick:this.handleOnClick,disabled:h},u),this.props.children)}}],[{key:"setDisabled",value:function(a,i,o,r,s){return a!==null?a:i>=r-o&&!s}}]),t}(g.PureComponent),Ke(gl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),Ke(gl,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),gl),kv=Zn(Pqe,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),Oqe={buttonNext:"buttonNext___3Lm3s"},Fqe=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],ml,jqe=(ml=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},i!==null&&i.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.childrenPaused),o=a.childrenPlaying,r=a.className,s=a.isPlaying,l=(a.onClick,Tt(a,Fqe)),d=ut([Oqe.buttonNext,"carousel__play-button",r]);return g.createElement("button",dt({type:"button","aria-label":"play",className:d,onClick:this.handleOnClick},l),s&&o,!s&&i,this.props.children)}}]),t}(g.PureComponent),Ke(ml,"propTypes",{carouselStore:j.object.isRequired,children:j.node,childrenPaused:j.node,childrenPlaying:j.node,className:j.string,isPlaying:j.bool.isRequired,onClick:j.func}),Ke(ml,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),ml);Zn(jqe,function(e){return{isPlaying:e.isPlaying}});var Sv={dot:"dot___3c3SI"},Mqe=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],bl,Rqe=(bl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnClick=i.handleOnClick.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"handleOnClick",value:function(a){var i=this.props,o=i.carouselStore,r=i.onClick,s=i.slide,l=i.totalSlides,d=i.visibleSlides,u=s>=l-d?l-d:s;o.setStoreState({currentSlide:u,isPlaying:!1},r!==null&&r.call(this,a))}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.className),o=a.currentSlide,r=a.disabled,s=(a.onClick,a.selected),l=a.slide,d=(a.totalSlides,a.visibleSlides),u=Tt(a,Mqe),f=l>=o&&l<o+d,h=typeof s=="boolean"?s:f,p=f===!0,b=typeof r=="boolean"?r:p,m=ut([Sv.dot,h&&Sv.dotSelected,"carousel__dot","carousel__dot--".concat(l),h&&"carousel__dot--selected",i]);return g.createElement("button",dt({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:m,disabled:b},u),this.props.children)}}]),t}(g.Component),Ke(bl,"propTypes",{carouselStore:j.object.isRequired,children:Mt.children,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,selected:j.bool,slide:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),Ke(bl,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),bl),th=Zn(Rqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),_qe={},Iqe=["renderDots"],Dqe=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],yl,Hqe=(yl=function(e){function t(){return _t(this,t),n.apply(this,arguments)}nn(t,e);var n=an(t);return It(t,[{key:"renderDots",value:function(){var a=this.props,i=a.currentSlide,o=a.totalSlides,r=a.visibleSlides,s=a.disableActiveDots,l=a.showAsSelectedForCurrentSlideOnly,d=a.renderDots;if(d){var u=this.props;return u.renderDots,d(Tt(u,Iqe))}for(var f=[],h=0;h<o;h+=1){var p=h>=i&&h<i+r,b=h===i,m=l?b:p,y=h>=o-r?o-r:h;f.push(g.createElement(th,{key:h,slide:y,selected:m,disabled:!!s&&m},g.createElement("span",{className:ut["carousel__dot-group-dot"]},this.props.dotNumbers&&h+1)))}return f}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children),o=a.className,r=(a.currentSlide,a.dotNumbers,a.totalSlides,a.visibleSlides,a.disableActiveDots,a.showAsSelectedForCurrentSlideOnly,a.renderDots,Tt(a,Dqe)),s=ut([_qe.DotGroup,"carousel__dot-group",o]);return g.createElement("div",dt({className:s},r),this.renderDots(),i)}}]),t}(g.Component),Ke(yl,"propTypes",{children:Mt.children,className:j.string,currentSlide:j.number.isRequired,carouselStore:j.object.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,dotNumbers:j.bool,disableActiveDots:j.bool,showAsSelectedForCurrentSlideOnly:j.bool,renderDots:j.func}),Ke(yl,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),yl);Zn(Hqe,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}});var Vr={image:"image___xtQGH"},zqe=["src","alt"],Bqe=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],nh=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.state={imageStatus:wu},i.handleImageLoad=i.handleImageLoad.bind(je(i)),i.handleImageError=i.handleImageError.bind(je(i)),i.image=null,i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(a){a.src!==this.props.src&&(t.unsubscribeMasterSpinner(a),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:wu}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var a=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=a}}},{key:"handleImageLoad",value:function(a){this.setState({imageStatus:gv}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(a)}},{key:"handleImageError",value:function(a){this.setState({imageStatus:mv}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(a)}},{key:"tempTag",value:function(){return this.props.tag==="img"?"div":this.props.tag}},{key:"customRender",value:function(a){return typeof this.props[a]=="function"?this.props[a]():this.props.children}},{key:"renderLoading",value:function(a){var i=this.tempTag(),o=ut([Vr.image,Vr.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return g.createElement(i,dt({className:o},a),this.customRender("renderLoading"))}},{key:"renderError",value:function(a){var i=this.tempTag(),o=ut([Vr.image,Vr.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return g.createElement(i,dt({className:o},a),this.customRender("renderError"))}},{key:"renderSuccess",value:function(a){var i=this.props,o=i.style,r=i.tag,s=ut([Vr.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),l=dt({},o),d=a;if(r!=="img"){var u=a.src;a.alt,d=Tt(a,zqe),l=dt({},o,{backgroundImage:'url("'.concat(u,'")'),backgroundSize:"cover"})}return g.createElement(r,dt({className:s,style:l},d),this.props.children)}},{key:"render",value:function(){var a=this.props,i=(a.carouselStore,a.children,a.className,a.hasMasterSpinner,a.isBgImage,a.onError,a.onLoad,a.renderError,a.renderLoading,a.style,a.tag,Tt(a,Bqe));switch(this.state.imageStatus){case wu:return this.renderLoading(i);case gv:return this.renderSuccess(i);case mv:return this.renderError(i);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(a){a.hasMasterSpinner&&a.carouselStore.subscribeMasterSpinner(a.src)}},{key:"unsubscribeMasterSpinner",value:function(a){a.hasMasterSpinner&&a.carouselStore.unsubscribeMasterSpinner(a.src)}}]),t}(g.Component);Ke(nh,"propTypes",{alt:j.string,carouselStore:j.object.isRequired,children:Mt.children,className:j.string,hasMasterSpinner:j.bool.isRequired,isBgImage:Mt.isBgImage,onError:j.func,onLoad:j.func,renderError:j.func,renderLoading:j.func,src:j.string.isRequired,style:j.object,tag:j.string}),Ke(nh,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var wv=Zn(nh,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),Wqe={spinner:"spinner___27VUp"},Vqe=["className"],vl,tve=(vl=function(e){function t(){return _t(this,t),n.apply(this,arguments)}nn(t,e);var n=an(t);return It(t,[{key:"render",value:function(){var a=this.props,i=a.className,o=Tt(a,Vqe),r=ut([Wqe.spinner,"carousel__spinner",i]);return g.createElement("div",dt({className:r},o))}}]),t}(g.PureComponent),Ke(vl,"propTypes",{className:j.string}),Ke(vl,"defaultProps",{className:null}),vl),co={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},Gqe=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],kl,Uqe=2,Kqe=3,qqe=(kl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.state={isImageLoading:!0,isImageLoadingError:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},i.tpCache={},i.handleImageComplete=i.handleImageComplete.bind(je(i)),i.handleImageLoadError=i.handleImageLoadError.bind(je(i)),i.handleOnMouseMove=i.handleOnMouseMove.bind(je(i)),i.handleOnMouseOut=i.handleOnMouseOut.bind(je(i)),i.handleOnMouseOver=i.handleOnMouseOver.bind(je(i)),i.handleOnTouchEnd=i.handleOnTouchEnd.bind(je(i)),i.handleOnTouchMove=i.handleOnTouchMove.bind(je(i)),i.handleOnTouchStart=i.handleOnTouchStart.bind(je(i)),i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidUpdate",value:function(a,i){i.isZooming===!1&&this.state.isZooming===!0&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),i.isZooming===!0&&this.state.isZooming===!1&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(a){this.setState({isImageLoading:!1}),this.props&&this.props.onLoad&&this.props.onLoad(a)}},{key:"handleImageLoadError",value:function(a){this.setState({isImageLoadingError:!0,isImageLoading:!1}),this.props&&this.props.onError&&this.props.onError(a)}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:Uqe})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(a){if(!this.state.isZooming){var i=mn(a.nativeEvent.offsetX/a.target.offsetWidth*100),o=mn(a.nativeEvent.offsetY/a.target.offsetHeight*100);this.setState({x:i,y:o})}}},{key:"handleOnTouchStart",value:function(a){var i=this;this.props.isPinchZoomEnabled&&(Su(a.targetTouches).forEach(function(o){i.tpCache[o.identifier]={clientX:o.clientX,clientY:o.clientY}}),this.setState(function(o){return{isZooming:o.isZooming||Object.keys(i.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(a){var i=this;if(this.state.isZooming){a.persist();var o=Su(a.targetTouches).filter(function(y){return i.tpCache[y.identifier]}).slice(0,2);if(o.length===2){a.stopPropagation();var r=a.target.getBoundingClientRect(),s=o[0].identifier,l=o[1].identifier,d={x1:this.tpCache[s].clientX,y1:this.tpCache[s].clientY,x2:this.tpCache[l].clientX,y2:this.tpCache[l].clientY};d.distance=t.distanceBetweenTwoTouches(Fo({},d));var u=t.midpointBetweenTwoTouches(Fo({},d));d.cx=u.x,d.cy=u.y;var f={x1:o[0].clientX,y1:o[0].clientY,x2:o[1].clientX,y2:o[1].clientY};f.distance=t.distanceBetweenTwoTouches(Fo({},f));var h=t.midpointBetweenTwoTouches(Fo({},f));f.cx=h.x,f.cy=h.y;var p=mn(Hl({min:0,max:100,x:(f.cx-r.left)/r.width*100})),b=mn(Hl({min:0,max:100,x:(f.cy-r.top)/r.height*100})),m=function(y){return Hl({min:1,max:Kqe,x:y.scale+(f.distance-d.distance)/100})};this.setState(function(y){return{isZooming:m(y)!==1,scale:m(y),x:p,y:b}})}}}},{key:"handleOnTouchEnd",value:function(a){var i=this;this.props.isPinchZoomEnabled&&(Su(a.changedTouches).forEach(function(o){delete i.tpCache[o.identifier]}),Object.keys(this.tpCache).length===0&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var a=this.props.spinner;return g.createElement("div",{className:ut([co.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},a&&a(),!a&&g.createElement(tve,null))}return null}},{key:"render",value:function(){var a=this.props,i=a.alt,o=a.bgImageProps,r=a.bgImageTag,s=(a.carouselStore,a.className),l=a.imageClassName,d=a.overlayClassName,u=(a.isPinchZoomEnabled,a.spinner,a.src),f=a.srcZoomed,h=a.tag,p=Tt(a,Gqe),b=ut([co.container,s]),m=ut([co.image,"carousel__zoom-image",l]),y=ut([co.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&co.hover,this.state.isZooming&&co.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",d]),S={};return(this.state.isHovering||this.state.isZooming)&&(S.transformOrigin="".concat(this.state.x," ").concat(this.state.y),S.transform="scale(".concat(this.state.scale,")")),g.createElement(h,dt({className:b},p),g.createElement(wv,dt({alt:i,className:m,tag:r,src:u,onLoad:this.handleImageComplete,onError:this.handleImageLoadError},o)),g.createElement(wv,{className:y,tag:"div",src:f||u,style:S,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(a){var i=a.x1,o=a.y1;return{x:(i+a.x2)/2,y:(o+a.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(a){var i=a.x1,o=a.y1,r=a.x2,s=a.y2;return Math.sqrt(Math.pow(r-i,2)+Math.pow(s-o,2))}}]),t}(g.Component),Ke(kl,"propTypes",{alt:j.string,bgImageProps:j.object,bgImageTag:j.string,carouselStore:j.object.isRequired,className:j.string,imageClassName:j.string,overlayClassName:j.string,spinner:j.func,onLoad:j.func,onError:j.func,src:j.string.isRequired,srcZoomed:j.string,tag:j.string,isPinchZoomEnabled:j.bool}),Ke(kl,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,onLoad:null,onError:null,srcZoomed:null,tag:"div"}),kl);Zn(qqe,function(){return{}});var Sl={slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"},Yqe=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tag","totalSlides","visibleSlides","isIntrinsicHeight"],wl,Zqe=(wl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.handleOnFocus=i.handleOnFocus.bind(je(i)),i.handleOnBlur=i.handleOnBlur.bind(je(i)),i.state={focused:!1},i}nn(t,e);var n=an(t);return It(t,[{key:"isVisible",value:function(){var a=this.props,i=a.currentSlide,o=a.index,r=a.visibleSlides;return o>=i&&o<i+r}},{key:"handleOnFocus",value:function(a){var i=this,o=this.props.onFocus;this.setState({focused:!0},function(){o!==null&&o.call(i,a)})}},{key:"handleOnBlur",value:function(a){var i=this,o=this.props.onBlur;this.setState({focused:!1},function(){o!==null&&o.call(i,a)})}},{key:"renderFocusRing",value:function(){return this.state.focused?g.createElement("div",{className:[Sl.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var a=this,i=this.props,o=i.ariaLabel,r=(i.carouselStore,i.children,i.className),s=i.classNameHidden,l=i.classNameVisible,d=(i.currentSlide,i.index,i.innerClassName),u=i.innerTag,f=i.naturalSlideHeight,h=i.naturalSlideWidth,p=(i.onBlur,i.onFocus,i.orientation),b=i.slideSize,m=i.style,y=i.tag,S=i.totalSlides,w=(i.visibleSlides,i.isIntrinsicHeight),C=Tt(i,Yqe),$={};p==="horizontal"?($.width=mn(b),$.paddingBottom=mn(100*f/(h*S))):($.width=mn(100),$.paddingBottom=mn(100*f/h));var x={};w&&(p==="horizontal"?$.height="unset":$.width="unset",$.paddingBottom="unset",x.position="unset");var L=dt({},$,m),A=this.isVisible(),E=ut([Sl.slide,p==="horizontal"&&Sl.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",A&&l,A&&"carousel__slide--visible",!A&&s,!A&&"carousel__slide--hidden",r]),z=ut([Sl.slideInner,"carousel__inner-slide",d]);return g.createElement(y,dt({ref:function(_){a.tagRef=_},"aria-selected":this.isVisible(),"aria-label":o,role:this.props.role,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:E,style:L},C),g.createElement(u,{ref:function(_){a.innerTagRef=_},className:z,style:x},this.props.children,this.renderFocusRing()))}}]),t}(g.PureComponent),Ke(wl,"propTypes",{ariaLabel:j.string,carouselStore:j.object,children:Mt.children,className:j.string,classNameHidden:j.string,classNameVisible:j.string,currentSlide:j.number.isRequired,index:j.number.isRequired,innerClassName:j.string,innerTag:j.string,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onBlur:j.func,onFocus:j.func,orientation:Mt.orientation.isRequired,slideSize:j.number.isRequired,role:j.string,style:j.object,tag:j.string,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,isIntrinsicHeight:j.bool}),Ke(wl,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,role:"option",style:{},tag:"div",isIntrinsicHeight:!1}),wl),xv=Zn(Zqe,function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Xqe=function(){function e(){_t(this,e)}return It(e,[{key:"parents",value:function(t,n){return t.parentNode===null?n:this.parents(t.parentNode,n.concat([t]))}},{key:"scrollParent",value:function(t){for(var n=this.parents(t.parentNode,[]),a=0;a<n.length;a+=1)if(e.scroll(n[a]))return n[a];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(t,n){return getComputedStyle(t,null).getPropertyValue(n)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(t){return t instanceof HTMLElement||t instanceof SVGElement}}]),e}(),Rn={horizontalSlider:"horizontalSlider___281Ls",touchDisabled:"touchDisabled___2qs4y",verticalSlider:"verticalSlider___34ZFD",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Qqe=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],Jqe=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],eYe=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],xl,tYe=(xl=function(e){function t(a){var i;return _t(this,t),i=n.call(this,a),i.getSliderRef=i.getSliderRef.bind(je(i)),i.handleDocumentScroll=i.handleDocumentScroll.bind(je(i)),i.handleOnClickCapture=i.handleOnClickCapture.bind(je(i)),i.handleOnKeyDown=i.handleOnKeyDown.bind(je(i)),i.handleOnMouseDown=i.handleOnMouseDown.bind(je(i)),i.handleOnMouseMove=i.handleOnMouseMove.bind(je(i)),i.handleOnMouseUp=i.handleOnMouseUp.bind(je(i)),i.handleOnTouchCancel=i.handleOnTouchCancel.bind(je(i)),i.handleOnTouchEnd=i.handleOnTouchEnd.bind(je(i)),i.handleOnTouchMove=i.handleOnTouchMove.bind(je(i)),i.handleOnTouchStart=i.handleOnTouchStart.bind(je(i)),i.playBackward=i.playBackward.bind(je(i)),i.playForward=i.playForward.bind(je(i)),i.callCallback=i.callCallback.bind(je(i)),i.blockWindowScroll=i.blockWindowScroll.bind(je(i)),i.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},i.interval=null,i.isDocumentScrolling=null,i.moveTimer=null,i.originalOverflow=null,i.scrollParent=null,i.scrollStopTimer=null,i}nn(t,e);var n=an(t);return It(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(a){!a.isPlaying&&this.props.isPlaying&&this.play(),a.isPlaying&&!this.props.isPlaying&&this.stop(),!a.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),a.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),a.privateUnDisableAnimation===!1&&this.props.privateUnDisableAnimation===!0&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(a){if(this.sliderTrayElement=a,a&&window){var i=a.closest(".carousel");i&&(this.rtl=window.getComputedStyle(i,null).getPropertyValue("direction")==="rtl")}}},{key:"fakeOnDragStart",value:function(a){var i=a.screenX,o=a.screenY,r=a.touchDrag,s=r!==void 0&&r,l=a.mouseDrag,d=l!==void 0&&l;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:s,isBeingMouseDragged:d,startX:i,startY:o})}},{key:"fakeOnDragMove",value:function(a,i){var o=this;window.cancelAnimationFrame.call(window,this.moveTimer),this.moveTimer=window.requestAnimationFrame.call(window,function(){o.setState(function(r){return{deltaX:(a-r.startX)*(o.rtl?-1:1),deltaY:i-r.startY,preventingVerticalScroll:Math.abs(i-r.startY)<=o.props.verticalPixelThreshold&&Math.abs(a-r.startX)>=o.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(a,i){var o=this.props.trayProps;o&&typeof o[a]=="function"&&(i.persist(),o[a](i))}},{key:"handleOnMouseDown",value:function(a){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",a);a.preventDefault(),this.fakeOnDragStart({screenX:a.screenX,screenY:a.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",a)}},{key:"handleOnMouseMove",value:function(a){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),a.preventDefault(),this.fakeOnDragMove(a.screenX,a.screenY))}},{key:"handleOnMouseUp",value:function(a){this.state.isBeingMouseDragged&&(a.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(a){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",a);a.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",a)}},{key:"handleOnTouchStart",value:function(a){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",a);this.props.orientation==="vertical"&&a.preventDefault();var i=a.targetTouches[0];this.fakeOnDragStart({screenX:i.screenX,screenY:i.screenY,touchDrag:!0}),this.callCallback("onTouchStart",a)}},{key:"handleDocumentScroll",value:function(){var a=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){a.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(a){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",a);var i=a.targetTouches[0];i&&(this.fakeOnDragMove(i.screenX,i.screenY),this.callCallback("onTouchMove",a))}},{key:"forward",value:function(){var a=this.props,i=a.currentSlide,o=a.step,r=a.totalSlides,s=a.visibleSlides;return Math.min(i+o,r-s)}},{key:"backward",value:function(){var a=this.props,i=a.currentSlide,o=a.step;return Math.max(i-o,0)}},{key:"handleOnKeyDown",value:function(a){var i=a.keyCode,o=this.props,r=o.carouselStore,s=o.currentSlide,l=o.disableKeyboard,d=o.totalSlides,u=o.visibleSlides,f={};l===!0||d<=u||(i===37&&(a.preventDefault(),this.focus(),f.currentSlide=Math.max(0,s-1),f.isPlaying=!1),i===39&&(a.preventDefault(),this.focus(),f.currentSlide=Math.min(d-u,s+1),f.isPlaying=!1),r.setStoreState(f))}},{key:"playForward",value:function(){var a=this.props,i=a.carouselStore,o=a.currentSlide;i.setStoreState({currentSlide:this.forward()===o?0:this.forward()})}},{key:"playBackward",value:function(){var a=this.props,i=a.carouselStore,o=a.currentSlide,r=a.totalSlides,s=a.visibleSlides;i.setStoreState({currentSlide:this.backward()===o?r-s:this.backward()})}},{key:"play",value:function(){var a=this.props.playDirection;this.interval=setInterval(a==="forward"?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var a=new Xqe;this.scrollParent=a.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(a){this.state.preventingVerticalScroll&&(a.preventDefault(),a.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var a=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),i=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,a,this.props.dragStep),o=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),r=Hl({min:0,max:o,x:this.props.currentSlide+i});this.props.infinite&&(this.props.currentSlide>=o&&i>0&&(r=0),this.props.currentSlide===0&&i<0&&(r=o)),this.props.carouselStore.setStoreState({currentSlide:r})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(a){this.endTouchMove(),this.callCallback("onTouchEnd",a)}},{key:"handleOnTouchCancel",value:function(a){this.endTouchMove(),this.callCallback("onTouchCancel",a)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var a=this.props,i=a.hasMasterSpinner,o=a.masterSpinnerFinished,r=a.spinner;return i&&!o?(typeof this.props.onMasterSpinner=="function"&&this.props.onMasterSpinner(),g.createElement("div",{className:ut([Rn.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&g.createElement(tve,null))):null}},{key:"render",value:function(){var a=this,i=this.props,o=i.ariaLabel,r=(i.carouselStore,i.children),s=i.className,l=i.classNameAnimation,d=i.classNameTray,u=i.classNameTrayWrap,f=i.currentSlide,h=i.disableAnimation,p=(i.disableKeyboard,i.dragEnabled,i.hasMasterSpinner,i.interval,i.isPageScrollLocked,i.isPlaying,i.lockOnWindowScroll,i.masterSpinnerFinished,i.moveThreshold,i.naturalSlideHeight),b=i.naturalSlideWidth,m=(i.onMasterSpinner,i.orientation),y=(i.playDirection,i.privateUnDisableAnimation,i.slideSize),S=i.slideTraySize,w=(i.spinner,i.style),C=(i.totalSlides,i.touchEnabled),$=i.trayProps,x=i.trayTag,L=i.visibleSlides,A=i.isIntrinsicHeight,E=Tt(i,Qqe),z=dt({},w),_={};m==="vertical"&&(_.height=0,_.paddingBottom=mn(100*p*L/b),_.width=mn(100));var B={},U=mn(y*f*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||h)&&(B.transition="none"),A&&(B.display="flex",B.alignItems="stretch"),m==="vertical"?(B.transform="translateY(".concat(U,") translateY(").concat(this.state.deltaY,"px)"),B.width=mn(100),B.flexDirection="column"):(B.width=mn(S),B.transform="translateX(".concat(U,") translateX(").concat(this.state.deltaX,"px)"),B.flexDirection="row");var ee=ut([m==="vertical"?Rn.verticalSlider:Rn.horizontalSlider,!C&&Rn.touchDisabled,"carousel__slider",m==="vertical"?"carousel__slider--vertical":"carousel__slider--horizontal",s]),Y=ut([Rn.sliderTrayWrap,"carousel__slider-tray-wrapper",m==="vertical"?Rn.verticalSlideTrayWrap:Rn.horizontalTrayWrap,m==="vertical"?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",u]),re=ut([Rn.sliderTray,l||Rn.sliderAnimation,"carousel__slider-tray",m==="vertical"?Rn.verticalTray:Rn.horizontalTray,m==="vertical"?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",d]),Z=(E.dragStep,E.step,E.infinite,E.preventVerticalScrollOnTouch,E.preventingVerticalScroll,E.horizontalPixelThreshold,E.verticalPixelThreshold,Tt(E,Jqe)),G=($.className,$.onClickCapture,$.onMouseDown,$.onTouchCancel,$.onTouchEnd,$.onTouchMove,$.onTouchStart,$.ref,$.style,Tt($,eYe));return g.createElement("div",dt({ref:function(J){a.sliderElement=J},className:ee,"aria-live":"polite","aria-label":o,role:this.props.role,style:z,onKeyDown:this.handleOnKeyDown},Z),g.createElement("div",{className:Y,style:_},g.createElement(x,dt({ref:this.getSliderRef,className:re,style:B,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},G),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(a,i,o,r){return(a==="horizontal"?i:o)/r}},{key:"slidesMoved",value:function(a,i,o,r,s,l){var d=i==="horizontal"?o:r,u=Math.abs(Math.round(d/s)),f=Math.abs(d)>=s*a?l:0,h=Math.max(f,u);if(d<0)return h;var p=-h;return p===0?0:p}}]),t}(g.Component),Ke(xl,"propTypes",{ariaLabel:j.string,carouselStore:j.object.isRequired,children:j.node.isRequired,className:j.string,classNameAnimation:j.string,classNameTray:j.string,classNameTrayWrap:j.string,currentSlide:j.number.isRequired,disableAnimation:j.bool,disableKeyboard:j.bool,dragEnabled:j.bool.isRequired,dragStep:j.number,hasMasterSpinner:j.bool.isRequired,infinite:j.bool,interval:j.number.isRequired,isPageScrollLocked:j.bool.isRequired,isPlaying:j.bool.isRequired,lockOnWindowScroll:j.bool.isRequired,preventVerticalScrollOnTouch:j.bool,horizontalPixelThreshold:j.number,verticalPixelThreshold:j.number,masterSpinnerFinished:j.bool.isRequired,moveThreshold:j.number,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onMasterSpinner:j.func,orientation:Mt.orientation.isRequired,playDirection:Mt.direction.isRequired,privateUnDisableAnimation:j.bool,role:j.string,slideSize:j.number.isRequired,slideTraySize:j.number.isRequired,spinner:j.func,step:j.number.isRequired,style:j.object,totalSlides:j.number.isRequired,touchEnabled:j.bool.isRequired,trayProps:j.shape({className:j.string,onClickCapture:j.func,onMouseDown:j.func,onTouchCancel:j.func,onTouchEnd:j.func,onTouchMove:j.func,onTouchStart:j.func,ref:j.shape({}),style:j.string}),trayTag:j.string,visibleSlides:j.number,isIntrinsicHeight:j.bool}),Ke(xl,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,role:"listbox",spinner:null,style:{},trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),xl),$v=Zn(tYe,function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}});const xu="https://placehold.co/1000x570/png",uo=({children:e,category:t})=>{const n=lr(),a=n==null?void 0:n.isDarkBackground,i=t==="slide"?a?"bg-white disabled:bg-gray-400":"bg-palette-primary-dark disabled:bg-gray-400":a?"text-white disabled:text-gray-400":"text-palette-primary-dark disabled:text-gray-400";return g.cloneElement(e,{className:lt(e.props.className,i)})},nYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.heading","Heading"),{type:"entityField",filter:{types:["type.string"]}}),images:T(v("fields.images","Images"),{type:"entityField",filter:{types:["type.image"],includeListsOnly:!0}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),image:T(v("fields.image","Image"),{type:"object",objectFields:rr})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},aYe=({data:e,styles:t})=>{const{t:n,i18n:a}=he(),i=a.language,o=ve(),r=me(we(o,e.heading,i),a.language),l=(we(o,e.images,i)||[]).filter(u=>!!u).map(u=>({image:{...u,height:"height"in u&&u.height?u.height:570,width:"width"in u&&u.width?u.width:1e3},aspectRatio:t.image.aspectRatio,width:t.image.width||1e3})),d={left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align];return c.jsxs(De,{"aria-label":n("photoGallerySection","Photo Gallery Section"),background:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${d}`,children:c.jsx(Ue,{level:t.heading.level,children:r})})}),l&&l.length>0&&c.jsxs(wqe,{className:"flex flex-col gap-8",naturalSlideWidth:100,naturalSlideHeight:100,totalSlides:l.length,isIntrinsicHeight:!0,children:[c.jsx("div",{className:"hidden md:flex justify-center w-full",children:c.jsxs("div",{className:"flex items-center gap-2",style:{width:`${(t.image.width||1e3)+96}px`,maxWidth:"100%",minWidth:"fit-content"},children:[c.jsx(uo,{category:"arrow",children:c.jsx(vv,{className:"my-auto pointer-events-auto w-8 h-8 sm:w-10 sm:h-10 disabled:cursor-default",children:c.jsx(Yf,{className:"h-10 w-fit"})})}),c.jsxs("div",{className:"flex flex-col gap-y-8 items-center w-auto",children:[c.jsx(le,{displayName:M("fields.images","Images"),fieldId:e.images.field,constantValueEnabled:e.images.constantValueEnabled,children:c.jsx($v,{className:"w-auto",style:{width:t.image.width||1e3},children:l.map((u,f)=>c.jsx(xv,{index:f,children:c.jsx("div",{className:"flex justify-center",children:c.jsx(vn,{image:u.image,aspectRatio:u.aspectRatio,width:u.width,className:"rounded-image-borderRadius"})})},f))})}),c.jsx("div",{className:"hidden md:flex justify-center",children:l.map((u,f)=>c.jsx("div",{className:"w-16 flex justify-center",children:c.jsx(uo,{category:"slide",children:c.jsx(th,{slide:f,className:"text-center w-16 mx-2 basis-0 flex-grow h-1 rounded-full disabled:cursor-default after:content-[' '] after:py-2 after:block"})})},f))})]}),c.jsx(uo,{category:"arrow",children:c.jsx(kv,{className:"pointer-events-auto w-8 h-8 sm:w-10 sm:h-10 disabled:cursor-default my-auto",children:c.jsx(Zf,{className:"h-10 w-fit"})})})]})}),c.jsxs("div",{className:"flex flex-col gap-y-8 items-center justify-center md:hidden",children:[c.jsx(le,{displayName:M("fields.images","Images"),fieldId:e.images.field,constantValueEnabled:e.images.constantValueEnabled,children:c.jsx($v,{children:l.map((u,f)=>c.jsx(xv,{index:f,children:c.jsx("div",{className:"flex justify-center",children:c.jsx(vn,{image:u.image,aspectRatio:u.aspectRatio,width:u.width})})},f))})}),c.jsxs("div",{className:"flex justify-between items-center px-4 gap-6 w-full",children:[c.jsx(uo,{category:"arrow",children:c.jsx(vv,{className:"pointer-events-auto w-8 h-8 disabled:cursor-default",children:c.jsx(Yf,{className:"h-6 w-fit"})})}),c.jsx("div",{className:"flex gap-2 justify-center flex-grow w-full",children:l.map((u,f)=>c.jsx(uo,{category:"slide",children:c.jsx(th,{slide:f,className:" h-1.5 w-full rounded-full disabled:cursor-default"})},f))}),c.jsx(uo,{category:"arrow",children:c.jsx(kv,{className:"pointer-events-auto w-8 h-8 disabled:cursor-default",children:c.jsx(Zf,{className:"h-6 w-fit"})})})]})]})]})]})},nve={label:v("components.photoGallerySection","Photo Gallery Section"),fields:nYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Gallery",hasLocalizedValue:"true"},constantValueEnabled:!0},images:{field:"",constantValue:[{url:xu},{url:xu},{url:xu}],constantValueEnabled:!0}},styles:{backgroundColor:ye.background1.value,heading:{level:2,align:"left"},image:{aspectRatio:1.78}},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(aYe,{...e})})},iYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("div",{ref:a,className:`flex flex-col ${t}`,...n})}),oYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("details",{ref:a,className:`group border-b py-4 last:border-none ${t}`,...n})}),rYe=g.forwardRef(function({className:t="",children:n,...a},i){return c.jsxs("summary",{ref:i,className:`flex cursor-pointer list-none items-center justify-between ${t}`,...a,children:[c.jsx("span",{children:n}),c.jsx("svg",{className:"ml-4 h-5 w-5 flex-shrink-0 transition-transform duration-300 group-open:rotate-180",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]})}),sYe=g.forwardRef(function({className:t="",...n},a){return c.jsx("div",{ref:a,className:`pt-4 ${t}`,...n})}),lYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.sectionHeading","Section Heading"),{type:"entityField",filter:{types:["type.string"]}}),faqs:T(v("fields.faqs","FAQs"),{type:"entityField",filter:{types:[Ia.FAQSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})},cYe=({data:e,styles:t})=>{var d,u,f,h;const{i18n:n}=he(),a=n.language,i=ve(),o=me(we(i,e==null?void 0:e.heading,a),n.language),r=we(i,e==null?void 0:e.faqs,a),s=Pe.useAnalytics(),l=(d=t==null?void 0:t.heading)!=null&&d.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t.backgroundColor,className:"flex flex-col gap-8 md:gap-12",children:[o&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${l}`,children:c.jsx(Ue,{level:((u=t==null?void 0:t.heading)==null?void 0:u.level)??2,children:o})})}),(r==null?void 0:r.faqs)&&((f=r.faqs)==null?void 0:f.length)>0&&c.jsx(le,{displayName:M("fields.faqs","FAQs"),fieldId:e==null?void 0:e.faqs.field,constantValueEnabled:e==null?void 0:e.faqs.constantValueEnabled,children:c.jsx(iYe,{children:(h=r==null?void 0:r.faqs)==null?void 0:h.map((p,b)=>c.jsxs(oYe,{"data-ya-action":s!=null&&s.getDebugEnabled()?"EXPAND/COLLAPSE":void 0,"data-ya-eventname":s!=null&&s.getDebugEnabled()?`toggleFAQ${b}`:void 0,onToggle:m=>m.currentTarget.open?s==null?void 0:s.track({action:"EXPAND",eventName:`toggleFAQ${b}`}):s==null?void 0:s.track({action:"COLLAPSE",eventName:`toggleFAQ${b}`}),children:[c.jsx(rYe,{children:c.jsx(Qe,{children:me(p.question,n.language)})}),c.jsx(sYe,{children:c.jsx(le,{displayName:M("fields.answer","Answer"),fieldId:e.faqs.field,constantValueEnabled:e.faqs.constantValueEnabled,children:c.jsx(Qe,{children:fa(p.answer,n.language)})})})]},b))})})]})},ave={label:v("components.faqsSection","FAQs Section"),fields:lYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Frequently Asked Questions",hasLocalizedValue:"true"},constantValueEnabled:!0},faqs:{field:"",constantValue:{faqs:[Rl,Rl,Rl]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background2.value,heading:{level:2,align:"left"}},liveVisibility:!0,analytics:{scope:"faqsSection"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"faqsSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(cYe,{...e})})})}},ive=5,dYe={month:"long",day:"numeric",year:"numeric"},uYe={backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})},fYe=e=>{var S,w,C;const t=ve(),n=(S=t==null?void 0:t._env)==null?void 0:S.YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY;if(!n)return console.warn("Missing YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY, unable to access reviews content endpoint."),c.jsx(c.Fragment,{});const a=Number(t==null?void 0:t.businessId),i=(w=t==null?void 0:t._yext)==null?void 0:w.contentDeliveryAPIDomain,o=t==null?void 0:t.uid,[r,s]=k.useState(1),[l,d]=k.useState({}),{data:u,status:f,isLoading:h}=ipe({queryKey:["reviews",o,r,l[r]],queryFn:async()=>zge({businessId:a,apiKey:n,contentDeliveryAPIDomain:i,entityId:o,limit:ive,pageToken:l[r]}),enabled:!!a&&!!n&&!!i&&!!o});k.useEffect(()=>{var $;($=u==null?void 0:u.response)!=null&&$.nextPageToken&&d(x=>({...x,[r+1]:u.response.nextPageToken}))},[u,r]);const{averageRating:p,reviewCount:b}=lg(t);if(f!=="success"||!h&&b===0)return c.jsx(c.Fragment,{});const m={averageRating:p,reviewCount:b,isLoading:h},y={reviewCount:b,currentPageNumber:r,fetchData:s};return c.jsxs(De,{className:"flex flex-col gap-12",background:e.backgroundColor,children:[c.jsx(hYe,{...m}),u&&c.jsxs(c.Fragment,{children:[c.jsx(pYe,{reviews:(C=u==null?void 0:u.response)==null?void 0:C.docs}),c.jsx(yYe,{...y})]})]})},hYe=e=>{const{averageRating:t,reviewCount:n,isLoading:a}=e,{t:i}=he();return c.jsxs("div",{className:"flex flex-col gap-3",children:[c.jsx(Ue,{level:3,className:"text-center",children:i("recentReviews","Recent Reviews")}),c.jsx("div",{className:"flex flex-row gap-3 items-center justify-center",children:a?c.jsx(Qe,{children:i("loadingReviews","Loading reviews...")}):c.jsx(Sd,{averageRating:t,reviewCount:n})})]})},pYe=({reviews:e})=>e?c.jsx("div",{className:"flex flex-col gap-4",children:e.map((t,n)=>c.jsx(gYe,{index:n,review:t},`review-${n}`))}):c.jsx(c.Fragment,{}),gYe=({review:e,index:t})=>{const n={author:e.authorName,date:e.reviewDate},a={rating:e.rating,...e.content&&{content:e.content},index:t};let i;if(Array.isArray(e.comments)&&e.comments.length>0){const o=e.comments[0].content,r=e.comments[0].commentDate;i={businessName:ve().name||"",content:o,date:r,index:t}}return c.jsx(c.Fragment,{children:c.jsxs("div",{className:"border-t border-gray-400 flex flex-col md:flex-row gap-2 p-4",children:[c.jsx("div",{className:"w-full md:w-1/3",children:c.jsx(ove,{...n})}),c.jsxs("div",{className:"w-full md:w-2/3 flex flex-col gap-8",children:[c.jsx(mYe,{...a}),i&&c.jsx(bYe,{...i})]})]})})},ove=({author:e,date:t})=>{const n=ve();return c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx(Qe,{variant:"lg",className:"font-bold",children:e}),c.jsx(Hs,{date:t,option:Ds.DATE,hideTimeZone:!0,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,locale:n==null?void 0:n.locale,dateFormatOverride:dYe})]})},mYe=({rating:e,content:t,index:n})=>{const a=c.jsx(Sd,{averageRating:e});if(!t)return c.jsx("div",{className:"flex flex-col gap-2",children:a});const i={content:t,preContentElement:a,analyticsName:`review${n}`};return c.jsx(rve,{...i})},bYe=({businessName:e,content:t,date:n,index:a})=>{const{t:i}=he(),o={author:i("responseFrom",`Response from ${e}`,{businessName:e}),date:n},r=c.jsx(ove,{...o}),s={content:t,preContentElement:r,analyticsName:`businessResponse${a}`};return c.jsx(rve,{...s})},rve=({content:e,preContentElement:t,analyticsName:n})=>{const[a,i]=k.useState(!1),[o,r]=k.useState(!1),s=k.useRef(null);return k.useEffect(()=>{s.current&&!a?r(s.current.scrollHeight>s.current.clientHeight):r(!1)},[e,a]),c.jsxs("div",{className:"flex flex-col gap-2",children:[t,c.jsx(Qe,{ref:s,className:`transition-all duration-200 ${a?"":"line-clamp-3"}`,style:{overflowWrap:"anywhere"},children:e}),(o||a)&&c.jsx(vYe,{expanded:a,setExpanded:i,analyticsName:n})]})},yYe=({reviewCount:e,currentPageNumber:t,fetchData:n})=>{const a=Pe.useAnalytics(),i=lr(),o=Math.ceil(e/ive);if(o<=1)return c.jsx(c.Fragment,{});const r=`cursor-pointer ${i!=null&&i.isDarkBackground?"text-white":"text-palette-primary-dark"}`,s="opacity-50 cursor-default";return c.jsxs(Qe,{className:"flex flex-row justify-center items-center gap-5",children:[c.jsx(Yf,{className:`${t===1?s:r}`,"data-ya-action":a!=null&&a.getDebugEnabled()?"PAGINATE":void 0,"data-ya-eventname":a!=null&&a.getDebugEnabled()?"previousPage":void 0,onClick:()=>{t>1&&(n(t-1),a==null||a.track({eventName:"previousPage",action:"PAGINATE"}))}}),c.jsx(Zf,{className:`${t===o?s:r}`,"data-ya-action":a!=null&&a.getDebugEnabled()?"PAGINATE":void 0,"data-ya-eventname":a!=null&&a.getDebugEnabled()?"nextPage":void 0,onClick:()=>{t<o&&(n(t+1),a==null||a.track({eventName:"nextPage",action:"PAGINATE"}))}})]})},vYe=({expanded:e,setExpanded:t,analyticsName:n})=>{const{t:a}=he(),i=Pe.useAnalytics();return c.jsxs(Cr,{className:"font-body-fontFamily text-body-fontSize underline cursor-pointer inline-flex items-center gap-2",onClick:()=>{e?i==null||i.track({action:"COLLAPSE",eventName:`${n}-showLess`}):i==null||i.track({action:"EXPAND",eventName:`${n}-showMore`}),t(!e)},variant:"link","data-ya-action":i!=null&&i.getDebugEnabled()?e?"COLLAPSE":"EXPAND":void 0,"data-ya-eventname":i!=null&&i.getDebugEnabled()?`${n}-${e?"showLess":"showMore"}`:void 0,children:[e?a("showLess","Show less"):a("showMore","Show more"),c.jsx(sKe,{className:`transition-transform ${e?"rotate-180":""}`,style:{textDecoration:"underline"}})]})},sve={fields:uYe,label:v("components.reviewsSection","Reviews Section"),defaultProps:{backgroundColor:ye.background1.value,analytics:{scope:"reviewsSection"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"reviewsSection"}${ga(e.id)}`,children:c.jsx(fYe,{...e})})}},kYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),testimonials:T(v("fields.testimonialSection","Testimonial Section"),{type:"entityField",filter:{types:[Ia.TestimonialSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},SYe=({testimonial:e,cardStyles:t,sectionHeadingLevel:n})=>{const{i18n:a}=he();return c.jsxs("div",{className:"flex flex-col rounded-lg overflow-hidden border h-full",children:[c.jsx(pt,{background:ye.background1.value,className:"p-8 grow",children:fa(e.description,a.language)}),c.jsxs(pt,{background:t.backgroundColor,className:"p-8",children:[e.contributorName&&c.jsx(Ue,{level:t.headingLevel,semanticLevelOverride:n<6?n+1:"span",children:me(e.contributorName,a.language)}),e.contributionDate&&c.jsx(Hs,{date:e.contributionDate,option:Ds.DATE,hideTimeZone:!0})]})]})},wYe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.testimonials,a),r=me(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.headingText","Heading Text"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:(d=t==null?void 0:t.heading)==null?void 0:d.level,children:r})})}),(o==null?void 0:o.testimonials)&&c.jsx(le,{displayName:M("fields.testimonials","Testimonials"),fieldId:e.testimonials.field,constantValueEnabled:e.testimonials.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center",children:o.testimonials.map((u,f)=>c.jsx(SYe,{testimonial:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level},f))})})]})},lve={label:v("components.testimonialsSection","Testimonials Section"),fields:kYe,defaultProps:{styles:{backgroundColor:ye.background2.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3}},data:{heading:{field:"",constantValue:{en:"Featured Testimonials",hasLocalizedValue:"true"},constantValueEnabled:!0},testimonials:{field:"",constantValue:{testimonials:[Il,Il,Il]},constantValueEnabled:!0}},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(wYe,{...e})})},xYe={data:T(v("fields.data","Data"),{type:"object",objectFields:{heading:T(v("fields.headingText","Heading Text"),{type:"entityField",filter:{types:["type.string"]}}),people:T(v("fields.teamSection","Team Section"),{type:"entityField",filter:{types:[Ia.TeamSection.type]}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),heading:T(v("fields.heading","Heading"),{type:"object",objectFields:{level:T(v("fields.level","Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),align:T(v("fields.headingAlign","Heading Align"),{type:"radio",options:ze.ALIGNMENT})}}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),ctaVariant:T(v("fields.ctaVariant","CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},$Ye=({cardNumber:e,person:t,cardStyles:n,sectionHeadingLevel:a,ctaVariant:i})=>{const{i18n:o}=he();return c.jsxs("div",{className:"flex flex-col rounded-lg overflow-hidden border bg-white h-full",children:[c.jsxs(pt,{background:n.backgroundColor,className:"flex p-8 gap-6",children:[c.jsx("div",{className:"w-20 h-20 flex-shrink-0 rounded-full overflow-hidden",children:t.headshot&&c.jsx(vn,{image:t.headshot,aspectRatio:t.headshot.width&&t.headshot.height?t.headshot.width/t.headshot.height:1.78})}),c.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[t.name&&c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:a<6?a+1:"span",children:me(t.name,o.language)}),t.title&&c.jsx(Qe,{variant:"base",children:me(t.title,o.language)})]})]}),c.jsx("hr",{className:"border"}),c.jsx(pt,{background:ye.background1.value,className:"p-8",children:c.jsxs("div",{className:"flex flex-col gap-4",children:[t.phoneNumber&&c.jsx(Tr,{eventName:`phone${e}`,phoneNumber:t.phoneNumber,includeHyperlink:!0,includeIcon:!0,format:t.phoneNumber.slice(0,2)==="+1"?"domestic":"international"}),t.email&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-palette-primary-light flex items-center justify-center",children:c.jsx(Fye,{})}),c.jsx(Ze,{eventName:`email${e}`,link:t.email,label:t.email,linkType:"EMAIL",variant:"link"})]}),t.cta&&c.jsx("div",{className:"flex justify-start gap-2",children:c.jsx(Ze,{eventName:`cta${e}`,label:me(t.cta.label,o.language),link:t.cta.link,linkType:t.cta.linkType,variant:i})})]})})]})},CYe=({data:e,styles:t})=>{var l,d;const{i18n:n}=he(),a=n.language,i=ve(),o=we(i,e.people,a),r=me(we(i,e.heading,a),n.language),s=(l=t==null?void 0:t.heading)!=null&&l.align?{left:"justify-start",center:"justify-center",right:"justify-end"}[t.heading.align]:"justify-start";return c.jsxs(De,{background:t==null?void 0:t.backgroundColor,className:"flex flex-col gap-8",children:[r&&c.jsx(le,{displayName:M("fields.heading","Heading"),fieldId:e.heading.field,constantValueEnabled:e.heading.constantValueEnabled,children:c.jsx("div",{className:`flex ${s}`,children:c.jsx(Ue,{level:((d=t==null?void 0:t.heading)==null?void 0:d.level)??2,children:r})})}),(o==null?void 0:o.people)&&c.jsx(le,{displayName:M("fields.team","Team"),fieldId:e.people.field,constantValueEnabled:e.people.constantValueEnabled,children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center",children:o.people.map((u,f)=>c.jsx($Ye,{cardNumber:f,person:u,cardStyles:t.cards,sectionHeadingLevel:t.heading.level,ctaVariant:t.cards.ctaVariant},f))})})]})},cve={label:v("components.teamSection","Team Section"),fields:xYe,defaultProps:{data:{heading:{field:"",constantValue:{en:"Meet Our Team",hasLocalizedValue:"true"},constantValueEnabled:!0},people:{field:"",constantValue:{people:[_l,_l,_l]},constantValueEnabled:!0}},styles:{backgroundColor:ye.background3.value,heading:{level:2,align:"left"},cards:{backgroundColor:ye.background1.value,headingLevel:3,ctaVariant:"primary"}},analytics:{scope:"teamSection"},liveVisibility:!0},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:`${((t=e.analytics)==null?void 0:t.scope)??"teamSection"}${ga(e.id)}`,children:c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(CYe,{...e})})})}},Lc=di("components w-full",{variants:{gap:{none:"",0:"gap-0","0.5":"gap-0.5",1:"gap-1","1.5":"gap-1.5",2:"gap-2","2.5":"gap-2.5",3:"gap-3","3.5":"gap-3.5",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9",10:"gap-10",11:"gap-11",12:"gap-12",14:"gap-14",16:"gap-16",20:"gap-20",24:"gap-24"},verticalPadding:{none:"",default:"py-pageSection-verticalPadding",0:"py-0","0.5":"py-0.5",1:"py-1","1.5":"py-1.5",2:"py-2","2.5":"py-2.5",3:"py-3","3.5":"py-3.5",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",14:"py-14",16:"py-16",20:"py-20",24:"py-24"},horizontalPadding:{none:"",0:"px-0","0.5":"px-0.5",1:"px-1","1.5":"px-1.5",2:"px-2","2.5":"px-2.5",3:"px-3","3.5":"px-3.5",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",14:"px-14",16:"px-16",20:"px-20",24:"px-24"},columnFormatting:{none:"",default:"md:grid md:grid-cols-12",forceHorizontal:"!grid grid-cols-12"}},defaultVariants:{gap:"none",verticalPadding:"none",horizontalPadding:"none",columnFormatting:"none"}}),dve={backgroundColor:T("Background Color",{type:"select",options:"BACKGROUND_COLOR"}),gap:Nl("Gap","gap",!1),verticalPadding:Nl("Top/Bottom Padding","padding",!0),horizontalPadding:Nl("Left/Right Padding","padding",!1)},uve=k.forwardRef(({direction:e,justifyContent:t,alignItems:n,wrap:a,gap:i,verticalPadding:o,horizontalPadding:r,backgroundColor:s},l)=>c.jsx(pt,{background:s,className:lt(Lc({verticalPadding:o,horizontalPadding:r})),ref:l,children:c.jsx(be.DropZone,{className:lt(Lc({gap:i}),"flex w-full",e),zone:"flex-container",style:{justifyContent:t,alignItems:n,flexWrap:a},allow:[...Eg,...Ng]})}));uve.displayName="Flex";const TYe={direction:T("Direction",{type:"radio",options:[{label:"Horizontal",value:"flex-row"},{label:"Vertical",value:"flex-col"}]}),justifyContent:T("Justify Content",{type:"radio",options:"JUSTIFY_CONTENT"}),alignItems:T("Align Items",{type:"radio",options:"JUSTIFY_CONTENT"}),wrap:T("Wrap",{type:"radio",options:[{label:"No Wrap",value:"nowrap"},{label:"Wrap",value:"wrap"}]}),...dve,liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},fve={label:"Flex",fields:TYe,defaultProps:{direction:"flex-row",justifyContent:"start",alignItems:"start",wrap:"nowrap",gap:"4",verticalPadding:"0",horizontalPadding:"0",backgroundColor:ye.background1.value,liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(uve,{...e})})},hve=k.forwardRef(({className:e,rows:t=1,columns:n=2,gap:a,verticalPadding:i,horizontalPadding:o,backgroundColor:r,columnFormatting:s,...l},d)=>{var u;return c.jsx(pt,{background:r,className:lt(Lc({verticalPadding:i,horizontalPadding:o})),children:c.jsx("div",{className:lt(Lc({gap:a,columnFormatting:s}),"flex flex-col min-h-0 min-w-0 max-w-pageSection-contentWidth",e),ref:d,style:{gridTemplateColumns:`repeat(${n}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`},...l,children:(u=Array.from({length:n*t}))==null?void 0:u.map((f,h)=>c.jsx("div",{className:"w-full",children:c.jsx(be.DropZone,{className:"flex flex-col w-full",zone:`column-${h}`,allow:[...Eg,...Ng]})},h))})})});hve.displayName="GridSection";const LYe={rows:T("Rows",{type:"number",min:1,max:12}),columns:T("Columns",{type:"number",min:1,max:12}),...dve,liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},pve={label:"Grid",fields:LYe,defaultProps:{rows:1,columns:2,gap:"4",verticalPadding:"0",horizontalPadding:"0",backgroundColor:ye.background1.value,columnFormatting:"default",liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,iconSize:"md",children:c.jsx(hve,{...e})})},AYe={address:T("Address",{type:"entityField",filter:{types:["type.address"]}}),showGetDirections:T("Show Get Directions Link",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},NYe=({address:e,showGetDirections:t})=>{const{t:n,i18n:a}=he(),i=ve(),o=we(i,e,a.language),r=Pe.getDirections(o,void 0,void 0,{provider:"google"});return c.jsx(c.Fragment,{children:o&&c.jsxs(le,{displayName:n("address","Address"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:[c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-fontSize",children:c.jsx(Pe.Address,{address:o,lines:[["line1"],["line2","city","region","postalCode"]]})}),r&&t&&c.jsx(Ze,{link:r,label:"Get Directions",linkType:"DRIVING_DIRECTIONS",target:"_blank",variant:"link"})]})})},gve={label:"Address",fields:AYe,defaultProps:{address:{field:"address",constantValue:{line1:"",city:"",region:"",postalCode:"",countryCode:""}},showGetDirections:!0},render:e=>c.jsx(NYe,{...e})},EYe={text:T("Text",{type:"entityField",filter:{types:["type.string"]}}),variant:T("Variant",{type:"radio",options:"BODY_VARIANT"})},mve=k.forwardRef(({text:e,...t},n)=>{const{t:a,i18n:i}=he(),o=ve();return c.jsx(le,{displayName:a("body","Body"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Qe,{ref:n,...t,children:me(we(o,e,i.language),i.language)})})});mve.displayName="BodyText";const bve={label:"Body Text",fields:EYe,defaultProps:{text:{field:"",constantValue:"Text",constantValueEnabled:!0},variant:"base"},render:e=>c.jsx(mve,{...e})},PYe={entityField:T("CTA",{type:"entityField",filter:{types:["type.cta"]}}),variant:T("Variant",{type:"radio",options:"CTA_VARIANT"})},OYe=({entityField:e,variant:t,className:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);return c.jsx(le,{displayName:a("cta","CTA"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Ze,{label:r==null?void 0:r.label,link:r==null?void 0:r.link,linkType:r==null?void 0:r.linkType,variant:t,className:n})})},yve={label:"Call to Action",fields:PYe,defaultProps:{entityField:{field:"",constantValue:{label:"Call to Action"}},variant:"primary"},render:e=>c.jsx(OYe,{...e})},FYe={list:T("Emails",{type:"entityField",filter:{types:["type.string"],allowList:["emails"],includeListsOnly:!0}}),includeHyperlink:T("Include Hyperlink",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},jYe=({list:e,includeHyperlink:t,listLength:n})=>{var s;const{t:a,i18n:i}=he(),o=ve();let r=we(o,e,i.language);if(r)Array.isArray(r)||(r=[r]);else return;return c.jsx(le,{displayName:a("emailList","Email List"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx("ul",{className:"components list-inside",children:(s=r.slice(0,e.constantValueEnabled?r.length:Math.min(r.length,n)))==null?void 0:s.map((l,d)=>c.jsxs("li",{className:"mb-2 flex items-center",children:[c.jsx(Fye,{className:"mr-2 my-auto"}),t&&l?c.jsx(Ze,{link:l,label:l,linkType:"EMAIL",variant:"link"}):c.jsx(Qe,{children:l})]},d))})})},vve={label:"Emails",fields:FYe,resolveFields:(e,{fields:t})=>e.props.list.constantValueEnabled?t:{...t,listLength:T("List Length",{type:"number",min:1,max:100})},defaultProps:{list:{field:"emails",constantValue:[]},includeHyperlink:!0,listLength:5},render:e=>c.jsx(jYe,{...e})},MYe={coordinate:T("Coordinates",{type:"entityField",filter:{types:["type.coordinate"]}}),variant:T("Variant",{type:"radio",options:"CTA_VARIANT"})},RYe=({variant:e,coordinate:t})=>{const{t:n,i18n:a}=he(),i=ve(),o=we(i,t,a.language);o||console.warn("yextDisplayCoordinate is not present in the stream");const r=Pe.getDirections(void 0,void 0,void 0,{provider:"google"},o);return c.jsx(le,{displayName:M("getDirections","Get Directions"),fieldId:t.field,constantValueEnabled:t.constantValueEnabled,children:c.jsx(Ze,{label:n("getDirections","Get Directions"),link:r,linkType:"DRIVING_DIRECTIONS",variant:e})})},kve={label:"Get Directions",fields:MYe,defaultProps:{variant:"primary",coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}},render:e=>c.jsx(RYe,{...e})},Sve=k.forwardRef(({text:e,...t},n)=>{const a=ve(),{i18n:i}=he();return c.jsx(le,{displayName:"Heading "+t.level,fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Ue,{ref:n,...t,children:me(we(a,e,i.language),i.language)})})});Sve.displayName="HeadingText";const _Ye={text:T("Text",{type:"entityField",filter:{types:["type.string"]}}),level:T("Heading Level",{type:"select",hasSearch:!0,options:"HEADING_LEVEL"})},wve={label:"Heading Text",fields:_Ye,defaultProps:{text:{field:"",constantValue:"Text",constantValueEnabled:!0},content:"Heading",level:2},render:e=>c.jsx(Sve,{...e})},IYe={hours:T("Hours",{type:"entityField",filter:{types:["type.hours"]}}),startOfWeek:T("Start of the Week",{type:"select",hasSearch:!0,options:"HOURS_OPTIONS"}),collapseDays:T("Collapse days",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),showAdditionalHoursText:T("Show additional hours text",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),alignment:T("Align card",{type:"radio",options:[{label:"Left",value:"items-start"},{label:"Center",value:"items-center"}]})},DYe=({hours:e,startOfWeek:t,collapseDays:n,showAdditionalHoursText:a,alignment:i})=>{const{t:o,i18n:r}=he(),s=ve(),l=we(s,e,r.language),{additionalHoursText:d}=s;return c.jsxs("div",{className:`flex flex-col ${i}`,children:[l&&c.jsx(le,{displayName:o("hours","Hours"),fieldId:"hours",constantValueEnabled:e.constantValueEnabled,children:c.jsx(sg,{hours:l,startOfWeek:t,collapseDays:n})}),d&&a&&c.jsx(le,{displayName:o("hoursText","Hours Text"),fieldId:"additionalHoursText",children:c.jsx("div",{className:"mt-4 text-body-sm-fontSize",children:d})})]})},xve={fields:IYe,defaultProps:{hours:{field:"hours",constantValue:{}},startOfWeek:"today",collapseDays:!1,showAdditionalHoursText:!0,alignment:"items-center"},label:"Hours Table",render:e=>c.jsx(DYe,{...e})},HYe={hours:T("Hours",{type:"entityField",filter:{types:["type.hours"]}}),showCurrentStatus:T("Show Current Status",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),timeFormat:T("Time Format",{type:"radio",options:[{label:"12-hour",value:"12h"},{label:"24-hour",value:"24h"}]}),showDayNames:T("Show Day Names",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]}),dayOfWeekFormat:T("Day of Week Format",{type:"radio",options:[{label:"Short",value:"short"},{label:"Long",value:"long"}]})},zYe=({hours:e,className:t,showCurrentStatus:n,timeFormat:a,showDayNames:i,dayOfWeekFormat:o})=>{const r=ve(),{t:s,i18n:l}=he(),d=we(r,e,l.language);return d?c.jsx(le,{displayName:s("hours","Hours"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(kd,{hours:d,className:t,showCurrentStatus:n,showDayNames:i,timeFormat:a,dayOfWeekFormat:o})}):null},$ve={label:"Hours Status",fields:HYe,defaultProps:{hours:{field:"hours",constantValue:{}},className:"",showCurrentStatus:!0,timeFormat:"12h",showDayNames:!0,dayOfWeekFormat:"long"},render:e=>c.jsx(zYe,{...e})},BYe="https://placehold.co/640x360",WYe={image:T(v("fields.options.image","Image"),{type:"entityField",filter:{types:["type.image"]}}),width:T(v("fields.options.width","Width"),{type:"number",min:0}),aspectRatio:T(v("fields.options.aspectRatio","Aspect Ratio"),{type:"select",options:[{label:"1:1",value:1},{label:"5:4",value:1.25},{label:"4:3",value:1.33},{label:"3:2",value:1.5},{label:"5:3",value:1.67},{label:"16:9",value:1.78},{label:"2:1",value:2},{label:"3:1",value:3},{label:"4:1",value:4},{label:"4:5",value:.8},{label:"3:4",value:.75},{label:"2:3",value:.67},{label:"3:5",value:.6},{label:"9:16",value:.56},{label:"1:2",value:.5},{label:"1:3",value:.33},{label:"1:4",value:.25}]})},VYe=({image:e,aspectRatio:t,width:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);return r?c.jsx(le,{displayName:a("image","Image"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(vn,{image:r,aspectRatio:t,width:n})}):null},Cve={label:"Image",fields:WYe,defaultProps:{image:{field:"",constantValue:{url:BYe,height:360,width:640},constantValueEnabled:!0},aspectRatio:1.78},render:e=>c.jsx(VYe,{...e})},GYe={apiKey:T("API Key",{type:"text"}),coordinate:T("Coordinates",{type:"entityField",filter:{types:["type.coordinate"]}})},UYe=1024,KYe=300,qYe=300,YYe=100,Cv=1280,ZYe=e=>{var t,n,a,i,o,r,s,l,d,u;if((t=e==null?void 0:e.__)!=null&&t.theme)return((o=(i=(a=JSON.parse((n=e==null?void 0:e.__)==null?void 0:n.theme))==null?void 0:a["--colors-palette-primary"])==null?void 0:i.trim())==null?void 0:o.replace("#",""))??"000000";{const f=(r=window.document)==null?void 0:r.querySelector("iframe"),h=(s=f==null?void 0:f.contentDocument)==null?void 0:s.querySelector(".components");return h?(u=(d=(l=getComputedStyle(h))==null?void 0:l.getPropertyValue("--colors-palette-primary"))==null?void 0:d.trim())==null?void 0:u.replace("#",""):"000000"}};function XYe(){const e=k.useRef(null),[t,n]=k.useState(0),a=k.useRef(null),[i,o]=k.useState({width:UYe,height:KYe});k.useEffect(()=>{let l=a.current;if(!l)return;for(let f=0;f<2;f++)if(l=l==null?void 0:l.parentElement,!l)return;if(window.getComputedStyle(l).display==="none")return;const u=l.getBoundingClientRect();o({width:Math.max(Math.min(u.width||l.clientWidth,Cv),YYe),height:Math.max(Math.min(u.height||l.clientHeight,Cv),qYe)})},[t]);const r=["resize","load","visibilitychange","focus","deviceorientation"],s=k.useCallback(()=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{n(l=>l+1)},1e3)},[n]);return k.useEffect(()=>{const l=new AbortController,d=l.signal;return r.forEach(u=>{window.addEventListener(u,s,{signal:d})}),()=>{l.abort()}},[]),[a,i]}const Tve=({apiKey:e,coordinate:t,zoom:n=14,mapStyle:a="light-v11"})=>{const{t:i,i18n:o}=he(),r=ve(),[s,l]=XYe(),d=we(r,t,o.language);if(d){if(!e)return console.warn("API Key is required for MapboxStaticMap"),c.jsx(c.Fragment,{})}else return console.warn(`${t} is not present in the stream`),c.jsx(c.Fragment,{});const u=`pin-l+${ZYe(r)}(${d.longitude},${d.latitude})`;return c.jsx(le,{displayName:i("coordinate","Coordinate"),fieldId:t.field,constantValueEnabled:t.constantValueEnabled,children:c.jsx("img",{ref:s,alt:i("map","Map"),className:"components w-full h-full object-cover",src:`https://api.mapbox.com/styles/v1/mapbox/${a}/static/${u}/${d.longitude},${d.latitude},${n}/${l.width.toFixed(0)}x${l.height.toFixed(0)}?access_token=${e}`})})},Lve={label:"Mapbox Static Map",fields:GYe,defaultProps:{apiKey:"",coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}},render:e=>c.jsx(Tve,{...e})},QYe={phone:T("Phone Number",{type:"entityField",filter:{types:["type.phone"]}}),format:T("Format",{type:"radio",options:"PHONE_OPTIONS"}),includeHyperlink:T("Include Hyperlink",{type:"radio",options:[{label:"Yes",value:!0},{label:"No",value:!1}]})},JYe=({phone:e,format:t,includeHyperlink:n})=>{const{t:a,i18n:i}=he(),o=ve(),r=we(o,e,i.language);if(r)return c.jsx(le,{displayName:a("phone","Phone"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:c.jsx(Tr,{phoneNumber:r,format:t,includeHyperlink:n,includeIcon:!0})})},Ave={label:"Phone",fields:QYe,defaultProps:{phone:{field:"mainPhone",constantValue:""},includeHyperlink:!0},render:e=>c.jsx(JYe,{...e})},eZe={list:T("Values",{type:"entityField",filter:{types:["type.string"],includeListsOnly:!0}})},tZe=({list:e})=>{var o;const{t,i18n:n}=he(),a=ve();let i=we(a,e,n.language);return e.constantValueEnabled&&!((o=e.constantValue)!=null&&o.length)?i=["Sample text 1","Sample text 2","Sample text 3"]:i&&!Array.isArray(i)&&(i=[i]),c.jsx(le,{displayName:t("textList","Text List"),fieldId:e.field,constantValueEnabled:e.constantValueEnabled,children:i&&i.length>0?c.jsx("ul",{className:"components list-disc list-inside text-body-fontSize font-body-fontFamily font-body-fontWeight",children:i.map((r,s)=>c.jsx("li",{className:"mb-2",children:me(r,n.language,a)},s))}):null})},Nve={label:"Text List",fields:eZe,defaultProps:{list:{field:"",constantValue:[]}},render:e=>c.jsx(tZe,{...e})};function dg(e){const t=e+"CollectionProvider",[n,a]=kn(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),r=m=>{const{scope:y,children:S}=m,w=g.useRef(null),C=g.useRef(new Map).current;return c.jsx(i,{scope:y,itemMap:C,collectionRef:w,children:S})};r.displayName=t;const s=e+"CollectionSlot",l=Ri(s),d=g.forwardRef((m,y)=>{const{scope:S,children:w}=m,C=o(s,S),$=Xe(y,C.collectionRef);return c.jsx(l,{ref:$,children:w})});d.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ri(u),p=g.forwardRef((m,y)=>{const{scope:S,children:w,...C}=m,$=g.useRef(null),x=Xe(y,$),L=o(u,S);return g.useEffect(()=>(L.itemMap.set($,{ref:$,...C}),()=>void L.itemMap.delete($))),c.jsx(h,{[f]:"",ref:x,children:w})});p.displayName=u;function b(m){const y=o(e+"CollectionConsumer",m);return g.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((L,A)=>C.indexOf(L.ref.current)-C.indexOf(A.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:r,Slot:d,ItemSlot:p},b,a]}var nZe=k.createContext(void 0);function ug(e){const t=k.useContext(nZe);return e||t||"ltr"}var $u="rovingFocusGroup.onEntryFocus",aZe={bubbles:!1,cancelable:!0},zs="RovingFocusGroup",[ah,Eve,iZe]=dg(zs),[oZe,Pve]=kn(zs,[iZe]),[rZe,sZe]=oZe(zs),Ove=k.forwardRef((e,t)=>c.jsx(ah.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(ah.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(lZe,{...e,ref:t})})}));Ove.displayName=zs;var lZe=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:o,currentTabStopId:r,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...f}=e,h=k.useRef(null),p=Xe(t,h),b=ug(o),[m,y]=ha({prop:r,defaultProp:s??null,onChange:l,caller:zs}),[S,w]=k.useState(!1),C=ja(d),$=Eve(n),x=k.useRef(!1),[L,A]=k.useState(0);return k.useEffect(()=>{const E=h.current;if(E)return E.addEventListener($u,C),()=>E.removeEventListener($u,C)},[C]),c.jsx(rZe,{scope:n,orientation:a,dir:b,loop:i,currentTabStopId:m,onItemFocus:k.useCallback(E=>y(E),[y]),onItemShiftTab:k.useCallback(()=>w(!0),[]),onFocusableItemAdd:k.useCallback(()=>A(E=>E+1),[]),onFocusableItemRemove:k.useCallback(()=>A(E=>E-1),[]),children:c.jsx(Ce.div,{tabIndex:S||L===0?-1:0,"data-orientation":a,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{x.current=!0}),onFocus:ge(e.onFocus,E=>{const z=!x.current;if(E.target===E.currentTarget&&z&&!S){const _=new CustomEvent($u,aZe);if(E.currentTarget.dispatchEvent(_),!_.defaultPrevented){const B=$().filter(Z=>Z.focusable),U=B.find(Z=>Z.active),ee=B.find(Z=>Z.id===m),re=[U,ee,...B].filter(Boolean).map(Z=>Z.ref.current);Mve(re,u)}}x.current=!1}),onBlur:ge(e.onBlur,()=>w(!1))})})}),Fve="RovingFocusGroupItem",jve=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:o,children:r,...s}=e,l=jt(),d=o||l,u=sZe(Fve,n),f=u.currentTabStopId===d,h=Eve(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:m}=u;return k.useEffect(()=>{if(a)return p(),()=>b()},[a,p,b]),c.jsx(ah.ItemSlot,{scope:n,id:d,focusable:a,active:i,children:c.jsx(Ce.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ge(e.onMouseDown,y=>{a?u.onItemFocus(d):y.preventDefault()}),onFocus:ge(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:ge(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const S=uZe(y,u.orientation,u.dir);if(S!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let C=h().filter($=>$.focusable).map($=>$.ref.current);if(S==="last")C.reverse();else if(S==="prev"||S==="next"){S==="prev"&&C.reverse();const $=C.indexOf(y.currentTarget);C=u.loop?fZe(C,$+1):C.slice($+1)}setTimeout(()=>Mve(C))}}),children:typeof r=="function"?r({isCurrentTabStop:f,hasTabStop:m!=null}):r})})});jve.displayName=Fve;var cZe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dZe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uZe(e,t,n){const a=dZe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return cZe[a]}function Mve(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function fZe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var hZe=Ove,pZe=jve,ih=["Enter"," "],gZe=["ArrowDown","PageUp","Home"],Rve=["ArrowUp","PageDown","End"],mZe=[...gZe,...Rve],bZe={ltr:[...ih,"ArrowRight"],rtl:[...ih,"ArrowLeft"]},yZe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bs="Menu",[bs,vZe,kZe]=dg(Bs),[Zi,_ve]=kn(Bs,[kZe,hr,Pve]),xd=hr(),Ive=Pve(),[SZe,Xi]=Zi(Bs),[wZe,Ws]=Zi(Bs),Dve=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:i,onOpenChange:o,modal:r=!0}=e,s=xd(t),[l,d]=k.useState(null),u=k.useRef(!1),f=ja(o),h=ug(i);return k.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Vh,{...s,children:c.jsx(SZe,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:d,children:c.jsx(wZe,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:h,modal:r,children:a})})})};Dve.displayName=Bs;var xZe="MenuAnchor",fg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,i=xd(n);return c.jsx(Wc,{...i,...a,ref:t})});fg.displayName=xZe;var hg="MenuPortal",[$Ze,Hve]=Zi(hg,{forceMount:void 0}),zve=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:i}=e,o=Xi(hg,t);return c.jsx($Ze,{scope:t,forceMount:n,children:c.jsx(En,{present:n||o.open,children:c.jsx(Mc,{asChild:!0,container:i,children:a})})})};zve.displayName=hg;var Tn="MenuContent",[CZe,pg]=Zi(Tn),Bve=k.forwardRef((e,t)=>{const n=Hve(Tn,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,o=Xi(Tn,e.__scopeMenu),r=Ws(Tn,e.__scopeMenu);return c.jsx(bs.Provider,{scope:e.__scopeMenu,children:c.jsx(En,{present:a||o.open,children:c.jsx(bs.Slot,{scope:e.__scopeMenu,children:r.modal?c.jsx(TZe,{...i,ref:t}):c.jsx(LZe,{...i,ref:t})})})})}),TZe=k.forwardRef((e,t)=>{const n=Xi(Tn,e.__scopeMenu),a=k.useRef(null),i=Xe(t,a);return k.useEffect(()=>{const o=a.current;if(o)return Sh(o)},[]),c.jsx(gg,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ge(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LZe=k.forwardRef((e,t)=>{const n=Xi(Tn,e.__scopeMenu);return c.jsx(gg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),AZe=Ri("MenuContent.ScrollLock"),gg=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:p,disableOutsideScroll:b,...m}=e,y=Xi(Tn,n),S=Ws(Tn,n),w=xd(n),C=Ive(n),$=vZe(n),[x,L]=k.useState(null),A=k.useRef(null),E=Xe(t,A,y.onContentChange),z=k.useRef(0),_=k.useRef(""),B=k.useRef(0),U=k.useRef(null),ee=k.useRef("right"),Y=k.useRef(0),re=b?_c:k.Fragment,Z=b?{as:AZe,allowPinchZoom:!0}:void 0,G=V=>{var X,ue;const I=_.current+V,D=$().filter(oe=>!oe.disabled),F=document.activeElement,H=(X=D.find(oe=>oe.ref.current===F))==null?void 0:X.textValue,K=D.map(oe=>oe.textValue),W=HZe(K,I,H),te=(ue=D.find(oe=>oe.textValue===W))==null?void 0:ue.ref.current;(function oe(pe){_.current=pe,window.clearTimeout(z.current),pe!==""&&(z.current=window.setTimeout(()=>oe(""),1e3))})(I),te&&setTimeout(()=>te.focus())};k.useEffect(()=>()=>window.clearTimeout(z.current),[]),kh();const J=k.useCallback(V=>{var D,F;return ee.current===((D=U.current)==null?void 0:D.side)&&BZe(V,(F=U.current)==null?void 0:F.area)},[]);return c.jsx(CZe,{scope:n,searchRef:_,onItemEnter:k.useCallback(V=>{J(V)&&V.preventDefault()},[J]),onItemLeave:k.useCallback(V=>{var I;J(V)||((I=A.current)==null||I.focus(),L(null))},[J]),onTriggerLeave:k.useCallback(V=>{J(V)&&V.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:k.useCallback(V=>{U.current=V},[]),children:c.jsx(re,{...Z,children:c.jsx(jc,{asChild:!0,trapped:i,onMountAutoFocus:ge(o,V=>{var I;V.preventDefault(),(I=A.current)==null||I.focus({preventScroll:!0})}),onUnmountAutoFocus:r,children:c.jsx(Ts,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:p,children:c.jsx(hZe,{asChild:!0,...C,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:x,onCurrentTabStopIdChange:L,onEntryFocus:ge(l,V=>{S.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Gh,{role:"menu","aria-orientation":"vertical","data-state":ike(y.open),"data-radix-menu-content":"",dir:S.dir,...w,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:ge(m.onKeyDown,V=>{const D=V.target.closest("[data-radix-menu-content]")===V.currentTarget,F=V.ctrlKey||V.altKey||V.metaKey,H=V.key.length===1;D&&(V.key==="Tab"&&V.preventDefault(),!F&&H&&G(V.key));const K=A.current;if(V.target!==K||!mZe.includes(V.key))return;V.preventDefault();const te=$().filter(X=>!X.disabled).map(X=>X.ref.current);Rve.includes(V.key)&&te.reverse(),IZe(te)}),onBlur:ge(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(z.current),_.current="")}),onPointerMove:ge(e.onPointerMove,ys(V=>{const I=V.target,D=Y.current!==V.clientX;if(V.currentTarget.contains(I)&&D){const F=V.clientX>Y.current?"right":"left";ee.current=F,Y.current=V.clientX}}))})})})})})})});Bve.displayName=Tn;var NZe="MenuGroup",mg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"group",...a,ref:t})});mg.displayName=NZe;var EZe="MenuLabel",Wve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{...a,ref:t})});Wve.displayName=EZe;var Ac="MenuItem",Tv="menu.itemSelect",$d=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...i}=e,o=k.useRef(null),r=Ws(Ac,e.__scopeMenu),s=pg(Ac,e.__scopeMenu),l=Xe(t,o),d=k.useRef(!1),u=()=>{const f=o.current;if(!n&&f){const h=new CustomEvent(Tv,{bubbles:!0,cancelable:!0});f.addEventListener(Tv,p=>a==null?void 0:a(p),{once:!0}),bpe(f,h),h.defaultPrevented?d.current=!1:r.onClose()}};return c.jsx(Vve,{...i,ref:l,disabled:n,onClick:ge(e.onClick,u),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),d.current=!0},onPointerUp:ge(e.onPointerUp,f=>{var h;d.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:ge(e.onKeyDown,f=>{const h=s.searchRef.current!=="";n||h&&f.key===" "||ih.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});$d.displayName=Ac;var Vve=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:i,...o}=e,r=pg(Ac,n),s=Ive(n),l=k.useRef(null),d=Xe(t,l),[u,f]=k.useState(!1),[h,p]=k.useState("");return k.useEffect(()=>{const b=l.current;b&&p((b.textContent??"").trim())},[o.children]),c.jsx(bs.ItemSlot,{scope:n,disabled:a,textValue:i??h,children:c.jsx(pZe,{asChild:!0,...s,focusable:!a,children:c.jsx(Ce.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:d,onPointerMove:ge(e.onPointerMove,ys(b=>{a?r.onItemLeave(b):(r.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ge(e.onPointerLeave,ys(b=>r.onItemLeave(b))),onFocus:ge(e.onFocus,()=>f(!0)),onBlur:ge(e.onBlur,()=>f(!1))})})})}),PZe="MenuCheckboxItem",Gve=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...i}=e;return c.jsx(Zve,{scope:e.__scopeMenu,checked:n,children:c.jsx($d,{role:"menuitemcheckbox","aria-checked":Nc(n)?"mixed":n,...i,ref:t,"data-state":yg(n),onSelect:ge(i.onSelect,()=>a==null?void 0:a(Nc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Gve.displayName=PZe;var Uve="MenuRadioGroup",[OZe,FZe]=Zi(Uve,{value:void 0,onValueChange:()=>{}}),Kve=k.forwardRef((e,t)=>{const{value:n,onValueChange:a,...i}=e,o=ja(a);return c.jsx(OZe,{scope:e.__scopeMenu,value:n,onValueChange:o,children:c.jsx(mg,{...i,ref:t})})});Kve.displayName=Uve;var qve="MenuRadioItem",Yve=k.forwardRef((e,t)=>{const{value:n,...a}=e,i=FZe(qve,e.__scopeMenu),o=n===i.value;return c.jsx(Zve,{scope:e.__scopeMenu,checked:o,children:c.jsx($d,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":yg(o),onSelect:ge(a.onSelect,()=>{var r;return(r=i.onValueChange)==null?void 0:r.call(i,n)},{checkForDefaultPrevented:!1})})})});Yve.displayName=qve;var bg="MenuItemIndicator",[Zve,jZe]=Zi(bg,{checked:!1}),Xve=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...i}=e,o=jZe(bg,n);return c.jsx(En,{present:a||Nc(o.checked)||o.checked===!0,children:c.jsx(Ce.span,{...i,ref:t,"data-state":yg(o.checked)})})});Xve.displayName=bg;var MZe="MenuSeparator",Qve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});Qve.displayName=MZe;var RZe="MenuArrow",Jve=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,i=xd(n);return c.jsx(Uh,{...i,...a,ref:t})});Jve.displayName=RZe;var _Ze="MenuSub",[XQe,eke]=Zi(_Ze),Zr="MenuSubTrigger",tke=k.forwardRef((e,t)=>{const n=Xi(Zr,e.__scopeMenu),a=Ws(Zr,e.__scopeMenu),i=eke(Zr,e.__scopeMenu),o=pg(Zr,e.__scopeMenu),r=k.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,d={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{r.current&&window.clearTimeout(r.current),r.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),c.jsx(fg,{asChild:!0,...d,children:c.jsx(Vve,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":ike(n.open),...e,ref:Oa(t,i.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ge(e.onPointerMove,ys(f=>{o.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!r.current&&(o.onPointerGraceIntentChange(null),r.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ge(e.onPointerLeave,ys(f=>{var p,b;u();const h=(p=n.content)==null?void 0:p.getBoundingClientRect();if(h){const m=(b=n.content)==null?void 0:b.dataset.side,y=m==="right",S=y?-5:5,w=h[y?"left":"right"],C=h[y?"right":"left"];o.onPointerGraceIntentChange({area:[{x:f.clientX+S,y:f.clientY},{x:w,y:h.top},{x:C,y:h.top},{x:C,y:h.bottom},{x:w,y:h.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(f),f.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:ge(e.onKeyDown,f=>{var p;const h=o.searchRef.current!=="";e.disabled||h&&f.key===" "||bZe[a.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});tke.displayName=Zr;var nke="MenuSubContent",ake=k.forwardRef((e,t)=>{const n=Hve(Tn,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,o=Xi(Tn,e.__scopeMenu),r=Ws(Tn,e.__scopeMenu),s=eke(nke,e.__scopeMenu),l=k.useRef(null),d=Xe(t,l);return c.jsx(bs.Provider,{scope:e.__scopeMenu,children:c.jsx(En,{present:a||o.open,children:c.jsx(bs.Slot,{scope:e.__scopeMenu,children:c.jsx(gg,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:"start",side:r.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;r.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ge(e.onFocusOutside,u=>{u.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:ge(e.onEscapeKeyDown,u=>{r.onClose(),u.preventDefault()}),onKeyDown:ge(e.onKeyDown,u=>{var p;const f=u.currentTarget.contains(u.target),h=yZe[r.dir].includes(u.key);f&&h&&(o.onOpenChange(!1),(p=s.trigger)==null||p.focus(),u.preventDefault())})})})})})});ake.displayName=nke;function ike(e){return e?"open":"closed"}function Nc(e){return e==="indeterminate"}function yg(e){return Nc(e)?"indeterminate":e?"checked":"unchecked"}function IZe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function DZe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function HZe(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let r=DZe(e,Math.max(o,0));i.length===1&&(r=r.filter(d=>d!==n));const l=r.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function zZe(e,t){const{x:n,y:a}=e;let i=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){const s=t[o],l=t[r],d=s.x,u=s.y,f=l.x,h=l.y;u>a!=h>a&&n<(f-d)*(a-u)/(h-u)+d&&(i=!i)}return i}function BZe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return zZe(n,t)}function ys(e){return t=>t.pointerType==="mouse"?e(t):void 0}var WZe=Dve,VZe=fg,GZe=zve,UZe=Bve,KZe=mg,qZe=Wve,YZe=$d,ZZe=Gve,XZe=Kve,QZe=Yve,JZe=Xve,eXe=Qve,tXe=Jve,nXe=tke,aXe=ake,Cd="DropdownMenu",[iXe,QQe]=kn(Cd,[_ve]),Kt=_ve(),[oXe,oke]=iXe(Cd),vg=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:i,defaultOpen:o,onOpenChange:r,modal:s=!0}=e,l=Kt(t),d=k.useRef(null),[u,f]=ha({prop:i,defaultProp:o??!1,onChange:r,caller:Cd});return c.jsx(oXe,{scope:t,triggerId:jt(),triggerRef:d,contentId:jt(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(h=>!h),[f]),modal:s,children:c.jsx(WZe,{...l,open:u,onOpenChange:f,dir:a,modal:s,children:n})})};vg.displayName=Cd;var rke="DropdownMenuTrigger",kg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...i}=e,o=oke(rke,n),r=Kt(n);return c.jsx(VZe,{asChild:!0,...r,children:c.jsx(Ce.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...i,ref:Oa(t,o.triggerRef),onPointerDown:ge(e.onPointerDown,s=>{!a&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:ge(e.onKeyDown,s=>{a||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});kg.displayName=rke;var rXe="DropdownMenuPortal",ske=e=>{const{__scopeDropdownMenu:t,...n}=e,a=Kt(t);return c.jsx(GZe,{...a,...n})};ske.displayName=rXe;var lke="DropdownMenuContent",Sg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=oke(lke,n),o=Kt(n),r=k.useRef(!1);return c.jsx(UZe,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...a,ref:t,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var l;r.current||(l=i.triggerRef.current)==null||l.focus(),r.current=!1,s.preventDefault()}),onInteractOutside:ge(e.onInteractOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;(!i.modal||u)&&(r.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sg.displayName=lke;var sXe="DropdownMenuGroup",lXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(KZe,{...i,...a,ref:t})});lXe.displayName=sXe;var cXe="DropdownMenuLabel",dXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(qZe,{...i,...a,ref:t})});dXe.displayName=cXe;var uXe="DropdownMenuItem",wg=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(YZe,{...i,...a,ref:t})});wg.displayName=uXe;var fXe="DropdownMenuCheckboxItem",hXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(ZZe,{...i,...a,ref:t})});hXe.displayName=fXe;var pXe="DropdownMenuRadioGroup",gXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(XZe,{...i,...a,ref:t})});gXe.displayName=pXe;var mXe="DropdownMenuRadioItem",bXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(QZe,{...i,...a,ref:t})});bXe.displayName=mXe;var yXe="DropdownMenuItemIndicator",vXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(JZe,{...i,...a,ref:t})});vXe.displayName=yXe;var kXe="DropdownMenuSeparator",SXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(eXe,{...i,...a,ref:t})});SXe.displayName=kXe;var wXe="DropdownMenuArrow",xXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(tXe,{...i,...a,ref:t})});xXe.displayName=wXe;var $Xe="DropdownMenuSubTrigger",CXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(nXe,{...i,...a,ref:t})});CXe.displayName=$Xe;var TXe="DropdownMenuSubContent",LXe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,i=Kt(n);return c.jsx(aXe,{...i,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});LXe.displayName=TXe;var AXe=vg,NXe=kg,EXe=ske,PXe=Sg,OXe=wg;function FXe({...e}){return c.jsx(AXe,{"data-slot":"dropdown-menu",...e})}function jXe({...e}){return c.jsx(NXe,{"data-slot":"dropdown-menu-trigger",...e})}function MXe({className:e,sideOffset:t=4,...n}){return c.jsx(EXe,{children:c.jsx(PXe,{"data-slot":"dropdown-menu-content",sideOffset:t,className:lt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden outline-hidden overflow-y-auto rounded-md border bg-white p-1 shadow-md",e),...n})})}function RXe({className:e,inset:t,...n}){return c.jsx(OXe,{"data-slot":"dropdown-menu-item","data-inset":t,className:lt("relative flex cursor-default items-center gap-2 rounded-sm px-6 py-4 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}var Td="Collapsible",[_Xe,cke]=kn(Td),[IXe,xg]=_Xe(Td),dke=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:o,onOpenChange:r,...s}=e,[l,d]=ha({prop:a,defaultProp:i??!1,onChange:r,caller:Td});return c.jsx(IXe,{scope:n,disabled:o,contentId:jt(),open:l,onOpenToggle:k.useCallback(()=>d(u=>!u),[d]),children:c.jsx(Ce.div,{"data-state":Cg(l),"data-disabled":o?"":void 0,...s,ref:t})})});dke.displayName=Td;var uke="CollapsibleTrigger",fke=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,...a}=e,i=xg(uke,n);return c.jsx(Ce.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Cg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...a,ref:t,onClick:ge(e.onClick,i.onOpenToggle)})});fke.displayName=uke;var $g="CollapsibleContent",hke=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,i=xg($g,e.__scopeCollapsible);return c.jsx(En,{present:n||i.open,children:({present:o})=>c.jsx(DXe,{...a,ref:t,present:o})})});hke.displayName=$g;var DXe=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:i,...o}=e,r=xg($g,n),[s,l]=k.useState(a),d=k.useRef(null),u=Xe(t,d),f=k.useRef(0),h=f.current,p=k.useRef(0),b=p.current,m=r.open||s,y=k.useRef(m),S=k.useRef(void 0);return k.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),Fa(()=>{const w=d.current;if(w){S.current=S.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();f.current=C.height,p.current=C.width,y.current||(w.style.transitionDuration=S.current.transitionDuration,w.style.animationName=S.current.animationName),l(a)}},[r.open,a]),c.jsx(Ce.div,{"data-state":Cg(r.open),"data-disabled":r.disabled?"":void 0,id:r.contentId,hidden:!m,...o,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:m&&i})});function Cg(e){return e?"open":"closed"}var HXe=dke,zXe=fke,BXe=hke,Xn="Accordion",WXe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Tg,VXe,GXe]=dg(Xn),[Ld,JQe]=kn(Xn,[GXe,cke]),Lg=cke(),pke=g.forwardRef((e,t)=>{const{type:n,...a}=e,i=a,o=a;return c.jsx(Tg.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(YXe,{...o,ref:t}):c.jsx(qXe,{...i,ref:t})})});pke.displayName=Xn;var[gke,UXe]=Ld(Xn),[mke,KXe]=Ld(Xn,{collapsible:!1}),qXe=g.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:i=()=>{},collapsible:o=!1,...r}=e,[s,l]=ha({prop:n,defaultProp:a??"",onChange:i,caller:Xn});return c.jsx(gke,{scope:e.__scopeAccordion,value:g.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:g.useCallback(()=>o&&l(""),[o,l]),children:c.jsx(mke,{scope:e.__scopeAccordion,collapsible:o,children:c.jsx(bke,{...r,ref:t})})})}),YXe=g.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:i=()=>{},...o}=e,[r,s]=ha({prop:n,defaultProp:a??[],onChange:i,caller:Xn}),l=g.useCallback(u=>s((f=[])=>[...f,u]),[s]),d=g.useCallback(u=>s((f=[])=>f.filter(h=>h!==u)),[s]);return c.jsx(gke,{scope:e.__scopeAccordion,value:r,onItemOpen:l,onItemClose:d,children:c.jsx(mke,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(bke,{...o,ref:t})})})}),[ZXe,Ad]=Ld(Xn),bke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:a,dir:i,orientation:o="vertical",...r}=e,s=g.useRef(null),l=Xe(s,t),d=VXe(n),f=ug(i)==="ltr",h=ge(e.onKeyDown,p=>{var E;if(!WXe.includes(p.key))return;const b=p.target,m=d().filter(z=>{var _;return!((_=z.ref.current)!=null&&_.disabled)}),y=m.findIndex(z=>z.ref.current===b),S=m.length;if(y===-1)return;p.preventDefault();let w=y;const C=0,$=S-1,x=()=>{w=y+1,w>$&&(w=C)},L=()=>{w=y-1,w<C&&(w=$)};switch(p.key){case"Home":w=C;break;case"End":w=$;break;case"ArrowRight":o==="horizontal"&&(f?x():L());break;case"ArrowDown":o==="vertical"&&x();break;case"ArrowLeft":o==="horizontal"&&(f?L():x());break;case"ArrowUp":o==="vertical"&&L();break}const A=w%S;(E=m[A].ref.current)==null||E.focus()});return c.jsx(ZXe,{scope:n,disabled:a,direction:i,orientation:o,children:c.jsx(Tg.Slot,{scope:n,children:c.jsx(Ce.div,{...r,"data-orientation":o,ref:l,onKeyDown:a?void 0:h})})})}),Ec="AccordionItem",[XXe,Ag]=Ld(Ec),yke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,value:a,...i}=e,o=Ad(Ec,n),r=UXe(Ec,n),s=Lg(n),l=jt(),d=a&&r.value.includes(a)||!1,u=o.disabled||e.disabled;return c.jsx(XXe,{scope:n,open:d,disabled:u,triggerId:l,children:c.jsx(HXe,{"data-orientation":o.orientation,"data-state":xke(d),...s,...i,ref:t,disabled:u,open:d,onOpenChange:f=>{f?r.onItemOpen(a):r.onItemClose(a)}})})});yke.displayName=Ec;var vke="AccordionHeader",QXe=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(vke,n);return c.jsx(Ce.h3,{"data-orientation":i.orientation,"data-state":xke(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:t})});QXe.displayName=vke;var oh="AccordionTrigger",kke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(oh,n),r=KXe(oh,n),s=Lg(n);return c.jsx(Tg.ItemSlot,{scope:n,children:c.jsx(zXe,{"aria-disabled":o.open&&!r.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...a,ref:t})})});kke.displayName=oh;var Ske="AccordionContent",wke=g.forwardRef((e,t)=>{const{__scopeAccordion:n,...a}=e,i=Ad(Xn,n),o=Ag(Ske,n),r=Lg(n);return c.jsx(BXe,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...r,...a,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wke.displayName=Ske;function xke(e){return e?"open":"closed"}const Pc=({className:e,businessId:t,entityId:n,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:o,locales:r,currentLocale:s,background:l})=>{const d=new Set(r),[u,f]=k.useState({[s]:""}),[h,p]=k.useState(s),[b,m]=k.useState("UNSET"),[y,S]=k.useState(!1);k.useEffect(()=>{p(s)},[s]);const w=async $=>{if(S($),$&&b==="UNSET"){m("LOADING");try{const x=await Hge({businessId:t,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:o,entityId:n}),L={};for(const[A,E]of Object.entries(x))d.has(A)&&(L[A]=E);Object.keys(L).length>1&&f({[s]:L[s],...L})}catch{f({[s]:""}),m("ERROR"),console.error("failed to fetch locales for entity")}finally{m("COMPLETE")}}},C=($,x)=>{$!==h&&(p($),window.location.href=`/${x}`)};return c.jsxs(pt,{background:l,as:"div",className:e,children:[c.jsx("div",{className:"hidden md:block",children:c.jsxs(FXe,{open:y,onOpenChange:w,children:[c.jsxs(jXe,{className:"flex flex-row items-center gap-4 justify-between w-full",children:[c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsx(ym,{className:"w-4 h-4"}),c.jsx(Qe,{variant:"xs",children:$l(h)})]}),c.jsx(Mi,{})]}),c.jsx(MXe,{align:"end",className:"w-40 rounded p-0",children:(b==="COMPLETE"||b==="ERROR")&&Object.entries(u).map(([$,x])=>c.jsx(RXe,{onSelect:()=>C($,x),className:lt("components font-body-fontFamily font-normal bg-white py-4 px-6 text-body-sm-fontSize","hover:bg-[#EDEDED] active:bg-[#EDEDED] cursor-pointer data-[highlighted]:outline-none data-[highlighted]:shadow-none",h===$&&"font-bold"),children:$l($)}))})]})}),c.jsx("div",{className:"md:hidden block w-full",children:c.jsx(pke,{type:"single",collapsible:!0,className:"w-full",onValueChange:$=>w(!!$),children:c.jsxs(yke,{value:"language-selector",children:[c.jsxs(kke,{className:"group flex w-full items-center justify-between text-body-sm-fontSize font-medium text-gray-900 px-4 py-6 md:pb-4 ",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ym,{className:"w-4 h-4"}),c.jsx(Qe,{variant:"xs",children:$l(h)})]}),c.jsx(Mi,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180",size:16})]}),c.jsx(wke,{className:"overflow-hidden data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp bg-white",children:c.jsx("div",{className:"flex flex-col pl-6",children:(b==="COMPLETE"||b==="ERROR")&&Object.entries(u).map(([$,x])=>c.jsx("button",{onClick:()=>C($,x),className:lt("text-left py-3 px-2 rounded text-body-sm-fontSize",h===$&&"font-body-fontWeight"),children:$l($)},$))})})]})})})]})};function $l(e){try{const n=new Intl.DisplayNames([e],{type:"language"}).of(e);return JXe(n)}catch{console.warn(`Unsupported locale: ${e}`);return}}function JXe(e){if(e)return/^[a-zA-Z]/.test(e.charAt(0))?e.charAt(0).toUpperCase()+e.slice(1):e}function $ke(e){var l,d,u,f,h;const t=e==null?void 0:e.businessId;if(!t){console.warn("Missing businessId! Unable to use language dropdown.");return}const n=e==null?void 0:e.id;if(!n){console.warn("Missing entityId! Unable to use language dropdown.");return}const a=(l=e==null?void 0:e._env)==null?void 0:l.YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY;if(!a){console.warn("Missing YEXT_PUBLIC_VISUAL_EDITOR_APP_API_KEY! Unable to use language dropdown.");return}let i="",o=[];if(e!=null&&e._pageset)try{const p=JSON.parse(e==null?void 0:e._pageset);i=(u=(d=p==null?void 0:p.typeConfig)==null?void 0:d.entityConfig)==null?void 0:u.contentEndpointId,o=(f=p==null?void 0:p.scope)==null?void 0:f.locales}catch(p){console.error("Failed to parse pageset from document. err=",p);return}if(!i){console.warn("Missing contentEndpointId! Unable to use language dropdown.");return}if(!o){console.warn("Missing locales! Unable to use language dropdown");return}const r=(h=e==null?void 0:e._yext)==null?void 0:h.contentDeliveryAPIDomain;if(!r){console.warn("Missing contentDeliveryAPIDomain! Unable to use language dropdown.");return}const s=e==null?void 0:e.locale;if(!s){console.warn("Missing locale! Unable to use language dropdown.");return}return{businessId:t,entityId:n,apiKey:a,contentEndpointId:i,contentDeliveryAPIDomain:r,locales:o,currentLocale:s}}const eQe={image:{url:"https://placehold.co/50",height:50,width:50,alternateText:"Placeholder Logo"}},tQe={logoWidth:T(v("fields.logoWidth","Logo Width"),{type:"number",min:0}),enableLanguageSelector:T(v("fields.enableLanguageSelector","Enable Language Selector"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]})},Cke={label:v("components.header","Header"),fields:tQe,defaultProps:{logoWidth:80,enableLanguageSelector:!1,analytics:{scope:"header"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"header",children:c.jsx(nQe,{...e})})}},nQe=({logoWidth:e,enableLanguageSelector:t})=>{var o,r,s;const n=ve(),a=((r=(o=n._site)==null?void 0:o.header)==null?void 0:r.links)??[],i=((s=n._site)==null?void 0:s.logo)??eQe;return c.jsx(aQe,{links:a,logo:i,logoWidth:e,enableLanguageSelector:t,languageDropDownProps:$ke(n)})},aQe=e=>{var h;const{t}=he(),[n,a]=k.useState(!1),i=Pe.useAnalytics(),{logo:o,logoWidth:r,logoLink:s,links:l,languageDropDownProps:d,enableLanguageSelector:u}=e,f=d&&u&&((h=d.locales)==null?void 0:h.length)>1;return c.jsxs(De,{as:"header",verticalPadding:"header",background:ye.background1.value,children:[c.jsxs("div",{className:"flex justify-start md:justify-between items-center",children:[o&&c.jsx(le,{displayName:M("fields.businessLogo","Business Logo"),fieldId:"site.businessLogo",children:c.jsx(iQe,{logo:o,logoLink:s,logoWidth:r})}),((l==null?void 0:l.length)>0||f)&&c.jsxs(c.Fragment,{children:[c.jsx(le,{displayName:M("fields.headerLinks","Header Links"),fieldId:"site.header.links",children:c.jsx(oQe,{links:l})}),c.jsx("button",{className:"flex md:hidden ml-auto my-auto",onClick:()=>{i==null||i.track({action:n?"COLLAPSE":"EXPAND",eventName:"toggleMobileMenu"}),a(!n)},"data-ya-action":i!=null&&i.getDebugEnabled()?"EXPAND/COLLAPSE":void 0,"data-ya-eventname":i!=null&&i.getDebugEnabled()?"toggleMobileMenu":void 0,"aria-label":n?t("closeHeaderMenu","Close header menu"):t("openHeaderMenu","Open header menu"),children:n?c.jsx(jye,{size:"1.5rem"}):c.jsx(rg,{size:"1.5rem"})})]}),f&&c.jsx(Pc,{...d,className:"hidden md:flex"})]}),((l==null?void 0:l.length)>0||f)&&c.jsx(rQe,{isOpen:n,links:l,languageDropdownProps:f?d:void 0})]})},iQe=e=>c.jsx(pi,{href:e.logoLink,children:c.jsx("div",{className:"flex mr-2",style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.logo.image.width/e.logo.image.height})})}),oQe=e=>c.jsx("div",{className:"hidden md:flex items-center",children:c.jsx("ul",{className:"flex gap-4 lg:gap-10",children:e.links.filter(t=>!!(t!=null&&t.link)).map((t,n)=>c.jsx("li",{children:c.jsx(Ze,{label:t.label,link:t.link,linkType:t.linkType,variant:"link",eventName:`link${n}`,alwaysHideCaret:!0})},t.link+n))})}),rQe=e=>{const{isOpen:t,links:n,languageDropdownProps:a}=e;return c.jsx("div",{className:`${t?"visible":"hidden"} bg-white text-blackcomponents absolute left-0 right-0 h-screen z-50`,children:c.jsxs(pt,{background:ye.background1.value,className:"container",children:[n.length>0&&c.jsx("ul",{className:"flex flex-col p-4 gap-4",children:n.map((i,o)=>c.jsx("li",{children:c.jsx(Ze,{link:i.link,label:i.label,linkType:i.linkType,variant:"link",eventName:`mobilelink${o}`})},i.link))}),a&&c.jsx(Pc,{...a,className:"p-4 gap-4 w-full"})]})})},Tke="https://placehold.co/100",Xr={linkType:"URL",label:{en:"Main Header Link",hasLocalizedValue:"true"},link:"#"},Po={linkType:"URL",label:{en:"Secondary Header Link",hasLocalizedValue:"true"},link:"#"},sQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{primaryHeader:T(v("fields.primaryHeader","Primary Header"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"text"}),links:T(v("fields.links","Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Xr}),primaryCTA:T(v("fields.primaryCTA","Primary CTA"),{type:"object",objectFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}}}),showPrimaryCTA:T(v("fields.showPrimaryCTA","Show Primary CTA"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]}),secondaryCTA:T(v("fields.secondaryCTA","Secondary CTA"),{type:"object",objectFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}}}),showSecondaryCTA:T(v("fields.showSecondaryCTA","Show Secondary CTA"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!1}]})}}),secondaryHeader:T(v("fields.secondaryHeader","Secondary Header"),{type:"object",objectFields:{show:T(v("fields.show","Show"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),showLanguageDropdown:T(v("fields.showLanguageDropdown","Show Language Dropdown"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),secondaryLinks:T(v("fields.secondaryLinks","Secondary Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Po})}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{primaryHeader:T(v("fields.primaryHeader","Primary Header"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"object",objectFields:rr}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),primaryCtaVariant:T(v("fields.primaryCTAVariant","Primary CTA Variant"),{type:"radio",options:"CTA_VARIANT"}),secondaryCtaVariant:T(v("fields.secondaryCTAVariant","Secondary CTA Variant"),{type:"radio",options:"CTA_VARIANT"})}}),secondaryHeader:T(v("fields.secondaryHeader","Secondary Header"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"})}})}})},lQe=({data:e,styles:t})=>{var B;const{primaryHeader:n,secondaryHeader:a}=e,{primaryHeader:i,secondaryHeader:o}=t,{t:r}=he(),{document:s}=ve(),{logo:l,links:d,primaryCTA:u,secondaryCTA:f,showPrimaryCTA:h,showSecondaryCTA:p}=n,{show:b,showLanguageDropdown:m,secondaryLinks:y}=a,{backgroundColor:S,logo:w,primaryCtaVariant:C,secondaryCtaVariant:$}=i,{backgroundColor:x}=o,L=$ke(s),A=L&&((B=L.locales)==null?void 0:B.length)>1,[E,z]=k.useState(!1),_=(u==null?void 0:u.label)&&(u==null?void 0:u.link)||(f==null?void 0:f.label)&&(f==null?void 0:f.link)||d.some(U=>U.label&&U.link)||b&&(y.some(U=>U.label&&U.link)||m);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"hidden md:flex flex-col","aria-label":r("expandedHeaderDesktop","Expanded Header Desktop"),children:[b&&c.jsxs(De,{verticalPadding:"sm",background:x,className:"flex justify-end gap-6 items-center",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryHeaderLinks","Secondary Header Links"),children:c.jsx(Cl,{links:y,type:"Secondary"})}),m&&A&&c.jsx(Pc,{...L,className:"hidden md:flex"})]}),c.jsxs(De,{verticalPadding:"header",background:S,className:"flex flex-row justify-between w-full items-center gap-8",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.logoUrl","Logo"),children:c.jsx(Lv,{logo:Nv(l,w.width??200),logoWidth:w.width??200,aspectRatio:w.aspectRatio})}),c.jsxs("div",{className:"flex gap-8 items-center",children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryHeaderLinks","Primary Header Links"),children:c.jsx(Cl,{links:d})}),(h||p)&&c.jsx(Av,{primaryCTA:u,secondaryCTA:f,primaryVariant:C,secondaryVariant:$,showPrimaryCTA:h,showSecondaryCTA:p})]})]})]}),c.jsx("div",{className:"flex md:hidden flex-col","aria-label":r("expandedHeaderMobile","Expanded Header Mobile"),children:c.jsxs(De,{verticalPadding:"header",background:S,className:"flex items-center justify-between",children:[c.jsx(Lv,{logo:Nv(l,w.width||100),logoWidth:w.width||100,aspectRatio:w.aspectRatio}),_&&c.jsx("button",{onClick:()=>z(!E),"aria-label":E?r("closeMenu","Close menu"):r("openMenu","Open menu"),"aria-expanded":E,"aria-controls":"mobile-menu",className:"text-xl",children:E?c.jsx(jye,{size:"1.5rem"}):c.jsx(rg,{size:"1.5rem"})})]})}),E&&c.jsxs("div",{id:"mobile-menu",className:`md:hidden transition-all duration-300 ease-in-out ${E?"max-h-[1000px] opacity-100":"max-h-0 opacity-0 overflow-scroll"}`,children:[c.jsx(De,{verticalPadding:"sm",background:S,children:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryHeaderLinks","Primary Header Links"),children:c.jsx(Cl,{links:d})})}),b&&c.jsxs(De,{verticalPadding:"sm",background:x,children:[c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryHeaderLinks","Secondary Header Links"),children:c.jsx(Cl,{links:y,type:"Secondary"})}),m&&A&&c.jsx(Pc,{background:x,...L,className:"flex md:hidden"})]}),(h||p)&&c.jsx(De,{verticalPadding:"sm",background:S,children:c.jsx(Av,{primaryCTA:u,secondaryCTA:f,primaryVariant:C,secondaryVariant:$,showPrimaryCTA:h,showSecondaryCTA:p})})]})]})},Cl=({links:e,type:t="Primary"})=>{const{i18n:n}=he(),{document:a}=ve(),i=5,o=t==="Secondary",r=(s,l,d)=>c.jsx(Ze,{variant:t==="Primary"?"headerFooterMainLink":"headerFooterSecondaryLink",eventName:`cta.${d}.${l}`,label:me(s.label,n.language,a),linkType:s.linkType,link:s.link,className:"justify-start w-full text-left"});return c.jsx("nav",{"aria-label":`${t} Header Links`,children:c.jsxs("ul",{className:"flex flex-col md:flex-row gap-0 md:gap-6 md:items-center",children:[e.filter(s=>!!(s!=null&&s.link)).map((s,l)=>{const d=o&&l>=i;return c.jsx("li",{className:`py-4 md:py-0 ${d?"md:hidden":""}`,children:r(s,l,t.toLowerCase())},`${t.toLowerCase()}.${l}`)}),o&&e.length>i&&c.jsx("li",{className:"hidden md:block py-4 md:py-0",children:c.jsxs(vg,{children:[c.jsx(kg,{className:"flex flex-row md:items-center gap-4 justify-between w-full",children:c.jsx("div",{className:"flex gap-4 items-center",children:c.jsx(rg,{})})}),c.jsx(Sg,{className:"bg-white border rounded shadow-md p-2 min-w-[200px] z-[9999]",children:e.filter(s=>!!(s!=null&&s.link)).slice(i).map((s,l)=>c.jsx(wg,{className:"cursor-pointer p-2 text-body-sm-fontSize hover:bg-gray-100",children:r(s,l+i,"overflow")},`overflow-${l}`))})]})})]})})},Lv=e=>c.jsx(pi,{href:e.logo.image.url,alwaysHideCaret:!0,children:c.jsx("figure",{style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.aspectRatio||e.logo.image.width/e.logo.image.height})})}),Av=e=>{const{i18n:t}=he(),{document:n}=ve(),{primaryCTA:a,secondaryCTA:i,primaryVariant:o,secondaryVariant:r,showPrimaryCTA:s,showSecondaryCTA:l}=e;if(!(!a&&!i))return c.jsxs("div",{className:"flex flex-col md:flex-row gap-4 md:gap-2 md:items-center",children:[s&&(a==null?void 0:a.link)&&(a==null?void 0:a.label)&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.primaryCta","Primary CTA"),children:c.jsx(Ze,{eventName:"primaryCta",variant:o,label:me(a==null?void 0:a.label,t.language,n),link:a.link,linkType:a.linkType})}),l&&(i==null?void 0:i.link)&&(i==null?void 0:i.label)&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryCta","Secondary CTA"),children:c.jsx(Ze,{eventName:"secondaryCta",variant:r,label:me(i.label,t.language,n),link:i.link,linkType:i.linkType})})]})},Nv=(e,t)=>({image:{url:e||Tke,width:t,height:t/2,alternateText:"Logo"}}),Lke={label:v("components.expandedHeader","Expanded Header"),fields:sQe,defaultProps:{data:{primaryHeader:{logo:Tke,links:[Xr,Xr,Xr,Xr],primaryCTA:{label:{en:"Call to Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},showPrimaryCTA:!0,secondaryCTA:{label:{en:"Call to Action",hasLocalizedValue:"true"},link:"#",linkType:"URL"},showSecondaryCTA:!0},secondaryHeader:{show:!1,showLanguageDropdown:!1,secondaryLinks:[Po,Po,Po,Po,Po]}},styles:{primaryHeader:{logo:{width:void 0,aspectRatio:2},backgroundColor:ye.background1.value,primaryCtaVariant:"primary",secondaryCtaVariant:"secondary"},secondaryHeader:{backgroundColor:ye.background2.value}},analytics:{scope:"expandedHeader"}},resolveFields:(e,{fields:t})=>{var s;const n=(s=e.props.data.secondaryHeader)==null?void 0:s.show,a={...t.data.objectFields},i={...t.styles.objectFields},o={...a.primaryHeader.objectFields},r={...a.secondaryHeader.objectFields};return n||(delete r.showLanguageDropdown,delete r.secondaryLinks,delete i.secondaryHeader),{...t,data:{...t.data,objectFields:{...a,primaryHeader:{...a.primaryHeader,objectFields:o},secondaryHeader:{...a.secondaryHeader,objectFields:r}}},styles:{...t.styles,objectFields:i}}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"expandedHeader",children:c.jsx(lQe,{...e})})}},cQe={backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})},Ake={label:v("components.footer","Footer"),fields:cQe,defaultProps:{backgroundColor:ye.background1.value,analytics:{scope:"footer"}},inline:!0,render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"footer",children:c.jsx(dQe,{...e})})}},dQe=e=>{var s,l,d,u,f,h,p,b,m,y;const t=ve(),{backgroundColor:n=ye.background1.value,puck:a}=e,i=((l=(s=t==null?void 0:t._site)==null?void 0:s.footer)==null?void 0:l.links)??[],o=(d=t==null?void 0:t._site)==null?void 0:d.copyrightMessage,r=[{name:"facebook",link:(u=t==null?void 0:t._site)==null?void 0:u.facebookPageUrl,label:c.jsx(Tye,{className:"w-5 h-5 mr-4"})},{name:"instagram",prefix:"//www.instagram.com/",link:(f=t==null?void 0:t._site)==null?void 0:f.instagramHandle,label:c.jsx(Lye,{className:"w-5 h-5 mr-4"})},{name:"youtube",link:(h=t==null?void 0:t._site)==null?void 0:h.youTubeChannelUrl,label:c.jsx(Pye,{className:"w-5 h-5 mr-4"})},{name:"linkedIn",link:(p=t==null?void 0:t._site)==null?void 0:p.linkedInUrl,label:c.jsx(Aye,{className:"w-5 h-5 mr-4"})},{name:"twitter",prefix:"//www.twitter.com/",link:(b=t==null?void 0:t._site)==null?void 0:b.twitterHandle,label:c.jsx(rKe,{className:"w-5 h-5 mr-4"})},{name:"pinterest",link:(m=t==null?void 0:t._site)==null?void 0:m.pinterestUrl,label:c.jsx(Nye,{className:"w-5 h-5 mr-4"})},{name:"tiktok",link:(y=t==null?void 0:t._site)==null?void 0:y.tikTokUrl,label:c.jsx(Eye,{className:"w-5 h-5 mr-4"})}].filter(S=>S.link);return c.jsxs(De,{background:n,className:"flex flex-col",outerClassName:"mt-auto",as:"footer",ref:a.dragRef,children:[c.jsxs("div",{className:"flex flex-col sm:flex-row justify-between w-full items-center text-body-fontSize font-body-fontFamily",children:[i&&c.jsx(le,{displayName:M("fields.footerLinks","Footer Links"),fieldId:"site.footer.links",children:c.jsx(uQe,{links:i})}),r&&c.jsx(le,{displayName:M("fields.footerSocialIcons","Footer Social Icons"),fieldId:"site.footer",children:c.jsx(fQe,{socialLinks:r})})]}),o&&c.jsx("div",{className:"text-body-sm-fontSize text-center sm:text-left ",children:c.jsx(le,{displayName:M("fields.copyrightText","Copyright Text"),fieldId:"site.copyrightMessage",children:c.jsx(Qe,{children:o})})})]})},uQe=e=>c.jsx("ul",{className:"flex flex-col sm:flex-row items-center pb-4",children:e.links.filter(t=>!!(t!=null&&t.link)).map((t,n)=>c.jsx("li",{children:c.jsx(Ze,{link:t.link,label:t.label,linkType:t.linkType,eventName:`link${n}`,variant:"link",alwaysHideCaret:!0,className:"sm:pr-8"})},t.link))}),fQe=({socialLinks:e})=>{const{t}=he();return c.jsx("div",{className:"flex flex-row items-center justify-center sm:justify-end pb-4",children:e.map((n,a)=>n.link?c.jsx(Ze,{label:n.label,link:`${n.prefix??""}${n.link}`,variant:"link",eventName:`socialLink${a}`,alwaysHideCaret:!0,ariaLabel:n.label+" "+t("link","link")},a):null)})},hQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{title:T(v("fields.title","Title"),{type:"entityField",filter:{types:["type.string"]}}),directoryRoot:st(v("fields.directoryRootLinkLabel","Directory Root Link Label"),{types:["type.string"]})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),breadcrumbsBackgroundColor:T(v("fields.breadcrumbsBackgroundColor","Breadcrumbs Background Color"),{type:"select",options:"BACKGROUND_COLOR"}),cards:T(v("fields.cards","Cards"),{type:"object",objectFields:{headingLevel:T(v("fields.headingLevel","Heading Level"),{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",options:"BACKGROUND_COLOR"})}})}})},Ev=e=>e.length>0&&"address"in e[0],Nke=(e,t)=>{const n=(a,i)=>{const o=a[t]??"",r=i[t]??"";return o===r?0:o<r?-1:1};return e.sort(n)},pQe=({cardNumber:e,profile:t,cardStyles:n})=>{const{relativePrefixToRoot:a}=sr(),{i18n:i}=he();return c.jsxs(pt,{className:"h-full flex flex-col p-8 border border-gray-400 rounded gap-4",background:n.backgroundColor,children:[c.jsxs("div",{children:[c.jsx(pi,{eventName:`link${e}`,alwaysHideCaret:!0,className:"mb-2",href:Gc(t,i.language,a),children:c.jsx(Ue,{level:n.headingLevel,semanticLevelOverride:3,children:t.name})}),t.hours&&c.jsx("div",{className:"font-semibold font-body-fontFamily text-body-fontSize",children:c.jsx(Pe.HoursStatus,{hours:t.hours,timezone:t.timezone,className:"h-full",dayOfWeekTemplate:()=>c.jsx(c.Fragment,{})})})]}),t.mainPhone&&c.jsx(Tr,{phoneNumber:t.mainPhone,includeHyperlink:!1,includeIcon:!1,format:t.mainPhone.slice(0,2)==="+1"?"domestic":"international"}),t.address&&c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-fontSize",children:c.jsx(Pe.Address,{address:t.address,lines:[["line1"],["line2"],["city","region","postalCode"]]})})]})},gQe=({directoryChildren:e,cardStyles:t})=>{const n=Nke(e,"name");return c.jsx(De,{verticalPadding:"sm",background:ye.background1.value,className:lt("flex min-h-0 min-w-0 mx-auto flex-col md:grid md:grid-cols-12 gap-4 sm:gap-8"),style:{gridTemplateColumns:"repeat(3, 1fr)"},children:n==null?void 0:n.map((a,i)=>c.jsx(pQe,{cardNumber:i,profile:a,cardStyles:t},i))})},mQe=({directoryChildren:e,relativePrefixToRoot:t,level:n})=>{const a=Nke(e,"name");return c.jsx(De,{verticalPadding:"sm",background:ye.background1.value,children:c.jsx("ul",{className:"grid lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2 grid-cols-1",children:a.map((i,o)=>{let r;switch(n){case"dm_root":r=i.dm_addressCountryDisplayName??i.name;break;case"dm_country":r=i.dm_addressRegionDisplayName??i.name;break;default:r=i.name}return c.jsx("li",{children:c.jsx(pi,{eventName:`child${o}`,variant:"directoryLink",href:t?t+i.slug:i.slug,children:c.jsx(Qe,{children:r})})},o)})})})},bQe=({data:e,styles:t})=>{var r,s,l;const{i18n:n}=he(),{document:a,relativePrefixToRoot:i}=sr(),o=me(we(a,e.title,n.language),n.language);return c.jsxs(pt,{background:t.backgroundColor,children:[c.jsx(Bye,{data:{directoryRoot:e.directoryRoot},liveVisibility:!0,styles:{backgroundColor:t.breadcrumbsBackgroundColor}}),c.jsxs(De,{className:"flex flex-col items-center gap-2",children:[((r=a._site)==null?void 0:r.name)&&c.jsx(Ue,{level:4,children:a._site.name}),o&&c.jsx(Ue,{level:2,children:o})]}),a.dm_directoryChildren&&Ev(a.dm_directoryChildren)&&c.jsx(gQe,{directoryChildren:a.dm_directoryChildren,cardStyles:t.cards}),a.dm_directoryChildren&&!Ev(a.dm_directoryChildren)&&c.jsx(mQe,{directoryChildren:a.dm_directoryChildren,relativePrefixToRoot:i,level:(l=(s=a==null?void 0:a.meta)==null?void 0:s.entityType)==null?void 0:l.id})]})},Eke={label:v("components.directory","Directory"),fields:hQe,defaultProps:{data:{title:{field:"",constantValueEnabled:!0,constantValue:{en:"[[name]]",hasLocalizedValue:"true"}},directoryRoot:{en:"Directory Root",hasLocalizedValue:"true"}},styles:{backgroundColor:ye.background1.value,breadcrumbsBackgroundColor:ye.background1.value,cards:{backgroundColor:ye.background1.value,headingLevel:3}},analytics:{scope:"directory"}},render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e==null?void 0:e.analytics)==null?void 0:t.scope)??"directory",children:c.jsx(bQe,{...e})})}},yQe=({width:e,height:t,color:n,resultIndex:a})=>c.jsxs("svg",{className:`${n} hover:cursor-pointer`,display:"block",height:t,width:e,viewBox:"0 0 27 41",children:[c.jsx("defs",{children:c.jsxs("radialGradient",{id:"shadowGradient",children:[c.jsx("stop",{offset:"10%",stopOpacity:"0.4"}),c.jsx("stop",{offset:"100%",stopOpacity:"0.05"})]})}),c.jsx("ellipse",{cx:"13.5",cy:"34.8",rx:"10.5",ry:"5.25",fill:"url(#shadowGradient)"}),c.jsx("path",{fill:"currentColor",d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"}),c.jsx("path",{opacity:"0.25",d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"}),a&&c.jsx("text",{textAnchor:"middle",fontWeight:"bold",fontSize:"14",x:"50%",y:"50%",fill:"white",children:a})]}),vQe="builtin.location",Cu="location",rh=[-74.005371,40.741611],Pv=40233.6,Ov="builtin.hours",kQe={mapStyle:hs({label:v("fields.mapStyle","Map Style"),options:[{label:v("fields.options.default","Default"),value:"mapbox://styles/mapbox/streets-v12"},{label:v("fields.options.satellite","Satellite"),value:"mapbox://styles/mapbox/satellite-streets-v12"},{label:v("fields.options.light","Light"),value:"mapbox://styles/mapbox/light-v11"},{label:v("fields.options.dark","Dark"),value:"mapbox://styles/mapbox/dark-v11"},{label:v("fields.options.navigationDay","Navigation (Day)"),value:"mapbox://styles/mapbox/navigation-day-v1"},{label:v("fields.options.navigationNight","Navigation (Night)"),value:"mapbox://styles/mapbox/navigation-night-v1"}]}),openNowButton:T(v("fields.options.includeOpenNow","Include Open Now Button"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]})},Pke={fields:kQe,label:v("components.locator","Locator"),render:e=>c.jsx(SQe,{...e})},SQe=e=>{const t=ve(),{searchAnalyticsConfig:n,searcher:a}=k.useMemo(()=>{const i=Wge(t,e.experienceKeyEnvVar);return i===void 0?{searchAnalyticsConfig:void 0,searcher:void 0}:{searchAnalyticsConfig:Vge(t),searcher:Ft.provideHeadless(i)}},[t.id,t.locale]);return a===void 0||n===void 0?(console.warn("Could not create Locator component because Search Headless or Search Analytics config is undefined. Please check your environment variables."),c.jsx(c.Fragment,{})):(a.setSessionTrackingEnabled(!0),c.jsx(Ft.SearchHeadlessProvider,{searcher:a,children:c.jsx(ra.SearchI18nextProvider,{searcher:a,children:c.jsx(ra.AnalyticsProvider,{...n,children:c.jsx(wQe,{...e})})})}))},wQe=e=>{const{t}=he(),{mapStyle:n,openNowButton:a,entityTypeEnvVar:i}=e,o=TQe(i),r=Ft.useSearchState(G=>G.vertical.resultsCount||0),[s,l]=k.useState(!1),[d,u]=k.useState(),[f,h]=k.useState(),p=(G,J)=>{u(G),h(J),l(!0)},b=()=>{if(d&&f){const G={selected:!0,displayName:"",filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:d.lat,lng:d.lng,radius:f.getNorthEast().distanceTo(d)},matcher:Ft.Matcher.Near}};m.setStaticFilters([G]),m.executeVerticalQuery(),L("loading"),l(!1)}},m=Ft.useSearchActions(),y=Ft.useSearchState(G=>{var J,V;return(V=(J=G.filters.static)==null?void 0:J[0])==null?void 0:V.displayName}),S=G=>{const J={displayName:G.newDisplayName,selected:!0,filter:{kind:"fieldValue",fieldId:G.newFilter.fieldId,value:G.newFilter.value,matcher:Ft.Matcher.Near}};m.setStaticFilters([J]),m.executeVerticalQuery(),L("loading")},[w,C]=k.useState(void 0);k.useEffect(()=>{ra.getUserLocation().then(G=>{C([G.coords.longitude,G.coords.latitude]),m.setStaticFilters([{selected:!0,displayName:"",filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:G.coords.latitude,lng:G.coords.longitude,radius:Pv},matcher:Ft.Matcher.Near}}])}).catch(()=>{m.setStaticFilters([{selected:!0,displayName:t("newYorkCity","New York City, New York, United States"),filter:{kind:"fieldValue",fieldId:"builtin.location",value:{lat:rh[1],lng:rh[0],radius:Pv},matcher:Ft.Matcher.Near}}])}).then(()=>{m.executeVerticalQuery(),L("loading")})},[]);const $=Ft.useSearchState(G=>G.searchStatus.isLoading),[x,L]=k.useState("not started");k.useEffect(()=>{!$&&x==="loading"&&L("complete")},[$,x]);const A=k.useRef([]),E=k.useRef(null),z=k.useCallback(G=>A!=null&&A.current?J=>A.current[G]=J:null,[]),_=k.useCallback(G=>{var J;if(G){let V=0;const I=A.current.filter((D,F)=>D&&G.index&&F<G.index);I.length>0&&(V=I.map(D=>(D==null?void 0:D.scrollHeight)??0).reduce((D,F)=>D+F)),(J=E.current)==null||J.scroll({top:V,behavior:"smooth"})}},[E]),B=k.useCallback(G=>({offset:new Uke.Point(0,G?-21:-14)}),[]),U={...w&&{centerCoords:w},...n&&{mapStyle:n},onDragHandler:p,scrollToResult:_,markerOptionsOverride:B},[ee,Y]=k.useState(!1),re=G=>{m.setFilterOption({filter:{kind:"fieldValue",fieldId:Ov,matcher:Ft.Matcher.OpenAt,value:"now"},selected:G,displayName:t("openNow","Open Now")}),Y(ee),m.setOffset(0),m.resetFacets(),ra.executeSearch(m)},Z=Ft.useSearchState(G=>G.filters);return k.useEffect(()=>{Y(Z.static?!!Z.static.find(G=>G.filter.kind==="fieldValue"&&G.filter.fieldId===Ov&&G.selected===!0):!1)},[Z]),c.jsxs("div",{className:"components flex ve-h-screen ve-w-screen mx-auto",children:[c.jsxs("div",{className:"w-full ve-h-screen md:w-2/5 lg:w-1/3 flex flex-col",children:[c.jsxs("div",{className:"px-8 py-6 gap-4 flex flex-col",children:[c.jsx(Ue,{level:3,children:t("findALocation","Find a Location")}),c.jsx(ra.FilterSearch,{searchFields:[{fieldApiName:vQe,entityType:o}],onSelect:G=>S(G),placeholder:t("searchHere","Search here..."),ariaLabel:t("searchDropdownHere","Search Dropdown Input"),customCssClasses:{focusedOption:"bg-gray-200 hover:bg-gray-200",option:"hover:bg-gray-100 px-4 py-3",inputElement:"rounded-md p-4 h-11",currentLocationButton:"h-7 w-7 text-palette-primary-dark"},showCurrentLocationButton:!!w,geolocationProps:{radius:25}}),a&&c.jsx(Hye,{pressed:ee,onPressedChange:G=>re(G),className:"py-2 px-2",children:t("openNow","Open Now")})]}),c.jsxs("div",{className:"px-8 py-4 text-body-fontSize border-y border-gray-300",children:[r===0&&x==="not started"&&t("useOurLocatorToFindALocationNearYou","Use our locator to find a location near you"),r===0&&x==="complete"&&t("noResultsFoundForThisArea","No results found for this area"),r>0&&y&&t("locationsNear",`${r} locations near "${y}"`,{count:r,filterDisplayName:y})]}),c.jsx("div",{id:"innerDiv",className:"overflow-y-auto",ref:E,children:r>0&&c.jsx(ra.VerticalResults,{CardComponent:CQe,setResultsRef:z})})]}),c.jsxs("div",{className:"md:w-3/5 lg:w-2/3 md:flex hidden relative",children:[c.jsx(xQe,{...U}),s&&c.jsx("div",{className:"absolute bottom-10 left-0 right-0 flex justify-center",children:c.jsx(Cr,{onClick:b,className:"py-2 px-4 shadow-xl",children:t("searchThisArea","Search This Area")})})]})]})},xQe=({mapStyle:e,centerCoords:t,onDragHandler:n,scrollToResult:a,markerOptionsOverride:i})=>{var d,u,f;const{t:o}=he(),r=typeof document>"u"?void 0:document.getElementById("preview-frame");if(r!=null&&r.contentDocument&&!((d=r.contentWindow)!=null&&d.mapboxgl))return c.jsx("div",{className:"flex items-center justify-center w-full h-full",children:c.jsx("div",{className:"border border-gray-300 rounded-lg p-6 bg-white shadow-md",children:c.jsx("span",{className:"text-gray-700 text-lg font-medium font-body-fontFamily",children:o("loadingMap","Loading Map...")})})});const s=ve();let l=(u=s._env)==null?void 0:u.YEXT_MAPBOX_API_KEY;return r!=null&&r.contentDocument&&((f=s._env)!=null&&f.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY)&&(l=s._env.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY),c.jsx(ra.MapboxMap,{mapboxAccessToken:l||"",mapboxOptions:{center:t??rh,...e?{style:e}:{}},onDrag:n,PinComponent:$Qe,iframeWindow:(r==null?void 0:r.contentWindow)??void 0,allowUpdates:!!(r!=null&&r.contentDocument),onPinClick:a,markerOptionsOverride:i})},$Qe=e=>{const{result:t,selected:n}=e,{width:a,height:i,color:o}=k.useMemo(()=>n?{height:"61.5px",width:"40.5px",color:"text-palette-secondary-dark"}:{height:"41px",width:"27px",color:"text-palette-primary-dark"},[n]);return c.jsx(yQe,{height:i,width:a,color:o,resultIndex:t.index})},CQe=({result:e})=>{const{t,i18n:n}=he(),{relativePrefixToRoot:a}=sr(),i=e.rawData,o=e.distance,r=h=>`https://www.google.com/maps/dir/?api=1&destination=${h.latitude},${h.longitude}`,s=o?(o/1609.344).toFixed(1):void 0,l=o?(o/1e3).toFixed(1):void 0,d=ra.useCardAnalyticsCallback(e,"DRIVING_DIRECTIONS"),u=ra.useCardAnalyticsCallback(e,"VIEW_WEBSITE"),f=ra.useCardAnalyticsCallback(e,"TAP_TO_CALL");return c.jsxs(pt,{background:ye.background1.value,className:"container flex flex-row border-b border-gray-300 p-8 gap-4",children:[c.jsx(pt,{background:ye.background6.value,className:"flex-shrink-0 w-6 h-6 rounded-full font-bold flex items-center justify-center text-body-sm-fontSize",children:e.index}),c.jsxs("div",{className:"flex flex-wrap gap-6 w-full",children:[c.jsxs("div",{className:"w-full flex flex-col gap-4",children:[c.jsxs("div",{className:"flex flex-row justify-between items-center",children:[c.jsx(Ue,{className:"font-bold text-palette-primary-dark",level:4,children:i.name}),o&&c.jsx("div",{className:"font-body-fontFamily font-body-sm-fontWeight text-body-sm-fontSize",children:t("distanceInUnit",`${s} mi`,{distanceInMiles:s,distanceInKilometers:l})})]}),i.hours&&c.jsx("div",{className:"font-body-fontFamily text-body-fontSize gap-8",children:c.jsx(Pe.HoursStatus,{hours:i.hours,timezone:i.timezone})}),i.mainPhone&&c.jsx("a",{href:i.mainPhone,onClick:f,className:"components h-fit w-fit underline decoration-0 hover:no-underline font-link-fontFamily text-link-fontSize tracking-link-letterSpacing text-palette-primary-dark",children:_ye(i.mainPhone,i.mainPhone.slice(0,2)==="+1"?"domestic":"international")}),c.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[i.address&&c.jsx("div",{className:"font-body-fontFamily font-body-fontWeight text-body-md-fontSize gap-4",children:c.jsx(Pe.Address,{address:i.address,lines:[["line1"],["line2"],["city","region","postalCode"]]})}),i.yextDisplayCoordinate&&c.jsxs("a",{href:r(i.yextDisplayCoordinate||{latitude:0,longitude:0}),onClick:d,className:"components h-fit items-center w-fit underline gap-2 decoration-0 hover:no-underline font-link-fontFamily text-link-fontSize tracking-link-letterSpacing flex font-bold text-palette-primary-dark",children:[t("getDirections","Get Directions"),c.jsx(Oye,{size:"12px"})]})]})]}),c.jsx(Cr,{asChild:!0,className:"basis-full",variant:"primary",children:c.jsx("a",{href:Gc(i,n.language,a),onClick:u,children:t("visitPage","Visit Page")})})]})]})},TQe=e=>{var n;const t=ve();if(!t._pageset&&e)return((n=t._env)==null?void 0:n[e])||Cu;try{return JSON.parse(t._pageset).typeConfig.locatorConfig.entityType||Cu}catch{return Cu}},LQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{apiKey:T(v("fields.apiKey","API Key"),{type:"text"})}}),liveVisibility:T(v("fields.visibleOnLivePage","Visible on Live Page"),{type:"radio",options:[{label:v("fields.options.show","Show"),value:!0},{label:v("fields.options.hide","Hide"),value:!0}]})},AQe=({data:e})=>c.jsx(De,{background:ye.background1.value,className:"flex items-center",children:c.jsx(Tve,{apiKey:e.apiKey,coordinate:{field:"yextDisplayCoordinate",constantValue:{latitude:0,longitude:0}}})}),NQe={label:v("components.staticMapSection","Static Map Section"),fields:LQe,defaultProps:{data:{apiKey:""},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(AQe,{...e})})};function EQe(e){return gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(e)}const PQe="https://placehold.co/100",OQe={linkType:"URL",label:{en:"Footer Link",hasLocalizedValue:"true"},links:[]},Ie={linkType:"URL",label:{en:"Footer Link",hasLocalizedValue:"true"},link:"#"},Si={xLink:/^https:\/\/(www\.)?(x\.com|twitter\.com)\/.+/,facebookLink:/^https:\/\/(www\.)?facebook\.com\/.+/,instagramLink:/^https:\/\/(www\.)?instagram\.com\/.+/,pinterestLink:/^https:\/\/(www\.)?pinterest\.com\/.+/,linkedInLink:/^https:\/\/(www\.)?linkedin\.com\/.+/,youtubeLink:/^(https:\/\/(www\.)?youtube\.com\/.+|https:\/\/youtu\.be\/.+)$/,tiktokLink:/^https:\/\/(www\.)?tiktok\.com\/.+/},FQe={data:T(v("fields.data","Data"),{type:"object",objectFields:{primaryFooter:T(v("fields.primaryFooter","Primary Footer"),{type:"object",objectFields:{logo:T(v("fields.logo","Logo"),{type:"text"}),facebookLink:T(v("fields.facebookLink","Facebook Link"),{type:"text"}),instagramLink:T(v("fields.instagramLink","Instagram Link"),{type:"text"}),linkedInLink:T(v("fields.linkedInLink","LinkedIn Link"),{type:"text"}),pinterestLink:T(v("fields.pinterestLink","Pinterest Link"),{type:"text"}),tiktokLink:T(v("fields.tiktokLink","Tiktok Link"),{type:"text"}),xLink:T(v("fields.xLink","X Link"),{type:"text"}),youtubeLink:T(v("fields.youtubeLink","YouTube Link"),{type:"text"}),utilityImages:T(v("fields.utilityImages","Utility Images"),{type:"array",arrayFields:{url:T(v("fields.imageUrl","Image URL"),{type:"text"}),linkTarget:T(v("fields.destinationURL","Destination URL"),{type:"text"})}}),expandedFooter:T(v("fields.expandFooter","Expand Footer"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),expandedFooterLinks:T(v("fields.expandedFooterLinks","Expanded Footer Links"),{type:"array",arrayFields:{label:T(v("fields.label","Label"),{type:"text"}),links:T(v("fields.links","Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})},defaultItemProps:OQe}),footerLinks:T(v("fields.footerLinks","Footer Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})}}),secondaryFooter:T(v("fields.secondaryFooterLinks","Secondary Footer Links"),{type:"object",objectFields:{show:T(v("fields.show","Show"),{type:"radio",options:[{label:v("fields.options.yes","Yes"),value:!0},{label:v("fields.options.no","No"),value:!1}]}),copyrightMessage:st(v("fields.copyrightMessage","Copyright Message"),{types:["type.string"]}),secondaryFooterLinks:T(v("fields.secondaryFooterLinks","Secondary Footer Links"),{type:"array",arrayFields:{label:st(v("fields.label","Label"),{types:["type.string"]}),link:T(v("fields.link","Link"),{type:"text"}),linkType:{label:M("fields.linkType","Link Type"),type:"select",options:Na()}},defaultItemProps:Ie})}})}}),styles:T(v("fields.styles","Styles"),{type:"object",objectFields:{primaryFooter:T(v("fields.primaryFooter","Primary Footer"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),linksAlignment:T(v("fields.linksAlignment","Links Alignment"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]}),logo:T(v("fields.logo","Logo"),{type:"object",objectFields:rr}),utilityImages:T(v("fields.utilityImages","Utility Images"),{type:"object",objectFields:rr})}}),secondaryFooter:T(v("fields.secondaryFooter","Secondary Footer"),{type:"object",objectFields:{backgroundColor:T(v("fields.backgroundColor","Background Color"),{type:"select",hasSearch:!0,options:"BACKGROUND_COLOR"}),linksAlignment:T(v("fields.linksAlignment","Links Alignment"),{type:"radio",options:[{label:v("fields.options.left","Left",{context:"direction"}),value:"left"},{label:v("fields.options.right","Right",{context:"direction"}),value:"right"}]})}})}})},jQe=({data:e,styles:t,puck:n})=>{const{primaryFooter:a,secondaryFooter:i}=e,{primaryFooter:o,secondaryFooter:r}=t,{logo:s,footerLinks:l,xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m,utilityImages:y,expandedFooterLinks:S,expandedFooter:w}=a,{show:C,copyrightMessage:$,secondaryFooterLinks:x}=i,{linksAlignment:L,backgroundColor:A,logo:{width:E,aspectRatio:z},utilityImages:{width:_,aspectRatio:B}}=o,{backgroundColor:U,linksAlignment:ee}=r,{i18n:Y}=he(),{document:re}=ve();return c.jsxs(pt,{className:"mt-auto",ref:n.dragRef,as:"footer",children:[c.jsxs(De,{verticalPadding:"footer",background:A,className:`flex flex-col ${L==="right"?"md:flex-row":"md:flex-row-reverse"} md:justify-start w-full md:items-start gap-8 md:gap-10`,children:[c.jsxs("div",{className:`flex flex-col gap-10 md:gap-8 ${L==="left"?"items-end":"items-start"}`,children:[s&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.logo","Logo"),children:c.jsx(Tu,{aspectRatio:z,logo:RQe(s,E||100),logoWidth:E||100})}),c.jsxs("div",{className:"hidden md:block space-y-8",children:[c.jsx(Mv,{xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m}),y&&y.length>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.utilityImages","Utility Images"),children:c.jsx("div",{className:"grid grid-cols-3 gap-8",children:y.map((Z,G)=>c.jsx(Tu,{aspectRatio:B,logo:jv(Z.url,_||60),logoWidth:_||60},G))})})]})]}),w?c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.expandedFooterLinks","Expanded Footer Links"),children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 w-full text-center md:text-left justify-items-center md:justify-items-start gap-6",children:S.map((Z,G)=>c.jsx(MQe,{label:me(Z.label,Y.language,re),links:Z.links},G))})}):c.jsx("div",{className:"w-full",children:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.footerLinks","Footer Links"),children:c.jsx(Fv,{links:l,type:"Primary"})})}),c.jsxs("div",{className:"md:hidden block space-y-10",children:[c.jsx(Mv,{xLink:d,facebookLink:u,instagramLink:f,pinterestLink:h,linkedInLink:p,youtubeLink:b,tiktokLink:m}),y&&y.length>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.utilityImages","Utility Images"),children:c.jsx("div",{className:"grid grid-cols-3 gap-8",children:c.jsx("div",{className:"col-span-3 flex justify-center",children:y.map((Z,G)=>c.jsx(Tu,{aspectRatio:B,logo:jv(Z.url,E||100),logoWidth:_||100},G))})})})]})]}),C&&c.jsxs(De,{verticalPadding:"footerSecondary",background:U,className:`flex flex-col gap-5 ${ee==="left"?"md:items-start":"md:items-end"}`,children:[(x==null?void 0:x.length)>=1&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.secondaryFooterLinks","Secondary Footer Links"),children:c.jsx(Fv,{links:x,type:"Secondary"})}),$&&c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.copyrightMessage","Copyright Message"),children:c.jsx(Qe,{variant:"xs",className:"text-center md:text-left",children:me($,Y.language,re)})})]})]})},Fv=({links:e,type:t="Primary"})=>{const{i18n:n}=he(),{document:a}=ve();return c.jsx("ul",{className:`w-full ${t==="Secondary"?"gap-4 flex flex-col md:flex-row":"grid grid-cols-1 md:grid-cols-5 gap-6"}`,children:e.map((i,o)=>c.jsx("li",{children:c.jsx(Ze,{variant:t==="Primary"?"headerFooterMainLink":"headerFooterSecondaryLink",eventName:`cta.${t.toLowerCase()}.${o}-Link-${o+1}`,label:me(i.label,n.language,a),linkType:i.linkType,link:i.link,className:"justify-center md:justify-start block break-words whitespace-normal"})},`${t.toLowerCase()}.${o}`))})},MQe=({links:e,label:t})=>{const{i18n:n}=he(),{document:a}=ve();return c.jsxs("ul",{className:"flex flex-col items-center md:items-start gap-4 w-full",children:[c.jsx("li",{className:"w-full",children:c.jsx(Qe,{className:"break-words",children:t})}),e.map((i,o)=>c.jsx("li",{className:"w-full",children:c.jsx(Ze,{variant:"headerFooterMainLink",eventName:`cta${o}-Link-${o+1}`,label:me(i.label,n.language,a),linkType:i.linkType,link:i.link,className:"justify-start block break-words whitespace-normal"})},o))]})},Tu=e=>c.jsx(pi,{href:e.logoLink,alwaysHideCaret:!0,children:c.jsx("div",{style:{width:`${e.logoWidth}px`},children:c.jsx(vn,{image:e.logo.image,aspectRatio:e.aspectRatio||e.logo.image.width/e.logo.image.height})})}),RQe=(e,t)=>({image:{url:e,alternateText:"Logo",height:t/2,width:t}}),jv=(e,t)=>({image:{url:e,height:t,width:t,alternateText:"Utility Image"}}),Mv=({xLink:e,facebookLink:t,instagramLink:n,pinterestLink:a,linkedInLink:i,youtubeLink:o,tiktokLink:r})=>{const{t:s}=he(),d=[{link:e,icon:c.jsx(EQe,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"X (Twitter)",valid:Si.xLink.test(e)},{link:t,icon:c.jsx(Tye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Facebook",valid:Si.facebookLink.test(t)},{link:n,icon:c.jsx(Lye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Instagram",valid:Si.instagramLink.test(n)},{link:a,icon:c.jsx(Nye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"Pinterest",valid:Si.pinterestLink.test(a)},{link:i,icon:c.jsx(Aye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"LinkedIn",valid:Si.linkedInLink.test(i)},{link:o,icon:c.jsx(Pye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"YouTube",valid:Si.youtubeLink.test(o)},{link:r,icon:c.jsx(Eye,{className:"h-6 w-6 md:h-5 md:w-5"}),label:"TikTok",valid:Si.tiktokLink.test(r)}].filter(({valid:u})=>u);return d.length===0?null:c.jsx(le,{constantValueEnabled:!0,displayName:M("fields.socialLinks","Social Links"),children:c.jsx("div",{className:"flex gap-6 items-center justify-center md:justify-start",children:d.map(({link:u,icon:f,label:h},p)=>c.jsx(Ze,{label:f,link:u,linkType:"URL",variant:"link",eventName:`socialLink.${h.toLowerCase()}`,ariaLabel:`${h} ${s("link","link")}`,alwaysHideCaret:!0,className:"block break-words whitespace-normal"},p))})})},Oke={label:v("components.expandedFooter","Expanded Footer"),fields:FQe,defaultProps:{data:{primaryFooter:{logo:PQe,footerLinks:[Ie,Ie,Ie,Ie,Ie],xLink:"",facebookLink:"",instagramLink:"",pinterestLink:"",linkedInLink:"",youtubeLink:"",tiktokLink:"",utilityImages:[],expandedFooter:!1,expandedFooterLinks:[{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]},{label:"Footer Label",links:[Ie,Ie,Ie,Ie,Ie]}]},secondaryFooter:{show:!1,copyrightMessage:{en:"",hasLocalizedValue:"true"},secondaryFooterLinks:[Ie,Ie,Ie,Ie,Ie]}},styles:{primaryFooter:{logo:{width:0,aspectRatio:1.78},utilityImages:{width:0,aspectRatio:1},backgroundColor:ye.background6.value,linksAlignment:"right"},secondaryFooter:{backgroundColor:ye.background2.value,linksAlignment:"left"}},analytics:{scope:"expandedFooter"}},resolveFields:(e,{fields:t})=>{const n=e.props.data.primaryFooter.expandedFooter,a=e.props.data.secondaryFooter.show,i={...t.data.objectFields.primaryFooter.objectFields},o={...t.data.objectFields.secondaryFooter.objectFields},r={...t.styles.objectFields},s={...t.styles.objectFields.secondaryFooter.objectFields};return n?delete i.footerLinks:delete i.expandedFooterLinks,a?r.secondaryFooter={...t.styles.objectFields.secondaryFooter,objectFields:s}:(delete o.secondaryFooterLinks,delete o.copyrightMessage,delete r.secondaryFooter),{...t,data:{...t.data,objectFields:{...t.data.objectFields,primaryFooter:{...t.data.objectFields.primaryFooter,objectFields:i},secondaryFooter:{...t.data.objectFields.secondaryFooter,objectFields:o}}},styles:{...t.styles,objectFields:r}}},inline:!0,render:e=>{var t;return c.jsx(Pe.AnalyticsScopeProvider,{name:((t=e.analytics)==null?void 0:t.scope)??"expandedFooter",children:c.jsx(jQe,{...e})})}},Fke={BannerSection:zye,BreadcrumbsSection:Wye,CoreInfoSection:Vye,EventSection:Gye,FAQSection:ave,HeroSection:Uye,InsightSection:Kye,NearbyLocationsSection:qye,PhotoGallerySection:nve,ProductSection:Yye,PromoSection:Zye,ReviewsSection:sve,StaticMapSection:NQe,TeamSection:cve,TestimonialSection:lve},jke=Object.keys(Fke),Mke={ExpandedHeader:Lke,ExpandedFooter:Oke},Rke=Object.keys(Mke),_ke={Directory:Eke},_Qe=Object.keys(_ke),Ike={Locator:Pke},IQe=Object.keys(Ike),Dke={Header:Cke,Footer:Ake},DQe=Object.keys(Dke),Hke={Flex:fve,Grid:pve},Ng=Object.keys(Hke),zke={Address:gve,BodyText:bve,CTAWrapper:yve,Emails:vve,GetDirections:kve,HeadingText:wve,HoursStatus:$ve,HoursTable:xve,ImageWrapper:Cve,MapboxStaticMap:Lve,Phone:Ave,TextList:Nve},Eg=Object.keys(zke),HQe={background:T("Background Color",{type:"select",options:"BACKGROUND_COLOR"}),sectionHeading:T("Section Heading",{type:"object",objectFields:{text:T("Section Heading Text",{type:"entityField",filter:{types:["type.string"]}}),level:T("Heading Level",{type:"select",hasSearch:!0,options:"HEADING_LEVEL"}),alignment:T("Alignment",{type:"radio",options:ze.ALIGNMENT})}}),liveVisibility:T("Visible on Live Page",{type:"radio",options:[{label:"Show",value:!0},{label:"Hide",value:!1}]})},zQe=e=>{const{background:t,sectionHeading:n}=e,a=ve(),{i18n:i}=he(),o=i.language,r=me(we(a,n.text,o),o),s={left:"justify-start",center:"justify-center",right:"justify-end"}[n.alignment];return c.jsxs(De,{background:t,children:[r&&c.jsx(Ue,{level:n.level,className:`flex pb-8 ${s}`,children:r}),c.jsx(be.DropZone,{zone:"page-section",disallow:[...Rke,...jke]})]})},BQe={label:"Section Container",fields:HQe,defaultProps:{background:ye.background1.value,sectionHeading:{text:{field:"",constantValue:"Section",constantValueEnabled:!0},level:2,alignment:"left"},liveVisibility:!0},render:e=>c.jsx(wt,{liveVisibility:e.liveVisibility,isEditing:e.puck.isEditing,children:c.jsx(zQe,{...e})})},Bke={...$s},xa=jhe(Bke),$a=e=>()=>Rhe({fontCssVariable:e,fontList:Bke}),WQe={palette:{label:v("theme.colors.colors","Colors"),styles:{primary:{label:v("theme.colors.primary","Primary"),type:"color",default:"#CF0A2C",plugin:"colors"},secondary:{label:v("theme.colors.secondary","Secondary"),type:"color",default:"#737B82",plugin:"colors"},tertiary:{label:v("theme.colors.tertiary","Tertiary"),type:"color",default:"#FF7E7E",plugin:"colors"},quaternary:{label:v("theme.colors.quaternary","Quaternary"),type:"color",default:"#000000",plugin:"colors"}}},h1:{label:"H1",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"48px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h1-fontFamily"),default:"700"}}},h2:{label:"H2",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"40px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h2-fontFamily"),default:"700"}}},h3:{label:"H3",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"32px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h3-fontFamily"),default:"700"}}},h4:{label:"H4",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"24px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h4-fontFamily"),default:"700"}}},h5:{label:"H5",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"20px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h5-fontFamily"),default:"700"}}},h6:{label:"H6",styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"18px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-h6-fontFamily"),default:"700"}}},body:{label:v("theme.bodyText","Body Text"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-body-fontFamily"),default:"400"}}},pageSection:{label:v("theme.pageSection","Page Section"),styles:{contentWidth:{label:v("theme.contentWidth.contentWidth","Content Width"),type:"select",plugin:"maxWidth",options:[{label:v("theme.contentWidth.compact","Compact (768px)"),value:"768px"},{label:v("theme.contentWidth.narrow","Narrow (960px)"),value:"960px"},{label:v("theme.contentWidth.standard","Standard (1024px)"),value:"1024px"},{label:v("theme.contentWidth.wide","Wide (1280px)"),value:"1280px"},{label:v("theme.contentWidth.extraWide","Extra Wide (1440px)"),value:"1440px"}],default:"1024px"},verticalPadding:{label:v("theme.topBottomPadding","Top/Bottom Padding"),type:"select",plugin:"padding",options:ze.SPACING,default:"32px"}}},button:{label:v("theme.button","Button"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-button-fontFamily"),default:"400"},borderRadius:{label:v("theme.borderRadius","Border Radius"),type:"select",plugin:"borderRadius",options:ze.BUTTON_BORDER_RADIUS,default:"4px"},textTransform:{label:v("theme.textTransform.textTransform","Text Transform"),type:"select",plugin:"textTransform",options:ze.TEXT_TRANSFORM,default:"none"},letterSpacing:{label:v("theme.letterSpacing.letterSpacing","Letter Spacing"),type:"select",plugin:"letterSpacing",options:ze.LETTER_SPACING,default:"0em"}}},link:{label:v("theme.links","Links"),styles:{fontFamily:{label:v("theme.font","Font"),type:"select",plugin:"fontFamily",options:xa,default:"'Open Sans', sans-serif"},fontSize:{label:v("theme.fontSize","Font Size"),type:"select",plugin:"fontSize",options:ze.FONT_SIZE,default:"16px"},fontWeight:{label:v("theme.fontWeight.fontWeight","Font Weight"),type:"select",plugin:"fontWeight",options:$a("--fontFamily-link-fontFamily"),default:"400"},textTransform:{label:v("theme.textTransform.textTransform","Text Transform"),type:"select",plugin:"textTransform",options:ze.TEXT_TRANSFORM,default:"none"},letterSpacing:{label:v("theme.letterSpacing.letterSpacing","Letter Spacing"),type:"select",plugin:"letterSpacing",options:ze.LETTER_SPACING,default:"0em"},caret:{label:v("theme.includeCaret","Include Caret"),type:"select",plugin:"display",options:[{label:v("fields.options.yes","Yes"),value:"block"},{label:v("fields.options.no","No"),value:"none"}],default:"block"}}},image:{label:v("theme.image","Image"),styles:{borderRadius:{label:v("theme.borderRadius","Border Radius"),type:"select",plugin:"borderRadius",options:ze.IMAGE_BORDER_RADIUS,default:"0px"}}}};exports.Address=gve;exports.Background=pt;exports.BackgroundProvider=Qv;exports.BannerSection=zye;exports.BasicSelector=hs;exports.Body=Qe;exports.BodyText=bve;exports.BreadcrumbsSection=Wye;exports.Button=Cr;exports.CTA=Ze;exports.CTAWrapper=yve;exports.ComponentFields=Ia;exports.ContentBlockCategory=Eg;exports.ContentBlockCategoryComponents=zke;exports.CoreInfoSection=Vye;exports.DeprecatedCategory=DQe;exports.DeprecatedCategoryComponents=Dke;exports.Directory=Eke;exports.DirectoryCategory=_Qe;exports.DirectoryCategoryComponents=_ke;exports.Editor=QUe;exports.Emails=vve;exports.EmbeddedFieldStringInput=op;exports.EntityField=le;exports.EventSection=Gye;exports.ExpandedFooter=Oke;exports.ExpandedHeader=Lke;exports.FAQSection=ave;exports.Flex=fve;exports.FontSizeSelector=OCe;exports.Footer=Ake;exports.GetDirections=kve;exports.Grid=pve;exports.Header=Cke;exports.Heading=Ue;exports.HeadingText=wve;exports.HeroSection=Uye;exports.HoursStatus=$ve;exports.HoursStatusAtom=kd;exports.HoursTable=xve;exports.HoursTableAtom=sg;exports.Image=vn;exports.ImageWrapper=Cve;exports.InsightSection=Kye;exports.KnowledgeGraphIcon=ebe;exports.LayoutBlockCategory=Ng;exports.LayoutBlockCategoryComponents=Hke;exports.LocatorCategory=IQe;exports.LocatorCategoryComponents=Ike;exports.LocatorComponent=Pke;exports.MapboxStaticMap=Lve;exports.MaybeLink=pi;exports.MaybeRTF=Rye;exports.NearbyLocationsSection=qye;exports.OptionalNumberField=Sye;exports.OtherCategory=Rke;exports.OtherCategoryComponents=Mke;exports.PageSection=De;exports.PageSectionCategory=jke;exports.PageSectionCategoryComponents=Fke;exports.Phone=Ave;exports.PhoneAtom=Tr;exports.PhotoGallerySection=nve;exports.ProductSection=Yye;exports.PromoSection=Zye;exports.ReviewStars=Sd;exports.ReviewsSection=sve;exports.SectionContainer=BQe;exports.SpacingSelector=Nl;exports.TailwindConfigContext=lh;exports.TeamSection=cve;exports.TemplatePropsContext=Oc;exports.TestimonialSection=lve;exports.TextList=Nve;exports.ThemeOptions=ze;exports.Timestamp=Hs;exports.TimestampOption=Ds;exports.Toggle=Hye;exports.TranslatableRichTextField=Bi;exports.TranslatableStringField=st;exports.VisibilityWrapper=wt;exports.VisualEditorProvider=Rwe;exports.YextEntityFieldSelector=hc;exports.YextField=T;exports.YextStructFieldSelector=fp;exports.addHeadingAlignmentMigration=qge;exports.applyAnalytics=ZCe;exports.applyHeaderScript=XCe;exports.applyTheme=gSe;exports.backgroundColors=ye;exports.bodyVariants=wye;exports.buttonVariants=xye;exports.constructFontSelectOptions=jhe;exports.createSearchAnalyticsConfig=Vge;exports.createSearchHeadlessConfig=Wge;exports.defaultFonts=$s;exports.defaultThemeConfig=WQe;exports.defaultThemeTailwindExtensions=DCe;exports.fetchLocalesToPathsForEntity=Hge;exports.fetchNearbyLocations=Dge;exports.fetchReviewsForEntity=zge;exports.getAggregateRating=lg;exports.getAnalyticsScopeHash=ga;exports.getFontWeightOptions=Rhe;exports.getFontWeightOverrideOptions=hSe;exports.getLocationPath=Gc;exports.getPageMetadata=QCe;exports.headingVariants=Mye;exports.i18nComponentsInstance=rs;exports.i18nPlatformInstance=cr;exports.migrate=nr;exports.migrationRegistry=tr;exports.msg=v;exports.normalizeSlug=bh;exports.pt=M;exports.resolveTranslatableRichText=fa;exports.resolveTranslatableString=me;exports.resolveYextEntityField=we;exports.resolveYextStructField=uh;exports.themeManagerCn=lt;exports.themeManagerTwMergeConfiguration=Khe;exports.themeResolver=kSe;exports.useBackground=lr;exports.useDocument=ve;exports.useEntityFields=xs;exports.usePlatformBridgeDocument=Xke;exports.usePlatformBridgeEntityFields=Qke;exports.usePlatformTranslation=Nn;exports.useTailwindConfig=ch;exports.useTemplateProps=sr;exports.validateSlug=zwe;exports.withPropOverrides=m4e;