@shohojdhara/atomix 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/628.js +1 -1
- package/package.json +1 -1
- package/dist/js/987.js +0 -1
- package/dist/js/atomix.react.cjs.js +0 -1
- package/dist/js/atomix.react.umd.js +0 -1
- package/dist/js/chunks/cjs/202.6e2b9e63a406ff01b151.js +0 -1
- package/dist/js/chunks/cjs/308.86b2e7ea63bf439e01b4.js +0 -1
- package/dist/js/chunks/cjs/54.54733c458fc7ced6d9ba.js +0 -1
- package/dist/js/chunks/cjs/619.8e6863cb2985a3a109af.js +0 -1
- package/dist/js/chunks/cjs/690.17522d562f7ebe2fa7b4.js +0 -1
- package/dist/js/chunks/cjs/894.6edddf7d4bf7ccb11e25.js +0 -1
- package/dist/js/chunks/cjs/897.74f4c88710fe45c1b9e3.js +0 -1
- package/dist/js/chunks/umd/202.5017dd0403d696bf1644.js +0 -1
- package/dist/js/chunks/umd/308.4bc14b9d7b16b6ee0ab8.js +0 -1
- package/dist/js/chunks/umd/54.7fdfb4a031989470a70d.js +0 -1
- package/dist/js/chunks/umd/619.84a0c35ecee695250085.js +0 -1
- package/dist/js/chunks/umd/690.d7041094a34a4a434be2.js +0 -1
- package/dist/js/chunks/umd/894.c127ee4e9513c22ee97d.js +0 -1
- package/dist/js/chunks/umd/897.26932ac837a39fc91907.js +0 -1
package/dist/js/628.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=628,exports.ids=[628],exports.modules={160:function(t,r,n){"use strict";var e=n(3948),o=String;t.exports=function(t){if("Symbol"===e(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},470:function(t,r,n){"use strict";var e=n(6028),o=n(5594);t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},575:function(t,r,n){"use strict";var e=n(3121);t.exports=function(t){return e(t.length)}},581:function(t,r,n){"use strict";var e=n(3930),o=n(2250),i=n(6285),u=TypeError;t.exports=function(t,r){var n,c;if("string"===r&&o(n=t.toString)&&!i(c=e(n,t)))return c;if(o(n=t.valueOf)&&!i(c=e(n,t)))return c;if("string"!==r&&o(n=t.toString)&&!i(c=e(n,t)))return c;throw new u("Can't convert object to primitive value")}},798:function(t,r,n){"use strict";var e,o,i=n(5951),u=n(6794),c=i.process,s=i.Deno,f=c&&c.versions||s&&s.version,a=f&&f.v8;a&&(o=(e=a.split("."))[0]>0&&4>e[0]?1:+(e[0]+e[1])),!o&&u&&((e=u.match(/Edge\/(\d+)/))&&74>e[1]||(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1])),t.exports=o},1091:function(t,r,n){"use strict";var e=n(5951),o=n(6024),i=n(2361),u=n(2250),c=n(3846).f,s=n(7463),f=n(2046),a=n(8311),p=n(1626),v=n(9724);n(6128);var l=function(t){var r=function(n,e,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var n,o,y,b,x,h,d,g,m,w=t.target,j=t.global,O=t.stat,S=t.proto,P=j?e:O?e[w]:e[w]&&e[w].prototype,E=j?f:f[w]||p(f,w,{})[w],T=E.prototype;for(b in r)o=!(n=s(j?b:w+(O?".":"#")+b,t.forced))&&P&&v(P,b),h=E[b],o&&(d=t.dontCallGetSet?(m=c(P,b))&&m.value:P[b]),x=o&&d?d:r[b],(n||S||typeof h!=typeof x)&&(g=t.bind&&o?a(x,e):t.wrap&&o?l(x):S&&u(x)?i(x):x,(t.sham||x&&x.sham||h&&h.sham)&&p(g,"sham",!0),p(E,b,g),S&&(v(f,y=w+"Prototype")||p(f,y,{}),p(f[y],b,x),t.real&&T&&(n||!T[b])&&p(T,b,x)))}},1175:function(t,r,n){"use strict";var e=n(9846);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:function(t){"use strict";var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:r)(e)}},1362:function(t,r,n){"use strict";n(9748);var e=n(1747);t.exports=e("Array","includes")},1505:function(t,r,n){"use strict";var e=n(8828);t.exports=!e((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1626:function(t,r,n){"use strict";var e=n(9447),o=n(4284),i=n(5817);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},1747:function(t,r,n){"use strict";var e=n(5951),o=n(2046);t.exports=function(t,r){var n=o[t+"Prototype"],i=n&&n[r];if(i)return i;var u=e[t],c=u&&u.prototype;return c&&c[r]}},1907:function(t,r,n){"use strict";var e=n(1505),o=Function.prototype,i=o.call,u=e&&o.bind.bind(i,i);t.exports=e?u:function(t){return function(){return i.apply(t,arguments)}}},2046:function(t){"use strict";t.exports={}},2074:function(t,r,n){"use strict";var e=n(2087),o=TypeError;t.exports=function(t){if(e(t))throw new o("The method doesn't accept regular expressions");return t}},2087:function(t,r,n){"use strict";var e=n(6285),o=n(5807),i=n(6264)("match");t.exports=function(t){var r;return e(t)&&(void 0!==(r=t[i])?!!r:"RegExp"===o(t))}},2156:function(t){"use strict";t.exports=function(){}},2159:function(t,r,n){"use strict";var e=n(2250),o=n(4640),i=TypeError;t.exports=function(t){if(e(t))return t;throw new i(o(t)+" is not a function")}},2250:function(t){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2361:function(t,r,n){"use strict";var e=n(5807),o=n(1907);t.exports=function(t){if("Function"===e(t))return o(t)}},2532:function(t,r,n){"use strict";var e=n(5951),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},2574:function(t,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!n.call({1:2},1);r.f=o?function(t){var r=e(this,t);return!!r&&r.enumerable}:n},2623:function(t,r,n){"use strict";var e={};e[n(6264)("toStringTag")]="z",t.exports=e+""=="[object z]"},3121:function(t,r,n){"use strict";var e=n(5482),o=Math.min;t.exports=function(t){var r=e(t);return r>0?o(r,9007199254740991):0}},3648:function(t,r,n){"use strict";var e=n(9447),o=n(8828),i=n(9552);t.exports=!e&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3846:function(t,r,n){"use strict";var e=n(9447),o=n(3930),i=n(2574),u=n(5817),c=n(7374),s=n(470),f=n(9724),a=n(3648),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=s(r),a)try{return p(t,r)}catch(n){}if(f(t,r))return u(!o(i.f,t,r),t[r])}},3930:function(t,r,n){"use strict";var e=n(1505),o=Function.prototype.call;t.exports=e?o.bind(o):function(){return o.apply(o,arguments)}},3948:function(t,r,n){"use strict";var e=n(2623),o=n(2250),i=n(5807),u=n(6264)("toStringTag"),c=Object,s="Arguments"===i(function(){return arguments}());t.exports=e?i:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(n){}}(r=c(t),u))?n:s?i(r):"Object"===(e=i(r))&&o(r.callee)?"Arguments":e}},4239:function(t,r,n){"use strict";var e=n(7136),o=TypeError;t.exports=function(t){if(e(t))throw new o("Can't call method on "+t);return t}},4284:function(t,r,n){"use strict";var e=n(9447),o=n(3648),i=n(8661),u=n(6624),c=n(470),s=TypeError,f=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p="enumerable",v="configurable",l="writable";r.f=e?i?function(t,r,n){if(u(t),r=c(r),u(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var e=a(t,r);e&&e[l]&&(t[r]=n.value,n={configurable:v in n?n[v]:e[v],enumerable:p in n?n[p]:e[p],writable:!1})}return f(t,r,n)}:f:function(t,r,n){if(u(t),r=c(r),u(n),o)try{return f(t,r,n)}catch(e){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},4378:function(t,r,n){"use strict";n(9770);var e=n(1747);t.exports=e("String","includes")},4436:function(t,r,n){"use strict";var e=n(7374),o=n(4849),i=n(575),u=function(t){return function(r,n,u){var c=e(r),s=i(c);if(0===s)return!t&&-1;var f,a=o(u,s);if(t&&n!=n){for(;s>a;)if((f=c[a++])!=f)return!0}else for(;s>a;a++)if((t||a in c)&&c[a]===n)return t||a||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4640:function(t){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(n){return"Object"}}},4849:function(t,r,n){"use strict";var e=n(5482),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return 0>n?o(n+r,0):i(n,r)}},5482:function(t,r,n){"use strict";var e=n(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:e(r)}},5582:function(t,r,n){"use strict";var e=n(2046),o=n(5951),i=n(2250),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return 2>arguments.length?u(e[t])||u(o[t]):e[t]&&e[t][r]||o[t]&&o[t][r]}},5594:function(t,r,n){"use strict";var e=n(5582),o=n(2250),i=n(8280),u=n(1175),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=e("Symbol");return o(r)&&i(r.prototype,c(t))}},5735:function(t,r,n){"use strict";var e=n(6264)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(n){try{return r[e]=!1,"/./"[t](r)}catch(o){}}return!1}},5807:function(t,r,n){"use strict";var e=n(1907),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},5816:function(t,r,n){"use strict";var e=n(6128);t.exports=function(t,r){return e[t]||(e[t]=r||{})}},5817:function(t){"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5951:function(t){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:function(t,r,n){"use strict";var e=n(1505),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?u.bind(i):function(){return u.apply(i,arguments)})},6028:function(t,r,n){"use strict";var e=n(3930),o=n(6285),i=n(5594),u=n(9367),c=n(581),s=n(6264),f=TypeError,a=s("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var n,s=u(t,a);if(s){if(void 0===r&&(r="default"),n=e(s,t,r),!o(n)||i(n))return n;throw new f("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},6128:function(t,r,n){"use strict";var e=n(7376),o=n(5951),i=n(2532),u="__core-js_shared__",c=t.exports=o[u]||i(u,{});(c.versions||(c.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6264:function(t,r,n){"use strict";var e=n(5951),o=n(5816),i=n(9724),u=n(6499),c=n(9846),s=n(1175),f=e.Symbol,a=o("wks"),p=s?f.for||f:f&&f.withoutSetter||u;t.exports=function(t){return i(a,t)||(a[t]=c&&i(f,t)?f[t]:p("Symbol."+t)),a[t]}},6285:function(t,r,n){"use strict";var e=n(2250);t.exports=function(t){return"object"==typeof t?null!==t:e(t)}},6343:function(t,r,n){"use strict";var e=n(6880);t.exports=e},6499:function(t,r,n){"use strict";var e=n(1907),o=0,i=Math.random(),u=e(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},6624:function(t,r,n){"use strict";var e=n(6285),o=String,i=TypeError;t.exports=function(t){if(e(t))return t;throw new i(o(t)+" is not an object")}},6794:function(t,r,n){"use strict";var e=n(5951).navigator,o=e&&e.userAgent;t.exports=o?o+"":""},6880:function(t,r,n){"use strict";var e=n(8280),o=n(1362),i=n(4378),u=Array.prototype,c=String.prototype;t.exports=function(t){var r=t.includes;return t===u||e(u,t)&&r===u.includes?o:"string"==typeof t||t===c||e(c,t)&&r===c.includes?i:r}},6946:function(t,r,n){"use strict";var e=n(1907),o=n(8828),i=n(5807),u=Object,c=e("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},7136:function(t){"use strict";t.exports=function(t){return null==t}},7374:function(t,r,n){"use strict";var e=n(6946),o=n(4239);t.exports=function(t){return e(o(t))}},7376:function(t){"use strict";t.exports=!0},7463:function(t,r,n){"use strict";var e=n(8828),o=n(2250),i=/#|\.prototype\./,u=function(t,r){var n=s[c(t)];return n===a||n!==f&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return(t+"").replace(i,".").toLowerCase()},s=u.data={},f=u.NATIVE="N",a=u.POLYFILL="P";t.exports=u},8280:function(t,r,n){"use strict";var e=n(1907);t.exports=e({}.isPrototypeOf)},8311:function(t,r,n){"use strict";var e=n(2361),o=n(2159),i=n(1505),u=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8628:function(t,r,n){t.exports=n(6343)},8661:function(t,r,n){"use strict";var e=n(9447),o=n(8828);t.exports=e&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8828:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},9298:function(t,r,n){"use strict";var e=n(4239),o=Object;t.exports=function(t){return o(e(t))}},9367:function(t,r,n){"use strict";var e=n(2159),o=n(7136);t.exports=function(t,r){var n=t[r];return o(n)?void 0:e(n)}},9447:function(t,r,n){"use strict";var e=n(8828);t.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:function(t,r,n){"use strict";var e=n(5951),o=n(6285),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},9724:function(t,r,n){"use strict";var e=n(1907),o=n(9298),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9748:function(t,r,n){"use strict";var e=n(1091),o=n(4436).includes,i=n(8828),u=n(2156);e({target:"Array",proto:!0,forced:i((function(){return!1}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")},9770:function(t,r,n){"use strict";var e=n(1091),o=n(1907),i=n(2074),u=n(4239),c=n(160),s=n(5735),f=o("".indexOf);e({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~f(c(u(this)),c(i(t)),arguments.length>1?arguments[1]:void 0)}})},9846:function(t,r,n){"use strict";var e=n(798),o=n(8828),i=n(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&41>e}))}};
|
|
1
|
+
export const __webpack_id__=628;export const __webpack_ids__=[628];export const __webpack_modules__={160:(r,t,e)=>{var n=e(3948),o=String;r.exports=function(r){if("Symbol"===n(r))throw new TypeError("Cannot convert a Symbol value to a string");return o(r)}},470:(r,t,e)=>{var n=e(6028),o=e(5594);r.exports=function(r){var t=n(r,"string");return o(t)?t:t+""}},575:(r,t,e)=>{var n=e(3121);r.exports=function(r){return n(r.length)}},581:(r,t,e)=>{var n=e(3930),o=e(2250),i=e(6285),u=TypeError;r.exports=function(r,t){var e,a;if("string"===t&&o(e=r.toString)&&!i(a=n(e,r)))return a;if(o(e=r.valueOf)&&!i(a=n(e,r)))return a;if("string"!==t&&o(e=r.toString)&&!i(a=n(e,r)))return a;throw new u("Can't convert object to primitive value")}},798:(r,t,e)=>{var n,o,i=e(5951),u=e(6794),a=i.process,c=i.Deno,p=a&&a.versions||c&&c.version,s=p&&p.v8;s&&(o=(n=s.split("."))[0]>0&&4>n[0]?1:+(n[0]+n[1])),!o&&u&&((n=u.match(/Edge\/(\d+)/))&&74>n[1]||(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1])),r.exports=o},1091:(r,t,e)=>{var n=e(5951),o=e(6024),i=e(2361),u=e(2250),a=e(3846).f,c=e(7463),p=e(2046),s=e(8311),f=e(1626),v=e(9724);e(6128);var l=function(r){var t=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,n)}return new r(e,n,i)}return o(r,this,arguments)};return t.prototype=r.prototype,t};r.exports=function(r,t){var e,o,y,b,x,h,d,g,m,w=r.target,j=r.global,O=r.stat,S=r.proto,_=j?n:O?n[w]:n[w]&&n[w].prototype,P=j?p:p[w]||f(p,w,{})[w],E=P.prototype;for(b in t)o=!(e=c(j?b:w+(O?".":"#")+b,r.forced))&&_&&v(_,b),h=P[b],o&&(d=r.dontCallGetSet?(m=a(_,b))&&m.value:_[b]),x=o&&d?d:t[b],(e||S||typeof h!=typeof x)&&(g=r.bind&&o?s(x,n):r.wrap&&o?l(x):S&&u(x)?i(x):x,(r.sham||x&&x.sham||h&&h.sham)&&f(g,"sham",!0),f(P,b,g),S&&(v(p,y=w+"Prototype")||f(p,y,{}),f(p[y],b,x),r.real&&E&&(e||!E[b])&&f(E,b,x)))}},1175:(r,t,e)=>{var n=e(9846);r.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:r=>{var t=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}},1362:(r,t,e)=>{e(9748);var n=e(1747);r.exports=n("Array","includes")},1505:(r,t,e)=>{var n=e(8828);r.exports=!n((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},1626:(r,t,e)=>{var n=e(9447),o=e(4284),i=e(5817);r.exports=n?function(r,t,e){return o.f(r,t,i(1,e))}:function(r,t,e){return r[t]=e,r}},1747:(r,t,e)=>{var n=e(5951),o=e(2046);r.exports=function(r,t){var e=o[r+"Prototype"],i=e&&e[t];if(i)return i;var u=n[r],a=u&&u.prototype;return a&&a[t]}},1907:(r,t,e)=>{var n=e(1505),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);r.exports=n?u:function(r){return function(){return i.apply(r,arguments)}}},2046:r=>{r.exports={}},2074:(r,t,e)=>{var n=e(2087),o=TypeError;r.exports=function(r){if(n(r))throw new o("The method doesn't accept regular expressions");return r}},2087:(r,t,e)=>{var n=e(6285),o=e(5807),i=e(6264)("match");r.exports=function(r){var t;return n(r)&&(void 0!==(t=r[i])?!!t:"RegExp"===o(r))}},2156:r=>{r.exports=function(){}},2159:(r,t,e)=>{var n=e(2250),o=e(4640),i=TypeError;r.exports=function(r){if(n(r))return r;throw new i(o(r)+" is not a function")}},2250:r=>{var t="object"==typeof document&&document.all;r.exports=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(r){return"function"==typeof r}},2361:(r,t,e)=>{var n=e(5807),o=e(1907);r.exports=function(r){if("Function"===n(r))return o(r)}},2532:(r,t,e)=>{var n=e(5951),o=Object.defineProperty;r.exports=function(r,t){try{o(n,r,{value:t,configurable:!0,writable:!0})}catch(e){n[r]=t}return t}},2574:(r,t)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);t.f=o?function(r){var t=n(this,r);return!!t&&t.enumerable}:e},2623:(r,t,e)=>{var n={};n[e(6264)("toStringTag")]="z",r.exports=n+""=="[object z]"},3121:(r,t,e)=>{var n=e(5482),o=Math.min;r.exports=function(r){var t=n(r);return t>0?o(t,9007199254740991):0}},3648:(r,t,e)=>{var n=e(9447),o=e(8828),i=e(9552);r.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3846:(r,t,e)=>{var n=e(9447),o=e(3930),i=e(2574),u=e(5817),a=e(7374),c=e(470),p=e(9724),s=e(3648),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(r,t){if(r=a(r),t=c(t),s)try{return f(r,t)}catch(e){}if(p(r,t))return u(!o(i.f,r,t),r[t])}},3930:(r,t,e)=>{var n=e(1505),o=Function.prototype.call;r.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3948:(r,t,e)=>{var n=e(2623),o=e(2250),i=e(5807),u=e(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());r.exports=n?i:function(r){var t,e,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(e=function(r,t){try{return r[t]}catch(e){}}(t=a(r),u))?e:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},4239:(r,t,e)=>{var n=e(7136),o=TypeError;r.exports=function(r){if(n(r))throw new o("Can't call method on "+r);return r}},4284:(r,t,e)=>{var n=e(9447),o=e(3648),i=e(8661),u=e(6624),a=e(470),c=TypeError,p=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",l="writable";t.f=n?i?function(r,t,e){if(u(r),t=a(t),u(e),"function"==typeof r&&"prototype"===t&&"value"in e&&l in e&&!e[l]){var n=s(r,t);n&&n[l]&&(r[t]=e.value,e={configurable:v in e?e[v]:n[v],enumerable:f in e?e[f]:n[f],writable:!1})}return p(r,t,e)}:p:function(r,t,e){if(u(r),t=a(t),u(e),o)try{return p(r,t,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(r[t]=e.value),r}},4378:(r,t,e)=>{e(9770);var n=e(1747);r.exports=n("String","includes")},4436:(r,t,e)=>{var n=e(7374),o=e(4849),i=e(575),u=function(r){return function(t,e,u){var a=n(t),c=i(a);if(0===c)return!r&&-1;var p,s=o(u,c);if(r&&e!=e){for(;c>s;)if((p=a[s++])!=p)return!0}else for(;c>s;s++)if((r||s in a)&&a[s]===e)return r||s||0;return!r&&-1}};r.exports={includes:u(!0),indexOf:u(!1)}},4640:r=>{var t=String;r.exports=function(r){try{return t(r)}catch(e){return"Object"}}},4849:(r,t,e)=>{var n=e(5482),o=Math.max,i=Math.min;r.exports=function(r,t){var e=n(r);return 0>e?o(e+t,0):i(e,t)}},5482:(r,t,e)=>{var n=e(1176);r.exports=function(r){var t=+r;return t!=t||0===t?0:n(t)}},5582:(r,t,e)=>{var n=e(2046),o=e(5951),i=e(2250),u=function(r){return i(r)?r:void 0};r.exports=function(r,t){return 2>arguments.length?u(n[r])||u(o[r]):n[r]&&n[r][t]||o[r]&&o[r][t]}},5594:(r,t,e)=>{var n=e(5582),o=e(2250),i=e(8280),u=e(1175),a=Object;r.exports=u?function(r){return"symbol"==typeof r}:function(r){var t=n("Symbol");return o(t)&&i(t.prototype,a(r))}},5735:(r,t,e)=>{var n=e(6264)("match");r.exports=function(r){var t=/./;try{"/./"[r](t)}catch(e){try{return t[n]=!1,"/./"[r](t)}catch(o){}}return!1}},5807:(r,t,e)=>{var n=e(1907),o=n({}.toString),i=n("".slice);r.exports=function(r){return i(o(r),8,-1)}},5816:(r,t,e)=>{var n=e(6128);r.exports=function(r,t){return n[r]||(n[r]=t||{})}},5817:r=>{r.exports=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}}},5951:function(r,t,e){var n=function(r){return r&&r.Math===Math&&r};r.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:(r,t,e)=>{var n=e(1505),o=Function.prototype,i=o.apply,u=o.call;r.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},6028:(r,t,e)=>{var n=e(3930),o=e(6285),i=e(5594),u=e(9367),a=e(581),c=e(6264),p=TypeError,s=c("toPrimitive");r.exports=function(r,t){if(!o(r)||i(r))return r;var e,c=u(r,s);if(c){if(void 0===t&&(t="default"),e=n(c,r,t),!o(e)||i(e))return e;throw new p("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(r,t)}},6128:(r,t,e)=>{var n=e(7376),o=e(5951),i=e(2532),u="__core-js_shared__",a=r.exports=o[u]||i(u,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6264:(r,t,e)=>{var n=e(5951),o=e(5816),i=e(9724),u=e(6499),a=e(9846),c=e(1175),p=n.Symbol,s=o("wks"),f=c?p.for||p:p&&p.withoutSetter||u;r.exports=function(r){return i(s,r)||(s[r]=a&&i(p,r)?p[r]:f("Symbol."+r)),s[r]}},6285:(r,t,e)=>{var n=e(2250);r.exports=function(r){return"object"==typeof r?null!==r:n(r)}},6343:(r,t,e)=>{var n=e(6880);r.exports=n},6499:(r,t,e)=>{var n=e(1907),o=0,i=Math.random(),u=n(1.1.toString);r.exports=function(r){return"Symbol("+(void 0===r?"":r)+")_"+u(++o+i,36)}},6624:(r,t,e)=>{var n=e(6285),o=String,i=TypeError;r.exports=function(r){if(n(r))return r;throw new i(o(r)+" is not an object")}},6794:(r,t,e)=>{var n=e(5951).navigator,o=n&&n.userAgent;r.exports=o?o+"":""},6880:(r,t,e)=>{var n=e(8280),o=e(1362),i=e(4378),u=Array.prototype,a=String.prototype;r.exports=function(r){var t=r.includes;return r===u||n(u,r)&&t===u.includes?o:"string"==typeof r||r===a||n(a,r)&&t===a.includes?i:t}},6946:(r,t,e)=>{var n=e(1907),o=e(8828),i=e(5807),u=Object,a=n("".split);r.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(r){return"String"===i(r)?a(r,""):u(r)}:u},7136:r=>{r.exports=function(r){return null==r}},7374:(r,t,e)=>{var n=e(6946),o=e(4239);r.exports=function(r){return n(o(r))}},7376:r=>{r.exports=!0},7463:(r,t,e)=>{var n=e(8828),o=e(2250),i=/#|\.prototype\./,u=function(r,t){var e=c[a(r)];return e===s||e!==p&&(o(t)?n(t):!!t)},a=u.normalize=function(r){return(r+"").replace(i,".").toLowerCase()},c=u.data={},p=u.NATIVE="N",s=u.POLYFILL="P";r.exports=u},8280:(r,t,e)=>{var n=e(1907);r.exports=n({}.isPrototypeOf)},8311:(r,t,e)=>{var n=e(2361),o=e(2159),i=e(1505),u=n(n.bind);r.exports=function(r,t){return o(r),void 0===t?r:i?u(r,t):function(){return r.apply(t,arguments)}}},8628:(r,t,e)=>{r.exports=e(6343)},8661:(r,t,e)=>{var n=e(9447),o=e(8828);r.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8828:r=>{r.exports=function(r){try{return!!r()}catch(t){return!0}}},9298:(r,t,e)=>{var n=e(4239),o=Object;r.exports=function(r){return o(n(r))}},9367:(r,t,e)=>{var n=e(2159),o=e(7136);r.exports=function(r,t){var e=r[t];return o(e)?void 0:n(e)}},9447:(r,t,e)=>{var n=e(8828);r.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(r,t,e)=>{var n=e(5951),o=e(6285),i=n.document,u=o(i)&&o(i.createElement);r.exports=function(r){return u?i.createElement(r):{}}},9724:(r,t,e)=>{var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(r,t){return i(o(r),t)}},9748:(r,t,e)=>{var n=e(1091),o=e(4436).includes,i=e(8828),u=e(2156);n({target:"Array",proto:!0,forced:i((function(){return!1}))},{includes:function(r){return o(this,r,arguments.length>1?arguments[1]:void 0)}}),u("includes")},9770:(r,t,e)=>{var n=e(1091),o=e(1907),i=e(2074),u=e(4239),a=e(160),c=e(5735),p=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(r){return!!~p(a(u(this)),a(i(r)),arguments.length>1?arguments[1]:void 0)}})},9846:(r,t,e)=>{var n=e(798),o=e(8828),i=e(5951).String;r.exports=!!Object.getOwnPropertySymbols&&!o((function(){var r=Symbol("symbol detection");return!i(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&41>n}))}};
|
package/package.json
CHANGED
package/dist/js/987.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[987],{160:(t,r,e)=>{"use strict";var n=e(3948),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},470:(t,r,e)=>{"use strict";var n=e(6028),o=e(5594);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},575:(t,r,e)=>{"use strict";var n=e(3121);t.exports=function(t){return n(t.length)}},581:(t,r,e)=>{"use strict";var n=e(3930),o=e(2250),i=e(6285),u=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw new u("Can't convert object to primitive value")}},798:(t,r,e)=>{"use strict";var n,o,i=e(5951),u=e(6794),s=i.process,c=i.Deno,a=s&&s.versions||c&&c.version,p=a&&a.v8;p&&(o=(n=p.split("."))[0]>0&&4>n[0]?1:+(n[0]+n[1])),!o&&u&&((n=u.match(/Edge\/(\d+)/))&&74>n[1]||(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1])),t.exports=o},1020:(t,r,e)=>{"use strict";var n=e(5442),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(t,r,e){var n,i={},a=null,p=null;for(n in void 0!==e&&(a=""+e),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(p=r.ref),r)u.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(t&&t.defaultProps)for(n in r=t.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:t,key:a,ref:p,props:i,_owner:s.current}}r.Fragment=i,r.jsx=a,r.jsxs=a},1091:(t,r,e)=>{"use strict";var n=e(5951),o=e(6024),i=e(2361),u=e(2250),s=e(3846).f,c=e(7463),a=e(2046),p=e(8311),f=e(1626),v=e(9724);e(6128);var l=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var e,o,y,b,h,x,d,m,g,w=t.target,O=t.global,j=t.stat,S=t.proto,E=O?n:j?n[w]:n[w]&&n[w].prototype,P=O?a:a[w]||f(a,w,{})[w],_=P.prototype;for(b in r)o=!(e=c(O?b:w+(j?".":"#")+b,t.forced))&&E&&v(E,b),x=P[b],o&&(d=t.dontCallGetSet?(g=s(E,b))&&g.value:E[b]),h=o&&d?d:r[b],(e||S||typeof x!=typeof h)&&(m=t.bind&&o?p(h,n):t.wrap&&o?l(h):S&&u(h)?i(h):h,(t.sham||h&&h.sham||x&&x.sham)&&f(m,"sham",!0),f(P,b,m),S&&(v(a,y=w+"Prototype")||f(a,y,{}),f(a[y],b,h),t.real&&_&&(e||!_[b])&&f(_,b,h)))}},1175:(t,r,e)=>{"use strict";var n=e(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},1362:(t,r,e)=>{"use strict";e(9748);var n=e(1747);t.exports=n("Array","includes")},1505:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1626:(t,r,e)=>{"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},1747:(t,r,e)=>{"use strict";var n=e(5951),o=e(2046);t.exports=function(t,r){var e=o[t+"Prototype"],i=e&&e[r];if(i)return i;var u=n[t],s=u&&u.prototype;return s&&s[r]}},1907:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},2046:t=>{"use strict";t.exports={}},2074:(t,r,e)=>{"use strict";var n=e(2087),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},2087:(t,r,e)=>{"use strict";var n=e(6285),o=e(5807),i=e(6264)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"===o(t))}},2156:t=>{"use strict";t.exports=function(){}},2159:(t,r,e)=>{"use strict";var n=e(2250),o=e(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2250:t=>{"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},2361:(t,r,e)=>{"use strict";var n=e(5807),o=e(1907);t.exports=function(t){if("Function"===n(t))return o(t)}},2532:(t,r,e)=>{"use strict";var n=e(5951),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},2574:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2623:(t,r,e)=>{"use strict";var n={};n[e(6264)("toStringTag")]="z",t.exports=n+""=="[object z]"},3121:(t,r,e)=>{"use strict";var n=e(5482),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},3648:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828),i=e(9552);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3846:(t,r,e)=>{"use strict";var n=e(9447),o=e(3930),i=e(2574),u=e(5817),s=e(7374),c=e(470),a=e(9724),p=e(3648),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=s(t),r=c(r),p)try{return f(t,r)}catch(e){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},3930:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3948:(t,r,e)=>{"use strict";var n=e(2623),o=e(2250),i=e(5807),u=e(6264)("toStringTag"),s=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(e){}}(r=s(t),u))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},4239:(t,r,e)=>{"use strict";var n=e(7136),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},4284:(t,r,e)=>{"use strict";var n=e(9447),o=e(3648),i=e(8661),u=e(6624),s=e(470),c=TypeError,a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",l="writable";r.f=n?i?function(t,r,e){if(u(t),r=s(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&l in e&&!e[l]){var n=p(t,r);n&&n[l]&&(t[r]=e.value,e={configurable:v in e?e[v]:n[v],enumerable:f in e?e[f]:n[f],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(u(t),r=s(r),u(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},4378:(t,r,e)=>{"use strict";e(9770);var n=e(1747);t.exports=n("String","includes")},4436:(t,r,e)=>{"use strict";var n=e(7374),o=e(4849),i=e(575),u=function(t){return function(r,e,u){var s=n(r),c=i(s);if(0===c)return!t&&-1;var a,p=o(u,c);if(t&&e!=e){for(;c>p;)if((a=s[p++])!=a)return!0}else for(;c>p;p++)if((t||p in s)&&s[p]===e)return t||p||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4640:t=>{"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},4848:(t,r,e)=>{"use strict";t.exports=e(1020)},4849:(t,r,e)=>{"use strict";var n=e(5482),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return 0>e?o(e+r,0):i(e,r)}},5482:(t,r,e)=>{"use strict";var n=e(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},5582:(t,r,e)=>{"use strict";var n=e(2046),o=e(5951),i=e(2250),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return 2>arguments.length?u(n[t])||u(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},5594:(t,r,e)=>{"use strict";var n=e(5582),o=e(2250),i=e(8280),u=e(1175),s=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},5735:(t,r,e)=>{"use strict";var n=e(6264)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(o){}}return!1}},5807:(t,r,e)=>{"use strict";var n=e(1907),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5816:(t,r,e)=>{"use strict";var n=e(6128);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5817:t=>{"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5951:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6024:(t,r,e)=>{"use strict";var n=e(1505),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},6028:(t,r,e)=>{"use strict";var n=e(3930),o=e(6285),i=e(5594),u=e(9367),s=e(581),c=e(6264),a=TypeError,p=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=u(t,p);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},6128:(t,r,e)=>{"use strict";var n=e(7376),o=e(5951),i=e(2532),u="__core-js_shared__",s=t.exports=o[u]||i(u,{});(s.versions||(s.versions=[])).push({version:"3.43.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6264:(t,r,e)=>{"use strict";var n=e(5951),o=e(5816),i=e(9724),u=e(6499),s=e(9846),c=e(1175),a=n.Symbol,p=o("wks"),f=c?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(p,t)||(p[t]=s&&i(a,t)?a[t]:f("Symbol."+t)),p[t]}},6285:(t,r,e)=>{"use strict";var n=e(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6343:(t,r,e)=>{"use strict";var n=e(6880);t.exports=n},6499:(t,r,e)=>{"use strict";var n=e(1907),o=0,i=Math.random(),u=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},6624:(t,r,e)=>{"use strict";var n=e(6285),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6794:(t,r,e)=>{"use strict";var n=e(5951).navigator,o=n&&n.userAgent;t.exports=o?o+"":""},6880:(t,r,e)=>{"use strict";var n=e(8280),o=e(1362),i=e(4378),u=Array.prototype,s=String.prototype;t.exports=function(t){var r=t.includes;return t===u||n(u,t)&&r===u.includes?o:"string"==typeof t||t===s||n(s,t)&&r===s.includes?i:r}},6946:(t,r,e)=>{"use strict";var n=e(1907),o=e(8828),i=e(5807),u=Object,s=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):u(t)}:u},7136:t=>{"use strict";t.exports=function(t){return null==t}},7374:(t,r,e)=>{"use strict";var n=e(6946),o=e(4239);t.exports=function(t){return n(o(t))}},7376:t=>{"use strict";t.exports=!0},7463:(t,r,e)=>{"use strict";var n=e(8828),o=e(2250),i=/#|\.prototype\./,u=function(t,r){var e=c[s(t)];return e===p||e!==a&&(o(r)?n(r):!!r)},s=u.normalize=function(t){return(t+"").replace(i,".").toLowerCase()},c=u.data={},a=u.NATIVE="N",p=u.POLYFILL="P";t.exports=u},8280:(t,r,e)=>{"use strict";var n=e(1907);t.exports=n({}.isPrototypeOf)},8311:(t,r,e)=>{"use strict";var n=e(2361),o=e(2159),i=e(1505),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},8628:(t,r,e)=>{t.exports=e(6343)},8661:(t,r,e)=>{"use strict";var n=e(9447),o=e(8828);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},9298:(t,r,e)=>{"use strict";var n=e(4239),o=Object;t.exports=function(t){return o(n(t))}},9367:(t,r,e)=>{"use strict";var n=e(2159),o=e(7136);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9447:(t,r,e)=>{"use strict";var n=e(8828);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(t,r,e)=>{"use strict";var n=e(5951),o=e(6285),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},9724:(t,r,e)=>{"use strict";var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9748:(t,r,e)=>{"use strict";var n=e(1091),o=e(4436).includes,i=e(8828),u=e(2156);n({target:"Array",proto:!0,forced:i((function(){return!1}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")},9770:(t,r,e)=>{"use strict";var n=e(1091),o=e(1907),i=e(2074),u=e(4239),s=e(160),c=e(5735),a=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~a(s(u(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}})},9846:(t,r,e)=>{"use strict";var n=e(798),o=e(8828),i=e(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&41>n}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e,t,n,a={188:function(e,t,n){n.d(t,{$I:function(){return X},Ac:function(){return T},BK:function(){return W},Ci:function(){return w},Co:function(){return p},Cv:function(){return G},DJ:function(){return C},DR:function(){return S},Dv:function(){return h},F0:function(){return r},G0:function(){return U},Gd:function(){return H},I6:function(){return _},LM:function(){return x},Nq:function(){return u},PE:function(){return B},PI:function(){return j},Pf:function(){return k},Th:function(){return $},Tk:function(){return o},UB:function(){return g},UT:function(){return f},Z7:function(){return R},_I:function(){return I},_v:function(){return b},a0:function(){return Y},b4:function(){return z},bO:function(){return M},e8:function(){return P},fk:function(){return D},ic:function(){return m},kh:function(){return s},lq:function(){return l},lt:function(){return a},n5:function(){return i},nl:function(){return V},oH:function(){return L},of:function(){return F},rl:function(){return d},sr:function(){return v},tI:function(){return y},wn:function(){return E},xU:function(){return O},y2:function(){return A},yq:function(){return c},zN:function(){return N}});const a=["primary","secondary","success","info","warning","error","light","dark"],r=["sm","md","lg"],s={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},i={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},o={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},l={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},c={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},d={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},u={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},m={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},p={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},h={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},g={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},_={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},S={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},E={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},f={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},v={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},b={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},C={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},N={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},L={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},x={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},T={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},A={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},I={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},O={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},y={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},R={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},w={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},k={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},j={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},D={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},M={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},P={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},B={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},$={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},z={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},F={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},U={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},G={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},V={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Y={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},H={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},X={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},W={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}}},2162:function(e,t,n){n.r(t),n.d(t,{Accordion:function(){return S},Avatar:function(){return N},AvatarGroup:function(){return x},Badge:function(){return I},Breadcrumb:function(){return y},Button:function(){return k},Callout:function(){return P},Card:function(){return $},Checkbox:function(){return G},ColorModeToggle:function(){return Y},Countdown:function(){return X},DataTable:function(){return se},DatePicker:function(){return de},Dropdown:function(){return pe},EdgePanel:function(){return _e},Form:function(){return fe},Hero:function(){return Ce},Icon:function(){return b},Input:function(){return xe},List:function(){return Ae},Messages:function(){return Oe},Modal:function(){return Re},Navbar:function(){return Pe},Pagination:function(){return ae},PhotoViewer:function(){return Ve},Popover:function(){return We},ProductReview:function(){return et},Progress:function(){return tt},Radio:function(){return rt},Rating:function(){return Je},River:function(){return ot},SectionIntro:function(){return ct},Select:function(){return At},Spinner:function(){return Z},Steps:function(){return Ot},Tab:function(){return Rt},Testimonial:function(){return kt},Textarea:function(){return Dt},Todo:function(){return Pt},Toggle:function(){return $t},Tooltip:function(){return Gt},Upload:function(){return Yt},composables:function(){return Ht},constants:function(){return qt},default:function(){return an},types:function(){return Wt},utils:function(){return Xt}});var a={};n.r(a),n.d(a,{addClass:function(){return ut},createIconElement:function(){return _t},createPhosphorIcon:function(){return gt},generateUUID:function(){return Et},getAvailableIcons:function(){return St},hasClass:function(){return dt},removeClass:function(){return mt},toggleClass:function(){return pt}});var r={};n.r(r),n.d(r,{DOTS:function(){return J},useAccordion:function(){return h},useBadge:function(){return T},useBreadcrumb:function(){return Lt},useButton:function(){return R},useCard:function(){return xt},useCheckbox:function(){return F},useDataTable:function(){return W},useEdgePanel:function(){return he},useForm:function(){return Se},useFormGroup:function(){return vt},useHero:function(){return ve},useInput:function(){return Ne},useModal:function(){return Nt},useNav:function(){return ke},useNavDropdown:function(){return De},useNavItem:function(){return je},useNavbar:function(){return we},usePagination:function(){return ee},useRadio:function(){return nt},useRiver:function(){return st},useSelect:function(){return bt},useSpinner:function(){return q},useTextarea:function(){return Ct},useTodo:function(){return ft}});var s={};n.r(s),n.d(s,{Accordion:function(){return S},Avatar:function(){return N},AvatarGroup:function(){return x},Badge:function(){return I},Breadcrumb:function(){return y},Button:function(){return k},Callout:function(){return P},Card:function(){return $},Checkbox:function(){return G},ColorModeToggle:function(){return Y},Countdown:function(){return X},DataTable:function(){return se},DatePicker:function(){return de},Dropdown:function(){return pe},EdgePanel:function(){return _e},Form:function(){return fe},Hero:function(){return Ce},Icon:function(){return b},Input:function(){return xe},List:function(){return Ae},Messages:function(){return Oe},Modal:function(){return Re},Navbar:function(){return Pe},Pagination:function(){return ae},PhotoViewer:function(){return Ve},Popover:function(){return We},ProductReview:function(){return et},Progress:function(){return tt},Radio:function(){return rt},Rating:function(){return Je},River:function(){return ot},SectionIntro:function(){return ct},Select:function(){return At},Spinner:function(){return Z},Steps:function(){return Ot},Tab:function(){return Rt},Testimonial:function(){return kt},Textarea:function(){return Dt},Todo:function(){return Pt},Toggle:function(){return $t},Tooltip:function(){return Gt},Upload:function(){return Yt}});var i={};n.r(i);var o={};n.r(o),n.d(o,{ACCORDION:function(){return p.lq},AVATAR:function(){return p.of},AVATAR_GROUP:function(){return p.G0},BADGE:function(){return p.yq},BREADCRUMB:function(){return p.ic},BUTTON:function(){return p.n5},CALLOUT:function(){return p.Tk},CARD:function(){return p.PE},CLASS_PREFIX:function(){return p.kh},COUNTDOWN:function(){return p.Co},DATA_TABLE_CLASSES:function(){return p.tI},DATA_TABLE_SELECTORS:function(){return p.Z7},DATEPICKER:function(){return p.$I},DROPDOWN:function(){return p.a0},EDGE_PANEL:function(){return p.xU},FORM:function(){return p.PI},FORM_GROUP:function(){return p.fk},HERO:function(){return p.Dv},INPUT:function(){return p.bO},LIST:function(){return p.rl},LIST_GROUP:function(){return p.Nq},MESSAGES:function(){return p.nl},MODAL:function(){return p.Cv},NAV:function(){return p.Ac},NAVBAR:function(){return p.LM},PAGINATION_DEFAULTS:function(){return p.Ci},PHOTOVIEWER:function(){return p.BK},POPOVER:function(){return p.I6},PROGRESS:function(){return p.Gd},RADIO:function(){return p.e8},RATING:function(){return p._I},RIVER:function(){return p.zN},SECTION_INTRO:function(){return p.DJ},SELECT:function(){return p.Th},SIDE_MENU:function(){return p.y2},SIZES:function(){return p.F0},SPINNER:function(){return p._v},STEPS:function(){return p.UT},TAB:function(){return p.wn},TESTIMONIAL:function(){return p.sr},TEXTAREA:function(){return p.b4},THEME_COLORS:function(){return p.lt},TODO:function(){return p.Pf},TOGGLE:function(){return p.DR},TOOLTIP:function(){return p.UB},UPLOAD:function(){return p.oH}});var l={};n.r(l),n.d(l,{Container:function(){return Jt},Grid:function(){return Kt},GridCol:function(){return Zt},Row:function(){return Qt}});var c={};n.r(c),n.d(c,{MasonryGrid:function(){return en},MasonryGridItem:function(){return tn}});var d={};n.r(d),n.d(d,{default:function(){return nn}});var u=require("react"),m=n.n(u),p=n(188);function h(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},n="boolean"==typeof t.isOpen,[a,r]=(0,u.useState)(t.defaultOpen||!1),s=n?t.isOpen:a,[i,o]=(0,u.useState)(s?"auto":"0px"),l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=()=>{if(c.current&&l.current){const e=s?c.current.clientHeight+"px":"0px";l.current.style.setProperty(p.lq.CSS_VARS.PANEL_HEIGHT,e),o(e)}};return(0,u.useEffect)((()=>{d()}),[s]),(0,u.useEffect)((()=>{const e=()=>{s&&d()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s]),{state:{isOpen:s,panelHeight:i},toggle:()=>{t.disabled||(n?t.onOpenChange&&t.onOpenChange(!s):r((e=>!e)))},updatePanelHeight:d,panelRef:l,contentRef:c,generateClassNames:(e="")=>`c-accordion ${s?p.lq.CLASSES.IS_OPEN:""} ${t.disabled?p.lq.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}var g=require("react/jsx-runtime");const _=({title:e,children:t,defaultOpen:n=!1,isOpen:a,onOpenChange:r,disabled:s=!1,iconPosition:i="right",icon:o,className:l=""})=>{const c=(0,u.useId)(),d="accordion-header-"+c,m="accordion-panel-"+c,{state:_,toggle:S,panelRef:E,contentRef:f,generateClassNames:v,generateHeaderClassNames:b}=h({defaultOpen:n,disabled:s,iconPosition:i,isOpen:a,onOpenChange:r}),C=(0,g.jsx)("i",{className:"c-accordion__icon",children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,g.jsx)("polyline",{points:"6 9 12 15 18 9"})})});return(0,g.jsxs)("div",{className:v(l),children:[(0,g.jsxs)("button",{id:d,className:b(),onClick:S,"aria-expanded":_.isOpen,"aria-controls":m,disabled:s,type:"button",children:[(0,g.jsx)("span",{className:"c-accordion__title",children:e}),o||C]}),(0,g.jsx)("div",{id:m,className:p.lq.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":d,children:(0,g.jsx)("div",{className:p.lq.SELECTORS.BODY.replace(".",""),ref:f,children:t})})]})};_.displayName="Accordion";var S=_,E=require("phosphor-react");const f={xs:16,sm:20,md:24,lg:32,xl:40},v=({name:e,size:t="md",weight:n="regular",color:a,className:r="",alt:s})=>{const i=E[e];return i?(0,g.jsx)("span",{className:`c-icon c-icon--${t} ${r}`,"aria-hidden":!s,title:s,children:(0,g.jsx)(i,{size:"string"==typeof t?f[t]||24:t,weight:n,color:a,"aria-label":s})}):null};v.displayName="Icon";var b=v;const C=({src:e,alt:t="Avatar",initials:n,icon:a,size:r="md",circle:s=!1,className:i="",disabled:o=!1,onClick:l})=>{const[c,d]=(0,u.useState)(!1),m=[p.of.CLASSES.BASE,"md"!==r&&"c-avatar--"+r,s&&p.of.CLASSES.CIRCLE,o&&"is-disabled",i].filter(Boolean).join(" ");return(0,g.jsx)("div",{className:m,onClick:l?e=>{!o&&l&&l(e)}:void 0,role:l?"button":void 0,tabIndex:l&&!o?0:void 0,"aria-disabled":o||void 0,children:e&&!c?(0,g.jsx)("img",{src:e,alt:t,className:"c-avatar__image",onError:()=>{d(!0)}}):(0,g.jsx)("span",n?{className:"c-avatar__initials",children:n}:a?{className:"c-avatar__icon",children:a}:{className:"c-avatar__icon",children:(0,g.jsx)(v,{name:"User",size:"xs"===r?"xs":"sm"===r?"sm":"md"})})})};C.displayName="Avatar";var N=C;const L=({children:e,max:t,stacked:n=!1,className:a="",moreText:r})=>{const s=[p.G0.CLASSES.BASE,n&&p.G0.CLASSES.STACKED,a].filter(Boolean).join(" "),i=u.Children.toArray(e).filter((e=>(0,u.isValidElement)(e)&&e.type===C)),o=void 0!==t&&i.length>t,l=o?i.slice(0,t):i,c=i.length-(t||0),d=(0,u.isValidElement)(i[0])?i[0].props:null,m=d?.size||"md",h=[p.of.CLASSES.BASE,p.G0.CLASSES.MORE,"md"!==m&&"c-avatar--"+m,!!d?.circle&&"c-avatar--circle"].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:s,children:[l.map(((e,t)=>(0,u.isValidElement)(e)?(0,u.cloneElement)(e,{key:t,...e.props}):null)),o&&(0,g.jsx)("div",{className:h,children:r||"+"+c})]})};L.displayName="AvatarGroup";var x=L;function T(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,className:s=""}=e;return`${p.yq.BASE_CLASS} ${n?`${p.yq.VARIANT_PREFIX}${n}`:""} ${"md"===a?"":`${p.yq.SIZE_PREFIX}${a}`} ${r?"c-badge--disabled":""} ${s}`.trim()}}}const A=({label:e,variant:t="primary",size:n="md",disabled:a=!1,icon:r,className:s=""})=>{const{generateBadgeClass:i}=T({variant:t,size:n,disabled:a}),o=i({variant:t,size:n,disabled:a,className:s});return(0,g.jsxs)("span",{className:o,"aria-disabled":a,children:[r&&(0,g.jsx)("span",{className:p.yq.ICON_CLASS,children:r}),(0,g.jsx)("span",{children:e})]})};A.displayName="Badge";var I=A;const O=({items:e,className:t="",ariaLabel:n="Breadcrumb",LinkComponent:a})=>{const r=[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ");return(0,g.jsx)("nav",{"aria-label":n,children:(0,g.jsx)("ol",{className:r,children:e.map(((t,n)=>{const r=[p.ic.CLASSES.ITEM,t.active||n===e.length-1?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" "),s=(0,g.jsxs)(g.Fragment,{children:[t.icon&&(0,g.jsx)("span",{className:"c-breadcrumb__icon",children:t.icon}),t.label]});return(0,g.jsx)("li",{className:r,children:t.href&&!t.active?(0,g.jsx)(a||"a",{...{href:t.href,className:p.ic.CLASSES.LINK,onClick:t.onClick},children:s}):(0,g.jsx)("span",{className:p.ic.CLASSES.LINK,children:s})},n)}))})})};O.displayName="Breadcrumb";var y=O;function R(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:n=t.variant,size:a=t.size,disabled:r=t.disabled,rounded:s=t.rounded,iconOnly:i=!1,className:o=""}=e;return`c-btn c-btn--${n} ${"md"===a?"":"c-btn--"+a} ${i?"c-btn--icon":""} ${s?"c-btn--rounded":""} ${r?"c-btn--disabled":""} ${o}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}const w=(0,u.forwardRef)((({label:e,children:t,onClick:n,variant:a="primary",size:r="md",disabled:s=!1,icon:i,iconOnly:o=!1,rounded:l=!1,className:c="",as:d="button",...u},m)=>{const{generateButtonClass:p,handleClick:h}=R({variant:a,size:r,disabled:s,rounded:l}),_={ref:m,className:p({variant:a,size:r,disabled:s,rounded:l,iconOnly:o,className:c}),onClick:h(n),disabled:s,"aria-disabled":s,...u};return(0,g.jsxs)(d,{..._,children:[i&&(0,g.jsx)("span",{className:"button__icon",children:i}),!o&&(0,g.jsx)("span",{className:"button__label",children:e||t})]})}));w.displayName="Button";var k=w,j=n(8628),D=n.n(j);const M=({title:e,children:t,icon:n,variant:a="primary",onClose:r,actions:s,oneLine:i=!1,toast:o=!1,className:l,...c})=>{const{generateCalloutClass:d,handleClose:u}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:n=t.variant,oneLine:a=t.oneLine,toast:r=t.toast,className:s=""}=e;return`c-callout ${n?"c-callout--"+n:""} ${a?"c-callout--oneline":""} ${r?"c-callout--toast":""} ${s}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:a,oneLine:i,toast:o,className:l});return(0,g.jsxs)("div",{className:d({variant:a,oneLine:i,toast:o,className:l}),...(()=>{var e,t;const n={role:"region"};return o?(n.role="alert",n["aria-live"]="polite"):D()(e=["warning","error"]).call(e,a)?(n.role="alert",n["aria-live"]="assertive"):D()(t=["info","success"]).call(t,a)&&(n.role="status",n["aria-live"]="polite"),n})(),...c,children:[(0,g.jsxs)("div",{className:"c-callout__content",children:[n&&(0,g.jsx)("div",{className:"c-callout__icon",children:n}),(0,g.jsxs)("div",{className:"c-callout__message",children:[e&&(0,g.jsx)("div",{className:"c-callout__title",children:e}),t&&(0,g.jsx)("div",{className:"c-callout__text",children:t})]})]}),s&&(0,g.jsx)("div",{className:"c-callout__actions",children:s}),r&&(0,g.jsx)("button",{className:"c-callout__close-btn",onClick:u(r),"aria-label":"Close",children:(0,g.jsx)(v,{name:"X",size:"md"})})]})};M.displayName="Callout";var P=M;const B=(0,u.forwardRef)((({header:e,image:t,imageAlt:n="",title:a,text:r,actions:s,icon:i,footer:o,row:l=!1,flat:c=!1,active:d=!1,className:u="",children:m,onClick:h,..._},S)=>{const E=[p.PE.CLASSES.BASE,l?p.PE.CLASSES.ROW:"",c?p.PE.CLASSES.FLAT:"",d?p.PE.CLASSES.ACTIVE:"",u].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:E,onClick:h,..._,children:[(t||i||e)&&(0,g.jsxs)("div",{className:p.PE.SELECTORS.HEADER.substring(1),children:[e,t&&(0,g.jsx)("img",{src:t,alt:n,className:p.PE.SELECTORS.IMAGE.substring(1)}),i&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ICON.substring(1),children:i})]}),(0,g.jsxs)("div",{className:p.PE.SELECTORS.BODY.substring(1),children:[a&&(0,g.jsx)("h3",{className:p.PE.SELECTORS.TITLE.substring(1),children:a}),r&&(0,g.jsx)("p",{className:p.PE.SELECTORS.TEXT.substring(1),children:r}),m]}),s&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ACTIONS.substring(1),children:s}),o&&(0,g.jsx)("div",{className:p.PE.SELECTORS.FOOTER.substring(1),children:o})]})}));B.displayName="Card";var $=B;const z={BASE:"c-checkbox",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled",MIXED:"c-checkbox--mixed"};function F(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},n=(0,u.useRef)(null);return(0,u.useEffect)((()=>{n.current&&(n.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,indeterminate:s=t.indeterminate,className:i=""}=e;let o="";return a?o=z.INVALID:r&&(o=z.VALID),`${z.BASE} ${o} ${n?z.DISABLED:""} ${s?z.MIXED:""} ${i}`.trim()},checkboxRef:n}}const U=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,indeterminate:u=!1,ariaLabel:m,ariaDescribedBy:p})=>{const{generateCheckboxClass:h,checkboxRef:_}=F({indeterminate:u,disabled:r,invalid:c,valid:d}),S=h({className:a,disabled:r,invalid:c,valid:d,indeterminate:u});return(0,g.jsxs)("div",{className:S,children:[(0,g.jsx)("input",{ref:_,type:"checkbox",className:"c-checkbox__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:m,"aria-describedby":p,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-checkbox__label",htmlFor:i,children:e})]})};U.displayName="Checkbox";var G=U;const V=({className:e=""})=>{const[t,n]=(0,u.useState)("light");return(0,u.useEffect)((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?n(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&n("dark")}),[]),(0,u.useEffect)((()=>{document.documentElement.setAttribute("data-atomix-theme",t),localStorage.setItem("atomix-color-mode",t)}),[t]),(0,u.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||n(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]),(0,g.jsx)("button",{className:"c-color-mode-toggle "+e,onClick:()=>{n((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===t?"dark":"light"} mode`,title:`Switch to ${"light"===t?"dark":"light"} mode`,children:(0,g.jsx)("svg","light"===t?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};V.displayName="ColorModeToggle";var Y=V;const H=(0,u.forwardRef)((({target:e,show:t=["days","hours","minutes","seconds"],separator:n=":",focused:a=!1,className:r="",onComplete:s},i)=>{const o="string"==typeof e?new Date(e):e,[l,c]=(0,u.useState)((()=>new Date)),[d,p]=(0,u.useState)(!1);(0,u.useEffect)((()=>{if(d)return;const e=setInterval((()=>{c(new Date)}),1e3);return()=>clearInterval(e)}),[d]);const h=o.getTime()-l.getTime(),{days:_,hours:S,minutes:E,seconds:f}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(h);(0,u.useEffect)((()=>{h>0||d||(p(!0),s&&s())}),[h,d,s]);const v=[];return D()(t).call(t,"days")&&v.push({label:"Days",value:_}),D()(t).call(t,"hours")&&v.push({label:"Hours",value:S}),D()(t).call(t,"minutes")&&v.push({label:"Minutes",value:E}),D()(t).call(t,"seconds")&&v.push({label:"Seconds",value:f}),(0,g.jsx)("div",{ref:i,className:`c-countdown${a?" c-countdown--focused":""} ${r}`.trim(),children:v.map(((e,t)=>(0,g.jsxs)(m().Fragment,{children:[(0,g.jsxs)("div",{className:"c-countdown__time",children:[(0,g.jsx)("span",{className:"c-countdown__time-count",children:(e.value+"").padStart(2,"0")}),(0,g.jsx)("span",{className:"c-countdown__time-label",children:e.label})]}),v.length-1>t&&(0,g.jsx)("span",{className:"c-countdown__separator",children:n})]},e.label)))})}));H.displayName="Countdown";var X=H;function W({data:e=[],columns:t=[],sortable:n=!1,paginated:a=!1,pageSize:r=10,onSort:s,initialSortConfig:i}){const[o,l]=(0,u.useState)(i||null),[c,d]=(0,u.useState)(1),[m,p]=(0,u.useState)(""),h=(0,u.useCallback)((e=>{if(!n)return;let t="asc";o&&o.key===e&&"asc"===o.direction&&(t="desc");const a={key:e,direction:t};l(a),s&&s(a)}),[n,o,s]),g=(0,u.useCallback)((t=>{1>t||t>Math.ceil(e.length/r)||d(t)}),[e.length,r]),_=(0,u.useCallback)((e=>{p(e),d(1)}),[]),S=(0,u.useMemo)((()=>{if(!m)return e;const n=m.toLowerCase();return e.filter((e=>t.some((t=>{var a;const r=e[t.key];return null!=r&&D()(a=(r+"").toLowerCase()).call(a,n)}))))}),[e,t,m]),E=(0,u.useMemo)((()=>o&&n?[...S].sort(((e,t)=>{const n=e[o.key],a=t[o.key];return null==n?"asc"===o.direction?-1:1:null==a?"asc"===o.direction?1:-1:"string"==typeof n&&"string"==typeof a?"asc"===o.direction?n.localeCompare(a):a.localeCompare(n):"asc"===o.direction?n>a?1:-1:n>a?-1:1})):S),[S,o,n]),f=(0,u.useMemo)((()=>{if(!a)return E;const e=(c-1)*r;return E.slice(e,e+r)}),[E,a,c,r]),v=(0,u.useMemo)((()=>a?Math.max(1,Math.ceil(E.length/r)):1),[E.length,a,r]);return(0,u.useEffect)((()=>{d(1)}),[e]),(0,u.useEffect)((()=>{c>v&&d(Math.max(1,v))}),[c,v]),{displayData:f,sortConfig:o,currentPage:c,totalPages:v,handleSort:h,handlePageChange:g,handleSearch:_}}function q(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:n=t.variant,size:a=t.size,fullscreen:r=t.fullscreen,className:s=""}=e,i="c-spinner";return`${i} ${n?`${i}--${n}`:""} ${"md"!==a?`${i}--${a}`:""} ${r?i+"--fullscreen":""} ${s}`.trim()}}}const K=({size:e="md",variant:t="primary",fullscreen:n=!1,className:a=""})=>{const{generateSpinnerClass:r}=q({size:e,variant:t,fullscreen:n}),s=r({size:e,variant:t,fullscreen:n,className:a});return(0,g.jsx)("div",{className:s,role:"status",children:(0,g.jsx)("span",{className:p._v.VISUALLY_HIDDEN,children:"Loading..."})})};K.displayName="Spinner";var Z=K;const J="...",Q=(e,t)=>Array.from({length:t-e+1},((t,n)=>n+e)),ee=({currentPage:e,totalPages:t,siblingCount:n=1,onPageChange:a})=>{const r=(0,u.useMemo)((()=>{if(n+5>=t)return Q(1,t);const a=Math.max(e-n,1),r=Math.min(e+n,t),s=a>2,i=t-2>r,o=t;if(!s&&i)return[...Q(1,3+2*n),J,t];if(s&&!i){let e=Q(t-(3+2*n)+1,t);return[1,J,...e]}if(s&&i){let e=Q(a,r);return[1,J,...e,J,o]}return[]}),[t,n,e]),s=n=>{1>n||n>t||n===e||a(n)};return{paginationRange:r,currentPage:e,totalPages:t,goToPage:s,nextPage:()=>{s(e+1)},prevPage:()=>{s(e-1)},firstPage:()=>{s(1)},lastPage:()=>{s(t)},DOTS:J}},te=({type:e,onClick:t,disabled:n,label:a,iconName:r})=>(0,g.jsx)("li",{className:`c-pagination__item c-pagination__item--${e} ${n?"is-disabled":""}`,"aria-disabled":n,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:t,disabled:n,"aria-label":a,children:(0,g.jsx)(v,{name:r,size:"sm","aria-hidden":"true"})})}),ne=({currentPage:e=p.Ci.currentPage,totalPages:t=p.Ci.totalPages,onPageChange:n,siblingCount:a=p.Ci.siblingCount,showFirstLastButtons:r=p.Ci.showFirstLastButtons,showPrevNextButtons:s=p.Ci.showPrevNextButtons,size:i=p.Ci.size,className:o="",ariaLabel:l="Pagination"})=>{const{paginationRange:c,goToPage:d,nextPage:u,prevPage:m,firstPage:h,lastPage:_}=ee({currentPage:e,totalPages:t,siblingCount:a,onPageChange:n});return 0===e||2>c.length?null:(0,g.jsx)("nav",{className:`c-pagination c-pagination--${i} ${o}`,"aria-label":l,children:(0,g.jsxs)("ul",{className:"c-pagination__items",children:[r&&(0,g.jsx)(te,{type:"first",onClick:h,disabled:1===e,label:"Go to first page",iconName:"SkipBack"}),s&&(0,g.jsx)(te,{type:"prev",onClick:m,disabled:1===e,label:"Go to previous page",iconName:"CaretLeft"}),c.map(((t,n)=>{if(t===J)return(0,g.jsx)("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+n);const a=t===e;return(0,g.jsx)("li",{className:"c-pagination__item "+(a?"is-active":""),"aria-current":a?"page":void 0,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:()=>d(t),"aria-label":"Page "+t,"aria-current":a?"page":void 0,children:t})},t)})),s&&(0,g.jsx)(te,{type:"next",onClick:u,disabled:e===t,label:"Go to next page",iconName:"CaretRight"}),r&&(0,g.jsx)(te,{type:"last",onClick:_,disabled:e===t,label:"Go to last page",iconName:"SkipForward"})]})})};ne.displayName="Pagination";var ae=ne;const re=({data:e,columns:t,className:n,sortable:a=!1,filterable:r=!1,paginated:s=!1,pageSize:i=10,striped:o=!1,bordered:l=!1,dense:c=!1,loading:d=!1,emptyMessage:m="No data available",onRowClick:h,onSort:_,...S})=>{const E=(0,u.useRef)(null),{displayData:f,sortConfig:b,currentPage:C,totalPages:N,handleSort:L,handlePageChange:x,handleSearch:T}=W({data:e,columns:t,sortable:a,paginated:s,pageSize:i,onSort:_}),A=[p.tI.base,o&&p.tI.striped,l&&p.tI.bordered,c&&p.tI.dense,d&&p.tI.loading,n].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:p.tI.container,...S,children:[r?(0,g.jsx)("div",{className:p.tI.toolbar,children:(0,g.jsx)("div",{className:p.tI.search,children:(0,g.jsx)("input",{type:"text",placeholder:"Search...",className:p.tI.searchInput+" c-input",onChange:e=>T(e.target.value),"aria-label":"Search table"})})}):null,(0,g.jsx)("div",{className:p.tI.tableWrapper,children:(0,g.jsxs)("table",{ref:E,className:A,children:[(0,g.jsx)("thead",{className:p.tI.header,children:(0,g.jsx)("tr",{children:t.map(((e,t)=>(0,g.jsx)("th",{className:`${p.tI.headerCell} ${!1!==e.sortable&&a?p.tI.sortable:""}`,onClick:()=>!1!==e.sortable&&a?L(e.key):null,"aria-sort":b?.key===e.key?"asc"===b.direction?"ascending":"descending":void 0,children:(0,g.jsxs)("div",{className:p.tI.headerContent,children:[(0,g.jsx)("span",{children:e.title}),!1!==e.sortable&&a&&(0,g.jsx)("span",{className:p.tI.sortIcon,children:b?.key===e.key?(0,g.jsx)(v,"asc"===b.direction?{name:"CaretUp",size:"sm"}:{name:"CaretDown",size:"sm"}):null})]})},"header-"+t)))})}),(0,g.jsx)("tbody",d?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.loadingCell,children:(0,g.jsx)("div",{className:p.tI.loadingIndicator,children:(0,g.jsx)(K,{size:"md",variant:"primary"})})})})}:0===f.length?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.emptyCell,children:m})})}:{children:f.map(((e,n)=>(0,g.jsx)("tr",{className:p.tI.row,onClick:h?()=>h(e):void 0,tabIndex:h?0:void 0,role:h?"button":void 0,children:t.map(((t,a)=>(0,g.jsx)("td",{className:p.tI.cell,children:t.render?t.render(e[t.key],e):e[t.key]},`cell-${n}-${a}`)))},"row-"+n)))})]})}),s&&N>1?(0,g.jsx)("div",{className:p.tI.pagination,children:(0,g.jsx)(ne,{currentPage:C,totalPages:N,onPageChange:x,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};re.displayName="DataTable";var se=re;function ie(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function oe(e,t){return new Date(e,t+1,0).getDate()}function le(e,t){if(!e)return"";const n=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();return t.replace("yyyy",""+r).replace("MM",(""+a).padStart(2,"0")).replace("M",""+a).replace("dd",(""+n).padStart(2,"0")).replace("d",""+n)}const ce=(0,u.forwardRef)((({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,placeholder:c="Select date...",disabled:d=!1,readOnly:p=!1,clearable:h=!0,showTodayButton:_=!0,showWeekNumbers:S=!1,inline:E=!1,id:f,name:b,className:C="",placement:N="bottom-start",inputClassName:L="",size:x="md",...T},A)=>{const{isOpen:I,inputValue:O,rangeInputValue:y,viewMode:R,currentMonth:w,currentYear:k,rangeSelectionState:j,datePickerRef:D,inputRef:M,startDate:P,setIsOpen:B,handleDateSelect:$,handlePrevMonth:z,handleNextMonth:F,handlePrevYear:U,handleNextYear:G,handleTodayClick:V,handleClear:Y,handleInputChange:H,handleInputFocus:X,switchToMonthView:W,switchToYearView:q,selectMonth:K,selectYear:Z,generateDays:J,generateMonths:Q,generateYears:ee,isDateSelectable:te,isDateSelected:ne,isDateInSelectedRange:ae,isToday:re,getWeekNumber:se}=function({value:e,onChange:t,selectionMode:n="single",startDate:a,endDate:r,onRangeChange:s,format:i="MM/dd/yyyy",minDate:o,maxDate:l,inline:c=!1}={}){const[d,m]=(0,u.useState)(c),[p,h]=(0,u.useState)(e?le(e,i):""),[g,_]=(0,u.useState)(a&&r?`${le(a,i)} - ${le(r,i)}`:a?le(a,i)+" - Select end date":""),[S,E]=(0,u.useState)(e||a||new Date),[f,v]=(0,u.useState)("days"),[b,C]=(0,u.useState)(!a||a&&r?"start":"end"),N=(0,u.useRef)(null),L=(0,u.useRef)(null),x=new Date,T=S.getMonth(),A=S.getFullYear(),I=oe(A,T),O=new Date(A,T,1).getDay();(0,u.useEffect)((()=>{"single"===n?h(e?le(e,i):""):(_(a&&r?`${le(a,i)} - ${le(r,i)}`:a?le(a,i)+" - Select end date":""),C(!a||a&&r?"start":"end"))}),[e,a,r,i,n]);const y=(0,u.useCallback)((e=>{const r=new Date(A,T,e);if(!(o&&o>r||l&&r>l))if("single"===n)t&&t(r),h(le(r,i)),c||m(!1);else if("start"===b)s&&s({startDate:r,endDate:null}),_(le(r,i)+" - Select end date"),C("end");else{if(!a)return;a>r?(s&&s({startDate:r,endDate:a}),_(`${le(r,i)} - ${le(a,i)}`)):(s&&s({startDate:a,endDate:r}),_(`${le(a,i)} - ${le(r,i)}`)),c||m(!1),C("start")}}),[A,T,o,l,t,s,i,c,n,b,a]),R=(0,u.useCallback)((()=>{E(new Date(A,T-1,1))}),[A,T]),w=(0,u.useCallback)((()=>{E(new Date(A,T+1,1))}),[A,T]),k=(0,u.useCallback)((()=>{E(new Date(A-1,T,1))}),[A,T]),j=(0,u.useCallback)((()=>{E(new Date(A+1,T,1))}),[A,T]),D=(0,u.useCallback)((()=>{v("months")}),[]),M=(0,u.useCallback)((()=>{v("years")}),[]),P=(0,u.useCallback)((e=>{E(new Date(A,e,1)),v("days")}),[A]),B=(0,u.useCallback)((e=>{E(new Date(e,T,1)),v("months")}),[T]),$=(0,u.useCallback)((()=>{const e=new Date;E(e),"single"===n?y(e.getDate()):E(new Date)}),[y,n]),z=(0,u.useCallback)((()=>{"single"===n?(h(""),t&&t(null)):(_(""),C("start"),s&&s({startDate:null,endDate:null}))}),[t,s,n]),F=(0,u.useCallback)((e=>{if("single"===n){h(e.target.value);const n=new Date(e.target.value);isNaN(n.getTime())||(t&&t(n),E(n))}else{_(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0].trim(),n=t[1].trim(),a=new Date(e);if(isNaN(a.getTime())||E(a),e&&n){const t=new Date(e),a=new Date(n);isNaN(t.getTime())||isNaN(a.getTime())||s&&s({startDate:t,endDate:a})}}}}),[t,s,n]),U=(0,u.useCallback)((()=>{c||m(!0)}),[c]),G=(0,u.useCallback)((e=>{N.current&&!N.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&m(!1)}),[]);(0,u.useEffect)((()=>(d&&!c?document.addEventListener("mousedown",G):document.removeEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)})),[d,G,c]);const V=(0,u.useCallback)((()=>{const e=[],t=oe(0===T?A-1:A,0===T?11:T-1);for(let a=O-1;a>=0;a--)e.push({day:t-a,month:0===T?11:T-1,year:0===T?A-1:A,isCurrentMonth:!1});for(let a=1;I>=a;a++)e.push({day:a,month:T,year:A,isCurrentMonth:!0});const n=42-e.length;for(let a=1;n>=a;a++)e.push({day:a,month:11===T?0:T+1,year:11===T?A+1:A,isCurrentMonth:!1});return e}),[I,O,T,A]),Y=(0,u.useCallback)((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:ie(t)});return e}),[]),H=(0,u.useCallback)((()=>{const e=[],t=A-6;for(let n=0;12>n;n++)e.push(t+n);return e}),[A]),X=(0,u.useCallback)(((e,t,n)=>function(e,t,n){return!(!e||t&&t>e||n&&e>n)}(new Date(e,t,n),o,l)),[o,l]),W=(0,u.useCallback)(((t,s,i)=>{if("single"===n)return!!e&&e.getFullYear()===t&&e.getMonth()===s&&e.getDate()===i;if(!a&&!r)return!1;if(a&&!r)return a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i;if(a&&r){const e=a.getFullYear()===t&&a.getMonth()===s&&a.getDate()===i,n=r.getFullYear()===t&&r.getMonth()===s&&r.getDate()===i;return e||n}return!1}),[e,n,a,r]),q=(0,u.useCallback)(((e,t,s)=>{if("range"!==n||!a||!r)return!1;const i=new Date(e,t,s);return i>a&&r>i}),[n,a,r]),K=(0,u.useCallback)(((e,t,n)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===n),[x]),Z=(0,u.useCallback)((e=>{const t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);const a=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((a-t.valueOf())/6048e5)}),[]);return{isOpen:d,inputValue:p,rangeInputValue:g,viewDate:S,viewMode:f,currentMonth:T,currentYear:A,selectionMode:n,rangeSelectionState:b,datePickerRef:N,inputRef:L,startDate:a,endDate:r,setIsOpen:m,handleDateSelect:y,handlePrevMonth:R,handleNextMonth:w,handlePrevYear:k,handleNextYear:j,handleTodayClick:$,handleClear:z,handleInputChange:F,handleInputFocus:U,switchToMonthView:D,switchToYearView:M,selectMonth:P,selectYear:B,generateDays:V,generateMonths:Y,generateYears:H,isDateSelectable:X,isDateSelected:W,isDateInSelectedRange:q,isToday:K,getWeekNumber:Z}}({value:e,onChange:t,selectionMode:n,startDate:a,endDate:r,onRangeChange:s,format:i,minDate:o,maxDate:l,inline:E});(0,u.useImperativeHandle)(A,(()=>({open:()=>B(!0),close:()=>B(!1),clear:Y,focus:()=>M.current?.focus()})));const ce=`c-datepicker ${C} ${E?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${x} ${L}`.trim(),ue=f||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===n?O:y;return(0,g.jsxs)("div",{className:ce,ref:D,...T,children:[!E&&(0,g.jsxs)("div",{className:"c-datepicker__input-wrapper",children:[(0,g.jsx)("input",{id:ue,name:b,ref:M,type:"text",className:de,placeholder:"single"===n?c:"start"===j?"Select start date...":P?le(P,i)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:X,disabled:d,readOnly:p,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":me}),h&&pe&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:(0,g.jsx)(v,{name:"X",size:"sm"})}),(0,g.jsx)("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:(0,g.jsx)(v,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||E)&&(0,g.jsxs)("div",{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+N,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:[(0,g.jsxs)("div",{className:"c-datepicker__header",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(v,{name:"CaretDoubleLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:z,"aria-label":"Previous month",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:W,"aria-label":"Switch to month view",children:`${w+1}/${k}`}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:F,"aria-label":"Next month",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(v,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:q,"aria-label":"Switch to year view",children:k}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})})]}),"years"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>U(),"aria-label":"Previous year range",children:(0,g.jsx)(v,{name:"CaretLeft",size:"sm"})}),(0,g.jsxs)("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[k-6," - ",k+5]}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>G(),"aria-label":"Next year range",children:(0,g.jsx)(v,{name:"CaretRight",size:"sm"})})]})]}),(0,g.jsxs)("div",{className:"c-datepicker__body",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-datepicker__weekdays",role:"row",children:[S&&(0,g.jsx)("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),(0,g.jsx)("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":ue+"-month-year",children:J().map(((e,t)=>{const s=te(e.year,e.month,e.day),i=ne(e.year,e.month,e.day),o=re(e.year,e.month,e.day),l=new Date(e.year,e.month,e.day),c=ae(e.year,e.month,e.day),d="range"===n&&a&&e.day===a.getDate()&&e.month===a.getMonth()&&e.year===a.getFullYear(),u="range"===n&&r&&e.day===r.getDate()&&e.month===r.getMonth()&&e.year===r.getFullYear();if(S&&t%7==0){const n=se(l);return(0,g.jsxs)(m().Fragment,{children:[(0,g.jsx)("div",{className:"c-datepicker__weeknumber","aria-label":"Week "+n,children:n}),(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day})]},"week-"+t)}return(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${i?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${s?"":"c-datepicker__day--disabled"}`,onClick:()=>s&&$(e.day),disabled:!s,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":i?"true":"false",role:"gridcell",children:e.day},"day-"+t)}))})]}),"months"===R&&(0,g.jsx)("div",{className:"c-datepicker__months",role:"grid",children:Q().map(((t,n)=>{const a=e&&e.getMonth()===t.month&&e.getFullYear()===k;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__month "+(a?"c-datepicker__month--selected":""),onClick:()=>K(t.month),"aria-selected":a?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+n)}))}),"years"===R&&(0,g.jsx)("div",{className:"c-datepicker__years",role:"grid",children:ee().map(((t,n)=>{const a=e&&e.getFullYear()===t;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__year "+(a?"c-datepicker__year--selected":""),onClick:()=>Z(t),"aria-selected":a?"true":"false",role:"gridcell",children:t},"year-"+n)}))})]}),"days"===R&&(0,g.jsxs)("div",{className:"c-datepicker__footer",children:["range"===n&&(0,g.jsxs)("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===j?"start":"end"," date"]}),_&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:V,"aria-label":"Go to today",children:"Today"}),!E&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>B(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));ce.displayName="DatePicker";var de=ce;const ue=(0,u.createContext)({isOpen:!1,close:()=>{},id:"",trigger:"click"}),me=({children:e,menu:t,placement:n="bottom-start",trigger:a="click",offset:r=p.a0.DEFAULTS.OFFSET,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,maxHeight:c,minWidth:d=p.a0.DEFAULTS.MIN_WIDTH,variant:m,className:h="",..._})=>{const[S,E]=(0,u.useState)(!1),f=void 0!==s,v=f?s:S,b=(0,u.useRef)(null),C=(0,u.useRef)(null),N=(0,u.useRef)(null),L=(0,u.useRef)("dropdown-"+Math.random().toString(36).substring(2,9)).current,x=(0,u.useCallback)((e=>{f||E(e),i&&i(e)}),[f,i]),T=(0,u.useCallback)((()=>x(!v)),[v,x]),A=(0,u.useCallback)((()=>{x(!1),setTimeout((()=>{C.current?.focus()}),0)}),[x]);(0,u.useEffect)((()=>{if(!v||!o)return;const e=e=>{b.current&&!b.current.contains(e.target)&&A()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[v,o,A]),(0,u.useEffect)((()=>{if(!v||!l)return;const e=e=>{"Escape"===e.key&&A()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[v,l,A]);const I=(0,u.useCallback)((e=>{if(!N.current)return;const t=N.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const n=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),t.length-1>n?t[n+1].focus():t[0].focus();break;case"ArrowUp":e.preventDefault(),n>0?t[n-1].focus():t[t.length-1].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}),[]),O=(0,u.useCallback)((e=>{"click"===a&&(e.preventDefault(),e.stopPropagation(),T())}),[a,T]),y=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||v?"Escape"===e.key&&v&&(e.preventDefault(),A()):(e.preventDefault(),x(!0),"ArrowDown"===e.key&&N.current&&setTimeout((()=>{const e=N.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[v,x,A]),R=(0,u.useCallback)((()=>{"hover"===a&&x(!0)}),[a,x]),w=["c-dropdown","click"===a?"c-dropdown--onclick":"",m?"c-dropdown--"+m:"",v?"is-open":"",h].filter(Boolean).join(" "),k={};return c&&(k.maxHeight=c),void 0!==d&&(k.minWidth="number"==typeof d?d+"px":d),(0,g.jsxs)("div",{ref:b,className:w,onMouseEnter:"hover"===a?R:void 0,..._,children:[(0,g.jsx)("div",{ref:C,className:"c-dropdown__toggle",onClick:O,onKeyDown:y,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":L,tabIndex:0,children:e}),(0,g.jsx)("div",{ref:N,id:L,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${n} ${v?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!v,onKeyDown:I,children:(0,g.jsx)("div",{className:"c-dropdown__menu-inner",style:k,children:(0,g.jsx)(ue.Provider,{value:{isOpen:v,close:A,id:L,trigger:a},children:(0,g.jsx)("ul",{className:"c-dropdown__menu",children:t})})})})]})};me.displayName="Dropdown";var pe=me;function he(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[n,a]=(0,u.useState)(t.isOpen||!1),r=(0,u.useRef)(null),s=(0,u.useRef)(null),i=(0,u.useCallback)((()=>{if(!r.current||"push"!==t.mode)return;const{position:e}=t,n="top"===e||"bottom"===e?r.current.clientHeight:r.current.clientWidth;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[a]=n+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),o=(0,u.useCallback)((()=>{if("push"!==t.mode)return;const{position:e}=t;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[n]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),l=(0,u.useCallback)((()=>{if(a(!0),document.body.classList.add("is-edgepanel-open"),r.current){const{mode:e}=t;if("none"!==e){r.current.classList.add("is-animating");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),p.xU.ANIMATION_DURATION)}r.current.style.transform="translate(0)","push"===t.mode&&i()}t.onOpenChange&&t.onOpenChange(!0)}),[t,i]),c=(0,u.useCallback)((()=>{if(r.current){const{position:e,mode:n}=t;if("none"!==n){r.current.classList.add("is-animating-out");const e=r.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),p.xU.ANIMATION_DURATION)}r.current.style.transform=e?p.xU.TRANSFORM_VALUES[e]:"","push"===t.mode&&o(),setTimeout((()=>{a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===n?0:p.xU.ANIMATION_DURATION)}else a(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,o]),d=(0,u.useCallback)((e=>{t.closeOnEscape&&"Escape"===e.key&&n&&c()}),[c,t.closeOnEscape,n]),m=(0,u.useCallback)((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&c()}),[c,t.closeOnBackdropClick]);return(0,u.useEffect)((()=>(n&&t.closeOnEscape&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)})),[n,d,t.closeOnEscape]),(0,u.useEffect)((()=>{if(r.current){const{position:e,mode:a}=t;n||"slide"!==a&&"push"!==a||!e||(r.current.style.transform=p.xU.TRANSFORM_VALUES[e])}}),[t.mode,t.position,n]),(0,u.useEffect)((()=>{void 0!==t.isOpen&&t.isOpen!==n&&(t.isOpen?l():c())}),[t.isOpen,c,n,l]),{isOpen:n,containerRef:r,backdropRef:s,generateEdgePanelClass:e=>{const{position:a=t.position,className:r="",isOpen:s}=e,i=p.xU.CLASSES.BASE;return`${i} ${a?`${i}--${a}`:""} ${s??n?p.xU.CLASSES.IS_OPEN:""} ${r}`.trim()},openPanel:l,closePanel:c,handleBackdropClick:m}}const ge=({title:e,children:t,position:n="start",mode:a="slide",isOpen:r=!1,onOpenChange:s,backdrop:i=!0,closeOnBackdropClick:o=!0,closeOnEscape:l=!0,className:c=""})=>{const{isOpen:d,containerRef:u,backdropRef:m,generateEdgePanelClass:p,closePanel:h,handleBackdropClick:_}=he({position:n,mode:a,isOpen:r,onOpenChange:s,backdrop:i,closeOnBackdropClick:o,closeOnEscape:l}),S=p({position:n,isOpen:r,className:c});return d||!1!==r?(0,g.jsxs)("div",{className:S,"data-position":n,"data-mode":a,children:[i&&(0,g.jsx)("div",{ref:m,className:"c-edge-panel__backdrop",onClick:_}),(0,g.jsxs)("div",{ref:u,className:"c-edge-panel__container",children:[(0,g.jsxs)("div",{className:"c-edge-panel__header",children:[(0,g.jsx)("h4",{children:e}),(0,g.jsx)("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:h,"aria-label":"Close panel",children:(0,g.jsx)(v,{name:"X"})})]}),(0,g.jsx)("div",{className:"c-edge-panel__body",children:t})]})]}):null};ge.displayName="EdgePanel";var _e=ge;function Se(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:n=t.disabled,className:a=""}=e;return`${p.PI.CLASSES.BASE} ${n?p.PI.CLASSES.DISABLED:""} ${a}`.trim()},handleSubmit:e=>n=>{n.preventDefault(),!t.disabled&&e&&e(n)},handleReset:e=>n=>{!t.disabled&&e&&e(n)}}}const Ee=({children:e,onSubmit:t,onReset:n,className:a="",disabled:r=!1,id:s,method:i="post",encType:o,noValidate:l=!1,autoComplete:c="on"})=>{const{generateFormClass:d,handleSubmit:u,handleReset:m}=Se({disabled:r}),p=d({className:a,disabled:r});return(0,g.jsx)("form",{id:s,className:p,onSubmit:u(t),onReset:m(n),method:i,encType:o,noValidate:l,autoComplete:c,children:e})};Ee.displayName="Form";var fe=Ee;function ve(e){const t=(0,u.useRef)(null),n=(0,u.useRef)(null),a=(0,u.useRef)(null),r={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},s=!!r.backgroundImageSrc,i=!!r.imageSrc,o=i&&"center"!==r.alignment,l=(e,t=.5)=>{if(!e)return;const n=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const r=()=>{const t=window.pageYOffset*n,a=e.querySelector(p.Dv.SELECTORS.BG);a&&(a.style.transform=`translateY(${t}px)`)};a.current=r,window.addEventListener("scroll",r),r()},c=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(p.Dv.SELECTORS.BG);t&&(t.style.transform=""),a.current&&(window.removeEventListener("scroll",a.current),a.current=null)};return(0,u.useEffect)((()=>{const e=t.current;return e&&r.parallax&&s&&l(e,r.parallaxIntensity),()=>{e&&a.current&&c(e)}}),[r.parallax,r.parallaxIntensity,s]),{generateHeroClassNames:(e="")=>{const t=[p.Dv.SELECTORS.HERO.replace(".","")];return"center"===r.alignment?t.push(p.Dv.CLASSES.CENTER):"right"===r.alignment?t.push(p.Dv.CLASSES.RIGHT):"left"===r.alignment&&t.push(p.Dv.CLASSES.LEFT),r.fullViewportHeight&&t.push(p.Dv.CLASSES.FULL_VH),r.parallax&&t.push("c-hero--parallax"),r.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=r.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===r.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=r.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:s,hasForegroundImage:i,useGridLayout:o,heroRef:t,videoRef:n,applyParallaxEffect:l,removeParallaxEffect:c}}const be=({title:e,subtitle:t,text:n,imageSrc:a,imageAlt:r="Hero image",alignment:s="left",backgroundImageSrc:i,showOverlay:o=!0,fullViewportHeight:l=!1,actions:c,imageColSize:d=7,contentColSize:u=5,contentWidth:m,className:h="",parallax:_=!1,parallaxIntensity:S=.5,videoBackground:E,videoOptions:f={autoplay:!0,loop:!0,muted:!0}})=>{const{generateHeroClassNames:v,generateImageColClass:b,generateContentColClass:C,hasBackgroundImage:N,hasForegroundImage:L,useGridLayout:x,heroRef:T,videoRef:A}=ve({alignment:s,imageColSize:d,contentColSize:u,imageSrc:a,backgroundImageSrc:i,showOverlay:o,fullViewportHeight:l,contentWidth:m,parallax:_,parallaxIntensity:S,videoBackground:E}),I=m?{"--atomix-hero-content-width":m}:void 0,O=()=>(0,g.jsxs)("div",{className:p.Dv.SELECTORS.CONTENT.replace(".",""),children:[t&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.SUBTITLE.replace(".",""),children:t}),(0,g.jsx)("h1",{className:p.Dv.SELECTORS.TITLE.replace(".",""),children:e}),n&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.TEXT.replace(".",""),children:n}),c&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.ACTIONS.replace(".",""),children:c})]}),y=()=>L?(0,g.jsx)("div","center"===s?{className:p.Dv.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}:{className:b(),children:(0,g.jsx)("img",{src:a,alt:r,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}):null;return(0,g.jsxs)("div",{ref:T,className:v(h),style:I,"data-parallax":_?"true":void 0,"data-parallax-intensity":_?S:void 0,children:[N||E?(0,g.jsxs)("div",{className:p.Dv.SELECTORS.BG.replace(".",""),children:[i&&(0,g.jsx)("img",{src:i,alt:"Background",className:p.Dv.SELECTORS.BG_IMAGE.replace(".","")}),(()=>{if(!E)return null;const{autoplay:e,loop:t,muted:n,posterUrl:a}=f;return(0,g.jsxs)("video",{ref:A,className:"c-hero__video",autoPlay:e,loop:t,muted:n,playsInline:!0,poster:a,children:[(0,g.jsx)("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})})(),o&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.OVERLAY.replace(".","")})]}):null,(0,g.jsx)("div",{className:p.Dv.SELECTORS.CONTAINER.replace(".","")+" o-container",children:x?(0,g.jsx)("div",{className:p.Dv.SELECTORS.GRID.replace(".","")+" o-grid",children:(0,g.jsxs)(g.Fragment,"left"===s?{children:[(0,g.jsx)("div",{className:C(),children:O()}),y()]}:{children:[y(),(0,g.jsx)("div",{className:C(),children:O()})]})}):(0,g.jsxs)(g.Fragment,{children:[O(),y()]})})]})};be.displayName="Hero";var Ce=be;function Ne(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o="",type:l}=e;let c="";return s?c=p.bO.CLASSES.INVALID:i&&(c=p.bO.CLASSES.VALID),`${p.bO.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.bO.CLASSES.SMALL:p.bO.CLASSES.LARGE} ${a?"c-input--"+a:""} ${"textarea"===l?"c-input--textarea":""} ${c} ${r?p.bO.CLASSES.DISABLED:""} ${o}`.trim()}}}const Le=({type:e="text",value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,className:i="",disabled:o=!1,required:l=!1,readOnly:c=!1,id:d,name:u,autoComplete:m,autoFocus:p=!1,size:h="md",variant:_,invalid:S=!1,valid:E=!1,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,ariaLabel:x,ariaDescribedBy:T})=>{const{generateInputClass:A}=Ne({size:h,variant:_,disabled:o,invalid:S,valid:E}),I=A({className:i,size:h,variant:_,disabled:o,invalid:S,valid:E,type:e});return(0,g.jsx)("input",{type:e,className:I,value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s,disabled:o,required:l,readOnly:c,id:d,name:u,autoComplete:m,autoFocus:p,maxLength:f,minLength:v,pattern:b,min:C,max:N,step:L,"aria-label":x,"aria-describedby":T,"aria-invalid":S})};Le.displayName="Input";var xe=Le;const Te=({children:e,variant:t="default",className:n="",...a})=>{var r;const s=[p.rl.BASE_CLASS,"default"!==t&&"c-list--"+t,n].filter(Boolean).join(" "),i=D()(r=["number","text"]).call(r,t)?"ol":"ul";return(0,g.jsx)(i,{className:s,...a,children:m().Children.map(e,(e=>(0,g.jsx)("li",{className:"c-list__item",children:e})))})};Te.displayName="List";var Ae=Te;const Ie=({messages:e=[],otherAvatar:t,selfAvatar:n,otherName:a,width:r="100%",onSendMessage:s,placeholder:i="Type a message",className:o="",bodyHeight:l,disabled:c=!1,id:d})=>{const{inputValue:m,handleInputChange:h,handleSubmit:_,handleKeyDown:S}=(({onSendMessage:e}={})=>{const[t,n]=(0,u.useState)(""),a=a=>{a.preventDefault(),t.trim()&&e&&(e(t.trim()),n(""))};return{inputValue:t,setInputValue:n,handleInputChange:e=>{n(e.target.value)},handleSubmit:a,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a(e))}}})({onSendMessage:s}),E=d||"messages-"+Math.random().toString(36).substr(2,9),f=E+"-input";return(0,g.jsxs)("div",{className:`${p.nl.CLASSES.BASE} ${c?"is-disabled":""} ${o}`,style:{"--atomix-messages-width":r},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[(0,g.jsx)("div",{className:p.nl.CLASSES.BODY,style:l?{"--atomix-messages-body-height":l}:void 0,children:e.map((e=>(0,g.jsxs)("div",{className:`${p.nl.CLASSES.CONTENT} ${e.isSelf?p.nl.CLASSES.CONTENT_SELF:""}`,"aria-label":`${e.isSelf?"You":a||"Other person"} sent a message at ${e.time}`,children:[(0,g.jsx)(C,{src:e.isSelf?n:t,size:"xl",circle:!0,className:p.nl.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":(a||"Other person")+"'s avatar"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.ITEMS,children:[!e.isSelf&&a&&(0,g.jsx)("div",{className:p.nl.CLASSES.NAME,children:a}),e.text&&(0,g.jsxs)("div",{className:p.nl.CLASSES.TEXT,children:[e.text,(0,g.jsx)("span",{className:p.nl.CLASSES.TIME,"aria-label":"Sent at "+e.time,children:e.time})]}),e.image&&(0,g.jsx)("img",{className:p.nl.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE,"aria-label":`File attachment: ${e.file.name}, size: ${e.file.size}`,children:[(0,g.jsx)("span",{className:p.nl.CLASSES.FILE_ICON,children:(0,g.jsx)(v,{name:"File","aria-hidden":"true"})}),(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE_DETAILS,children:[(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_NAME,children:e.file.name}),(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)))}),(0,g.jsxs)("form",{className:p.nl.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[(0,g.jsxs)("div",{className:p.nl.CLASSES.INPUT_GROUP,children:[(0,g.jsx)("label",{htmlFor:f,className:"u-visually-hidden",children:"Type a message"}),(0,g.jsx)("input",{id:f,type:"text",className:p.nl.CLASSES.INPUT,placeholder:i,value:m,onChange:h,onKeyDown:S,disabled:c,"aria-label":"Message input"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.OPTIONS,"aria-label":"Message options",children:[(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach file",disabled:c,children:(0,g.jsx)(v,{name:"PaperclipHorizontal","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach image",disabled:c,children:(0,g.jsx)(v,{name:"Image","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Insert link",disabled:c,children:(0,g.jsx)(v,{name:"Link","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})})]})]}),(0,g.jsx)("button",{type:"submit",className:p.nl.CLASSES.SUBMIT,"aria-label":"Send message",disabled:c,children:(0,g.jsx)(v,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};Ie.displayName="Messages";var Oe=Ie;const ye=({children:e,isOpen:t=!1,onOpenChange:n,onClose:a,onOpen:r,title:s,subtitle:i,size:o="md",backdrop:l=!0,keyboard:c=!0,className:d="",closeButton:m=!0,footer:h,..._})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=(0,u.useRef)(null),{isOpen:v,close:b}=function({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}({isOpen:t,onOpenChange:n,onClose:a,onOpen:r});(0,u.useEffect)((()=>{if(!c)return;const e=e=>{"Escape"===e.key&&v&&b()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[v,b,c]);const C=["c-modal",v?p.Cv.CLASSES.IS_OPEN:"",o?"c-modal--"+o:"",d].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:C,style:{display:v?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!v,..._,children:[(0,g.jsx)("div",{ref:f,className:"c-modal__backdrop",onClick:e=>{l&&e.target===e.currentTarget&&b()}}),(0,g.jsx)("div",{ref:E,className:"c-modal__dialog",children:(0,g.jsxs)("div",{className:"c-modal__content",children:[(s||m)&&(0,g.jsxs)("div",{className:"c-modal__header",children:[(0,g.jsxs)("div",{className:"c-modal__header-content",children:[s&&(0,g.jsx)("h3",{className:"c-modal__title",children:s}),i&&(0,g.jsx)("p",{className:"c-modal__sub",children:i})]}),m&&(0,g.jsx)("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:b,"aria-label":"Close modal",children:(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),(0,g.jsx)("div",{className:"c-modal__body",children:e}),h&&(0,g.jsx)("div",{className:"c-modal__footer",children:h})]})})]})};ye.displayName="Modal";var Re=ye;function we(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[n,a]=(0,u.useState)(t.expanded||!1);return{defaultProps:t,isExpanded:n,setIsExpanded:a,generateNavbarClass:e=>{const{position:n=t.position,variant:a,collapsible:r=t.collapsible,className:s=""}=e;return`c-navbar ${"static"!==n?"c-navbar--"+n:""} ${a?"c-navbar--"+a:""} ${r?"c-navbar--collapsible":""} ${s}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!n;a(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:n}}function ke(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:n=t.alignment,variant:a=t.variant,className:r=""}=e;return`c-nav ${"start"!==n?"c-nav--"+n:""} ${"default"!==a?"c-nav--"+a:""} ${r}`.trim()}}}function je(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:n=t.dropdown,megaMenu:a=t.megaMenu,active:r=t.active,disabled:s=t.disabled,className:i=""}=e;return`c-nav__item ${n&&!a?p.Ac.SELECTORS.DROPDOWN.replace(".",""):""} ${a?"c-nav__item--mega-menu":""} ${r?p.Ac.CLASSES.ACTIVE:""} ${s?p.Ac.CLASSES.DISABLED:""} ${i}`.trim()},generateNavLinkClass:(e=!1,t=!1,n="")=>`c-nav__link ${e?p.Ac.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${n}`.trim(),handleClick:e=>n=>{!t.disabled&&e?e():n.preventDefault()}}}function De(e){const t={alignment:"start",megaMenu:!1,...e},n=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:n=t.alignment,megaMenu:a=t.megaMenu,className:r=""}=e,s=a?p.Ac.SELECTORS.MEGA_MENU.replace(".",""):p.Ac.SELECTORS.DROPDOWN_MENU.replace(".","");let i="";return"center"===n?i=s+"--center":"end"===n&&(i=s+"--end"),`${s} ${i} ${r}`.trim()},isInFixedBottomNavbar:n,getIconClass:(e=!1)=>"c-nav__icon "+(n()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>n()?"CaretUp":"CaretDown"}}const Me=(0,u.forwardRef)((({brand:e,children:t,variant:n,position:a="static",containerWidth:r,collapsible:s=!0,expanded:i,onToggle:o,className:l="",disabled:c=!1,backdrop:d=!1,closeOnOutsideClick:m=!0,closeOnEscape:p=!0,ariaLabel:h="Main navigation",id:_},S)=>{const{generateNavbarClass:E,generateContainerStyle:f,generateCollapseClass:v}=we({position:a,collapsible:s,expanded:i,onToggle:o}),[b,C]=(0,u.useState)(i||!1),N=(0,u.useRef)(null);(0,u.useEffect)((()=>{void 0!==i&&C(i)}),[i]),(0,u.useEffect)((()=>{const e=()=>{768<=window.innerWidth&&s&&("function"==typeof o?i&&o(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[s,i,o]);const L=E({position:a,variant:n,collapsible:s,className:l}),x=f(r),T=v(b);return(0,g.jsx)("nav",{ref:S,className:L,"aria-label":h,id:_,children:(0,g.jsxs)("div",{className:"c-navbar__container",style:x,children:[e&&("string"==typeof e?(0,g.jsx)("a",{href:"/",className:"c-navbar__brand",children:e}):(0,g.jsx)("div",{className:"c-navbar__brand",children:e})),s&&(0,g.jsx)("button",{className:"c-navbar__toggler",onClick:()=>{if(c)return;const e=!b;"function"==typeof o?o(e):C(e)},"aria-expanded":b,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:c,type:"button",children:(0,g.jsx)("span",{className:"c-navbar__toggler-icon"})}),(0,g.jsx)("div",{id:"navbar-collapse",className:T,ref:N,children:t})]})})}));Me.displayName="Navbar";var Pe=Me;const Be=({currentIndex:e,imagesLength:t,onZoomOut:n,onResetZoom:a,onZoomIn:r,onToggleFullscreen:s,onClose:i,isFullscreen:o,zoomLevel:l,onRotate:c,onDownload:d,onShare:u,showInfo:m,onToggleInfo:p,currentImage:h})=>(0,g.jsxs)("div",{className:"c-photo-viewer__header",children:[(0,g.jsx)(A,{label:`${e+1} / ${t}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),(0,g.jsxs)("div",{className:"c-photo-viewer__actions",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,disabled:.1>=l,"aria-label":"Zoom out",icon:(0,g.jsx)(v,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,disabled:1===l,"aria-label":"Reset zoom",icon:(0,g.jsx)(v,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,disabled:l>=5,"aria-label":"Zoom in",icon:(0,g.jsx)(v,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Rotate image",icon:(0,g.jsx)(v,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:d,"aria-label":"Download image",icon:(0,g.jsx)(v,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&"undefined"!=typeof navigator&&"share"in navigator&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:u,"aria-label":"Share image",icon:(0,g.jsx)(v,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":m?"Hide info":"Show info",icon:(0,g.jsx)(v,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,"aria-label":o?"Exit fullscreen":"Enter fullscreen",icon:(0,g.jsx)(v,o?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:i,"aria-label":"Close photo viewer",icon:(0,g.jsx)(v,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]}),$e=({show:e,onPrev:t,onNext:n,currentIndex:a,imagesLength:r,enableKeyboardNav:s,onClose:i})=>((0,u.useEffect)((()=>{if(!s)return;const e=e=>{"ArrowLeft"===e.key&&t(),"ArrowRight"===e.key&&n(),"Escape"===e.key&&i()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s,t,n,i]),e?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:t,disabled:0===a,"aria-label":"Previous image",icon:(0,g.jsx)(v,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:n,disabled:a===r-1,"aria-label":"Next image",icon:(0,g.jsx)(v,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null),ze=({imageRef:e,containerRef:t,src:n,alt:a,zoomLevel:r,dragPosition:s,isDragging:i,rotationAngle:o,isTransitioning:l=!1,onMouseDown:c,onMouseMove:d,onMouseUp:m,onWheel:p,onTouchStart:h,onTouchMove:_,onTouchEnd:S,onDoubleClick:E})=>{const f=(0,u.useRef)(null),v=t||f,[b,C]=(0,u.useState)(!1);return(0,u.useEffect)((()=>(C(!0),()=>C(!1))),[]),(0,u.useEffect)((()=>{const e=v.current;if(!e)return;const t=t=>{b&&e&&p&&p(t)},n=t=>{b&&e&&h&&h(t)},a=t=>{b&&e&&_&&_(t)},r=t=>{b&&e&&S&&S(t)};return b&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",n,{passive:!1}),e.addEventListener("touchmove",a,{passive:!1}),e.addEventListener("touchend",r,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",r)}}),[b,p,h,_,S,v]),(0,g.jsx)("div",{ref:v,className:"c-photo-viewer__image-container "+(l?"is-transitioning":""),style:{cursor:i?"grabbing":r>1?"grab":"default",opacity:l?.7:1,touchAction:"none"},onMouseDown:c,onMouseMove:d,onMouseUp:m,onMouseLeave:m,onDoubleClick:e=>{b&&E&&E(e)},children:(0,g.jsx)("img",{ref:e,src:n,alt:a,className:"c-photo-viewer__image",style:{transform:`scale(${r}) translate(${s.x}px, ${s.y}px) rotate(${o}deg)`,transition:i?"none":l?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:i?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Fe=({images:e,currentIndex:t,goToImage:n})=>e.length>1?(0,g.jsx)("div",{className:"c-photo-viewer__thumbnails",children:e.map(((e,a)=>(0,g.jsx)(w,{variant:"light",className:"c-photo-viewer__thumbnail "+(a===t?"is-active":""),onClick:()=>n(a),"aria-label":"View image "+(a+1),"aria-current":a===t,children:(0,g.jsx)("img",{loading:"lazy",src:e.thumbnail||e.src,alt:e.alt||"Thumbnail "+(a+1),className:"c-photo-viewer__thumbnail-img"})},a)))}):null,Ue=({show:e,image:t,onClose:n})=>e&&t?(0,g.jsxs)("div",{className:"c-photo-viewer__info-panel",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,"aria-label":"Close info panel",icon:(0,g.jsx)(v,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),(0,g.jsxs)("div",{className:"c-photo-viewer__info-content",children:[t.title&&(0,g.jsx)("h3",{className:"c-photo-viewer__info-title",children:t.title}),t.description&&(0,g.jsx)("p",{className:"c-photo-viewer__info-description",children:t.description}),t.date&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["Date: ",t.date]}),t.author&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["By: ",t.author]}),t.tags&&t.tags.length>0&&(0,g.jsx)("div",{className:"c-photo-viewer__info-tags",children:t.tags.map(((e,t)=>(0,g.jsx)(A,{label:e,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},t)))})]})]}):null,Ge=({images:e,startIndex:t=0,className:n="",disabled:a=!1,enableKeyboardNavigation:r=!0,enableGestures:s=!0,enableFullscreen:i=!0,thumbnailPosition:o="bottom",onImageChange:l,onClose:c})=>{const{currentIndex:d,zoomLevel:m,imagePosition:p,isDragging:h,isFullscreen:_,rotationAngle:S,showInfo:E,imageRef:f,containerRef:v,isTransitioning:b,setZoomLevel:C,setIsFullscreen:N,setRotationAngle:L,setShowInfo:x,closeModal:T,goToPrevious:A,goToNext:I,setCurrentIndex:O,handleMouseDown:y,handleMouseMove:R,handleMouseUp:w,handleWheel:k,handleTouchStart:j,handleTouchMove:M,handleTouchEnd:P,handleDoubleClick:B,resetImageState:$}=(({images:e,startIndex:t=0,enableGestures:n=!0,onImageChange:a,onClose:r})=>{const[s,i]=(0,u.useState)(t),[o,l]=(0,u.useState)(!1),[c,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)({x:0,y:0}),[h,g]=(0,u.useState)(!1),[_,S]=(0,u.useState)(!1),[E,f]=(0,u.useState)({}),[v,b]=(0,u.useState)(!1),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)({velocity:0,timestamp:0}),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)([]),O=(0,u.useRef)(null),y=(0,u.useRef)(null),R=(0,u.useRef)(0),w=(0,u.useRef)(null),k=(0,u.useCallback)(((e,t)=>{if(!C||!T.current||!A.current)return{minX:0,maxX:0,minY:0,maxY:0};const n=T.current,a=A.current;if(!n.naturalWidth&&!n.width)return{minX:0,maxX:0,minY:0,maxY:0};const r=n.naturalWidth||n.width||800,s=n.naturalHeight||n.height||600;try{const n=a.getBoundingClientRect();if(!n||0===n.width||0===n.height)return{minX:0,maxX:0,minY:0,maxY:0};const i=n.width,o=n.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=r/s;let m,p;i/o>u?(p=Math.min(.9*o,s),m=p*u):(m=Math.min(.9*i,r),p=m/u);const h=(m*d+p*c)*e,g=Math.max(0,((m*c+p*d)*e-i)/2),_=Math.max(0,(h-o)/2);return{minX:-g,maxX:g,minY:-_,maxY:_}}catch(i){return{minX:0,maxX:0,minY:0,maxY:0}}}),[C]),j=(0,u.useCallback)(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);(0,u.useEffect)((()=>(N(!0),i(0>t||t>=e.length?0:t),()=>N(!1))),[e,t]),(0,u.useEffect)((()=>{o?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[o]),(0,u.useEffect)((()=>{o&&f((e=>e[s]?e:{...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[o,s]),(0,u.useEffect)((()=>{a&&a(s)}),[s,a]),(0,u.useEffect)((()=>{const e=T.current,t=A.current,n=()=>{C&&e&&t&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=k(t.zoomLevel,t.rotation),a=j(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};if(!(e&&t&&e.complete&&C))return e&&t&&C?(e.addEventListener("load",n),()=>e.removeEventListener("load",n)):void 0;n()}),[s,k,j,C]),(0,u.useEffect)((()=>{const e=()=>{C&&T.current&&A.current&&f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=k(t.zoomLevel,t.rotation),a=j(t.position,n);return{...e,[s]:{...t,bounds:n,position:a}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[s,k,j,C]);const M=(0,u.useCallback)((()=>{l(!0)}),[]),P=(0,u.useCallback)((()=>{l(!1),r&&r()}),[r]),B=(0,u.useCallback)((()=>{s>0&&(b(!0),setTimeout((()=>{i((e=>e-1)),b(!1)}),150))}),[s]),$=(0,u.useCallback)((()=>{e.length-1>s&&(b(!0),setTimeout((()=>{i((e=>e+1)),b(!1)}),150))}),[s,e.length]),z=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.zoomLevel):e,r=Math.max(.1,Math.min(5,a)),i=k(r,n.rotation),o=j(n.position,i);return{...t,[s]:{...n,zoomLevel:r,bounds:i,position:o}}}))}),[C,s,k,j]),F=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a="function"==typeof e?e(n.position):e,r=j(a,n.bounds);return{...t,[s]:{...n,position:r}}}))}),[s,j]),U=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=(("function"==typeof e?e(n.rotation):e)%360+360)%360,r=k(n.zoomLevel,a),i=j(n.position,r);return{...t,[s]:{...n,rotation:a,bounds:r,position:i}}}))}),[C,s,k,j]),G=(0,u.useCallback)((e=>{var t;if(!C||!e||!e.currentTarget)return;const n=e.currentTarget;if(n&&"function"==typeof n.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(D()(t),t))?.("storybook"))try{const e=n.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(a){return}f((t=>{const a=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},r=/Mac|iPod|iPhone|iPad/.test(navigator.platform),i=e.ctrlKey&&r,o=Math.abs(e.deltaX)>0;let l,c=!1;if(i)l=-.02*e.deltaY,c=!0;else if(!e.ctrlKey&&o&&r){if(1>=a.zoomLevel)return t;l=-.003*e.deltaY,c=!0}else e.ctrlKey||o||!r?r?(l=-.005*e.deltaY,c=!0):(l=-.006*e.deltaY,c=!0):(l=-.004*e.deltaY,c=!0);c&&(e.preventDefault(),e.stopPropagation());const d=Date.now(),u=d-R.current;let m;R.current=d,i&&100>u&&(x({velocity:Math.abs(l)/u,timestamp:d}),w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const n=.95*t.velocity,a=n*(l>0?1:-1);return f((e=>{const t=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=Math.max(.1,Math.min(5,t.zoomLevel+a));if(n===t.zoomLevel)return e;const r=k(n,t.rotation),i=j(t.position,r);return{...e,[s]:{...t,zoomLevel:n,bounds:r,position:i}}})),.001>n||requestAnimationFrame(e),{velocity:n,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{m=n.getBoundingClientRect()}catch(S){return t}if(!m||0===m.width||0===m.height)return t;const p=e.clientX-m.left-m.width/2,h=e.clientY-m.top-m.height/2,g=a.zoomLevel,_=Math.max(.1,Math.min(5,g+l));if(_!==g){const e=_/g,n=k(_,a.rotation),r=j({x:a.position.x+p*(1-e)*.5,y:a.position.y+h*(1-e)*.5},n);return{...t,[s]:{...a,zoomLevel:_,bounds:n,position:r}}}return t}))}}),[C,s,k,j]),V=(0,u.useCallback)((e=>{if(!C||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&f((n=>{const a=n[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let r;try{r=t.getBoundingClientRect()}catch(m){return n}if(!r||0===r.width||0===r.height)return n;const i=e.clientX-r.left-r.width/2,o=e.clientY-r.top-r.height/2;let l,c={x:0,y:0};1.5>a.zoomLevel?(l=2,c={x:.5*-i,y:.5*-o}):3>a.zoomLevel?(l=4,c={x:.75*-i,y:.75*-o}):(l=1,c={x:0,y:0});const d=k(l,a.rotation),u=j(c,d);return{...n,[s]:{...a,zoomLevel:l,bounds:d,position:u}}}))}),[C,s,k,j]),Y=(0,u.useCallback)((e=>{f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return n.zoomLevel>1&&(e.preventDefault(),d(!0),p({x:e.clientX-n.position.x,y:e.clientY-n.position.y})),t}))}),[s]),H=(0,u.useCallback)((e=>{c&&f((t=>{const n=t[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=j({x:e.clientX-m.x,y:e.clientY-m.y},n.bounds);return{...t,[s]:{...n,position:a}}}))}),[c,m,s,j]),X=(0,u.useCallback)((()=>{d(!1)}),[]),W=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),I.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),f((e=>{const n=e[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&n.zoomLevel>1)d(!0),p({x:t[0].clientX-n.position.x,y:t[0].clientY-n.position.y});else if(2===t.length){const e=t[0].clientX-t[1].clientX,n=t[0].clientY-t[1].clientY;O.current=Math.sqrt(e*e+n*n),y.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}),[n,s]),q=(0,u.useCallback)((e=>{if(!n)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),f((n=>{const a=n[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(a.zoomLevel>1&&1===t.length&&e.preventDefault(),1===t.length&&c&&a.zoomLevel>1){const e=j({x:t[0].clientX-m.x,y:t[0].clientY-m.y},a.bounds);return{...n,[s]:{...a,position:e}}}if(2===t.length&&null!==O.current){const i=t[0].clientX-t[1].clientX,o=t[0].clientY-t[1].clientY,l=Math.sqrt(i*i+o*o),c=.005*(l-O.current);O.current=l;const d={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},u=a.zoomLevel,m=Math.max(.1,Math.min(5,u+c));if(m!==u&&y.current){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(r){return n}if(!t||0===t.width||0===t.height)return n;const i=d.x-t.left-t.width/2,o=d.y-t.top-t.height/2,l=m/u,c=k(m,a.rotation),p=j({x:a.position.x+i*(1-l)*.5,y:a.position.y+o*(1-l)*.5},c);return y.current=d,{...n,[s]:{...a,zoomLevel:m,bounds:c,position:p}}}y.current=d}return n}))}),[C,n,c,m,s,j,k]),K=(0,u.useCallback)((()=>{d(!1),O.current=null,y.current=null}),[]),Z=E[s]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:s,isModalOpen:o,zoomLevel:Z.zoomLevel,imagePosition:Z.position,isDragging:c,isFullscreen:h,rotationAngle:Z.rotation,showInfo:_,imageRef:T,containerRef:A,isTransitioning:v,setCurrentIndex:i,setZoomLevel:z,setImagePosition:F,setIsDragging:d,setIsFullscreen:g,setRotationAngle:U,setShowInfo:S,openModal:M,closeModal:P,goToPrevious:B,goToNext:$,handleWheel:G,handleMouseDown:Y,handleMouseMove:H,handleMouseUp:X,handleTouchStart:W,handleTouchMove:q,handleTouchEnd:K,handleDoubleClick:V,resetImageState:()=>{f((e=>({...e,[s]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:e,startIndex:t,enableGestures:s,onImageChange:l,onClose:c||(()=>{})}),z=(0,u.useMemo)((()=>e.map((e=>"string"==typeof e?{src:e}:e))),[e]),F=z[d],U=(0,u.useMemo)((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+o,h?"c-photo-viewer--dragging":"",_?"c-photo-viewer--fullscreen":"",E?"c-photo-viewer--info-open":"",a?"is-disabled":"",n].filter(Boolean).join(" ")),[h,_,E,a,o,n]);return(0,u.useEffect)((()=>{const e=()=>{N(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[N]),(0,u.useEffect)((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),e.length?(0,g.jsxs)("div",{className:U,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[(0,g.jsx)("div",{className:"c-photo-viewer__backdrop",onClick:T}),(0,g.jsxs)("div",{className:"c-photo-viewer__container",children:[(0,g.jsx)(Be,{currentIndex:d,imagesLength:e.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{$()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(i){if(_)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}N(!_)}},onClose:c||T,isFullscreen:_,zoomLevel:m,onRotate:()=>{L((e=>(e+90)%360))},onDownload:()=>{if(!F?.src)return;const e=document.createElement("a");e.href=F.src,e.download=F.title||"image-"+(d+1),document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&F?.src)try{await navigator.share({title:F.title||"Shared Image",text:F.description||"Check out this image",url:F.src})}catch(e){}},showInfo:E,onToggleInfo:()=>x(!E),currentImage:F}),(0,g.jsxs)("div",{className:"c-photo-viewer__content",children:[(0,g.jsx)($e,{show:e.length>1,onPrev:A,onNext:I,currentIndex:d,imagesLength:e.length,enableKeyboardNav:r,onClose:c||T}),F?.src&&(0,g.jsx)(ze,{imageRef:f,containerRef:v,src:F.src,alt:F?.alt||"Image "+(d+1),zoomLevel:m,dragPosition:p,isDragging:h,rotationAngle:S,isTransitioning:b,onMouseDown:y,onMouseMove:R,onMouseUp:w,onWheel:k,onTouchStart:j,onTouchMove:M,onTouchEnd:P,onDoubleClick:B})]}),"none"!==o&&(0,g.jsx)(Fe,{images:z,currentIndex:d,goToImage:O}),(0,g.jsx)(Ue,{show:E,image:F,onClose:()=>x(!1)})]})]}):null};Ge.displayName="PhotoViewer";var Ve=Ge,Ye=require("react-dom");const He=(0,u.createContext)({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Xe=({content:e,position:t="top",trigger:n="click",className:a="",delay:r=0,offset:s=12,defaultOpen:i=!1,isOpen:o,onOpenChange:l,closeOnClickOutside:c=!0,closeOnEscape:d=!0,id:m,children:h})=>{const{isOpen:_,setIsOpen:S,triggerRef:E,popoverRef:f,arrowRef:v,popoverId:b,currentPosition:C}=(({position:e="top",trigger:t="click",offset:n=12,delay:a=0,defaultOpen:r=!1,isOpen:s,onOpenChange:i,closeOnClickOutside:o=!0,closeOnEscape:l=!0,id:c})=>{const[d,m]=(0,u.useState)(r),[p,h]=(0,u.useState)("auto"===e?"top":e),g=(0,u.useRef)(null),_=(0,u.useRef)(null),S=(0,u.useRef)(null),E=(0,u.useRef)(null),f=c||"popover-"+Math.random().toString(36).slice(2,11),v=void 0!==s,b=v?s:d,C=e=>{v||m(e),i&&i(e)};(0,u.useEffect)((()=>{if("hover"!==t||!g.current||!_.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),a>0?E.current=setTimeout((()=>{C(!0)}),a):C(!0)},n=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{_.current?.matches(":hover")||C(!1)}),100)},r=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},s=()=>{C(!1)};return g.current.addEventListener("mouseenter",e),g.current.addEventListener("mouseleave",n),_.current.addEventListener("mouseenter",r),_.current.addEventListener("mouseleave",s),()=>{g.current&&(g.current.removeEventListener("mouseenter",e),g.current.removeEventListener("mouseleave",n)),_.current&&(_.current.removeEventListener("mouseenter",r),_.current.removeEventListener("mouseleave",s)),null!==E.current&&window.clearTimeout(E.current)}}),[t,a,b]);const N=t=>{if(!g.current||!_.current)return;const a=g.current.getBoundingClientRect(),r=_.current.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight,o=50>a.top||a.bottom>i-50||50>a.left||a.right>s-50;if("scroll"===t?.type&&!o)return;const l=a.top,c=i-a.bottom,d=a.left,u=s-a.right;let m="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),m=e[0].position}else("top"===e&&r.height+n>l&&c>=r.height+n||"bottom"===e&&r.height+n>c&&l>=r.height+n||"left"===e&&r.width+n>d&&u>=r.width+n||"right"===e&&r.width+n>u&&d>=r.width+n)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);h(m);let p=0,S=0;switch(m){case"top":p=a.top-r.height-n,S=a.left+a.width/2-r.width/2;break;case"bottom":p=a.bottom+n,S=a.left+a.width/2-r.width/2;break;case"left":p=a.top+a.height/2-r.height/2,S=a.left-r.width-n;break;case"right":p=a.top+a.height/2-r.height/2,S=a.right+n}0>S?S=5:S+r.width>s&&(S=s-r.width-5),0>p?p=5:p+r.height>i&&(p=i-r.height-5);const E=p+window.scrollY,f=S+window.scrollX;_.current.style.position="absolute",_.current.style.top=E+"px",_.current.style.left=f+"px"};return(0,u.useEffect)((()=>{if(!b||!g.current||!_.current)return;N(),window.addEventListener("resize",N);let e=null;const t=t=>{e||(e=setTimeout((()=>{N(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const n=setInterval((()=>{N()}),500);return()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(n)}}),[b,e,n]),(0,u.useEffect)((()=>{if(!b||!o)return;const e=e=>{_.current&&!_.current.contains(e.target)&&g.current&&!g.current.contains(e.target)&&C(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[b,o]),(0,u.useEffect)((()=>{if(!b||!l)return;const e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[b,l]),(0,u.useEffect)((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:b,setIsOpen:C,triggerRef:g,popoverRef:_,arrowRef:S,popoverId:f,currentPosition:p,updatePosition:N}})({position:t,trigger:n,offset:s,delay:r,defaultOpen:i,isOpen:o,onOpenChange:l,closeOnClickOutside:c,closeOnEscape:d,id:m});return(0,g.jsxs)(He.Provider,{value:{isOpen:_,setIsOpen:S,triggerRef:E,popoverId:b,triggerType:n},children:[h,"undefined"!=typeof document&&(0,Ye.createPortal)((0,g.jsxs)("div",{ref:f,className:`c-popover c-popover--${C} ${_?p.I6.CLASSES.IS_OPEN:""} ${a}`,id:b,role:"tooltip","aria-hidden":!_,children:[(0,g.jsx)("div",{className:"c-popover__content",children:(0,g.jsx)("div",{className:"c-popover__content-inner",children:e})}),(0,g.jsx)("div",{ref:v,className:"c-popover__arrow"})]}),document.body)]})};Xe.displayName="Popover";var We=Xe;function qe(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ke(e,t){return m().useMemo((()=>null==e&&null==t?null:n=>{qe(e,n),qe(t,n)}),[e,t])}const Ze=(0,u.forwardRef)((({value:e=0,defaultValue:t,maxValue:n=5,allowHalf:a=!1,readOnly:r=!1,size:s="md",color:i,onChange:o,className:l="",label:c,id:d,useVanillaJS:m=!1,...h},_)=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{currentValue:f,hoverValue:v,focusedIndex:b,setHoverValue:C,setFocused:N,handleKeyDown:L}=(({value:e=0,maxValue:t=5,allowHalf:n=!1,readOnly:a=!1,onChange:r})=>{const s=void 0!==r,[i,o]=(0,u.useState)(e),[l,c]=(0,u.useState)(null),[d,m]=(0,u.useState)(null),p=s?e:i,h=(0,u.useCallback)((e=>{a||c(e)}),[a]),g=(0,u.useCallback)((()=>{a||c(null)}),[a]),_=(0,u.useCallback)((e=>{a||(s||o(e),r?.(e))}),[a,r,s]),S=(0,u.useCallback)(((e,i)=>{if(a)return;const l=n?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+l),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-l),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=i,e.preventDefault();break;default:return}c!==p&&(s||o(c),r?.(c))}),[p,t,n,a,r,s]);return{currentValue:p,hoverValue:l,focusedIndex:d,handleMouseEnter:h,handleMouseLeave:g,handleClick:_,handleKeyDown:S,setFocused:m,setHoverValue:c,isControlled:s}})({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,onChange:o}),x=(0,u.useCallback)(((e,t)=>{if(!r)if(a){const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}else C(t)}),[r,a,C]),T=(0,u.useCallback)(((e,t)=>{if(r||!a)return;const n=e.currentTarget.getBoundingClientRect();C(Math.max(.5,n.left+n.width/2>e.clientX?t-.5:t))}),[r,a,C]),A=(0,u.useCallback)((()=>{r||C(null)}),[r,C]),I=(0,u.useCallback)(((e,t)=>{if(r)return;let n=t;if(a){const a=e.currentTarget.getBoundingClientRect();n=a.left+a.width/2>e.clientX?t-.5:t,n=Math.max(.5,n)}o?.(n)}),[r,o,a]);(0,u.useEffect)((()=>{if(m&&"undefined"!=typeof window&&S.current)return()=>{E.current&&E.current.destroy()}}),[m,e,t,n,a,r,s,i,o]),(0,u.useEffect)((()=>{m&&E.current&&E.current.updateOptions({value:void 0!==e?e:t,maxValue:n,allowHalf:a,readOnly:r,size:s,color:i})}),[m,e,t,n,a,r,s,i]);const O=["c-rating","sm"===s?p._I.CLASSES.SMALL:"","lg"===s?p._I.CLASSES.LARGE:"",i?"c-rating--"+i:"",l].filter(Boolean).join(" ");if(m)return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,...h});const y=null!==v?v:f;return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,"data-readonly":r?"true":"false",onMouseLeave:A,role:r?"img":"radiogroup","aria-label":c||`Rating: ${f} out of ${n} stars`,...h,children:(()=>{const e=[],t=a?Math.floor(2*y)/2:Math.round(y),s=d||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;n>=o;o++){const l=["c-rating__star",o>Math.floor(t)?"":p._I.CLASSES.FULL,a&&o-.5===t?p._I.CLASSES.HALF:"",i?"c-rating__star--"+i:"",b===o?"c-rating__star--focused":""].filter(Boolean).join(" ");e.push((0,g.jsx)("div",{id:`${s}-star-${o}`,className:l,"data-value":o,role:r?"presentation":"button",tabIndex:r?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":t>=o,"aria-setsize":n,"aria-posinset":o,onClick:e=>I(e,o),onMouseEnter:e=>x(e,o),onMouseMove:e=>T(e,o),onFocus:()=>N(o),onBlur:()=>N(null),onKeyDown:e=>L(e,o),children:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,g.jsx)("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),(0,g.jsx)("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),(0,g.jsx)("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${s}-${o})`}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:`half-star-clip-${s}-${o}`,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return e})()})}));Ze.displayName="Rating";var Je=Ze;const Qe=({productName:e,productImage:t,initialRating:n=0,maxRating:a=5,allowHalf:r=!0,ratingColor:s="warning",onSubmit:i,className:o=""})=>{const[l,c]=(0,u.useState)(n),[d,m]=(0,u.useState)(""),[p,h]=(0,u.useState)(!1),_=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return()=>{S.current&&S.current.destroy()}}),[e,t,n,a,r,s,i]);const E=e=>{e.preventDefault(),i&&i(l,d),h(!0)},f=["c-product-review",o].filter(Boolean).join(" ");return p?(0,g.jsx)("div",{className:f,ref:_,children:(0,g.jsxs)("div",{className:"c-product-review__success",children:[(0,g.jsx)("h3",{children:"Thank you for your review!"}),(0,g.jsx)("p",{children:"Your feedback helps us improve our products."}),(0,g.jsx)(w,{variant:"secondary",label:"Write another review",onClick:()=>{h(!1),c(0),m("")}})]})}):(0,g.jsxs)("div",{className:f,ref:_,children:[(0,g.jsxs)("div",{className:"c-product-review__header",children:[(0,g.jsxs)("h3",{className:"c-product-review__title",children:["Review ",e]}),t&&(0,g.jsx)("div",{className:"c-product-review__image-wrapper",children:(0,g.jsx)("img",{src:t,alt:e,className:"c-product-review__image"})})]}),(0,g.jsxs)("form",{className:"c-product-review__form",onSubmit:E,children:[(0,g.jsxs)("div",{className:"c-product-review__rating-container",children:[(0,g.jsx)("label",{className:"c-product-review__label",children:"Your Rating"}),(0,g.jsxs)("div",{className:"c-rating-container",children:[(0,g.jsx)(Ze,{value:l,onChange:c,allowHalf:r,maxValue:a,size:"lg",color:s}),(0,g.jsx)("span",{className:"c-rating__value",children:l>0?l.toFixed(1):"Select a rating"})]})]}),(0,g.jsxs)("div",{className:"c-product-review__comment-container",children:[(0,g.jsx)("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),(0,g.jsx)("textarea",{id:"review-comment",className:"c-product-review__textarea",value:d,onChange:e=>m(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),(0,g.jsx)("div",{className:"c-product-review__actions",children:(0,g.jsx)(w,{variant:"primary",label:"Submit Review",disabled:0===l,onClick:()=>E(new Event("click"))})})]})]})};Qe.displayName="ProductReview";var et=Qe,tt=(0,u.forwardRef)((({value:e,variant:t="primary",size:n="md",className:a="",disabled:r=!1,ariaLabel:s=p.Gd.DEFAULTS.ARIA_LABEL},i)=>{const{progressValue:o,progressStyle:l,progressClasses:c}=(({value:e,variant:t="primary",size:n="md",className:a=""})=>{const r=Math.min(Math.max(e,0),100),s="c-progress";return{progressValue:r,progressStyle:{"--atomix-progress-percentage":r+"%"},progressClasses:[s,t?`${s}--${t}`:"",n?`${s}--${n}`:"",a||""].filter(Boolean).join(" ")}})({value:e,variant:t,size:n,className:a});return(0,g.jsx)("div",{ref:i,className:c,style:l,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,"aria-label":s,"aria-disabled":r,children:(0,g.jsx)("div",{className:p.Gd.CLASSES.BAR})})}));function nt(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:n=t.disabled,invalid:a=t.invalid,valid:r=t.valid,className:s=""}=e;let i="";return a?i=p.e8.CLASSES.INVALID:r&&(i=p.e8.CLASSES.VALID),`${p.e8.CLASSES.BASE} ${i} ${n?p.e8.CLASSES.DISABLED:""} ${s}`.trim()}}}const at=({label:e,checked:t=!1,onChange:n,className:a="",disabled:r=!1,required:s=!1,id:i,name:o,value:l,invalid:c=!1,valid:d=!1,ariaLabel:u,ariaDescribedBy:m})=>{const{generateRadioClass:p}=nt({disabled:r,invalid:c,valid:d}),h=p({className:a,disabled:r,invalid:c,valid:d});return(0,g.jsxs)("div",{className:h,children:[(0,g.jsx)("input",{type:"radio",className:"c-radio__input",checked:t,onChange:n,disabled:r,required:s,id:i,name:o,value:l,"aria-label":e?void 0:u,"aria-describedby":m,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-radio__label",htmlFor:i,children:e})]})};at.displayName="Radio";var rt=at;function st(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const n=[p.zN.SELECTORS.RIVER.replace(".","")];return t.center&&n.push(p.zN.CLASSES.CENTER),t.breakout&&n.push(p.zN.CLASSES.BREAKOUT),t.reverse&&n.push(p.zN.CLASSES.REVERSE),e&&n.push(e),n.join(" ")},generateContentClass:()=>p.zN.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>p.zN.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}const it=({title:e,text:t,actions:a,imageSrc:r,imageAlt:s="Image",center:i=!1,breakout:o=!1,reverse:l=!1,contentColumns:c,backgroundImageSrc:d,showOverlay:m=!0,contentWidth:h,className:_=""})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{generateRiverClassNames:f,generateContentClass:v,generateVisualClass:b,hasBackgroundImage:C,hasForegroundImage:N,textContent:L}=st({title:e,text:t,imageSrc:r,imageAlt:s,center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m,contentWidth:h});(0,u.useEffect)((()=>{if("undefined"!=typeof window&&S.current)return n.e(619).then(n.bind(n,5619)).then((({default:e})=>{S.current&&(E.current=new e(S.current,{center:i,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m}))})),()=>{E.current&&E.current.destroy()}}),[i,o,l,d,m]);const x=h?{[p.zN.ATTRIBUTES.CONTENT_WIDTH]:h}:void 0,T=()=>C?(0,g.jsxs)("div",{className:p.zN.SELECTORS.BG.replace(".",""),children:[(0,g.jsx)("img",{src:d,alt:"Background",className:p.zN.SELECTORS.BG_IMAGE.replace(".","")}),m&&(0,g.jsx)("div",{className:p.zN.SELECTORS.OVERLAY.replace(".","")})]}):null,A=()=>N?(0,g.jsx)("div",{className:b(),children:(0,g.jsx)("div",{className:p.zN.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:r,alt:s,className:p.zN.SELECTORS.IMAGE.replace(".","")})})}):null;return(0,g.jsxs)("div",c&&c.length>0?{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[c.map(((e,t)=>(0,g.jsx)("div",{className:`${p.zN.SELECTORS.CONTENT_COL.replace(".","")} ${p.zN.SELECTORS["CONTENT_COL_"+e.type.toUpperCase()].replace(".","")}`,children:e.content},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]}:{className:f(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:v(),children:[e&&(0,g.jsx)("h2",{className:p.zN.SELECTORS.TITLE.replace(".",""),children:e}),L.map(((e,t)=>(0,g.jsx)("p",{className:p.zN.SELECTORS.TEXT.replace(".",""),children:e},t))),a&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:a})]}),l&&A()]})})]})};it.displayName="River";var ot=it;const lt=({title:e,label:t,text:a,actions:r,alignment:s="left",backgroundImageSrc:i,showOverlay:o=!1,imageSrc:l,imageAlt:c="Section image",size:d="md",skeleton:m=!1,className:h=""})=>{const _=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return n.e(690).then(n.bind(n,3690)).then((({default:e})=>{_.current&&(S.current=new e(_.current,{alignment:s,backgroundImageSrc:i,showOverlay:o,size:d,skeleton:m}))})),()=>{S.current&&S.current.destroy()}}),[s,i,o,d,m]);const E=["c-sectionintro","center"===s?p.DJ.CLASSES.CENTER:"","sm"===d?p.DJ.CLASSES.SMALL:"","lg"===d?p.DJ.CLASSES.LARGE:"",i?"c-sectionintro--has-bg":"",h].filter(Boolean).join(" ");return m?(0,g.jsx)("div",{className:E,ref:_,children:(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("div",{className:"c-sectionintro__title",children:(0,g.jsx)("span",{className:"c-skeleton"})}),a&&(0,g.jsxs)("div",{className:"c-sectionintro__text",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"})]}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("div",{className:"c-sectionintro__image c-skeleton"})})]})}):(0,g.jsxs)("div",{className:E,ref:_,children:[i?(0,g.jsxs)("div",{className:"c-sectionintro__bg",children:[(0,g.jsx)("img",{src:i,alt:"Background",className:"c-sectionintro__bg-image"}),o&&(0,g.jsx)("div",{className:"c-sectionintro__overlay"})]}):null,(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:t}),(0,g.jsx)("h2",{className:"c-sectionintro__title",children:e}),a&&(0,g.jsx)("div",{className:"c-sectionintro__text",children:a}),r&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:r}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("img",{src:l,alt:c,className:"c-sectionintro__image"})})]})]})};lt.displayName="SectionIntro";var ct=lt;function dt(e,t){return e.classList.contains(t)}function ut(e,t){dt(e,t)||e.classList.add(t)}function mt(e,t){dt(e,t)&&e.classList.remove(t)}function pt(e,t,n){e.classList.toggle(t,n)}const ht={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function gt(e,t=16){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${ht[e]||""}"></path>\n </svg>`}function _t(e,t=16,n=""){const a=document.createElement("span");return a.className=n||"c-icon",a.style.display="inline-flex",a.style.alignItems="center",a.style.justifyContent="center",a.innerHTML=gt(e,t),a}function St(){return Object.keys(ht)}function Et(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function ft(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[n,a]=(0,u.useState)(t.items||[]),[r,s]=(0,u.useState)(""),i=e=>{if(!e.trim())return null;const t={id:Et(),text:e.trim(),completed:!1};return a((e=>[...e,t])),s(""),t};return{items:n,inputText:r,setInputText:s,addTodo:i,toggleTodo:e=>{let t=null;return a((n=>n.map((n=>n.id===e?(t={...n,completed:!n.completed},t):n)))),t},deleteTodo:e=>{const t=n.length;return a((t=>t.filter((t=>t.id!==e)))),n.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!r.trim())return;const n=i(r);n&&t&&t(n.text)},generateTodoClasses:e=>{const{size:n=t.size,className:a="",disabled:r=!1}=e;return`${p.Pf.CLASSES.BASE} ${"md"===n?"":"c-todo--"+n} ${r?"c-todo--disabled":""} ${a}`.trim()},generateItemClasses:e=>`${p.Pf.CLASSES.ITEM} ${e.completed?p.Pf.CLASSES.COMPLETED:""}`.trim(),getFilteredItems:(e=!0)=>e?n:n.filter((e=>!e.completed))}}function vt(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:s=t.valid,className:i=""}=e;return`${p.fk.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.fk.CLASSES.SMALL:p.fk.CLASSES.LARGE} ${r?p.fk.CLASSES.INVALID:s?p.fk.CLASSES.VALID:""} ${a?p.fk.CLASSES.DISABLED:""} ${i}`.trim()}}}function bt(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:n=t.size,disabled:a=t.disabled,invalid:r=t.invalid,valid:s=t.valid,className:i=""}=e;let o="";return r?o=p.Th.CLASSES.INVALID:s&&(o=p.Th.CLASSES.VALID),`${p.Th.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.Th.CLASSES.SMALL:p.Th.CLASSES.LARGE} ${o} ${a?p.Th.CLASSES.DISABLED:""} ${i}`.trim()}}}function Ct(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:n=t.size,variant:a=t.variant,disabled:r=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:o=""}=e;let l="";return s?l=p.b4.CLASSES.INVALID:i&&(l=p.b4.CLASSES.VALID),`${p.b4.CLASSES.BASE} ${"md"===n?"":"sm"===n?p.b4.CLASSES.SMALL:p.b4.CLASSES.LARGE} ${a?"c-input--"+a:""} ${l} ${r?p.b4.CLASSES.DISABLED:""} ${o}`.trim()}}}function Nt({isOpen:e,onOpenChange:t,onOpen:n,onClose:a}={}){const[r,s]=(0,u.useState)(!1),i=void 0!==e,o=i?!!e:r;(0,u.useEffect)((()=>{i&&s(!!e)}),[e,i]);const l=(0,u.useCallback)((e=>{i||s(e),t&&t(e),e&&n?n():!e&&a&&a()}),[i,t,n,a]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}function Lt(e){return{defaultOptions:{items:[],divider:p.ic.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[p.ic.CLASSES.ITEM,e.active||t?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}const xt=(e={})=>{const{elevationEffect:t=!1,elevationClass:n=p.PE.CLASSES.ACTIVE,flipEffect:a=!1,flipTrigger:r="click",focusEffect:s=!1,clickable:i=!1,onClick:o}=e,l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)(null),[m,h]=(0,u.useState)(!1),[g,_]=(0,u.useState)(!1),[S,E]=(0,u.useState)(!1),[f,v]=(0,u.useState)(!1),b=(0,u.useCallback)((e=>{a&&"click"===r&&h((e=>!e)),o&&o(e)}),[a,r,o]),C=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&"click"===r&&h((e=>!e)),o&&o(e))}),[a,r,o]),N=(0,u.useCallback)((()=>{v(!0),t&&_(!0),a&&"hover"===r&&h(!0)}),[t,a,r]),L=(0,u.useCallback)((()=>{v(!1),t&&_(!1),a&&"hover"===r&&h(!1)}),[t,a,r]),x=(0,u.useCallback)((()=>{E(!0)}),[]),T=(0,u.useCallback)((()=>{E(!1)}),[]),A=(0,u.useCallback)((()=>({className:[p.PE.CLASSES.BASE,g?n:"",m?p.PE.CLASSES.FLIPPED:"",S&&s?p.PE.CLASSES.FOCUSED:"",i?p.PE.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:l,tabxwIndex:i||a?0:-1,role:i?"button":void 0,onMouseEnter:N,onMouseLeave:L,onFocus:x,onBlur:T,onClick:b,onKeyDown:C})),[g,m,S,n,s,i,N,L,x,T,b,C,a]);return{cardRef:l,frontRef:c,backRef:d,isFlipped:m,isElevated:g,isFocused:S,isHovered:f,handleClick:b,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:L,handleFocus:x,handleBlur:T,getCardProps:A}},Tt=({options:e=[],value:t,onChange:n,onBlur:a,onFocus:r,placeholder:s="Select an option",className:i="",disabled:o=!1,required:l=!1,id:c,name:d,size:m="md",invalid:h=!1,valid:_=!1,multiple:S=!1,ariaLabel:E,ariaDescribedBy:f})=>{const{generateSelectClass:v}=bt({size:m,disabled:o,invalid:h,valid:_}),b=v({className:i,size:m,disabled:o,invalid:h,valid:_}),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(s),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)(null),O=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if(t){const n=e.find((e=>e.value===t));n&&x(n.label)}else x(s)}),[t,e,s]),(0,u.useEffect)((()=>{const e=e=>{T.current&&!T.current.contains(e.target)&&(N(!1),I.current&&(I.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,g.jsxs)("div",{className:`${b} ${C?p.Th.CLASSES.IS_OPEN:""}`,ref:T,"aria-expanded":C,children:[(0,g.jsxs)("select",{ref:O,value:t,onChange:n,onBlur:a,onFocus:r,disabled:o,required:l,id:c,name:d,multiple:S,"aria-label":E,"aria-describedby":f,"aria-invalid":h,style:{display:"none"},children:[s&&(0,g.jsx)("option",{value:"",disabled:!0,children:s}),e.map((e=>(0,g.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))]}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECTED,onClick:()=>{o||(!C&&I.current&&A.current?I.current.style.height=A.current.clientHeight+"px":I.current&&(I.current.style.height="0px"),N(!C))},"aria-disabled":o,children:L}),(0,g.jsx)("i",{className:`${p.Th.CLASSES.ICON_CARET} ${p.Th.CLASSES.TOGGLE_ICON}`}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_BODY,ref:I,style:{height:0},children:(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_PANEL,ref:A,children:(0,g.jsx)("ul",{className:p.Th.CLASSES.SELECT_ITEMS,children:e.map(((e,a)=>(0,g.jsx)("li",{className:p.Th.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:()=>!e.disabled&&(e=>{x(e.label),N(!1),I.current&&(I.current.style.height="0px"),O.current&&(O.current.value=e.value),n&&n({target:{name:d,value:e.value}})})(e),children:(0,g.jsxs)("label",{htmlFor:"SelectItem"+a,className:"c-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:"SelectItem"+a,className:"c-checkbox__input c-select__item-input",checked:t===e.value,readOnly:!0,disabled:e.disabled}),(0,g.jsx)("div",{className:"c-select__item-label",children:e.label})]})},e.value)))})})})]})};Tt.displayName="Select";var At=Tt;const It=({items:e,activeIndex:t=0,vertical:a=!1,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(202).then(n.bind(n,6202)).then((({default:e})=>{o.current&&(l.current=new e(o.current,{activeIndex:s,vertical:a}))})),()=>{l.current&&l.current.destroy()}}),[]),(0,u.useEffect)((()=>{s!==t&&(i(t),l.current&&l.current.setActive(t))}),[t]),(0,g.jsx)("div",{className:`c-steps ${a?p.UT.CLASSES.VERTICAL:""} ${r}`,ref:o,role:"navigation","aria-label":"Steps",children:e.map(((e,t)=>(0,g.jsxs)("div",{className:`c-steps__item ${t>s?"":p.UT.CLASSES.ACTIVE} ${s>t?p.UT.CLASSES.COMPLETED:""}`,"aria-current":t===s?"step":void 0,children:[(0,g.jsx)("div",{className:"c-steps__line"}),(0,g.jsxs)("div",{className:"c-steps__content",children:[(0,g.jsx)("div",{className:"c-steps__number",children:e.number}),(0,g.jsx)("div",{className:"c-steps__text",children:e.text}),e.content&&(0,g.jsx)("div",{className:"c-steps__custom-content",children:e.content})]})]},"step-"+t)))})};It.displayName="Steps";var Ot=It;const yt=({items:e,activeIndex:t=p.wn.DEFAULTS.ACTIVE_INDEX,onTabChange:a,className:r=""})=>{const[s,i]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return n.e(54).then(n.bind(n,5054)).then((({default:e})=>{o.current&&(l.current=new e(o.current))})),()=>{l.current&&l.current.destroy()}}),[]),(0,g.jsxs)("div",{className:"c-tabs js-atomix-tab "+r,ref:o,children:[(0,g.jsx)("ul",{className:"c-tabs__nav",children:e.map(((e,t)=>(0,g.jsx)("li",{className:"c-tabs__nav-item",children:(0,g.jsx)("button",{className:"c-tabs__nav-btn "+(t===s?p.wn.CLASSES.ACTIVE:""),onClick:()=>(e=>{i(e),a&&a(e)})(t),"data-tabindex":t,role:"tab","aria-selected":t===s,"aria-controls":"tab-panel-"+t,children:e.label})},"tab-nav-"+t)))}),(0,g.jsx)("div",{className:"c-tabs__panels",children:e.map(((e,t)=>(0,g.jsx)("div",{className:"c-tabs__panel "+(t===s?p.wn.CLASSES.ACTIVE:""),"data-tabindex":t,id:"tab-panel-"+t,role:"tabpanel","aria-labelledby":"tab-nav-"+t,style:{height:t===s?"auto":"0px",opacity:t===s?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:(0,g.jsx)("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-"+t)))})]})};yt.displayName="Tab";var Rt=yt;const wt=({quote:e,author:t,size:a="",skeleton:r=!1,className:s=""})=>{const i=(0,u.useRef)(null),o=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&i.current)return n.e(894).then(n.bind(n,3894)).then((({default:e})=>{i.current&&(o.current=new e(i.current,{size:a,skeleton:r}))})),()=>{o.current&&o.current.destroy()}}),[a,r]);const l=["c-testimonial","sm"===a?p.sr.CLASSES.SMALL:"","lg"===a?p.sr.CLASSES.LARGE:"",s].filter(Boolean).join(" ");return(0,g.jsxs)("div",r?{className:l,ref:i,children:[(0,g.jsxs)("blockquote",{className:"c-testimonial__quote",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"}),(0,g.jsx)("span",{className:"c-skeleton u-w-25"})]}),(0,g.jsxs)("div",{className:"c-testimonial__author",children:[(0,g.jsx)("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),(0,g.jsxs)("div",{className:"c-testimonial__info u-w-75",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:l,ref:i,children:[(0,g.jsx)("blockquote",{className:"c-testimonial__quote",children:e}),t&&(0,g.jsxs)("div",{className:"c-testimonial__author",children:[t.avatarSrc&&(0,g.jsx)("img",{src:t.avatarSrc,alt:t.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),(0,g.jsxs)("div",{className:"c-testimonial__info",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:t.name}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:t.role})]})]})]})};wt.displayName="Testimonial";var kt=wt;const jt=({value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,className:s="",disabled:i=!1,required:o=!1,readOnly:l=!1,id:c,name:d,rows:u=4,cols:m,maxLength:p,minLength:h,size:_="md",variant:S,invalid:E=!1,valid:f=!1,autoFocus:v=!1,ariaLabel:b,ariaDescribedBy:C})=>{const{generateTextareaClass:N}=Ct({size:_,variant:S,disabled:i,invalid:E,valid:f}),L=N({className:s,size:_,variant:S,disabled:i,invalid:E,valid:f});return(0,g.jsx)("textarea",{className:L,value:e,onChange:t,onBlur:n,onFocus:a,placeholder:r,disabled:i,required:o,readOnly:l,id:c,name:d,rows:u,cols:m,maxLength:p,minLength:h,autoFocus:v,"aria-label":b,"aria-describedby":C,"aria-invalid":E})};jt.displayName="Textarea";var Dt=jt;const Mt=({items:e=[],title:t="Todo List",onAddTodo:n,onToggleTodo:a,onDeleteTodo:r,size:s="md",placeholder:i="Add a new todo",showCompleted:o=!0,className:l="",disabled:c=!1})=>{const{inputText:d,setInputText:m,generateTodoClasses:p,generateItemClasses:h}=ft({items:e,title:t,size:s,placeholder:i,showCompleted:o,disabled:c}),[_,S]=(0,u.useState)(e);(0,u.useEffect)((()=>{S(e)}),[e]);const E=o?_:_.filter((e=>!e.completed)),f=p({size:s,className:l,disabled:c});return(0,g.jsxs)("div",{className:f,children:[t&&(0,g.jsx)("h2",{className:"c-todo__title",children:t}),(0,g.jsx)("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),c||!d.trim())return;const t={id:Et(),text:d.trim(),completed:!1};S((e=>[...e,t])),n&&n(d),m("")},children:(0,g.jsxs)("div",{className:"c-todo__form-group",children:[(0,g.jsx)("input",{type:"text",className:"c-todo__input c-input",placeholder:i,value:d,onChange:e=>m(e.target.value),disabled:c,"aria-label":"Add a new todo"}),(0,g.jsx)("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:c||!d.trim(),"aria-label":"Add todo",children:(0,g.jsx)(v,{name:"Plus",size:"sm"})})]})}),(0,g.jsx)("ul",{className:"c-todo__list",children:0===E.length?(0,g.jsx)("li",{className:"c-todo__empty",children:"No items to display"}):E.map((e=>(0,g.jsx)("li",{className:h(e),children:(0,g.jsxs)("div",{className:"c-todo__item-content",children:[(0,g.jsxs)("label",{className:"c-todo__checkbox-label",children:[(0,g.jsx)("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:e.completed,onChange:()=>{return t=e.id,void(c||(S((e=>e.map((e=>e.id===t?{...e,completed:!e.completed}:e)))),a&&a(t)));var t},disabled:c,"aria-label":`Mark "${e.text}" as ${e.completed?"incomplete":"complete"}`}),(0,g.jsx)("span",{className:"c-todo__item-text",children:e.text})]}),(0,g.jsx)("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return t=e.id,void(c||(S((e=>e.filter((e=>e.id!==t)))),r&&r(t)));var t},disabled:c,"aria-label":`Delete "${e.text}"`,children:(0,g.jsx)(v,{name:"Trash",size:"sm"})})]})},e.id)))})]})};Mt.displayName="Todo";var Pt=Mt;const Bt=({initialOn:e=!1,onToggleOn:t,onToggleOff:a,disabled:r=!1,className:s=""})=>{const[i,o]=(0,u.useState)(e),l=(0,u.useRef)(null),c=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"==typeof window||!l.current)return;n.e(897).then(n.bind(n,897)).then((({default:e})=>{l.current&&(c.current=new e(l.current))}));const r=()=>{o(!0),t&&t()},s=()=>{o(!1),a&&a()},i=l.current;return i?.addEventListener("toggle:on",r),i?.addEventListener("toggle:off",s),e&&c.current&&c.current.turnOn(),()=>{i?.removeEventListener("toggle:on",r),i?.removeEventListener("toggle:off",s),c.current&&c.current.destroy()}}),[e,t,a]),(0,u.useEffect)((()=>{c.current&&(i?c.current.turnOn():c.current.turnOff())}),[i]),(0,g.jsx)("div",{className:`c-toggle ${i?p.DR.CLASSES.IS_ON:""} ${r?"is-disabled":""} ${s}`,ref:l,role:"switch","aria-checked":i,tabIndex:r?-1:0,"aria-disabled":r,children:(0,g.jsx)("div",{className:"c-toggle__switch"})})};Bt.displayName="Toggle";var $t=Bt;const zt={trigger:p.UB.DEFAULTS.TRIGGER,position:p.UB.DEFAULTS.POSITION,offset:p.UB.DEFAULTS.OFFSET,delay:p.UB.DEFAULTS.DELAY,activeClass:p.UB.CLASSES.IS_ACTIVE,contentIdAttr:p.UB.ATTRIBUTES.CONTENT_ID,positionAttr:p.UB.ATTRIBUTES.POSITION,triggerAttr:p.UB.ATTRIBUTES.TRIGGER};class Ft{selector;$element;$trigger;$content;options;timeout;hideTimeout;isActive=!1;constructor(e,t={}){this.selector=e||p.UB.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...zt,...t},this.timeout=null,this.hideTimeout=null,this.$trigger=null,this.$content=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._setPosition(),this._bindEvents())}_initializeElements(){if(!this.$element)return;const e=this.$element.parentElement;if(!e)return;this.$trigger=e.querySelector(p.UB.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(p.UB.SELECTORS.CONTENT);const t=this.$element.getAttribute(this.options.positionAttr);t&&(this.options.position=t);const n=this.$element.getAttribute(this.options.triggerAttr);n&&(this.options.trigger=n)}_setPosition(){if(!this.$content||!this.$element)return;switch(this.$element.classList.remove(p.UB.CLASSES.TOP,p.UB.CLASSES.BOTTOM,p.UB.CLASSES.LEFT,p.UB.CLASSES.RIGHT,p.UB.CLASSES.TOP_LEFT,p.UB.CLASSES.TOP_RIGHT,p.UB.CLASSES.BOTTOM_LEFT,p.UB.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(p.UB.CLASSES.TOP);break;case"bottom":this.$element.classList.add(p.UB.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(p.UB.CLASSES.LEFT);break;case"right":this.$element.classList.add(p.UB.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(p.UB.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(p.UB.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(p.UB.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(p.UB.CLASSES.BOTTOM_RIGHT)}const e=this.options.offset;switch(this.options.position){case"top":case"top-left":case"top-right":default:this.$element.style.bottom=e+"px";break;case"bottom":case"bottom-left":case"bottom-right":this.$element.style.top=e+"px";break;case"left":this.$element.style.right=e+"px";break;case"right":this.$element.style.left=e+"px"}}_bindEvents(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.addEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.addEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.addEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("blur",this._handleTriggerLeave.bind(this)))}_handleTriggerEnter(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.timeout||(this.timeout=window.setTimeout((()=>{this.show(),this.timeout=null}),this.options.delay))}_handleTriggerLeave(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout=window.setTimeout((()=>{this.hide(),this.hideTimeout=null}),this.options.delay)}_handleTriggerClick(){this.$element&&this.$element.classList.contains(this.options.activeClass)?this.hide():this.show()}isInitialized(){return!!this.$element&&!!this.$trigger}isVisible(){return this.isActive}getElement(){return this.$element}getTriggerElement(){return this.$trigger}getPosition(){return this.options.position}setPosition(e){this.options.position!==e&&(this.options.position=e,this._setPosition())}show(){if(!this.$element)return;const e=new CustomEvent("tooltip:show",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.add(this.options.activeClass),this.isActive=!0)}hide(){if(!this.$element)return;const e=new CustomEvent("tooltip:hide",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.remove(this.options.activeClass),this.isActive=!1)}destroy(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.removeEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.removeEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.removeEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("blur",this._handleTriggerLeave.bind(this)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.$element&&this.$element.classList.remove(this.options.activeClass))}static initializeAll(e=p.UB.SELECTORS.TOOLTIP,t={}){const n=document.querySelectorAll(e);return Array.from(n).map((e=>new Ft(e,t)))}}const Ut=({content:e,children:t,position:n=p.UB.DEFAULTS.POSITION,trigger:a=p.UB.DEFAULTS.TRIGGER,className:r="",delay:s=p.UB.DEFAULTS.DELAY,offset:i=p.UB.DEFAULTS.OFFSET})=>{const o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>(o.current&&(l.current=new Ft(o.current,{position:n,trigger:a,delay:s,offset:i})),()=>{l.current&&l.current.destroy()})),[n,a,s,i]),(0,g.jsxs)("div",{className:"u-position-relative u-d-inline-block",children:[(0,g.jsx)("div",{className:`${p.UB.SELECTORS.TRIGGER.substring(1)}${r?" "+r:""}`,children:t}),(0,g.jsx)("div",{className:"c-tooltip "+p.UB.SELECTORS.TOOLTIP.substring(1),ref:o,"data-tooltip-position":n,"data-tooltip-trigger":a,children:(0,g.jsxs)("div",{className:"c-tooltip__content "+p.UB.SELECTORS.CONTENT.substring(1),children:[(0,g.jsx)("span",{className:p.UB.SELECTORS.ARROW.substring(1)}),e]})})]})};Ut.displayName="Tooltip";var Gt=Ut;const Vt=({disabled:e=!1,maxSizeInMB:t=5,acceptedFileTypes:a=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:r=!1,title:s="Drag and Drop files here",supportedFilesText:i="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:o="Choose File",helperText:l=`Maximum size: ${t}MB`,icon:c=(0,g.jsx)("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:d,onFileUpload:m,onFileUploadComplete:h,onFileUploadError:_,className:S=""})=>{const E=(0,u.useRef)(null),f=(0,u.useRef)(null),v=(0,u.useRef)(null),[b,C]=(0,u.useState)("idle"),[N,L]=(0,u.useState)(!1),[x,T]=(0,u.useState)(null),[A,I]=(0,u.useState)(0),[O,y]=(0,u.useState)(null),[R,w]=(0,u.useState)(null),[k,j]=(0,u.useState)(null),D=(0,u.useRef)(0);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&E.current)return n.e(308).then(n.bind(n,3308)).then((({default:n})=>{E.current&&(v.current=new n(E.current,{disabled:e,maxSizeInMB:t,acceptedFileTypes:a,multiple:r,onFileSelect:d,onFileUpload:(e,t)=>{I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)},onFileUploadComplete:e=>{C("success"),j("Upload successful"),h&&h(e)},onFileUploadError:(e,t)=>{C("error"),w(t),_&&_(e,t)}}))})),()=>{v.current&&v.current.destroy()}}),[e,t,a,r,d,m,h,_]);const M=e=>{if(!e.length)return;const t=(r?e:[e[0]]).filter((e=>P(e)));t.length&&d&&d(t),t.length&&(T(t[0]||null),t[0]&&B(t[0]))},P=e=>e.size>1024*t*1024?(C("error"),w(`File too large. Maximum size is ${t}MB.`),!1):!(a?.length&&!a.some((t=>{if(t.endsWith("/*")){const n=t.split("/")[0];return e.type.startsWith(n+"/")}return e.type===t})))||(C("error"),w("File type not supported."),!1),B=e=>{C("loading"),I(0);let t=0;const n=setInterval((()=>{t+=5,100>t?(I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)):(clearInterval(n),C("success"),j("Upload successful"),h&&h(e))}),500)},$=["c-upload",e?p.oH.CLASSES.DISABLED:"","loading"===b?p.oH.CLASSES.LOADING:"","success"===b?p.oH.CLASSES.SUCCESS:"","error"===b?p.oH.CLASSES.ERROR:"",N?p.oH.CLASSES.DRAGGING:"",S].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:$,ref:E,style:A>0?{[p.oH.ATTRIBUTES.PERCENTAGE]:A}:{},onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current++,1===D.current&&L(!0))},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current--,0===D.current&&L(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),e)return;if(D.current=0,L(!1),!t.dataTransfer.files?.length)return;const n=Array.from(t.dataTransfer.files);M(n)},children:[(0,g.jsxs)("div",{className:"c-upload__inner",children:[(0,g.jsx)("div",{className:"c-upload__icon",children:c}),(0,g.jsx)("h3",{className:"c-upload__title",children:s}),(0,g.jsx)("p",{className:"c-upload__text",children:i}),(0,g.jsx)("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:e,onClick:()=>{f.current&&!e&&f.current.click()},children:o}),(0,g.jsx)("p",{className:"c-upload__helper-text",children:l}),(0,g.jsx)("input",{ref:f,type:"file",accept:a.join(","),multiple:r,style:{display:"none"},onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);M(t)}})]}),("loading"===b||"success"===b||"error"===b)&&x&&(0,g.jsxs)("div",{className:"c-upload__loader",children:[(0,g.jsxs)("div",{className:"c-upload__loader-status",children:[(0,g.jsx)("h5",{className:"c-upload__loader-title",children:x.name}),(0,g.jsxs)("div",{className:"c-upload__loader-progress",children:["loading"===b&&100>A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-upload__loader-par",children:[A,"%"]}),O&&(0,g.jsx)("div",{className:"c-upload__loader-time",children:O})]}),"success"===b&&k,"error"===b&&R]})]}),(0,g.jsxs)("div",{className:"c-upload__loader-control",children:["loading"===b&&100>A&&(0,g.jsx)("div",{className:"c-upload__loader-bar",children:(0,g.jsxs)("svg",{children:[(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"}),(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"})]})}),(0,g.jsx)("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{C("idle"),T(null),I(0),y(null),w(null),j(null),f.current&&(f.current.value="")},children:(0,g.jsx)("i","success"===b?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};Vt.displayName="Upload";var Yt=Vt;const Ht=r,Xt=a,Wt=i,qt=o,Kt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));Kt.displayName="Grid";const Zt=(0,u.forwardRef)((({children:e,className:t="",xs:n,sm:a,md:r,lg:s,xl:i,xxl:o,offsetXs:l,offsetSm:c,offsetMd:d,offsetLg:u,offsetXl:m,offsetXxl:p,...h},_)=>{const S=n||a||r||s||i||o?["o-grid__col"]:["o-grid__col","o-grid__col--auto"];return n&&S.push("auto"===n?"o-grid__col--auto":"o-grid__col--"+n),a&&S.push("auto"===a?"o-grid__col--sm-auto":"o-grid__col--sm-"+a),r&&S.push("auto"===r?"o-grid__col--md-auto":"o-grid__col--md-"+r),s&&S.push("auto"===s?"o-grid__col--lg-auto":"o-grid__col--lg-"+s),i&&S.push("auto"===i?"o-grid__col--xl-auto":"o-grid__col--xl-"+i),o&&S.push("auto"===o?"o-grid__col--xxl-auto":"o-grid__col--xxl-"+o),l&&S.push("o-grid__offset--"+l),c&&S.push("o-grid__offset--sm-"+c),d&&S.push("o-grid__offset--md-"+d),u&&S.push("o-grid__offset--lg-"+u),m&&S.push("o-grid__offset--xl-"+m),p&&S.push("o-grid__offset--xxl-"+p),t&&S.push(t),(0,g.jsx)("div",{ref:_,className:S.join(" "),...h,children:e})}));Zt.displayName="GridCol";const Jt=(0,u.forwardRef)((({children:e,className:t="",type:n,...a},r)=>{let s="o-container";return n&&(s="o-container-"+n),(0,g.jsx)("div",{ref:r,className:`${s} ${t}`.trim(),...a,children:e})}));Jt.displayName="Container";const Qt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:n,alignItems:a,noGutters:r,...s},i)=>{const o=["o-grid"];return n&&o.push("u-justify-content-"+n),a&&o.push("u-align-items-"+a),r&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:i,className:o.join(" "),...s,children:e})}));Qt.displayName="Row";const en=(0,u.forwardRef)((({children:e,className:t="",xs:n=1,sm:a,md:r,lg:s,xl:i,xxl:o,gap:l=16,animate:c=!0,imagesLoaded:d=!0,onLayoutComplete:p,onImageLoad:h,..._},S)=>{const[E,f]=(0,u.useState)(n),[v,b]=(0,u.useState)([]),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(!1),T=(0,u.useRef)(null),A=(0,u.useRef)([]),I=(0,u.useRef)(0),O=(0,u.useRef)(0),y=(0,u.useRef)(new Map);(0,u.useEffect)((()=>{x(!!d)}),[E,d]),(0,u.useImperativeHandle)(S,(()=>T.current));const R=(0,u.useCallback)((()=>{const e=window.innerWidth;return 1400>e||void 0===o?1200>e||void 0===i?992>e||void 0===s?768>e||void 0===r?576>e||void 0===a?n:a:r:s:i:o}),[n,a,r,s,i,o]);(0,u.useEffect)((()=>{const e=()=>f(R());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[R]);const[w,k]=(0,u.useState)([]);(0,u.useEffect)((()=>{const t=[];u.Children.forEach(e,((e,n)=>{(0,u.isValidElement)(e)&&t.push({id:e.key?.toString()||"masonry-item-"+n,element:e,position:null,ref:m().createRef()})})),k(t)}),[e]);const j=(0,u.useCallback)((e=>{if(!y.current.get(e)){if(y.current.set(e,!0),I.current+=1,T.current&&d){const t=e.closest(".o-masonry-grid > div");t&&(t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))})),h?.(I.current,O.current),I.current>=O.current&&O.current>0&&(N(!0),x(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{M(),x(!1)}))})),p?.())}}),[h,p,d]),D=(0,u.useCallback)((()=>{if(!d||!T.current)return;y.current.clear(),I.current=0;const e=T.current.querySelectorAll("img");return O.current=e.length,0===e.length?(N(!0),x(!1),void p?.()):(x(!0),e.forEach((e=>{const t=e,n=e.closest(".o-masonry-grid > div");if(n&&n.classList.add("o-masonry-grid__item-loading"),e.complete)j(e);else{const n=()=>j(e);e.addEventListener("load",n),e.addEventListener("error",n),t._masonryLoadHandler=n}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[d,j,p]),M=(0,u.useCallback)((()=>{if(!T.current||0===w.length)return;const e=(T.current.offsetWidth-l*(E-1))/E;A.current=Array(E).fill(0);const t=[];w.forEach(((n,a)=>{if(n.ref.current){const r=A.current.indexOf(Math.min(...A.current)),s=r*(e+l),i=A.current[r],o=n.ref.current.offsetHeight;A.current[r]=i+o+l,t[a]={left:s,top:i,width:e,height:o}}})),b(t)}),[w,E,l]);(0,u.useEffect)((()=>{if(!T.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>M()))}));return t.observe(T.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[M]),m().useLayoutEffect((()=>d?D():(M(),N(!0),void x(!1))),[w,E,M,d,D]),m().useEffect((()=>{const e=[];return w.forEach((t=>{if(t.ref.current){const n=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))}))}));n.observe(t.ref.current),e.push(n)}})),()=>{e.forEach((e=>e.disconnect()))}}),[w,M]);const P=A.current.length>0?Math.max(...A.current):0,B=["o-masonry-grid",t,c?"o-masonry-grid--animate":"",L?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return(0,g.jsx)("div",{ref:T,className:B,style:{position:"relative",width:"100%",height:P+"px",..._.style},..._,children:w.map(((e,t)=>{const n=v[t];return(0,g.jsx)("div",n?{ref:e.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:n.left+"px",top:n.top+"px",width:n.width+"px",opacity:1},children:e.element}:{ref:e.ref,style:{opacity:0,position:"absolute"},children:e.element},e.id)}))})}));en.displayName="MasonryGrid";const tn=(0,u.forwardRef)((({children:e,className:t="",...n},a)=>{const r=["o-masonry-grid__item-inner"];return t&&r.push(t),(0,g.jsx)("div",{ref:a,className:r.join(" "),...n,children:e})}));tn.displayName="MasonryGridItem";var nn={...l,...c},an={...s,composables:Ht,utils:Xt,constants:qt,types:Wt,layouts:d}}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.m=a,s.x=function(){var e=s.O(void 0,[628],(function(){return s(2162)}));return s.O(e)},e=[],s.O=function(t,n,a,r){if(!n){var i=1/0;for(d=0;e.length>d;d++){n=e[d][0],a=e[d][1],r=e[d][2];for(var o=!0,l=0;n.length>l;l++)(!1&r||i>=r)&&Object.keys(s.O).every((function(e){return s.O[e](n[l])}))?n.splice(l--,1):(o=!1,i>r&&(i=r));if(o){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))},s.u=function(e){return 628===e?"js/628.js":"js/chunks/cjs/"+e+"."+{54:"54733c458fc7ced6d9ba",202:"6e2b9e63a406ff01b151",308:"86b2e7ea63bf439e01b4",619:"8e6863cb2985a3a109af",690:"17522d562f7ebe2fa7b4",894:"6edddf7d4bf7ccb11e25",897:"74f4c88710fe45c1b9e3"}[e]+".js"},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n={548:1},s.O.require=function(e){return n[e]},s.f.require=function(e,t){n[e]||function(e){var t=e.modules,a=e.ids,r=e.runtime;for(var i in t)s.o(t,i)&&(s.m[i]=t[i]);r&&r(s);for(var o=0;a.length>o;o++)n[a[o]]=1;s.O()}(require("../"+s.u(e)))},t=s.x,s.x=function(){return s.e(628),t()};var i=s.x();module.exports=i}();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("phosphor-react"),require("react-dom")):"function"==typeof define&&define.amd?define("Atomix",["react","phosphor-react","react-dom"],t):"object"==typeof exports?exports.Atomix=t(require("react"),require("phosphor-react"),require("react-dom")):e.Atomix=t(e.React,e.PhosphorReact,e.ReactDOM)}(this,((e,t,a)=>(()=>{"use strict";var n,s,i,r={188:(e,t,a)=>{a.d(t,{$I:()=>X,Ac:()=>T,BK:()=>W,Ci:()=>w,Co:()=>p,Cv:()=>G,DJ:()=>C,DR:()=>S,Dv:()=>h,F0:()=>s,G0:()=>U,Gd:()=>H,I6:()=>_,LM:()=>x,Nq:()=>u,PE:()=>B,PI:()=>j,Pf:()=>k,Th:()=>$,Tk:()=>o,UB:()=>g,UT:()=>v,Z7:()=>R,_I:()=>I,_v:()=>f,a0:()=>Y,b4:()=>z,bO:()=>M,e8:()=>P,fk:()=>D,ic:()=>m,kh:()=>i,lq:()=>l,lt:()=>n,n5:()=>r,nl:()=>V,oH:()=>L,of:()=>F,rl:()=>d,sr:()=>b,tI:()=>y,wn:()=>E,xU:()=>O,y2:()=>A,yq:()=>c,zN:()=>N});const n=["primary","secondary","success","info","warning","error","light","dark"],s=["sm","md","lg"],i={COMPONENT:"c-",UTILITY:"u-",LAYOUT:"l-",OBJECT:"o-"},r={BASE_CLASS:"c-btn",ICON_CLASS:"c-btn__icon",VARIANT_PREFIX:"c-btn--"},o={BASE_CLASS:"c-callout",CONTENT_CLASS:"c-callout__content",ICON_CLASS:"c-callout__icon",MESSAGE_CLASS:"c-callout__message",TITLE_CLASS:"c-callout__title",TEXT_CLASS:"c-callout__text",ACTIONS_CLASS:"c-callout__actions",CLOSE_BTN_CLASS:"c-callout__close-btn",VARIANT_PREFIX:"c-callout--",CLASSES:{ONELINE:"c-callout--oneline",TOAST:"c-callout--toast",HIDE:"is-hide"}},l={SELECTORS:{ACCORDION:".c-accordion",HEADER:".c-accordion__header",PANEL:".c-accordion__panel",BODY:".c-accordion__body"},CLASSES:{IS_OPEN:"is-open",IS_ANIMATING:"is-animating",IS_DISABLED:"is-disabled"},ATTRIBUTES:{ARIA_EXPANDED:"aria-expanded",ARIA_CONTROLS:"aria-controls",ARIA_HIDDEN:"aria-hidden",ROLE:"role"},CSS_VARS:{PANEL_HEIGHT:"--panel-height"}},c={BASE_CLASS:"c-badge",ICON_CLASS:"c-badge__icon",VARIANT_PREFIX:"c-badge--",SIZE_PREFIX:"c-badge--"},d={BASE_CLASS:"c-list",ITEM_CLASS:"c-list__item",VARIANT_PREFIX:"c-list--",SIZE_PREFIX:"c-list--",CLASSES:{ORDERED:"c-list--ordered",INLINE:"c-list--inline"}},u={BASE_CLASS:"c-list-group",ITEM_CLASS:"c-list-group__item",VARIANT_PREFIX:"c-list-group--",SIZE_PREFIX:"c-list-group--"},m={SELECTORS:{BREADCRUMB:".c-breadcrumb",ITEM:".c-breadcrumb__item",LINK:".c-breadcrumb__link"},CLASSES:{BASE:"c-breadcrumb",ITEM:"c-breadcrumb__item",LINK:"c-breadcrumb__link",ACTIVE:"is-active"},DEFAULTS:{DIVIDER:"›"}},p={SELECTORS:{COUNTDOWN:".c-countdown",TIME:".c-countdown__time",TIME_COUNT:".c-countdown__time-count",TIME_LABEL:".c-countdown__time-label",SEPARATOR:".c-countdown__separator"},CLASSES:{BASE:"c-countdown",FOCUSED:"c-countdown--focused"},DEFAULTS:{SEPARATOR:":",SHOW:["days","hours","minutes","seconds"]}},h={SELECTORS:{HERO:".c-hero",CONTAINER:".c-hero__container",GRID:".c-hero__grid",CONTENT:".c-hero__content",SUBTITLE:".c-hero__subtitle",TITLE:".c-hero__title",TEXT:".c-hero__text",ACTIONS:".c-hero__actions",IMAGE:".c-hero__image",BG:".c-hero__bg",BG_IMAGE:".c-hero__bg-image",OVERLAY:".c-hero__overlay",IMAGE_WRAPPER:".c-hero__image-wrapper"},CLASSES:{CENTER:"c-hero--center",RIGHT:"c-hero--right",LEFT:"c-hero--left",FULL_VH:"c-hero--full-vh"}},g={SELECTORS:{TOOLTIP:".js-atomix-tooltip",TRIGGER:".js-atomix-tooltip-trigger",CONTENT:".js-atomix-tooltip-content",ARROW:".c-tooltip__arrow"},CLASSES:{IS_ACTIVE:"is-active",TOP:"c-tooltip--top",BOTTOM:"c-tooltip--bottom",LEFT:"c-tooltip--left",RIGHT:"c-tooltip--right",TOP_LEFT:"c-tooltip--top-left",TOP_RIGHT:"c-tooltip--top-right",BOTTOM_LEFT:"c-tooltip--bottom-left",BOTTOM_RIGHT:"c-tooltip--bottom-right"},ATTRIBUTES:{POSITION:"data-tooltip-position",TRIGGER:"data-tooltip-trigger",CONTENT_ID:"data-tooltip-id"},DEFAULTS:{TRIGGER:"hover",POSITION:"top",OFFSET:10,DELAY:200}},_={SELECTORS:{POPOVER:".js-atomix-popover",TRIGGER:".js-atomix-popover-trigger",CONTENT:".js-atomix-popover-content",CONTENT_INNER:".c-popover__content-inner",ARROW:".c-popover__arrow"},CLASSES:{IS_OPEN:"is-open",TOP:"c-popover--top",BOTTOM:"c-popover--bottom",LEFT:"c-popover--left",RIGHT:"c-popover--right",AUTO:"c-popover--auto"},ATTRIBUTES:{POSITION:"data-popover-position",TRIGGER:"data-popover-trigger",CONTENT_ID:"data-popover-id"},DEFAULTS:{TRIGGER:"click",POSITION:"top",OFFSET:12,DELAY:0}},S={SELECTORS:{TOGGLE:".c-toggle"},CLASSES:{IS_ON:"is-on"}},E={SELECTORS:{TAB:".js-atomix-tab",NAV_ITEMS:".c-tabs__nav-item",NAV_BTN:".c-tabs__nav-btn",PANELS:".c-tabs__panel",PANEL_BODIES:".c-tabs__panel-body"},CLASSES:{ACTIVE:"is-active"},DEFAULTS:{ACTIVE_INDEX:0}},v={SELECTORS:{STEPS:".c-steps",ITEM:".c-steps__item",LINE:".c-steps__line",CONTENT:".c-steps__content",NUMBER:".c-steps__number",TEXT:".c-steps__text"},CLASSES:{ACTIVE:"is-active",VERTICAL:"c-steps--vertical",COMPLETED:"is-completed"}},b={SELECTORS:{TESTIMONIAL:".c-testimonial",QUOTE:".c-testimonial__quote",AUTHOR:".c-testimonial__author",AUTHOR_AVATAR:".c-testimonial__author-avatar",AUTHOR_INFO:".c-testimonial__info",AUTHOR_NAME:".c-testimonial__author-name",AUTHOR_ROLE:".c-testimonial__author-role"},CLASSES:{SMALL:"c-testimonial--sm",LARGE:"c-testimonial--lg"}},f={SELECTORS:{SPINNER:".c-spinner"},CLASSES:{PRIMARY:"c-spinner--primary",SECONDARY:"c-spinner--secondary",SUCCESS:"c-spinner--success",INFO:"c-spinner--info",WARNING:"c-spinner--warning",DANGER:"c-spinner--danger",LIGHT:"c-spinner--light",DARK:"c-spinner--dark",SMALL:"c-spinner--sm",LARGE:"c-spinner--lg"},VISUALLY_HIDDEN:"u-visually-hidden"},C={SELECTORS:{SECTION_INTRO:".c-sectionintro",LABEL:".c-sectionintro__label",TITLE:".c-sectionintro__title",TEXT:".c-sectionintro__text",ACTIONS:".c-sectionintro__actions"},CLASSES:{CENTER:"c-sectionintro--center",LARGE:"c-sectionintro--lg",SMALL:"c-sectionintro--sm"}},N={SELECTORS:{RIVER:".c-river",CONTAINER:".c-river__container",ROW:".c-river__row",CONTENT:".c-river__content",CONTENT_COL:".c-river__content-col",CONTENT_COL_TITLE:".c-river__content-col--title",CONTENT_COL_TEXT:".c-river__content-col--text",TITLE:".c-river__title",TEXT:".c-river__text",ACTIONS:".c-river__actions",VISUAL:".c-river__visual",IMAGE_WRAPPER:".c-river__image-wrapper",IMAGE:".c-river__image",BG:".c-river__bg",BG_IMAGE:".c-river__bg-image",OVERLAY:".c-river__overlay"},CLASSES:{CENTER:"c-river--center",BREAKOUT:"c-river--breakout",REVERSE:"c-river--reverse"},ATTRIBUTES:{CONTENT_WIDTH:"--river-content-width"}},L={SELECTORS:{UPLOAD:".c-upload",INNER:".c-upload__inner",ICON:".c-upload__icon",TITLE:".c-upload__title",TEXT:".c-upload__text",BUTTON:".c-upload__btn",HELPER_TEXT:".c-upload__helper-text",LOADER:".c-upload__loader",LOADER_STATUS:".c-upload__loader-status",LOADER_TITLE:".c-upload__loader-title",LOADER_PROGRESS:".c-upload__loader-progress",LOADER_PAR:".c-upload__loader-par",LOADER_TIME:".c-upload__loader-time",LOADER_CONTROL:".c-upload__loader-control",LOADER_BAR:".c-upload__loader-bar",LOADER_CLOSE:".c-upload__loader-close"},CLASSES:{DISABLED:"c-upload--disabled",ERROR:"c-upload--error",SUCCESS:"c-upload--success",LOADING:"c-upload--loading",DRAGGING:"c-upload--dragging"},ATTRIBUTES:{PERCENTAGE:"--upload-loader-percentage"}},x={SELECTORS:{NAVBAR:".c-navbar",CONTAINER:".c-navbar__container",BRAND:".c-navbar__brand",COLLAPSE:".c-navbar__collapse",TOGGLER:".c-navbar__toggler",TOGGLER_ICON:".c-navbar__toggler-icon"},CLASSES:{BASE:"c-navbar",CONTAINER:"c-navbar__container",BRAND:"c-navbar__brand",COLLAPSE:"c-navbar__collapse",TOGGLER:"c-navbar__toggler",TOGGLER_ICON:"c-navbar__toggler-icon",FIXED:"c-navbar--fixed",FIXED_BOTTOM:"c-navbar--fixed-bottom",COLLAPSIBLE:"c-navbar--collapsible",EXPANDED:"is-expanded",BACKDROP:"c-navbar__backdrop"},ATTRIBUTES:{NAVBAR:"data-navbar",COLLAPSIBLE:"data-collapsible",EXPANDED:"data-expanded",POSITION:"data-position",BACKDROP:"data-backdrop",AUTO_CLOSE:"data-auto-close",KEYBOARD:"data-keyboard"},DEFAULTS:{POSITION:"static",COLLAPSIBLE:!0,EXPANDED:!1,BACKDROP:!1,AUTO_CLOSE:!0,KEYBOARD:!0,ARIA_LABEL:"Main navigation"}},T={SELECTORS:{NAV:".c-nav",ITEM:".c-nav__item",LINK:".c-nav__link",DROPDOWN:".c-nav__item--dropdown",DROPDOWN_MENU:".c-nav__dropdown-menu",MEGA_MENU:".c-nav__mega-menu",ICON:".c-nav__icon"},CLASSES:{END:"c-nav--end",CENTER:"c-nav--center",ACTIVE:"is-active",DISABLED:"is-disabled"}},A={SELECTORS:{SIDE_MENU:".c-side-menu",WRAPPER:".c-side-menu__wrapper",INNER:".c-side-menu__inner",TITLE:".c-side-menu__title",TOGGLER:".c-side-menu__toggler",TOGGLER_ICON:".c-side-menu__toggler-icon",LIST:".c-side-menu__list",ITEM:".c-side-menu__item",LINK:".c-side-menu__link",LINK_ICON:".c-side-menu__link-icon",LINK_TEXT:".c-side-menu__link-text"},CLASSES:{BASE:"c-side-menu",WRAPPER:"c-side-menu__wrapper",INNER:"c-side-menu__inner",TITLE:"c-side-menu__title",TOGGLER:"c-side-menu__toggler",TOGGLER_ICON:"c-side-menu__toggler-icon",LIST:"c-side-menu__list",ITEM:"c-side-menu__item",LINK:"c-side-menu__link",LINK_ICON:"c-side-menu__link-icon",LINK_TEXT:"c-side-menu__link-text",IS_OPEN:"is-open",ACTIVE:"is-active",DISABLED:"is-disabled"},ATTRIBUTES:{SIDE_MENU:"data-side-menu",COLLAPSIBLE:"data-collapsible",OPEN:"data-open",TITLE:"data-title"},DEFAULTS:{COLLAPSIBLE:!0,OPEN:!1,TOGGLE_ICON:"▶"}},I={SELECTORS:{RATING:".c-rating",STAR:".c-rating__star",STAR_FULL:".c-rating__star-full",STAR_HALF:".c-rating__star-half"},CLASSES:{FULL:"c-rating__star--full",HALF:"c-rating__star--half",SMALL:"c-rating--sm",LARGE:"c-rating--lg"},ATTRIBUTES:{READONLY:"data-readonly",VALUE:"data-value"}},O={SELECTORS:{PANEL:".c-edge-panel",BACKDROP:".c-edge-panel__backdrop",CONTAINER:".c-edge-panel__container",HEADER:".c-edge-panel__header",BODY:".c-edge-panel__body",CLOSE:".c-edge-panel__close"},CLASSES:{BASE:"c-edge-panel",START:"c-edge-panel--start",END:"c-edge-panel--end",TOP:"c-edge-panel--top",BOTTOM:"c-edge-panel--bottom",IS_OPEN:"is-open"},TRANSFORM_VALUES:{start:"translateX(-100%)",end:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},ANIMATION_DURATION:300},y={base:"c-data-table",container:"c-data-table-container",tableWrapper:"c-data-table-wrapper",header:"c-data-table__header",headerCell:"c-data-table__header-cell",headerContent:"c-data-table__header-content",sortable:"c-data-table__header-cell--sortable",sortIcon:"c-data-table__sort-icon",row:"c-data-table__row",cell:"c-data-table__cell",loadingCell:"c-data-table__loading-cell",loadingIndicator:"c-data-table__loading-indicator",emptyCell:"c-data-table__empty-cell",toolbar:"c-data-table-toolbar",search:"c-data-table-search",searchInput:"c-data-table-search__input",pagination:"c-data-table__pagination-container",striped:"c-data-table--striped",bordered:"c-data-table--bordered",dense:"c-data-table--dense",loading:"c-data-table--loading",open:"is-open"},R={TABLE:".c-data-table",HEADER:".c-data-table__header",HEADER_CELL:".c-data-table__header-cell",ROW:".c-data-table__row",CELL:".c-data-table__cell",PAGINATION:".c-data-table__pagination",PAGINATION_BUTTON:".c-data-table__pagination-button",SEARCH_INPUT:".c-data-table__search-input"},w={currentPage:1,totalPages:1,siblingCount:1,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"md"},k={SELECTORS:{TODO:".c-todo",TITLE:".c-todo__title",LIST:".c-todo__list",ITEM:".c-todo__item",ITEM_CONTENT:".c-todo__item-content",ITEM_TEXT:".c-todo__item-text",ITEM_ACTIONS:".c-todo__item-actions",CHECKBOX:".c-todo__checkbox",DELETE_BUTTON:".c-todo__delete-btn",FORM:".c-todo__form",INPUT:".c-todo__input",ADD_BUTTON:".c-todo__add-btn"},CLASSES:{BASE:"c-todo",ITEM:"c-todo__item",COMPLETED:"c-todo__item--completed",SMALL:"c-todo--sm",LARGE:"c-todo--lg"}},j={SELECTORS:{FORM:".c-form",GROUP:".c-form-group",LABEL:".c-form-group__label",HELPER:".c-form-group__helper",FIELD:".c-form-group__field",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form",DISABLED:"c-form--disabled"}},D={SELECTORS:{GROUP:".c-form-group",LABEL:".c-form-group__label",FIELD:".c-form-group__field",HELPER:".c-form-group__helper",REQUIRED:".c-form-group__required"},CLASSES:{BASE:"c-form-group",SMALL:"c-form-group--sm",LARGE:"c-form-group--lg",INVALID:"c-form-group--invalid",VALID:"c-form-group--valid",DISABLED:"c-form-group--disabled"}},M={SELECTORS:{INPUT:".c-input"},CLASSES:{BASE:"c-input",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},P={SELECTORS:{RADIO:".c-radio",INPUT:".c-radio__input",LABEL:".c-radio__label"},CLASSES:{BASE:"c-radio",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled"}},B={SELECTORS:{CARD:".c-card",HEADER:".c-card__header",BODY:".c-card__body",IMAGE:".c-card__image",TITLE:".c-card__title",TEXT:".c-card__text",ACTIONS:".c-card__actions",ICON:".c-card__icon",FOOTER:".c-card__footer"},CLASSES:{BASE:"c-card",ROW:"c-card--row",FLAT:"c-card--flat",ACTIVE:"is-active",FLIPPED:"is-flipped",FOCUSED:"is-focused",CLICKABLE:"is-clickable"},DEFAULTS:{HOVER:!0}},$={SELECTORS:{SELECT:".c-select",SELECTED:".c-select__selected",SELECT_BODY:".c-select__body",SELECT_PANEL:".c-select__panel",SELECT_ITEMS:".c-select__items",SELECT_ITEM:".c-select__item",ITEM_LABEL:".c-select__item-label",ITEM_INPUT:".c-select__item-input",OPTION:"option"},CLASSES:{BASE:"c-select",SELECTED:"c-select__selected",SELECT_BODY:"c-select__body",SELECT_PANEL:"c-select__panel",SELECT_ITEMS:"c-select__items",SELECT_ITEM:"c-select__item",TOGGLE_ICON:"c-select__toggle-icon",ICON_CARET:"icon-atomix-caret-down",SMALL:"c-select--sm",LARGE:"c-select--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled",IS_OPEN:"is-open"}},z={SELECTORS:{TEXTAREA:".c-textarea"},CLASSES:{BASE:"c-input c-input--textarea",SMALL:"c-input--sm",LARGE:"c-input--lg",INVALID:"is-invalid",VALID:"is-valid",DISABLED:"is-disabled"}},F={SELECTORS:{AVATAR:".c-avatar",IMAGE:".c-avatar__image",INITIALS:".c-avatar__initials",ICON:".c-avatar__icon"},CLASSES:{BASE:"c-avatar",XS:"c-avatar--xs",SM:"c-avatar--sm",MD:"c-avatar--md",LG:"c-avatar--lg",XL:"c-avatar--xl",CIRCLE:"c-avatar--circle"}},U={SELECTORS:{GROUP:".c-avatar-group",MORE:".c-avatar-group__more"},CLASSES:{BASE:"c-avatar-group",STACKED:"c-avatar-group--stacked",MORE:"c-avatar-group__more"}},G={SELECTORS:{MODAL:".c-modal",OPEN_BUTTON:".js-modal-open",CLOSE_BUTTONS:".js-modal-close",DIALOG:".c-modal__dialog",BACKDROP:".c-modal__backdrop"},CLASSES:{IS_OPEN:"is-open"},DEFAULT_OPTIONS:{openELm:".js-modal-open",closeELms:".js-modal-close",modalDialogELm:".c-modal__dialog",backdropELm:".c-modal__backdrop",backdrop:!0,keyboard:!0}},V={SELECTORS:{MESSAGES:".c-messages",BODY:".c-messages__body",CONTENT:".c-messages__content",AVATAR:".c-messages__avatar",ITEMS:".c-messages__items",TEXT:".c-messages__text",FILE:".c-messages__file",IMAGE:".c-messages__image",FORM:".c-messages__form",INPUT:".c-messages__input"},CLASSES:{BASE:"c-messages",BODY:"c-messages__body",CONTENT:"c-messages__content",CONTENT_SELF:"c-messages__content--self",AVATAR:"c-messages__avatar",ITEMS:"c-messages__items",NAME:"c-messages__name",TEXT:"c-messages__text",TIME:"c-messages__time",FILE:"c-messages__file",FILE_ICON:"c-messages__file-icon",FILE_DETAILS:"c-messages__file-details",FILE_NAME:"c-messages__file-name",FILE_SIZE:"c-messages__file-size",IMAGE:"c-messages__image",FORM:"c-messages__form",INPUT_GROUP:"c-messages__input-group",INPUT:"c-messages__input",OPTIONS:"c-messages__options",OPTION:"c-messages__option c-btn",OPTION_ICON:"c-messages__option-icon",SUBMIT:"c-messages__submit"}},Y={SELECTORS:{DROPDOWN:".c-dropdown",TOGGLE:".c-dropdown__toggle",MENU:".c-dropdown__menu",MENU_WRAPPER:".c-dropdown__menu-wrapper",MENU_INNER:".c-dropdown__menu-inner",MENU_ITEM:".c-dropdown__menu-item",DIVIDER:".c-dropdown__divider",HEADER:".c-dropdown__header"},CLASSES:{IS_OPEN:"is-open",IS_ACTIVE:"is-active",IS_DISABLED:"is-disabled"},DEFAULTS:{PLACEMENT:"bottom-start",TRIGGER:"click",OFFSET:4,MIN_WIDTH:180,ANIMATION_DURATION:"0.25s",ANIMATION_TIMING:"cubic-bezier(0.16, 1, 0.3, 1)"}},H={SELECTORS:{PROGRESS:".c-progress",BAR:".c-progress__bar"},CLASSES:{BASE:"c-progress",BAR:"c-progress__bar",SM:"c-progress--sm",MD:"c-progress--md",LG:"c-progress--lg"},ATTRIBUTES:{ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_LABEL:"aria-label"},CSS_VARS:{PERCENTAGE:"--atomix-progress-percentage"},DEFAULTS:{ARIA_LABEL:"Progress bar"}},X={SELECTORS:{DATEPICKER:".c-datepicker",INPUT:".c-datepicker__input",CALENDAR:".c-datepicker__calendar",DAY:".c-datepicker__day",MONTH:".c-datepicker__month",YEAR:".c-datepicker__year",HEADER:".c-datepicker__header",BODY:".c-datepicker__body",FOOTER:".c-datepicker__footer",WEEKDAYS:".c-datepicker__weekdays",TODAY_BUTTON:".c-datepicker__today-button",CLEAR_BUTTON:".c-datepicker__clear-button",CLOSE_BUTTON:".c-datepicker__close-button",NAV_BUTTON:".c-datepicker__nav-button",VIEW_SWITCH:".c-datepicker__view-switch"},CLASSES:{IS_OPEN:"is-open",IS_DISABLED:"is-disabled",IS_SELECTED:"is-selected",IS_TODAY:"is-today",INLINE:"c-datepicker--inline"},ATTRIBUTES:{FORMAT:"data-format",MIN_DATE:"data-min-date",MAX_DATE:"data-max-date",INLINE:"data-inline",PLACEMENT:"data-placement",CLEARABLE:"data-clearable",SHOW_TODAY:"data-show-today-button",SHOW_WEEK_NUMBERS:"data-show-week-numbers"},DEFAULTS:{FORMAT:"MM/dd/yyyy",PLACEMENT:"bottom-start",CLEARABLE:!0,SHOW_TODAY_BUTTON:!0,SHOW_WEEK_NUMBERS:!1,INLINE:!1}},W={SELECTOR:".c-photo-viewer",CLASS:"c-photo-viewer",DEFAULTS:{startIndex:0,zoomLevel:1,fullscreen:!1}}},3505:e=>{e.exports=t},5442:t=>{t.exports=e},6003:e=>{e.exports=a},7943:(e,t,a)=>{a.r(t),a.d(t,{Accordion:()=>S,Avatar:()=>N,AvatarGroup:()=>x,Badge:()=>I,Breadcrumb:()=>y,Button:()=>k,Callout:()=>P,Card:()=>$,Checkbox:()=>G,ColorModeToggle:()=>Y,Countdown:()=>X,DataTable:()=>ie,DatePicker:()=>de,Dropdown:()=>pe,EdgePanel:()=>_e,Form:()=>ve,Hero:()=>Ce,Icon:()=>f,Input:()=>xe,List:()=>Ae,Messages:()=>Oe,Modal:()=>Re,Navbar:()=>Pe,Pagination:()=>ne,PhotoViewer:()=>Ve,Popover:()=>We,ProductReview:()=>et,Progress:()=>tt,Radio:()=>st,Rating:()=>Je,River:()=>ot,SectionIntro:()=>ct,Select:()=>At,Spinner:()=>Z,Steps:()=>Ot,Tab:()=>Rt,Testimonial:()=>kt,Textarea:()=>Dt,Todo:()=>Pt,Toggle:()=>$t,Tooltip:()=>Gt,Upload:()=>Yt,composables:()=>Ht,constants:()=>qt,default:()=>na,types:()=>Wt,utils:()=>Xt});var n={};a.r(n),a.d(n,{addClass:()=>ut,createIconElement:()=>_t,createPhosphorIcon:()=>gt,generateUUID:()=>Et,getAvailableIcons:()=>St,hasClass:()=>dt,removeClass:()=>mt,toggleClass:()=>pt});var s={};a.r(s),a.d(s,{DOTS:()=>J,useAccordion:()=>h,useBadge:()=>T,useBreadcrumb:()=>Lt,useButton:()=>R,useCard:()=>xt,useCheckbox:()=>F,useDataTable:()=>W,useEdgePanel:()=>he,useForm:()=>Se,useFormGroup:()=>bt,useHero:()=>be,useInput:()=>Ne,useModal:()=>Nt,useNav:()=>ke,useNavDropdown:()=>De,useNavItem:()=>je,useNavbar:()=>we,usePagination:()=>ee,useRadio:()=>at,useRiver:()=>it,useSelect:()=>ft,useSpinner:()=>q,useTextarea:()=>Ct,useTodo:()=>vt});var i={};a.r(i),a.d(i,{Accordion:()=>S,Avatar:()=>N,AvatarGroup:()=>x,Badge:()=>I,Breadcrumb:()=>y,Button:()=>k,Callout:()=>P,Card:()=>$,Checkbox:()=>G,ColorModeToggle:()=>Y,Countdown:()=>X,DataTable:()=>ie,DatePicker:()=>de,Dropdown:()=>pe,EdgePanel:()=>_e,Form:()=>ve,Hero:()=>Ce,Icon:()=>f,Input:()=>xe,List:()=>Ae,Messages:()=>Oe,Modal:()=>Re,Navbar:()=>Pe,Pagination:()=>ne,PhotoViewer:()=>Ve,Popover:()=>We,ProductReview:()=>et,Progress:()=>tt,Radio:()=>st,Rating:()=>Je,River:()=>ot,SectionIntro:()=>ct,Select:()=>At,Spinner:()=>Z,Steps:()=>Ot,Tab:()=>Rt,Testimonial:()=>kt,Textarea:()=>Dt,Todo:()=>Pt,Toggle:()=>$t,Tooltip:()=>Gt,Upload:()=>Yt});var r={};a.r(r);var o={};a.r(o),a.d(o,{ACCORDION:()=>p.lq,AVATAR:()=>p.of,AVATAR_GROUP:()=>p.G0,BADGE:()=>p.yq,BREADCRUMB:()=>p.ic,BUTTON:()=>p.n5,CALLOUT:()=>p.Tk,CARD:()=>p.PE,CLASS_PREFIX:()=>p.kh,COUNTDOWN:()=>p.Co,DATA_TABLE_CLASSES:()=>p.tI,DATA_TABLE_SELECTORS:()=>p.Z7,DATEPICKER:()=>p.$I,DROPDOWN:()=>p.a0,EDGE_PANEL:()=>p.xU,FORM:()=>p.PI,FORM_GROUP:()=>p.fk,HERO:()=>p.Dv,INPUT:()=>p.bO,LIST:()=>p.rl,LIST_GROUP:()=>p.Nq,MESSAGES:()=>p.nl,MODAL:()=>p.Cv,NAV:()=>p.Ac,NAVBAR:()=>p.LM,PAGINATION_DEFAULTS:()=>p.Ci,PHOTOVIEWER:()=>p.BK,POPOVER:()=>p.I6,PROGRESS:()=>p.Gd,RADIO:()=>p.e8,RATING:()=>p._I,RIVER:()=>p.zN,SECTION_INTRO:()=>p.DJ,SELECT:()=>p.Th,SIDE_MENU:()=>p.y2,SIZES:()=>p.F0,SPINNER:()=>p._v,STEPS:()=>p.UT,TAB:()=>p.wn,TESTIMONIAL:()=>p.sr,TEXTAREA:()=>p.b4,THEME_COLORS:()=>p.lt,TODO:()=>p.Pf,TOGGLE:()=>p.DR,TOOLTIP:()=>p.UB,UPLOAD:()=>p.oH});var l={};a.r(l),a.d(l,{Container:()=>Jt,Grid:()=>Kt,GridCol:()=>Zt,Row:()=>Qt});var c={};a.r(c),a.d(c,{MasonryGrid:()=>ea,MasonryGridItem:()=>ta});var d={};a.r(d),a.d(d,{default:()=>aa});var u=a(5442),m=a.n(u),p=a(188);function h(e){const t={defaultOpen:!1,disabled:!1,iconPosition:"right",...e},a="boolean"==typeof t.isOpen,[n,s]=(0,u.useState)(t.defaultOpen||!1),i=a?t.isOpen:n,[r,o]=(0,u.useState)(i?"auto":"0px"),l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=()=>{if(c.current&&l.current){const e=i?c.current.clientHeight+"px":"0px";l.current.style.setProperty(p.lq.CSS_VARS.PANEL_HEIGHT,e),o(e)}};return(0,u.useEffect)((()=>{d()}),[i]),(0,u.useEffect)((()=>{const e=()=>{i&&d()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i]),{state:{isOpen:i,panelHeight:r},toggle:()=>{t.disabled||(a?t.onOpenChange&&t.onOpenChange(!i):s((e=>!e)))},updatePanelHeight:d,panelRef:l,contentRef:c,generateClassNames:(e="")=>`c-accordion ${i?p.lq.CLASSES.IS_OPEN:""} ${t.disabled?p.lq.CLASSES.IS_DISABLED:""} ${e}`.trim(),generateHeaderClassNames:()=>("c-accordion__header "+("left"===t.iconPosition?"c-accordion__header--icon-left":"")).trim()}}var g=a(4848);const _=({title:e,children:t,defaultOpen:a=!1,isOpen:n,onOpenChange:s,disabled:i=!1,iconPosition:r="right",icon:o,className:l=""})=>{const c=(0,u.useId)(),d="accordion-header-"+c,m="accordion-panel-"+c,{state:_,toggle:S,panelRef:E,contentRef:v,generateClassNames:b,generateHeaderClassNames:f}=h({defaultOpen:a,disabled:i,iconPosition:r,isOpen:n,onOpenChange:s}),C=(0,g.jsx)("i",{className:"c-accordion__icon",children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,g.jsx)("polyline",{points:"6 9 12 15 18 9"})})});return(0,g.jsxs)("div",{className:b(l),children:[(0,g.jsxs)("button",{id:d,className:f(),onClick:S,"aria-expanded":_.isOpen,"aria-controls":m,disabled:i,type:"button",children:[(0,g.jsx)("span",{className:"c-accordion__title",children:e}),o||C]}),(0,g.jsx)("div",{id:m,className:p.lq.SELECTORS.PANEL.replace(".",""),ref:E,role:"region","aria-labelledby":d,children:(0,g.jsx)("div",{className:p.lq.SELECTORS.BODY.replace(".",""),ref:v,children:t})})]})};_.displayName="Accordion";const S=_;var E=a(3505);const v={xs:16,sm:20,md:24,lg:32,xl:40},b=({name:e,size:t="md",weight:a="regular",color:n,className:s="",alt:i})=>{const r=E[e];return r?(0,g.jsx)("span",{className:`c-icon c-icon--${t} ${s}`,"aria-hidden":!i,title:i,children:(0,g.jsx)(r,{size:"string"==typeof t?v[t]||24:t,weight:a,color:n,"aria-label":i})}):null};b.displayName="Icon";const f=b,C=({src:e,alt:t="Avatar",initials:a,icon:n,size:s="md",circle:i=!1,className:r="",disabled:o=!1,onClick:l})=>{const[c,d]=(0,u.useState)(!1),m=[p.of.CLASSES.BASE,"md"!==s&&"c-avatar--"+s,i&&p.of.CLASSES.CIRCLE,o&&"is-disabled",r].filter(Boolean).join(" ");return(0,g.jsx)("div",{className:m,onClick:l?e=>{!o&&l&&l(e)}:void 0,role:l?"button":void 0,tabIndex:l&&!o?0:void 0,"aria-disabled":o||void 0,children:e&&!c?(0,g.jsx)("img",{src:e,alt:t,className:"c-avatar__image",onError:()=>{d(!0)}}):(0,g.jsx)("span",a?{className:"c-avatar__initials",children:a}:n?{className:"c-avatar__icon",children:n}:{className:"c-avatar__icon",children:(0,g.jsx)(b,{name:"User",size:"xs"===s?"xs":"sm"===s?"sm":"md"})})})};C.displayName="Avatar";const N=C,L=({children:e,max:t,stacked:a=!1,className:n="",moreText:s})=>{const i=[p.G0.CLASSES.BASE,a&&p.G0.CLASSES.STACKED,n].filter(Boolean).join(" "),r=u.Children.toArray(e).filter((e=>(0,u.isValidElement)(e)&&e.type===C)),o=void 0!==t&&r.length>t,l=o?r.slice(0,t):r,c=r.length-(t||0),d=(0,u.isValidElement)(r[0])?r[0].props:null,m=d?.size||"md",h=[p.of.CLASSES.BASE,p.G0.CLASSES.MORE,"md"!==m&&"c-avatar--"+m,!!d?.circle&&"c-avatar--circle"].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:i,children:[l.map(((e,t)=>(0,u.isValidElement)(e)?(0,u.cloneElement)(e,{key:t,...e.props}):null)),o&&(0,g.jsx)("div",{className:h,children:s||"+"+c})]})};L.displayName="AvatarGroup";const x=L;function T(e){const t={variant:"primary",size:"md",disabled:!1,...e};return{defaultProps:t,generateBadgeClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:s=t.disabled,className:i=""}=e;return`${p.yq.BASE_CLASS} ${a?`${p.yq.VARIANT_PREFIX}${a}`:""} ${"md"===n?"":`${p.yq.SIZE_PREFIX}${n}`} ${s?"c-badge--disabled":""} ${i}`.trim()}}}const A=({label:e,variant:t="primary",size:a="md",disabled:n=!1,icon:s,className:i=""})=>{const{generateBadgeClass:r}=T({variant:t,size:a,disabled:n}),o=r({variant:t,size:a,disabled:n,className:i});return(0,g.jsxs)("span",{className:o,"aria-disabled":n,children:[s&&(0,g.jsx)("span",{className:p.yq.ICON_CLASS,children:s}),(0,g.jsx)("span",{children:e})]})};A.displayName="Badge";const I=A,O=({items:e,className:t="",ariaLabel:a="Breadcrumb",LinkComponent:n})=>{const s=[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ");return(0,g.jsx)("nav",{"aria-label":a,children:(0,g.jsx)("ol",{className:s,children:e.map(((t,a)=>{const s=[p.ic.CLASSES.ITEM,t.active||a===e.length-1?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" "),i=(0,g.jsxs)(g.Fragment,{children:[t.icon&&(0,g.jsx)("span",{className:"c-breadcrumb__icon",children:t.icon}),t.label]});return(0,g.jsx)("li",{className:s,children:t.href&&!t.active?(0,g.jsx)(n||"a",{...{href:t.href,className:p.ic.CLASSES.LINK,onClick:t.onClick},children:i}):(0,g.jsx)("span",{className:p.ic.CLASSES.LINK,children:i})},a)}))})})};O.displayName="Breadcrumb";const y=O;function R(e){const t={variant:"primary",size:"md",disabled:!1,rounded:!1,...e};return{defaultProps:t,generateButtonClass:e=>{const{variant:a=t.variant,size:n=t.size,disabled:s=t.disabled,rounded:i=t.rounded,iconOnly:r=!1,className:o=""}=e;return`c-btn c-btn--${a} ${"md"===n?"":"c-btn--"+n} ${r?"c-btn--icon":""} ${i?"c-btn--rounded":""} ${s?"c-btn--disabled":""} ${o}`.trim()},handleClick:e=>()=>{!t.disabled&&e&&e()}}}const w=(0,u.forwardRef)((({label:e,children:t,onClick:a,variant:n="primary",size:s="md",disabled:i=!1,icon:r,iconOnly:o=!1,rounded:l=!1,className:c="",as:d="button",...u},m)=>{const{generateButtonClass:p,handleClick:h}=R({variant:n,size:s,disabled:i,rounded:l}),_={ref:m,className:p({variant:n,size:s,disabled:i,rounded:l,iconOnly:o,className:c}),onClick:h(a),disabled:i,"aria-disabled":i,...u};return(0,g.jsxs)(d,{..._,children:[r&&(0,g.jsx)("span",{className:"button__icon",children:r}),!o&&(0,g.jsx)("span",{className:"button__label",children:e||t})]})}));w.displayName="Button";const k=w;var j=a(8628),D=a.n(j);const M=({title:e,children:t,icon:a,variant:n="primary",onClose:s,actions:i,oneLine:r=!1,toast:o=!1,className:l,...c})=>{const{generateCalloutClass:d,handleClose:u}=function(e){const t={variant:"primary",oneLine:!1,toast:!1,...e};return{defaultProps:t,generateCalloutClass:e=>{const{variant:a=t.variant,oneLine:n=t.oneLine,toast:s=t.toast,className:i=""}=e;return`c-callout ${a?"c-callout--"+a:""} ${n?"c-callout--oneline":""} ${s?"c-callout--toast":""} ${i}`.trim()},handleClose:e=>()=>{e&&e()}}}({variant:n,oneLine:r,toast:o,className:l});return(0,g.jsxs)("div",{className:d({variant:n,oneLine:r,toast:o,className:l}),...(()=>{var e,t;const a={role:"region"};return o?(a.role="alert",a["aria-live"]="polite"):D()(e=["warning","error"]).call(e,n)?(a.role="alert",a["aria-live"]="assertive"):D()(t=["info","success"]).call(t,n)&&(a.role="status",a["aria-live"]="polite"),a})(),...c,children:[(0,g.jsxs)("div",{className:"c-callout__content",children:[a&&(0,g.jsx)("div",{className:"c-callout__icon",children:a}),(0,g.jsxs)("div",{className:"c-callout__message",children:[e&&(0,g.jsx)("div",{className:"c-callout__title",children:e}),t&&(0,g.jsx)("div",{className:"c-callout__text",children:t})]})]}),i&&(0,g.jsx)("div",{className:"c-callout__actions",children:i}),s&&(0,g.jsx)("button",{className:"c-callout__close-btn",onClick:u(s),"aria-label":"Close",children:(0,g.jsx)(b,{name:"X",size:"md"})})]})};M.displayName="Callout";const P=M,B=(0,u.forwardRef)((({header:e,image:t,imageAlt:a="",title:n,text:s,actions:i,icon:r,footer:o,row:l=!1,flat:c=!1,active:d=!1,className:u="",children:m,onClick:h,..._},S)=>{const E=[p.PE.CLASSES.BASE,l?p.PE.CLASSES.ROW:"",c?p.PE.CLASSES.FLAT:"",d?p.PE.CLASSES.ACTIVE:"",u].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:E,onClick:h,..._,children:[(t||r||e)&&(0,g.jsxs)("div",{className:p.PE.SELECTORS.HEADER.substring(1),children:[e,t&&(0,g.jsx)("img",{src:t,alt:a,className:p.PE.SELECTORS.IMAGE.substring(1)}),r&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ICON.substring(1),children:r})]}),(0,g.jsxs)("div",{className:p.PE.SELECTORS.BODY.substring(1),children:[n&&(0,g.jsx)("h3",{className:p.PE.SELECTORS.TITLE.substring(1),children:n}),s&&(0,g.jsx)("p",{className:p.PE.SELECTORS.TEXT.substring(1),children:s}),m]}),i&&(0,g.jsx)("div",{className:p.PE.SELECTORS.ACTIONS.substring(1),children:i}),o&&(0,g.jsx)("div",{className:p.PE.SELECTORS.FOOTER.substring(1),children:o})]})}));B.displayName="Card";const $=B,z={BASE:"c-checkbox",INVALID:"is-error",VALID:"is-valid",DISABLED:"is-disabled",MIXED:"c-checkbox--mixed"};function F(e){const t={disabled:!1,invalid:!1,valid:!1,indeterminate:!1,...e},a=(0,u.useRef)(null);return(0,u.useEffect)((()=>{a.current&&(a.current.indeterminate=!!t.indeterminate)}),[t.indeterminate]),{defaultProps:t,generateCheckboxClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:s=t.valid,indeterminate:i=t.indeterminate,className:r=""}=e;let o="";return n?o=z.INVALID:s&&(o=z.VALID),`${z.BASE} ${o} ${a?z.DISABLED:""} ${i?z.MIXED:""} ${r}`.trim()},checkboxRef:a}}const U=({label:e,checked:t=!1,onChange:a,className:n="",disabled:s=!1,required:i=!1,id:r,name:o,value:l,invalid:c=!1,valid:d=!1,indeterminate:u=!1,ariaLabel:m,ariaDescribedBy:p})=>{const{generateCheckboxClass:h,checkboxRef:_}=F({indeterminate:u,disabled:s,invalid:c,valid:d}),S=h({className:n,disabled:s,invalid:c,valid:d,indeterminate:u});return(0,g.jsxs)("div",{className:S,children:[(0,g.jsx)("input",{ref:_,type:"checkbox",className:"c-checkbox__input",checked:t,onChange:a,disabled:s,required:i,id:r,name:o,value:l,"aria-label":e?void 0:m,"aria-describedby":p,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-checkbox__label",htmlFor:r,children:e})]})};U.displayName="Checkbox";const G=U,V=({className:e=""})=>{const[t,a]=(0,u.useState)("light");return(0,u.useEffect)((()=>{const e=localStorage.getItem("atomix-color-mode");"light"===e||"dark"===e?a(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&a("dark")}),[]),(0,u.useEffect)((()=>{document.documentElement.setAttribute("data-atomix-theme",t),localStorage.setItem("atomix-color-mode",t)}),[t]),(0,u.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{localStorage.getItem("atomix-color-mode")||a(e.matches?"dark":"light")};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]),(0,g.jsx)("button",{className:"c-color-mode-toggle "+e,onClick:()=>{a((e=>"light"===e?"dark":"light"))},"aria-label":`Switch to ${"light"===t?"dark":"light"} mode`,title:`Switch to ${"light"===t?"dark":"light"} mode`,children:(0,g.jsx)("svg","light"===t?{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"})}:{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:(0,g.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"})})})};V.displayName="ColorModeToggle";const Y=V,H=(0,u.forwardRef)((({target:e,show:t=["days","hours","minutes","seconds"],separator:a=":",focused:n=!1,className:s="",onComplete:i},r)=>{const o="string"==typeof e?new Date(e):e,[l,c]=(0,u.useState)((()=>new Date)),[d,p]=(0,u.useState)(!1);(0,u.useEffect)((()=>{if(d)return;const e=setInterval((()=>{c(new Date)}),1e3);return()=>clearInterval(e)}),[d]);const h=o.getTime()-l.getTime(),{days:_,hours:S,minutes:E,seconds:v}=function(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(h);(0,u.useEffect)((()=>{h>0||d||(p(!0),i&&i())}),[h,d,i]);const b=[];return D()(t).call(t,"days")&&b.push({label:"Days",value:_}),D()(t).call(t,"hours")&&b.push({label:"Hours",value:S}),D()(t).call(t,"minutes")&&b.push({label:"Minutes",value:E}),D()(t).call(t,"seconds")&&b.push({label:"Seconds",value:v}),(0,g.jsx)("div",{ref:r,className:`c-countdown${n?" c-countdown--focused":""} ${s}`.trim(),children:b.map(((e,t)=>(0,g.jsxs)(m().Fragment,{children:[(0,g.jsxs)("div",{className:"c-countdown__time",children:[(0,g.jsx)("span",{className:"c-countdown__time-count",children:(e.value+"").padStart(2,"0")}),(0,g.jsx)("span",{className:"c-countdown__time-label",children:e.label})]}),b.length-1>t&&(0,g.jsx)("span",{className:"c-countdown__separator",children:a})]},e.label)))})}));H.displayName="Countdown";const X=H;function W({data:e=[],columns:t=[],sortable:a=!1,paginated:n=!1,pageSize:s=10,onSort:i,initialSortConfig:r}){const[o,l]=(0,u.useState)(r||null),[c,d]=(0,u.useState)(1),[m,p]=(0,u.useState)(""),h=(0,u.useCallback)((e=>{if(!a)return;let t="asc";o&&o.key===e&&"asc"===o.direction&&(t="desc");const n={key:e,direction:t};l(n),i&&i(n)}),[a,o,i]),g=(0,u.useCallback)((t=>{1>t||t>Math.ceil(e.length/s)||d(t)}),[e.length,s]),_=(0,u.useCallback)((e=>{p(e),d(1)}),[]),S=(0,u.useMemo)((()=>{if(!m)return e;const a=m.toLowerCase();return e.filter((e=>t.some((t=>{var n;const s=e[t.key];return null!=s&&D()(n=(s+"").toLowerCase()).call(n,a)}))))}),[e,t,m]),E=(0,u.useMemo)((()=>o&&a?[...S].sort(((e,t)=>{const a=e[o.key],n=t[o.key];return null==a?"asc"===o.direction?-1:1:null==n?"asc"===o.direction?1:-1:"string"==typeof a&&"string"==typeof n?"asc"===o.direction?a.localeCompare(n):n.localeCompare(a):"asc"===o.direction?a>n?1:-1:a>n?-1:1})):S),[S,o,a]),v=(0,u.useMemo)((()=>{if(!n)return E;const e=(c-1)*s;return E.slice(e,e+s)}),[E,n,c,s]),b=(0,u.useMemo)((()=>n?Math.max(1,Math.ceil(E.length/s)):1),[E.length,n,s]);return(0,u.useEffect)((()=>{d(1)}),[e]),(0,u.useEffect)((()=>{c>b&&d(Math.max(1,b))}),[c,b]),{displayData:v,sortConfig:o,currentPage:c,totalPages:b,handleSort:h,handlePageChange:g,handleSearch:_}}function q(e){const t={variant:"primary",size:"md",fullscreen:!1,...e};return{defaultProps:t,generateSpinnerClass:e=>{const{variant:a=t.variant,size:n=t.size,fullscreen:s=t.fullscreen,className:i=""}=e,r="c-spinner";return`${r} ${a?`${r}--${a}`:""} ${"md"!==n?`${r}--${n}`:""} ${s?r+"--fullscreen":""} ${i}`.trim()}}}const K=({size:e="md",variant:t="primary",fullscreen:a=!1,className:n=""})=>{const{generateSpinnerClass:s}=q({size:e,variant:t,fullscreen:a}),i=s({size:e,variant:t,fullscreen:a,className:n});return(0,g.jsx)("div",{className:i,role:"status",children:(0,g.jsx)("span",{className:p._v.VISUALLY_HIDDEN,children:"Loading..."})})};K.displayName="Spinner";const Z=K,J="...",Q=(e,t)=>Array.from({length:t-e+1},((t,a)=>a+e)),ee=({currentPage:e,totalPages:t,siblingCount:a=1,onPageChange:n})=>{const s=(0,u.useMemo)((()=>{if(a+5>=t)return Q(1,t);const n=Math.max(e-a,1),s=Math.min(e+a,t),i=n>2,r=t-2>s,o=t;if(!i&&r)return[...Q(1,3+2*a),J,t];if(i&&!r){let e=Q(t-(3+2*a)+1,t);return[1,J,...e]}if(i&&r){let e=Q(n,s);return[1,J,...e,J,o]}return[]}),[t,a,e]),i=a=>{1>a||a>t||a===e||n(a)};return{paginationRange:s,currentPage:e,totalPages:t,goToPage:i,nextPage:()=>{i(e+1)},prevPage:()=>{i(e-1)},firstPage:()=>{i(1)},lastPage:()=>{i(t)},DOTS:J}},te=({type:e,onClick:t,disabled:a,label:n,iconName:s})=>(0,g.jsx)("li",{className:`c-pagination__item c-pagination__item--${e} ${a?"is-disabled":""}`,"aria-disabled":a,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:t,disabled:a,"aria-label":n,children:(0,g.jsx)(b,{name:s,size:"sm","aria-hidden":"true"})})}),ae=({currentPage:e=p.Ci.currentPage,totalPages:t=p.Ci.totalPages,onPageChange:a,siblingCount:n=p.Ci.siblingCount,showFirstLastButtons:s=p.Ci.showFirstLastButtons,showPrevNextButtons:i=p.Ci.showPrevNextButtons,size:r=p.Ci.size,className:o="",ariaLabel:l="Pagination"})=>{const{paginationRange:c,goToPage:d,nextPage:u,prevPage:m,firstPage:h,lastPage:_}=ee({currentPage:e,totalPages:t,siblingCount:n,onPageChange:a});return 0===e||2>c.length?null:(0,g.jsx)("nav",{className:`c-pagination c-pagination--${r} ${o}`,"aria-label":l,children:(0,g.jsxs)("ul",{className:"c-pagination__items",children:[s&&(0,g.jsx)(te,{type:"first",onClick:h,disabled:1===e,label:"Go to first page",iconName:"SkipBack"}),i&&(0,g.jsx)(te,{type:"prev",onClick:m,disabled:1===e,label:"Go to previous page",iconName:"CaretLeft"}),c.map(((t,a)=>{if(t===J)return(0,g.jsx)("li",{className:"c-pagination__item c-pagination__item--dots","aria-hidden":"true",children:"…"},"dots-"+a);const n=t===e;return(0,g.jsx)("li",{className:"c-pagination__item "+(n?"is-active":""),"aria-current":n?"page":void 0,children:(0,g.jsx)("button",{type:"button",className:"c-pagination__link",onClick:()=>d(t),"aria-label":"Page "+t,"aria-current":n?"page":void 0,children:t})},t)})),i&&(0,g.jsx)(te,{type:"next",onClick:u,disabled:e===t,label:"Go to next page",iconName:"CaretRight"}),s&&(0,g.jsx)(te,{type:"last",onClick:_,disabled:e===t,label:"Go to last page",iconName:"SkipForward"})]})})};ae.displayName="Pagination";const ne=ae,se=({data:e,columns:t,className:a,sortable:n=!1,filterable:s=!1,paginated:i=!1,pageSize:r=10,striped:o=!1,bordered:l=!1,dense:c=!1,loading:d=!1,emptyMessage:m="No data available",onRowClick:h,onSort:_,...S})=>{const E=(0,u.useRef)(null),{displayData:v,sortConfig:f,currentPage:C,totalPages:N,handleSort:L,handlePageChange:x,handleSearch:T}=W({data:e,columns:t,sortable:n,paginated:i,pageSize:r,onSort:_}),A=[p.tI.base,o&&p.tI.striped,l&&p.tI.bordered,c&&p.tI.dense,d&&p.tI.loading,a].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:p.tI.container,...S,children:[s?(0,g.jsx)("div",{className:p.tI.toolbar,children:(0,g.jsx)("div",{className:p.tI.search,children:(0,g.jsx)("input",{type:"text",placeholder:"Search...",className:p.tI.searchInput+" c-input",onChange:e=>T(e.target.value),"aria-label":"Search table"})})}):null,(0,g.jsx)("div",{className:p.tI.tableWrapper,children:(0,g.jsxs)("table",{ref:E,className:A,children:[(0,g.jsx)("thead",{className:p.tI.header,children:(0,g.jsx)("tr",{children:t.map(((e,t)=>(0,g.jsx)("th",{className:`${p.tI.headerCell} ${!1!==e.sortable&&n?p.tI.sortable:""}`,onClick:()=>!1!==e.sortable&&n?L(e.key):null,"aria-sort":f?.key===e.key?"asc"===f.direction?"ascending":"descending":void 0,children:(0,g.jsxs)("div",{className:p.tI.headerContent,children:[(0,g.jsx)("span",{children:e.title}),!1!==e.sortable&&n&&(0,g.jsx)("span",{className:p.tI.sortIcon,children:f?.key===e.key?(0,g.jsx)(b,"asc"===f.direction?{name:"CaretUp",size:"sm"}:{name:"CaretDown",size:"sm"}):null})]})},"header-"+t)))})}),(0,g.jsx)("tbody",d?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.loadingCell,children:(0,g.jsx)("div",{className:p.tI.loadingIndicator,children:(0,g.jsx)(K,{size:"md",variant:"primary"})})})})}:0===v.length?{children:(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:t.length,className:p.tI.emptyCell,children:m})})}:{children:v.map(((e,a)=>(0,g.jsx)("tr",{className:p.tI.row,onClick:h?()=>h(e):void 0,tabIndex:h?0:void 0,role:h?"button":void 0,children:t.map(((t,n)=>(0,g.jsx)("td",{className:p.tI.cell,children:t.render?t.render(e[t.key],e):e[t.key]},`cell-${a}-${n}`)))},"row-"+a)))})]})}),i&&N>1?(0,g.jsx)("div",{className:p.tI.pagination,children:(0,g.jsx)(ae,{currentPage:C,totalPages:N,onPageChange:x,showFirstLastButtons:!0,showPrevNextButtons:!0,size:"sm",ariaLabel:"Data table pagination",className:"c-data-table__pagination"})}):null]})};se.displayName="DataTable";const ie=se;function re(e){const t=new Date;return t.setMonth(e),t.toLocaleString("default",{month:"long"})}function oe(e,t){return new Date(e,t+1,0).getDate()}function le(e,t){if(!e)return"";const a=e.getDate(),n=e.getMonth()+1,s=e.getFullYear();return t.replace("yyyy",""+s).replace("MM",(""+n).padStart(2,"0")).replace("M",""+n).replace("dd",(""+a).padStart(2,"0")).replace("d",""+a)}const ce=(0,u.forwardRef)((({value:e,onChange:t,selectionMode:a="single",startDate:n,endDate:s,onRangeChange:i,format:r="MM/dd/yyyy",minDate:o,maxDate:l,placeholder:c="Select date...",disabled:d=!1,readOnly:p=!1,clearable:h=!0,showTodayButton:_=!0,showWeekNumbers:S=!1,inline:E=!1,id:v,name:f,className:C="",placement:N="bottom-start",inputClassName:L="",size:x="md",...T},A)=>{const{isOpen:I,inputValue:O,rangeInputValue:y,viewMode:R,currentMonth:w,currentYear:k,rangeSelectionState:j,datePickerRef:D,inputRef:M,startDate:P,setIsOpen:B,handleDateSelect:$,handlePrevMonth:z,handleNextMonth:F,handlePrevYear:U,handleNextYear:G,handleTodayClick:V,handleClear:Y,handleInputChange:H,handleInputFocus:X,switchToMonthView:W,switchToYearView:q,selectMonth:K,selectYear:Z,generateDays:J,generateMonths:Q,generateYears:ee,isDateSelectable:te,isDateSelected:ae,isDateInSelectedRange:ne,isToday:se,getWeekNumber:ie}=function({value:e,onChange:t,selectionMode:a="single",startDate:n,endDate:s,onRangeChange:i,format:r="MM/dd/yyyy",minDate:o,maxDate:l,inline:c=!1}={}){const[d,m]=(0,u.useState)(c),[p,h]=(0,u.useState)(e?le(e,r):""),[g,_]=(0,u.useState)(n&&s?`${le(n,r)} - ${le(s,r)}`:n?le(n,r)+" - Select end date":""),[S,E]=(0,u.useState)(e||n||new Date),[v,b]=(0,u.useState)("days"),[f,C]=(0,u.useState)(!n||n&&s?"start":"end"),N=(0,u.useRef)(null),L=(0,u.useRef)(null),x=new Date,T=S.getMonth(),A=S.getFullYear(),I=oe(A,T),O=new Date(A,T,1).getDay();(0,u.useEffect)((()=>{"single"===a?h(e?le(e,r):""):(_(n&&s?`${le(n,r)} - ${le(s,r)}`:n?le(n,r)+" - Select end date":""),C(!n||n&&s?"start":"end"))}),[e,n,s,r,a]);const y=(0,u.useCallback)((e=>{const s=new Date(A,T,e);if(!(o&&o>s||l&&s>l))if("single"===a)t&&t(s),h(le(s,r)),c||m(!1);else if("start"===f)i&&i({startDate:s,endDate:null}),_(le(s,r)+" - Select end date"),C("end");else{if(!n)return;n>s?(i&&i({startDate:s,endDate:n}),_(`${le(s,r)} - ${le(n,r)}`)):(i&&i({startDate:n,endDate:s}),_(`${le(n,r)} - ${le(s,r)}`)),c||m(!1),C("start")}}),[A,T,o,l,t,i,r,c,a,f,n]),R=(0,u.useCallback)((()=>{E(new Date(A,T-1,1))}),[A,T]),w=(0,u.useCallback)((()=>{E(new Date(A,T+1,1))}),[A,T]),k=(0,u.useCallback)((()=>{E(new Date(A-1,T,1))}),[A,T]),j=(0,u.useCallback)((()=>{E(new Date(A+1,T,1))}),[A,T]),D=(0,u.useCallback)((()=>{b("months")}),[]),M=(0,u.useCallback)((()=>{b("years")}),[]),P=(0,u.useCallback)((e=>{E(new Date(A,e,1)),b("days")}),[A]),B=(0,u.useCallback)((e=>{E(new Date(e,T,1)),b("months")}),[T]),$=(0,u.useCallback)((()=>{const e=new Date;E(e),"single"===a?y(e.getDate()):E(new Date)}),[y,a]),z=(0,u.useCallback)((()=>{"single"===a?(h(""),t&&t(null)):(_(""),C("start"),i&&i({startDate:null,endDate:null}))}),[t,i,a]),F=(0,u.useCallback)((e=>{if("single"===a){h(e.target.value);const a=new Date(e.target.value);isNaN(a.getTime())||(t&&t(a),E(a))}else{_(e.target.value);const t=e.target.value.split("-");if(2===t.length){const e=t[0].trim(),a=t[1].trim(),n=new Date(e);if(isNaN(n.getTime())||E(n),e&&a){const t=new Date(e),n=new Date(a);isNaN(t.getTime())||isNaN(n.getTime())||i&&i({startDate:t,endDate:n})}}}}),[t,i,a]),U=(0,u.useCallback)((()=>{c||m(!0)}),[c]),G=(0,u.useCallback)((e=>{N.current&&!N.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&m(!1)}),[]);(0,u.useEffect)((()=>(d&&!c?document.addEventListener("mousedown",G):document.removeEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)})),[d,G,c]);const V=(0,u.useCallback)((()=>{const e=[],t=oe(0===T?A-1:A,0===T?11:T-1);for(let n=O-1;n>=0;n--)e.push({day:t-n,month:0===T?11:T-1,year:0===T?A-1:A,isCurrentMonth:!1});for(let n=1;I>=n;n++)e.push({day:n,month:T,year:A,isCurrentMonth:!0});const a=42-e.length;for(let n=1;a>=n;n++)e.push({day:n,month:11===T?0:T+1,year:11===T?A+1:A,isCurrentMonth:!1});return e}),[I,O,T,A]),Y=(0,u.useCallback)((()=>{const e=[];for(let t=0;12>t;t++)e.push({month:t,name:re(t)});return e}),[]),H=(0,u.useCallback)((()=>{const e=[],t=A-6;for(let a=0;12>a;a++)e.push(t+a);return e}),[A]),X=(0,u.useCallback)(((e,t,a)=>function(e,t,a){return!(!e||t&&t>e||a&&e>a)}(new Date(e,t,a),o,l)),[o,l]),W=(0,u.useCallback)(((t,i,r)=>{if("single"===a)return!!e&&e.getFullYear()===t&&e.getMonth()===i&&e.getDate()===r;if(!n&&!s)return!1;if(n&&!s)return n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r;if(n&&s){const e=n.getFullYear()===t&&n.getMonth()===i&&n.getDate()===r,a=s.getFullYear()===t&&s.getMonth()===i&&s.getDate()===r;return e||a}return!1}),[e,a,n,s]),q=(0,u.useCallback)(((e,t,i)=>{if("range"!==a||!n||!s)return!1;const r=new Date(e,t,i);return r>n&&s>r}),[a,n,s]),K=(0,u.useCallback)(((e,t,a)=>x.getFullYear()===e&&x.getMonth()===t&&x.getDate()===a),[x]),Z=(0,u.useCallback)((e=>{const t=new Date(e.valueOf()),a=(e.getDay()+6)%7;t.setDate(t.getDate()-a+3);const n=t.valueOf();return t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.valueOf())/6048e5)}),[]);return{isOpen:d,inputValue:p,rangeInputValue:g,viewDate:S,viewMode:v,currentMonth:T,currentYear:A,selectionMode:a,rangeSelectionState:f,datePickerRef:N,inputRef:L,startDate:n,endDate:s,setIsOpen:m,handleDateSelect:y,handlePrevMonth:R,handleNextMonth:w,handlePrevYear:k,handleNextYear:j,handleTodayClick:$,handleClear:z,handleInputChange:F,handleInputFocus:U,switchToMonthView:D,switchToYearView:M,selectMonth:P,selectYear:B,generateDays:V,generateMonths:Y,generateYears:H,isDateSelectable:X,isDateSelected:W,isDateInSelectedRange:q,isToday:K,getWeekNumber:Z}}({value:e,onChange:t,selectionMode:a,startDate:n,endDate:s,onRangeChange:i,format:r,minDate:o,maxDate:l,inline:E});(0,u.useImperativeHandle)(A,(()=>({open:()=>B(!0),close:()=>B(!1),clear:Y,focus:()=>M.current?.focus()})));const ce=`c-datepicker ${C} ${E?"c-datepicker--inline":""}`.trim(),de=`c-datepicker__input c-input c-input--${x} ${L}`.trim(),ue=v||"datepicker-"+Math.random().toString(36).substring(2,9),me=ue+"-calendar",pe="single"===a?O:y;return(0,g.jsxs)("div",{className:ce,ref:D,...T,children:[!E&&(0,g.jsxs)("div",{className:"c-datepicker__input-wrapper",children:[(0,g.jsx)("input",{id:ue,name:f,ref:M,type:"text",className:de,placeholder:"single"===a?c:"start"===j?"Select start date...":P?le(P,r)+" - Select end date...":"Select date range...",value:pe,onChange:H,onFocus:X,disabled:d,readOnly:p,"aria-haspopup":"dialog","aria-expanded":I,"aria-controls":me}),h&&pe&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__clear-button",onClick:Y,"aria-label":"Clear date",children:(0,g.jsx)(b,{name:"X",size:"sm"})}),(0,g.jsx)("span",{className:"c-datepicker__calendar-icon","aria-hidden":"true",children:(0,g.jsx)(b,{name:"Calendar",size:"sm",color:"var(--atomix-secondary-text-emphasis)"})})]}),(I||E)&&(0,g.jsxs)("div",{id:me,className:"c-datepicker__calendar c-datepicker__calendar--"+N,role:"dialog","aria-modal":E?void 0:"true","aria-label":"Date picker",children:[(0,g.jsxs)("div",{className:"c-datepicker__header",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(b,{name:"CaretDoubleLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-month",onClick:z,"aria-label":"Previous month",children:(0,g.jsx)(b,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:W,"aria-label":"Switch to month view",children:`${w+1}/${k}`}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-month",onClick:F,"aria-label":"Next month",children:(0,g.jsx)(b,{name:"CaretRight",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(b,{name:"CaretDoubleRight",size:"sm"})})]}),"months"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:U,"aria-label":"Previous year",children:(0,g.jsx)(b,{name:"CaretLeft",size:"sm"})}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__view-switch",onClick:q,"aria-label":"Switch to year view",children:k}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:G,"aria-label":"Next year",children:(0,g.jsx)(b,{name:"CaretRight",size:"sm"})})]}),"years"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--prev-year",onClick:()=>U(),"aria-label":"Previous year range",children:(0,g.jsx)(b,{name:"CaretLeft",size:"sm"})}),(0,g.jsxs)("button",{type:"button",className:"c-datepicker__view-switch","aria-label":"Current year range",children:[k-6," - ",k+5]}),(0,g.jsx)("button",{type:"button",className:"c-datepicker__nav-button c-datepicker__nav-button--next-year",onClick:()=>G(),"aria-label":"Next year range",children:(0,g.jsx)(b,{name:"CaretRight",size:"sm"})})]})]}),(0,g.jsxs)("div",{className:"c-datepicker__body",children:["days"===R&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-datepicker__weekdays",role:"row",children:[S&&(0,g.jsx)("div",{className:"c-datepicker__weekday c-datepicker__weeknumber",role:"columnheader",children:"#"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Su"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Mo"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Tu"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"We"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Th"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Fr"}),(0,g.jsx)("div",{className:"c-datepicker__weekday",role:"columnheader",children:"Sa"})]}),(0,g.jsx)("div",{className:"c-datepicker__days",role:"grid","aria-labelledby":ue+"-month-year",children:J().map(((e,t)=>{const i=te(e.year,e.month,e.day),r=ae(e.year,e.month,e.day),o=se(e.year,e.month,e.day),l=new Date(e.year,e.month,e.day),c=ne(e.year,e.month,e.day),d="range"===a&&n&&e.day===n.getDate()&&e.month===n.getMonth()&&e.year===n.getFullYear(),u="range"===a&&s&&e.day===s.getDate()&&e.month===s.getMonth()&&e.year===s.getFullYear();if(S&&t%7==0){const a=ie(l);return(0,g.jsxs)(m().Fragment,{children:[(0,g.jsx)("div",{className:"c-datepicker__weeknumber","aria-label":"Week "+a,children:a}),(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${r?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${i?"":"c-datepicker__day--disabled"}`,onClick:()=>i&&$(e.day),disabled:!i,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":r?"true":"false",role:"gridcell",children:e.day})]},"week-"+t)}return(0,g.jsx)("button",{type:"button",className:`c-datepicker__day \n ${e.isCurrentMonth?"":"c-datepicker__day--outside"} \n ${r?"c-datepicker__day--selected":""} \n ${d?"c-datepicker__day--start-range":""}\n ${u?"c-datepicker__day--end-range":""}\n ${c?"c-datepicker__day--in-range":""}\n ${o?"c-datepicker__day--today":""} \n ${i?"":"c-datepicker__day--disabled"}`,onClick:()=>i&&$(e.day),disabled:!i,tabIndex:e.isCurrentMonth?0:-1,"aria-label":l.toLocaleDateString(),"aria-selected":r?"true":"false",role:"gridcell",children:e.day},"day-"+t)}))})]}),"months"===R&&(0,g.jsx)("div",{className:"c-datepicker__months",role:"grid",children:Q().map(((t,a)=>{const n=e&&e.getMonth()===t.month&&e.getFullYear()===k;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__month "+(n?"c-datepicker__month--selected":""),onClick:()=>K(t.month),"aria-selected":n?"true":"false",role:"gridcell",children:t.name.substring(0,3)},"month-"+a)}))}),"years"===R&&(0,g.jsx)("div",{className:"c-datepicker__years",role:"grid",children:ee().map(((t,a)=>{const n=e&&e.getFullYear()===t;return(0,g.jsx)("button",{type:"button",className:"c-datepicker__year "+(n?"c-datepicker__year--selected":""),onClick:()=>Z(t),"aria-selected":n?"true":"false",role:"gridcell",children:t},"year-"+a)}))})]}),"days"===R&&(0,g.jsxs)("div",{className:"c-datepicker__footer",children:["range"===a&&(0,g.jsxs)("div",{className:"c-datepicker__range-status c-badge c-badge--sm c-badge--info u-w-100",children:["Selecting ","start"===j?"start":"end"," date"]}),_&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__today-button c-btn c-btn--sm c-btn--outline-primary",onClick:V,"aria-label":"Go to today",children:"Today"}),!E&&(0,g.jsx)("button",{type:"button",className:"c-datepicker__close-button c-btn c-btn--sm c-btn--outline-error",onClick:()=>B(!1),"aria-label":"Close calendar",children:"Close"})]})]})]})}));ce.displayName="DatePicker";const de=ce,ue=(0,u.createContext)({isOpen:!1,close:()=>{},id:"",trigger:"click"}),me=({children:e,menu:t,placement:a="bottom-start",trigger:n="click",offset:s=p.a0.DEFAULTS.OFFSET,isOpen:i,onOpenChange:r,closeOnClickOutside:o=!0,closeOnEscape:l=!0,maxHeight:c,minWidth:d=p.a0.DEFAULTS.MIN_WIDTH,variant:m,className:h="",..._})=>{const[S,E]=(0,u.useState)(!1),v=void 0!==i,b=v?i:S,f=(0,u.useRef)(null),C=(0,u.useRef)(null),N=(0,u.useRef)(null),L=(0,u.useRef)("dropdown-"+Math.random().toString(36).substring(2,9)).current,x=(0,u.useCallback)((e=>{v||E(e),r&&r(e)}),[v,r]),T=(0,u.useCallback)((()=>x(!b)),[b,x]),A=(0,u.useCallback)((()=>{x(!1),setTimeout((()=>{C.current?.focus()}),0)}),[x]);(0,u.useEffect)((()=>{if(!b||!o)return;const e=e=>{f.current&&!f.current.contains(e.target)&&A()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[b,o,A]),(0,u.useEffect)((()=>{if(!b||!l)return;const e=e=>{"Escape"===e.key&&A()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[b,l,A]);const I=(0,u.useCallback)((e=>{if(!N.current)return;const t=N.current.querySelectorAll('[role="menuitem"]:not([disabled])');if(!t.length)return;const a=Array.from(t).findIndex((e=>e===document.activeElement));switch(e.key){case"ArrowDown":e.preventDefault(),t.length-1>a?t[a+1].focus():t[0].focus();break;case"ArrowUp":e.preventDefault(),a>0?t[a-1].focus():t[t.length-1].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus()}}),[]),O=(0,u.useCallback)((e=>{"click"===n&&(e.preventDefault(),e.stopPropagation(),T())}),[n,T]),y=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key&&"ArrowDown"!==e.key||b?"Escape"===e.key&&b&&(e.preventDefault(),A()):(e.preventDefault(),x(!0),"ArrowDown"===e.key&&N.current&&setTimeout((()=>{const e=N.current?.querySelector('[role="menuitem"]');e?.focus()}),100))}),[b,x,A]),R=(0,u.useCallback)((()=>{"hover"===n&&x(!0)}),[n,x]),w=["c-dropdown","click"===n?"c-dropdown--onclick":"",m?"c-dropdown--"+m:"",b?"is-open":"",h].filter(Boolean).join(" "),k={};return c&&(k.maxHeight=c),void 0!==d&&(k.minWidth="number"==typeof d?d+"px":d),(0,g.jsxs)("div",{ref:f,className:w,onMouseEnter:"hover"===n?R:void 0,..._,children:[(0,g.jsx)("div",{ref:C,className:"c-dropdown__toggle",onClick:O,onKeyDown:y,"aria-haspopup":"menu","aria-expanded":b,"aria-controls":L,tabIndex:0,children:e}),(0,g.jsx)("div",{ref:N,id:L,className:`c-dropdown__menu-wrapper c-dropdown__menu-wrapper--${a} ${b?"is-open":""}`,role:"menu","aria-orientation":"vertical","aria-hidden":!b,onKeyDown:I,children:(0,g.jsx)("div",{className:"c-dropdown__menu-inner",style:k,children:(0,g.jsx)(ue.Provider,{value:{isOpen:b,close:A,id:L,trigger:n},children:(0,g.jsx)("ul",{className:"c-dropdown__menu",children:t})})})})]})};me.displayName="Dropdown";const pe=me;function he(e){const t={position:"start",mode:"slide",isOpen:!1,backdrop:!0,closeOnBackdropClick:!0,closeOnEscape:!0,...e},[a,n]=(0,u.useState)(t.isOpen||!1),s=(0,u.useRef)(null),i=(0,u.useRef)(null),r=(0,u.useCallback)((()=>{if(!s.current||"push"!==t.mode)return;const{position:e}=t,a="top"===e||"bottom"===e?s.current.clientHeight:s.current.clientWidth;let n;switch(e){case"start":n="paddingLeft";break;case"end":n="paddingRight";break;default:n="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[n]=a+"px",document.body.classList.add("is-pushed")}),[t.mode,t.position]),o=(0,u.useCallback)((()=>{if("push"!==t.mode)return;const{position:e}=t;let a;switch(e){case"start":a="paddingLeft";break;case"end":a="paddingRight";break;default:a="padding"+(e.charAt(0).toUpperCase()+e.slice(1))}document.body.style[a]="",document.body.classList.remove("is-pushed")}),[t.mode,t.position]),l=(0,u.useCallback)((()=>{if(n(!0),document.body.classList.add("is-edgepanel-open"),s.current){const{mode:e}=t;if("none"!==e){s.current.classList.add("is-animating");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating")}),p.xU.ANIMATION_DURATION)}s.current.style.transform="translate(0)","push"===t.mode&&r()}t.onOpenChange&&t.onOpenChange(!0)}),[t,r]),c=(0,u.useCallback)((()=>{if(s.current){const{position:e,mode:a}=t;if("none"!==a){s.current.classList.add("is-animating-out");const e=s.current;setTimeout((()=>{e&&e.classList.remove("is-animating-out")}),p.xU.ANIMATION_DURATION)}s.current.style.transform=e?p.xU.TRANSFORM_VALUES[e]:"","push"===t.mode&&o(),setTimeout((()=>{n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),"none"===a?0:p.xU.ANIMATION_DURATION)}else n(!1),document.body.classList.remove("is-edgepanel-open"),t.onOpenChange&&t.onOpenChange(!1)}),[t,o]),d=(0,u.useCallback)((e=>{t.closeOnEscape&&"Escape"===e.key&&a&&c()}),[c,t.closeOnEscape,a]),m=(0,u.useCallback)((e=>{t.closeOnBackdropClick&&e.target===e.currentTarget&&c()}),[c,t.closeOnBackdropClick]);return(0,u.useEffect)((()=>(a&&t.closeOnEscape&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)})),[a,d,t.closeOnEscape]),(0,u.useEffect)((()=>{if(s.current){const{position:e,mode:n}=t;a||"slide"!==n&&"push"!==n||!e||(s.current.style.transform=p.xU.TRANSFORM_VALUES[e])}}),[t.mode,t.position,a]),(0,u.useEffect)((()=>{void 0!==t.isOpen&&t.isOpen!==a&&(t.isOpen?l():c())}),[t.isOpen,c,a,l]),{isOpen:a,containerRef:s,backdropRef:i,generateEdgePanelClass:e=>{const{position:n=t.position,className:s="",isOpen:i}=e,r=p.xU.CLASSES.BASE;return`${r} ${n?`${r}--${n}`:""} ${i??a?p.xU.CLASSES.IS_OPEN:""} ${s}`.trim()},openPanel:l,closePanel:c,handleBackdropClick:m}}const ge=({title:e,children:t,position:a="start",mode:n="slide",isOpen:s=!1,onOpenChange:i,backdrop:r=!0,closeOnBackdropClick:o=!0,closeOnEscape:l=!0,className:c=""})=>{const{isOpen:d,containerRef:u,backdropRef:m,generateEdgePanelClass:p,closePanel:h,handleBackdropClick:_}=he({position:a,mode:n,isOpen:s,onOpenChange:i,backdrop:r,closeOnBackdropClick:o,closeOnEscape:l}),S=p({position:a,isOpen:s,className:c});return d||!1!==s?(0,g.jsxs)("div",{className:S,"data-position":a,"data-mode":n,children:[r&&(0,g.jsx)("div",{ref:m,className:"c-edge-panel__backdrop",onClick:_}),(0,g.jsxs)("div",{ref:u,className:"c-edge-panel__container",children:[(0,g.jsxs)("div",{className:"c-edge-panel__header",children:[(0,g.jsx)("h4",{children:e}),(0,g.jsx)("button",{className:"c-edge-panel__close c-btn c-btn--icon",onClick:h,"aria-label":"Close panel",children:(0,g.jsx)(b,{name:"X"})})]}),(0,g.jsx)("div",{className:"c-edge-panel__body",children:t})]})]}):null};ge.displayName="EdgePanel";const _e=ge;function Se(e){const t={disabled:!1,...e};return{defaultProps:t,generateFormClass:e=>{const{disabled:a=t.disabled,className:n=""}=e;return`${p.PI.CLASSES.BASE} ${a?p.PI.CLASSES.DISABLED:""} ${n}`.trim()},handleSubmit:e=>a=>{a.preventDefault(),!t.disabled&&e&&e(a)},handleReset:e=>a=>{!t.disabled&&e&&e(a)}}}const Ee=({children:e,onSubmit:t,onReset:a,className:n="",disabled:s=!1,id:i,method:r="post",encType:o,noValidate:l=!1,autoComplete:c="on"})=>{const{generateFormClass:d,handleSubmit:u,handleReset:m}=Se({disabled:s}),p=d({className:n,disabled:s});return(0,g.jsx)("form",{id:i,className:p,onSubmit:u(t),onReset:m(a),method:r,encType:o,noValidate:l,autoComplete:c,children:e})};Ee.displayName="Form";const ve=Ee;function be(e){const t=(0,u.useRef)(null),a=(0,u.useRef)(null),n=(0,u.useRef)(null),s={alignment:"left",imageColSize:7,contentColSize:5,imageAlt:"Hero image",showOverlay:!0,fullViewportHeight:!1,contentWidth:void 0,parallax:!1,parallaxIntensity:.5,...e},i=!!s.backgroundImageSrc,r=!!s.imageSrc,o=r&&"center"!==s.alignment,l=(e,t=.5)=>{if(!e)return;const a=Math.max(0,Math.min(1,t));e.classList.add("c-hero--parallax");const s=()=>{const t=window.pageYOffset*a,n=e.querySelector(p.Dv.SELECTORS.BG);n&&(n.style.transform=`translateY(${t}px)`)};n.current=s,window.addEventListener("scroll",s),s()},c=e=>{if(!e)return;e.classList.remove("c-hero--parallax");const t=e.querySelector(p.Dv.SELECTORS.BG);t&&(t.style.transform=""),n.current&&(window.removeEventListener("scroll",n.current),n.current=null)};return(0,u.useEffect)((()=>{const e=t.current;return e&&s.parallax&&i&&l(e,s.parallaxIntensity),()=>{e&&n.current&&c(e)}}),[s.parallax,s.parallaxIntensity,i]),{generateHeroClassNames:(e="")=>{const t=[p.Dv.SELECTORS.HERO.replace(".","")];return"center"===s.alignment?t.push(p.Dv.CLASSES.CENTER):"right"===s.alignment?t.push(p.Dv.CLASSES.RIGHT):"left"===s.alignment&&t.push(p.Dv.CLASSES.LEFT),s.fullViewportHeight&&t.push(p.Dv.CLASSES.FULL_VH),s.parallax&&t.push("c-hero--parallax"),s.videoBackground&&t.push("c-hero--video"),e&&t.push(e),t.join(" ")},generateImageColClass:(e=s.imageColSize||7)=>{const t=["o-grid__col o-grid__col--md-"+e];return"left"===s.alignment&&t.push("u-mt-5 u-mt-md-0"),t.join(" ")},generateContentColClass:(e=s.contentColSize||5)=>"o-grid__col o-grid__col--md-"+e,hasBackgroundImage:i,hasForegroundImage:r,useGridLayout:o,heroRef:t,videoRef:a,applyParallaxEffect:l,removeParallaxEffect:c}}const fe=({title:e,subtitle:t,text:a,imageSrc:n,imageAlt:s="Hero image",alignment:i="left",backgroundImageSrc:r,showOverlay:o=!0,fullViewportHeight:l=!1,actions:c,imageColSize:d=7,contentColSize:u=5,contentWidth:m,className:h="",parallax:_=!1,parallaxIntensity:S=.5,videoBackground:E,videoOptions:v={autoplay:!0,loop:!0,muted:!0}})=>{const{generateHeroClassNames:b,generateImageColClass:f,generateContentColClass:C,hasBackgroundImage:N,hasForegroundImage:L,useGridLayout:x,heroRef:T,videoRef:A}=be({alignment:i,imageColSize:d,contentColSize:u,imageSrc:n,backgroundImageSrc:r,showOverlay:o,fullViewportHeight:l,contentWidth:m,parallax:_,parallaxIntensity:S,videoBackground:E}),I=m?{"--atomix-hero-content-width":m}:void 0,O=()=>(0,g.jsxs)("div",{className:p.Dv.SELECTORS.CONTENT.replace(".",""),children:[t&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.SUBTITLE.replace(".",""),children:t}),(0,g.jsx)("h1",{className:p.Dv.SELECTORS.TITLE.replace(".",""),children:e}),a&&(0,g.jsx)("p",{className:p.Dv.SELECTORS.TEXT.replace(".",""),children:a}),c&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.ACTIONS.replace(".",""),children:c})]}),y=()=>L?(0,g.jsx)("div","center"===i?{className:p.Dv.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:n,alt:s,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}:{className:f(),children:(0,g.jsx)("img",{src:n,alt:s,className:p.Dv.SELECTORS.IMAGE.replace(".","")})}):null;return(0,g.jsxs)("div",{ref:T,className:b(h),style:I,"data-parallax":_?"true":void 0,"data-parallax-intensity":_?S:void 0,children:[N||E?(0,g.jsxs)("div",{className:p.Dv.SELECTORS.BG.replace(".",""),children:[r&&(0,g.jsx)("img",{src:r,alt:"Background",className:p.Dv.SELECTORS.BG_IMAGE.replace(".","")}),(()=>{if(!E)return null;const{autoplay:e,loop:t,muted:a,posterUrl:n}=v;return(0,g.jsxs)("video",{ref:A,className:"c-hero__video",autoPlay:e,loop:t,muted:a,playsInline:!0,poster:n,children:[(0,g.jsx)("source",{src:E,type:"video/"+(E.split(".").pop()||"mp4")}),"Your browser does not support the video tag."]})})(),o&&(0,g.jsx)("div",{className:p.Dv.SELECTORS.OVERLAY.replace(".","")})]}):null,(0,g.jsx)("div",{className:p.Dv.SELECTORS.CONTAINER.replace(".","")+" o-container",children:x?(0,g.jsx)("div",{className:p.Dv.SELECTORS.GRID.replace(".","")+" o-grid",children:(0,g.jsxs)(g.Fragment,"left"===i?{children:[(0,g.jsx)("div",{className:C(),children:O()}),y()]}:{children:[y(),(0,g.jsx)("div",{className:C(),children:O()})]})}):(0,g.jsxs)(g.Fragment,{children:[O(),y()]})})]})};fe.displayName="Hero";const Ce=fe;function Ne(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateInputClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:s=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o="",type:l}=e;let c="";return i?c=p.bO.CLASSES.INVALID:r&&(c=p.bO.CLASSES.VALID),`${p.bO.CLASSES.BASE} ${"md"===a?"":"sm"===a?p.bO.CLASSES.SMALL:p.bO.CLASSES.LARGE} ${n?"c-input--"+n:""} ${"textarea"===l?"c-input--textarea":""} ${c} ${s?p.bO.CLASSES.DISABLED:""} ${o}`.trim()}}}const Le=({type:e="text",value:t,onChange:a,onBlur:n,onFocus:s,placeholder:i,className:r="",disabled:o=!1,required:l=!1,readOnly:c=!1,id:d,name:u,autoComplete:m,autoFocus:p=!1,size:h="md",variant:_,invalid:S=!1,valid:E=!1,maxLength:v,minLength:b,pattern:f,min:C,max:N,step:L,ariaLabel:x,ariaDescribedBy:T})=>{const{generateInputClass:A}=Ne({size:h,variant:_,disabled:o,invalid:S,valid:E}),I=A({className:r,size:h,variant:_,disabled:o,invalid:S,valid:E,type:e});return(0,g.jsx)("input",{type:e,className:I,value:t,onChange:a,onBlur:n,onFocus:s,placeholder:i,disabled:o,required:l,readOnly:c,id:d,name:u,autoComplete:m,autoFocus:p,maxLength:v,minLength:b,pattern:f,min:C,max:N,step:L,"aria-label":x,"aria-describedby":T,"aria-invalid":S})};Le.displayName="Input";const xe=Le,Te=({children:e,variant:t="default",className:a="",...n})=>{var s;const i=[p.rl.BASE_CLASS,"default"!==t&&"c-list--"+t,a].filter(Boolean).join(" "),r=D()(s=["number","text"]).call(s,t)?"ol":"ul";return(0,g.jsx)(r,{className:i,...n,children:m().Children.map(e,(e=>(0,g.jsx)("li",{className:"c-list__item",children:e})))})};Te.displayName="List";const Ae=Te,Ie=({messages:e=[],otherAvatar:t,selfAvatar:a,otherName:n,width:s="100%",onSendMessage:i,placeholder:r="Type a message",className:o="",bodyHeight:l,disabled:c=!1,id:d})=>{const{inputValue:m,handleInputChange:h,handleSubmit:_,handleKeyDown:S}=(({onSendMessage:e}={})=>{const[t,a]=(0,u.useState)(""),n=n=>{n.preventDefault(),t.trim()&&e&&(e(t.trim()),a(""))};return{inputValue:t,setInputValue:a,handleInputChange:e=>{a(e.target.value)},handleSubmit:n,handleKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),n(e))}}})({onSendMessage:i}),E=d||"messages-"+Math.random().toString(36).substr(2,9),v=E+"-input";return(0,g.jsxs)("div",{className:`${p.nl.CLASSES.BASE} ${c?"is-disabled":""} ${o}`,style:{"--atomix-messages-width":s},id:E,"aria-label":"Chat messages",role:"log","aria-live":"polite",children:[(0,g.jsx)("div",{className:p.nl.CLASSES.BODY,style:l?{"--atomix-messages-body-height":l}:void 0,children:e.map((e=>(0,g.jsxs)("div",{className:`${p.nl.CLASSES.CONTENT} ${e.isSelf?p.nl.CLASSES.CONTENT_SELF:""}`,"aria-label":`${e.isSelf?"You":n||"Other person"} sent a message at ${e.time}`,children:[(0,g.jsx)(C,{src:e.isSelf?a:t,size:"xl",circle:!0,className:p.nl.CLASSES.AVATAR,alt:e.isSelf?"Your avatar":(n||"Other person")+"'s avatar"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.ITEMS,children:[!e.isSelf&&n&&(0,g.jsx)("div",{className:p.nl.CLASSES.NAME,children:n}),e.text&&(0,g.jsxs)("div",{className:p.nl.CLASSES.TEXT,children:[e.text,(0,g.jsx)("span",{className:p.nl.CLASSES.TIME,"aria-label":"Sent at "+e.time,children:e.time})]}),e.image&&(0,g.jsx)("img",{className:p.nl.CLASSES.IMAGE,src:e.image,alt:"Message attachment",loading:"lazy"}),e.file&&(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE,"aria-label":`File attachment: ${e.file.name}, size: ${e.file.size}`,children:[(0,g.jsx)("span",{className:p.nl.CLASSES.FILE_ICON,children:(0,g.jsx)(b,{name:"File","aria-hidden":"true"})}),(0,g.jsxs)("div",{className:p.nl.CLASSES.FILE_DETAILS,children:[(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_NAME,children:e.file.name}),(0,g.jsx)("div",{className:p.nl.CLASSES.FILE_SIZE,children:e.file.size})]})]})]})]},e.id)))}),(0,g.jsxs)("form",{className:p.nl.CLASSES.FORM,onSubmit:_,"aria-label":"Message input form",children:[(0,g.jsxs)("div",{className:p.nl.CLASSES.INPUT_GROUP,children:[(0,g.jsx)("label",{htmlFor:v,className:"u-visually-hidden",children:"Type a message"}),(0,g.jsx)("input",{id:v,type:"text",className:p.nl.CLASSES.INPUT,placeholder:r,value:m,onChange:h,onKeyDown:S,disabled:c,"aria-label":"Message input"}),(0,g.jsxs)("div",{className:p.nl.CLASSES.OPTIONS,"aria-label":"Message options",children:[(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach file",disabled:c,children:(0,g.jsx)(b,{name:"PaperclipHorizontal","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Attach image",disabled:c,children:(0,g.jsx)(b,{name:"Image","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})}),(0,g.jsx)("button",{type:"button",className:p.nl.CLASSES.OPTION,"aria-label":"Insert link",disabled:c,children:(0,g.jsx)(b,{name:"Link","aria-hidden":"true",className:p.nl.CLASSES.OPTION_ICON})})]})]}),(0,g.jsx)("button",{type:"submit",className:p.nl.CLASSES.SUBMIT,"aria-label":"Send message",disabled:c,children:(0,g.jsx)(b,{name:"PaperPlaneTilt","aria-hidden":"true",size:24})})]})]})};Ie.displayName="Messages";const Oe=Ie,ye=({children:e,isOpen:t=!1,onOpenChange:a,onClose:n,onOpen:s,title:i,subtitle:r,size:o="md",backdrop:l=!0,keyboard:c=!0,className:d="",closeButton:m=!0,footer:h,..._})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),v=(0,u.useRef)(null),{isOpen:b,close:f}=function({isOpen:e,onOpenChange:t,onOpen:a,onClose:n}={}){const[s,i]=(0,u.useState)(!1),r=void 0!==e,o=r?!!e:s;(0,u.useEffect)((()=>{r&&i(!!e)}),[e,r]);const l=(0,u.useCallback)((e=>{r||i(e),t&&t(e),e&&a?a():!e&&n&&n()}),[r,t,a,n]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}({isOpen:t,onOpenChange:a,onClose:n,onOpen:s});(0,u.useEffect)((()=>{if(!c)return;const e=e=>{"Escape"===e.key&&b&&f()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[b,f,c]);const C=["c-modal",b?p.Cv.CLASSES.IS_OPEN:"",o?"c-modal--"+o:"",d].filter(Boolean).join(" ");return(0,g.jsxs)("div",{ref:S,className:C,style:{display:b?"block":"none"},role:"dialog","aria-modal":"true","aria-hidden":!b,..._,children:[(0,g.jsx)("div",{ref:v,className:"c-modal__backdrop",onClick:e=>{l&&e.target===e.currentTarget&&f()}}),(0,g.jsx)("div",{ref:E,className:"c-modal__dialog",children:(0,g.jsxs)("div",{className:"c-modal__content",children:[(i||m)&&(0,g.jsxs)("div",{className:"c-modal__header",children:[(0,g.jsxs)("div",{className:"c-modal__header-content",children:[i&&(0,g.jsx)("h3",{className:"c-modal__title",children:i}),r&&(0,g.jsx)("p",{className:"c-modal__sub",children:r})]}),m&&(0,g.jsx)("button",{type:"button",className:"c-modal__close c-btn js-modal-close",onClick:f,"aria-label":"Close modal",children:(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M16.0672 15.1828C16.1253 15.2409 16.1713 15.3098 16.2028 15.3857C16.2342 15.4615 16.2504 15.5429 16.2504 15.625C16.2504 15.7071 16.2342 15.7884 16.2028 15.8643C16.1713 15.9402 16.1253 16.0091 16.0672 16.0672C16.0091 16.1252 15.9402 16.1713 15.8643 16.2027C15.7885 16.2342 15.7071 16.2503 15.625 16.2503C15.5429 16.2503 15.4616 16.2342 15.3857 16.2027C15.3098 16.1713 15.2409 16.1252 15.1828 16.0672L10 10.8836L4.8172 16.0672C4.69992 16.1844 4.54086 16.2503 4.37501 16.2503C4.20916 16.2503 4.0501 16.1844 3.93282 16.0672C3.81555 15.9499 3.74966 15.7908 3.74966 15.625C3.74966 15.4591 3.81555 15.3001 3.93282 15.1828L9.11642 9.99998L3.93282 4.81717C3.81555 4.69989 3.74966 4.54083 3.74966 4.37498C3.74966 4.20913 3.81555 4.05007 3.93282 3.93279C4.0501 3.81552 4.20916 3.74963 4.37501 3.74963C4.54086 3.74963 4.69992 3.81552 4.8172 3.93279L10 9.11639L15.1828 3.93279C15.3001 3.81552 15.4592 3.74963 15.625 3.74963C15.7909 3.74963 15.9499 3.81552 16.0672 3.93279C16.1845 4.05007 16.2504 4.20913 16.2504 4.37498C16.2504 4.54083 16.1845 4.69989 16.0672 4.81717L10.8836 9.99998L16.0672 15.1828Z",fill:"#141414"})})})]}),(0,g.jsx)("div",{className:"c-modal__body",children:e}),h&&(0,g.jsx)("div",{className:"c-modal__footer",children:h})]})})]})};ye.displayName="Modal";const Re=ye;function we(e){const t={position:"static",collapsible:!0,backdrop:!1,closeOnOutsideClick:!0,closeOnEscape:!0,ariaLabel:"Main navigation",...e},[a,n]=(0,u.useState)(t.expanded||!1);return{defaultProps:t,isExpanded:a,setIsExpanded:n,generateNavbarClass:e=>{const{position:a=t.position,variant:n,collapsible:s=t.collapsible,className:i=""}=e;return`c-navbar ${"static"!==a?"c-navbar--"+a:""} ${n?"c-navbar--"+n:""} ${s?"c-navbar--collapsible":""} ${i}`.trim()},generateContainerStyle:e=>e?{maxWidth:e}:{},generateCollapseClass:e=>("c-navbar__collapse "+(e?"is-expanded":"")).trim(),toggleExpanded:()=>{const e=!a;n(e),t.onToggle&&t.onToggle(e)},getExpandedState:e=>void 0!==e?e:a}}function ke(e){const t={alignment:"start",variant:"default",...e};return{defaultProps:t,generateNavClass:e=>{const{alignment:a=t.alignment,variant:n=t.variant,className:s=""}=e;return`c-nav ${"start"!==a?"c-nav--"+a:""} ${"default"!==n?"c-nav--"+n:""} ${s}`.trim()}}}function je(e){const t={dropdown:!1,megaMenu:!1,active:!1,...e};return{defaultProps:t,generateNavItemClass:e=>{const{dropdown:a=t.dropdown,megaMenu:n=t.megaMenu,active:s=t.active,disabled:i=t.disabled,className:r=""}=e;return`c-nav__item ${a&&!n?p.Ac.SELECTORS.DROPDOWN.replace(".",""):""} ${n?"c-nav__item--mega-menu":""} ${s?p.Ac.CLASSES.ACTIVE:""} ${i?p.Ac.CLASSES.DISABLED:""} ${r}`.trim()},generateNavLinkClass:(e=!1,t=!1,a="")=>`c-nav__link ${e?p.Ac.CLASSES.ACTIVE:""} ${t?"c-nav__link--disabled":""} ${a}`.trim(),handleClick:e=>a=>{!t.disabled&&e?e():a.preventDefault()}}}function De(e){const t={alignment:"start",megaMenu:!1,...e},a=()=>null!==document.querySelector(".c-navbar--fixed-bottom");return{defaultProps:t,generateDropdownMenuClass:e=>{const{alignment:a=t.alignment,megaMenu:n=t.megaMenu,className:s=""}=e,i=n?p.Ac.SELECTORS.MEGA_MENU.replace(".",""):p.Ac.SELECTORS.DROPDOWN_MENU.replace(".","");let r="";return"center"===a?r=i+"--center":"end"===a&&(r=i+"--end"),`${i} ${r} ${s}`.trim()},isInFixedBottomNavbar:a,getIconClass:(e=!1)=>"c-nav__icon "+(a()?"icon-lux-caret-up":"icon-lux-caret-down"),getIconName:(e=!1)=>a()?"CaretUp":"CaretDown"}}const Me=(0,u.forwardRef)((({brand:e,children:t,variant:a,position:n="static",containerWidth:s,collapsible:i=!0,expanded:r,onToggle:o,className:l="",disabled:c=!1,backdrop:d=!1,closeOnOutsideClick:m=!0,closeOnEscape:p=!0,ariaLabel:h="Main navigation",id:_},S)=>{const{generateNavbarClass:E,generateContainerStyle:v,generateCollapseClass:b}=we({position:n,collapsible:i,expanded:r,onToggle:o}),[f,C]=(0,u.useState)(r||!1),N=(0,u.useRef)(null);(0,u.useEffect)((()=>{void 0!==r&&C(r)}),[r]),(0,u.useEffect)((()=>{const e=()=>{768<=window.innerWidth&&i&&("function"==typeof o?r&&o(!1):C(!1))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[i,r,o]);const L=E({position:n,variant:a,collapsible:i,className:l}),x=v(s),T=b(f);return(0,g.jsx)("nav",{ref:S,className:L,"aria-label":h,id:_,children:(0,g.jsxs)("div",{className:"c-navbar__container",style:x,children:[e&&("string"==typeof e?(0,g.jsx)("a",{href:"/",className:"c-navbar__brand",children:e}):(0,g.jsx)("div",{className:"c-navbar__brand",children:e})),i&&(0,g.jsx)("button",{className:"c-navbar__toggler",onClick:()=>{if(c)return;const e=!f;"function"==typeof o?o(e):C(e)},"aria-expanded":f,"aria-label":"Toggle navigation","aria-controls":"navbar-collapse",disabled:c,type:"button",children:(0,g.jsx)("span",{className:"c-navbar__toggler-icon"})}),(0,g.jsx)("div",{id:"navbar-collapse",className:T,ref:N,children:t})]})})}));Me.displayName="Navbar";const Pe=Me,Be=({currentIndex:e,imagesLength:t,onZoomOut:a,onResetZoom:n,onZoomIn:s,onToggleFullscreen:i,onClose:r,isFullscreen:o,zoomLevel:l,onRotate:c,onDownload:d,onShare:u,showInfo:m,onToggleInfo:p,currentImage:h})=>(0,g.jsxs)("div",{className:"c-photo-viewer__header",children:[(0,g.jsx)(A,{label:`${e+1} / ${t}`,variant:"light",size:"sm",className:"c-photo-viewer__counter-badge"}),(0,g.jsxs)("div",{className:"c-photo-viewer__actions",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,disabled:.1>=l,"aria-label":"Zoom out",icon:(0,g.jsx)(b,{name:"Minus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:n,disabled:1===l,"aria-label":"Reset zoom",icon:(0,g.jsx)(b,{name:"MagnifyingGlass",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:s,disabled:l>=5,"aria-label":"Zoom in",icon:(0,g.jsx)(b,{name:"Plus",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:c,"aria-label":"Rotate image",icon:(0,g.jsx)(b,{name:"ArrowsClockwise",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:d,"aria-label":"Download image",icon:(0,g.jsx)(b,{name:"DownloadSimple",size:"sm"}),className:"c-photo-viewer__action-button"}),h?.src&&"undefined"!=typeof navigator&&"share"in navigator&&(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:u,"aria-label":"Share image",icon:(0,g.jsx)(b,{name:"ShareNetwork",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:p,"aria-label":m?"Hide info":"Show info",icon:(0,g.jsx)(b,{name:"Info",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:i,"aria-label":o?"Exit fullscreen":"Enter fullscreen",icon:(0,g.jsx)(b,o?{name:"ArrowsIn",size:"sm"}:{name:"ArrowsOut",size:"sm"}),className:"c-photo-viewer__action-button"}),(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:r,"aria-label":"Close photo viewer",icon:(0,g.jsx)(b,{name:"X",size:"sm"}),className:"c-photo-viewer__action-button c-photo-viewer__close"})]})]}),$e=({show:e,onPrev:t,onNext:a,currentIndex:n,imagesLength:s,enableKeyboardNav:i,onClose:r})=>((0,u.useEffect)((()=>{if(!i)return;const e=e=>{"ArrowLeft"===e.key&&t(),"ArrowRight"===e.key&&a(),"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[i,t,a,r]),e?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:t,disabled:0===n,"aria-label":"Previous image",icon:(0,g.jsx)(b,{name:"CaretLeft",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--prev"}),(0,g.jsx)(w,{iconOnly:!0,size:"md",variant:"light",rounded:!0,onClick:a,disabled:n===s-1,"aria-label":"Next image",icon:(0,g.jsx)(b,{name:"CaretRight",size:"md"}),className:"c-photo-viewer__nav-button c-photo-viewer__nav-button--next"})]}):null),ze=({imageRef:e,containerRef:t,src:a,alt:n,zoomLevel:s,dragPosition:i,isDragging:r,rotationAngle:o,isTransitioning:l=!1,onMouseDown:c,onMouseMove:d,onMouseUp:m,onWheel:p,onTouchStart:h,onTouchMove:_,onTouchEnd:S,onDoubleClick:E})=>{const v=(0,u.useRef)(null),b=t||v,[f,C]=(0,u.useState)(!1);return(0,u.useEffect)((()=>(C(!0),()=>C(!1))),[]),(0,u.useEffect)((()=>{const e=b.current;if(!e)return;const t=t=>{f&&e&&p&&p(t)},a=t=>{f&&e&&h&&h(t)},n=t=>{f&&e&&_&&_(t)},s=t=>{f&&e&&S&&S(t)};return f&&(e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchstart",a,{passive:!1}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",s,{passive:!1})),()=>{e.removeEventListener("wheel",t),e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",s)}}),[f,p,h,_,S,b]),(0,g.jsx)("div",{ref:b,className:"c-photo-viewer__image-container "+(l?"is-transitioning":""),style:{cursor:r?"grabbing":s>1?"grab":"default",opacity:l?.7:1,touchAction:"none"},onMouseDown:c,onMouseMove:d,onMouseUp:m,onMouseLeave:m,onDoubleClick:e=>{f&&E&&E(e)},children:(0,g.jsx)("img",{ref:e,src:a,alt:n,className:"c-photo-viewer__image",style:{transform:`scale(${s}) translate(${i.x}px, ${i.y}px) rotate(${o}deg)`,transition:r?"none":l?"opacity 0.15s ease-out":"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)",transformOrigin:"center center",willChange:r?"transform":"auto",touchAction:"none"},draggable:!1,onContextMenu:e=>e.preventDefault()})})},Fe=({images:e,currentIndex:t,goToImage:a})=>e.length>1?(0,g.jsx)("div",{className:"c-photo-viewer__thumbnails",children:e.map(((e,n)=>(0,g.jsx)(w,{variant:"light",className:"c-photo-viewer__thumbnail "+(n===t?"is-active":""),onClick:()=>a(n),"aria-label":"View image "+(n+1),"aria-current":n===t,children:(0,g.jsx)("img",{loading:"lazy",src:e.thumbnail||e.src,alt:e.alt||"Thumbnail "+(n+1),className:"c-photo-viewer__thumbnail-img"})},n)))}):null,Ue=({show:e,image:t,onClose:a})=>e&&t?(0,g.jsxs)("div",{className:"c-photo-viewer__info-panel",children:[(0,g.jsx)(w,{iconOnly:!0,size:"sm",variant:"light",rounded:!0,onClick:a,"aria-label":"Close info panel",icon:(0,g.jsx)(b,{name:"X",size:"sm"}),className:"c-photo-viewer__info-close"}),(0,g.jsxs)("div",{className:"c-photo-viewer__info-content",children:[t.title&&(0,g.jsx)("h3",{className:"c-photo-viewer__info-title",children:t.title}),t.description&&(0,g.jsx)("p",{className:"c-photo-viewer__info-description",children:t.description}),t.date&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["Date: ",t.date]}),t.author&&(0,g.jsxs)("p",{className:"c-photo-viewer__info-meta",children:["By: ",t.author]}),t.tags&&t.tags.length>0&&(0,g.jsx)("div",{className:"c-photo-viewer__info-tags",children:t.tags.map(((e,t)=>(0,g.jsx)(A,{label:e,variant:"light",size:"sm",className:"c-photo-viewer__info-tag"},t)))})]})]}):null,Ge=({images:e,startIndex:t=0,className:a="",disabled:n=!1,enableKeyboardNavigation:s=!0,enableGestures:i=!0,enableFullscreen:r=!0,thumbnailPosition:o="bottom",onImageChange:l,onClose:c})=>{const{currentIndex:d,zoomLevel:m,imagePosition:p,isDragging:h,isFullscreen:_,rotationAngle:S,showInfo:E,imageRef:v,containerRef:b,isTransitioning:f,setZoomLevel:C,setIsFullscreen:N,setRotationAngle:L,setShowInfo:x,closeModal:T,goToPrevious:A,goToNext:I,setCurrentIndex:O,handleMouseDown:y,handleMouseMove:R,handleMouseUp:w,handleWheel:k,handleTouchStart:j,handleTouchMove:M,handleTouchEnd:P,handleDoubleClick:B,resetImageState:$}=(({images:e,startIndex:t=0,enableGestures:a=!0,onImageChange:n,onClose:s})=>{const[i,r]=(0,u.useState)(t),[o,l]=(0,u.useState)(!1),[c,d]=(0,u.useState)(!1),[m,p]=(0,u.useState)({x:0,y:0}),[h,g]=(0,u.useState)(!1),[_,S]=(0,u.useState)(!1),[E,v]=(0,u.useState)({}),[b,f]=(0,u.useState)(!1),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)({velocity:0,timestamp:0}),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)([]),O=(0,u.useRef)(null),y=(0,u.useRef)(null),R=(0,u.useRef)(0),w=(0,u.useRef)(null),k=(0,u.useCallback)(((e,t)=>{if(!C||!T.current||!A.current)return{minX:0,maxX:0,minY:0,maxY:0};const a=T.current,n=A.current;if(!a.naturalWidth&&!a.width)return{minX:0,maxX:0,minY:0,maxY:0};const s=a.naturalWidth||a.width||800,i=a.naturalHeight||a.height||600;try{const a=n.getBoundingClientRect();if(!a||0===a.width||0===a.height)return{minX:0,maxX:0,minY:0,maxY:0};const r=a.width,o=a.height,l=t*Math.PI/180,c=Math.abs(Math.cos(l)),d=Math.abs(Math.sin(l)),u=s/i;let m,p;r/o>u?(p=Math.min(.9*o,i),m=p*u):(m=Math.min(.9*r,s),p=m/u);const h=(m*d+p*c)*e,g=Math.max(0,((m*c+p*d)*e-r)/2),_=Math.max(0,(h-o)/2);return{minX:-g,maxX:g,minY:-_,maxY:_}}catch(r){return{minX:0,maxX:0,minY:0,maxY:0}}}),[C]),j=(0,u.useCallback)(((e,t)=>({x:Math.max(t.minX,Math.min(t.maxX,e.x)),y:Math.max(t.minY,Math.min(t.maxY,e.y))})),[]);(0,u.useEffect)((()=>(N(!0),r(0>t||t>=e.length?0:t),()=>N(!1))),[e,t]),(0,u.useEffect)((()=>{o?document.body.classList.add("is-open-photoviewer"):document.body.classList.remove("is-open-photoviewer")}),[o]),(0,u.useEffect)((()=>{o&&v((e=>e[i]?e:{...e,[i]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}}))}),[o,i]),(0,u.useEffect)((()=>{n&&n(i)}),[i,n]),(0,u.useEffect)((()=>{const e=T.current,t=A.current,a=()=>{C&&e&&t&&v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=k(t.zoomLevel,t.rotation),n=j(t.position,a);return{...e,[i]:{...t,bounds:a,position:n}}}))};if(!(e&&t&&e.complete&&C))return e&&t&&C?(e.addEventListener("load",a),()=>e.removeEventListener("load",a)):void 0;a()}),[i,k,j,C]),(0,u.useEffect)((()=>{const e=()=>{C&&T.current&&A.current&&v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=k(t.zoomLevel,t.rotation),n=j(t.position,a);return{...e,[i]:{...t,bounds:a,position:n}}}))};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[i,k,j,C]);const M=(0,u.useCallback)((()=>{l(!0)}),[]),P=(0,u.useCallback)((()=>{l(!1),s&&s()}),[s]),B=(0,u.useCallback)((()=>{i>0&&(f(!0),setTimeout((()=>{r((e=>e-1)),f(!1)}),150))}),[i]),$=(0,u.useCallback)((()=>{e.length-1>i&&(f(!0),setTimeout((()=>{r((e=>e+1)),f(!1)}),150))}),[i,e.length]),z=(0,u.useCallback)((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.zoomLevel):e,s=Math.max(.1,Math.min(5,n)),r=k(s,a.rotation),o=j(a.position,r);return{...t,[i]:{...a,zoomLevel:s,bounds:r,position:o}}}))}),[C,i,k,j]),F=(0,u.useCallback)((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n="function"==typeof e?e(a.position):e,s=j(n,a.bounds);return{...t,[i]:{...a,position:s}}}))}),[i,j]),U=(0,u.useCallback)((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=(("function"==typeof e?e(a.rotation):e)%360+360)%360,s=k(a.zoomLevel,n),r=j(a.position,s);return{...t,[i]:{...a,rotation:n,bounds:s,position:r}}}))}),[C,i,k,j]),G=(0,u.useCallback)((e=>{var t;if(!C||!e||!e.currentTarget)return;const a=e.currentTarget;if(a&&"function"==typeof a.getBoundingClientRect){if("undefined"!=typeof window&&(null==(t=window.location?.href)?void 0:Function.call.bind(D()(t),t))?.("storybook"))try{const e=a.getBoundingClientRect();if(!e||0===e.width||0===e.height)return}catch(n){return}v((t=>{const n=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},s=/Mac|iPod|iPhone|iPad/.test(navigator.platform),r=e.ctrlKey&&s,o=Math.abs(e.deltaX)>0;let l,c=!1;if(r)l=-.02*e.deltaY,c=!0;else if(!e.ctrlKey&&o&&s){if(1>=n.zoomLevel)return t;l=-.003*e.deltaY,c=!0}else e.ctrlKey||o||!s?s?(l=-.005*e.deltaY,c=!0):(l=-.006*e.deltaY,c=!0):(l=-.004*e.deltaY,c=!0);c&&(e.preventDefault(),e.stopPropagation());const d=Date.now(),u=d-R.current;let m;R.current=d,r&&100>u&&(x({velocity:Math.abs(l)/u,timestamp:d}),w.current&&clearTimeout(w.current),w.current=setTimeout((()=>{const e=()=>{x((t=>{if(.001>t.velocity)return t;const a=.95*t.velocity,n=a*(l>0?1:-1);return v((e=>{const t=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},a=Math.max(.1,Math.min(5,t.zoomLevel+n));if(a===t.zoomLevel)return e;const s=k(a,t.rotation),r=j(t.position,s);return{...e,[i]:{...t,zoomLevel:a,bounds:s,position:r}}})),.001>a||requestAnimationFrame(e),{velocity:a,timestamp:Date.now()}}))};requestAnimationFrame(e)}),50));try{m=a.getBoundingClientRect()}catch(S){return t}if(!m||0===m.width||0===m.height)return t;const p=e.clientX-m.left-m.width/2,h=e.clientY-m.top-m.height/2,g=n.zoomLevel,_=Math.max(.1,Math.min(5,g+l));if(_!==g){const e=_/g,a=k(_,n.rotation),s=j({x:n.position.x+p*(1-e)*.5,y:n.position.y+h*(1-e)*.5},a);return{...t,[i]:{...n,zoomLevel:_,bounds:a,position:s}}}return t}))}}),[C,i,k,j]),V=(0,u.useCallback)((e=>{if(!C||!e||!e.currentTarget)return;const t=e.currentTarget;t&&"function"==typeof t.getBoundingClientRect&&v((a=>{const n=a[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};let s;try{s=t.getBoundingClientRect()}catch(m){return a}if(!s||0===s.width||0===s.height)return a;const r=e.clientX-s.left-s.width/2,o=e.clientY-s.top-s.height/2;let l,c={x:0,y:0};1.5>n.zoomLevel?(l=2,c={x:.5*-r,y:.5*-o}):3>n.zoomLevel?(l=4,c={x:.75*-r,y:.75*-o}):(l=1,c={x:0,y:0});const d=k(l,n.rotation),u=j(c,d);return{...a,[i]:{...n,zoomLevel:l,bounds:d,position:u}}}))}),[C,i,k,j]),Y=(0,u.useCallback)((e=>{v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return a.zoomLevel>1&&(e.preventDefault(),d(!0),p({x:e.clientX-a.position.x,y:e.clientY-a.position.y})),t}))}),[i]),H=(0,u.useCallback)((e=>{c&&v((t=>{const a=t[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}},n=j({x:e.clientX-m.x,y:e.clientY-m.y},a.bounds);return{...t,[i]:{...a,position:n}}}))}),[c,m,i,j]),X=(0,u.useCallback)((()=>{d(!1)}),[]),W=(0,u.useCallback)((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),I.current=Array.from(t).map((e=>({x:e.clientX,y:e.clientY}))),v((e=>{const a=e[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(1===t.length&&a.zoomLevel>1)d(!0),p({x:t[0].clientX-a.position.x,y:t[0].clientY-a.position.y});else if(2===t.length){const e=t[0].clientX-t[1].clientX,a=t[0].clientY-t[1].clientY;O.current=Math.sqrt(e*e+a*a),y.current={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}return e}))}),[a,i]),q=(0,u.useCallback)((e=>{if(!a)return;const t=e.touches;t.length>1&&(e.preventDefault(),e.stopPropagation()),v((a=>{const n=a[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};if(n.zoomLevel>1&&1===t.length&&e.preventDefault(),1===t.length&&c&&n.zoomLevel>1){const e=j({x:t[0].clientX-m.x,y:t[0].clientY-m.y},n.bounds);return{...a,[i]:{...n,position:e}}}if(2===t.length&&null!==O.current){const r=t[0].clientX-t[1].clientX,o=t[0].clientY-t[1].clientY,l=Math.sqrt(r*r+o*o),c=.005*(l-O.current);O.current=l;const d={x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2},u=n.zoomLevel,m=Math.max(.1,Math.min(5,u+c));if(m!==u&&y.current){let t;try{t=e.currentTarget.getBoundingClientRect()}catch(s){return a}if(!t||0===t.width||0===t.height)return a;const r=d.x-t.left-t.width/2,o=d.y-t.top-t.height/2,l=m/u,c=k(m,n.rotation),p=j({x:n.position.x+r*(1-l)*.5,y:n.position.y+o*(1-l)*.5},c);return y.current=d,{...a,[i]:{...n,zoomLevel:m,bounds:c,position:p}}}y.current=d}return a}))}),[C,a,c,m,i,j,k]),K=(0,u.useCallback)((()=>{d(!1),O.current=null,y.current=null}),[]),Z=E[i]||{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}};return{currentIndex:i,isModalOpen:o,zoomLevel:Z.zoomLevel,imagePosition:Z.position,isDragging:c,isFullscreen:h,rotationAngle:Z.rotation,showInfo:_,imageRef:T,containerRef:A,isTransitioning:b,setCurrentIndex:r,setZoomLevel:z,setImagePosition:F,setIsDragging:d,setIsFullscreen:g,setRotationAngle:U,setShowInfo:S,openModal:M,closeModal:P,goToPrevious:B,goToNext:$,handleWheel:G,handleMouseDown:Y,handleMouseMove:H,handleMouseUp:X,handleTouchStart:W,handleTouchMove:q,handleTouchEnd:K,handleDoubleClick:V,resetImageState:()=>{v((e=>({...e,[i]:{zoomLevel:1,position:{x:0,y:0},rotation:0,bounds:{minX:0,maxX:0,minY:0,maxY:0}}})))}}})({images:e,startIndex:t,enableGestures:i,onImageChange:l,onClose:c||(()=>{})}),z=(0,u.useMemo)((()=>e.map((e=>"string"==typeof e?{src:e}:e))),[e]),F=z[d],U=(0,u.useMemo)((()=>["c-photo-viewer","c-photo-viewer--thumbnails-"+o,h?"c-photo-viewer--dragging":"",_?"c-photo-viewer--fullscreen":"",E?"c-photo-viewer--info-open":"",n?"is-disabled":"",a].filter(Boolean).join(" ")),[h,_,E,n,o,a]);return(0,u.useEffect)((()=>{const e=()=>{N(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)}),[N]),(0,u.useEffect)((()=>(document.body.classList.add("is-open-photoviewer"),()=>{document.body.classList.remove("is-open-photoviewer")})),[]),e.length?(0,g.jsxs)("div",{className:U,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",children:[(0,g.jsx)("div",{className:"c-photo-viewer__backdrop",onClick:T}),(0,g.jsxs)("div",{className:"c-photo-viewer__container",children:[(0,g.jsx)(Be,{currentIndex:d,imagesLength:e.length,onZoomOut:()=>C((e=>Math.max(e-.25,.1))),onResetZoom:()=>{$()},onZoomIn:()=>C((e=>Math.min(e+.25,5))),onToggleFullscreen:()=>{if(r){if(_)document.exitFullscreen&&document.exitFullscreen();else{const e=document.documentElement;e.requestFullscreen&&e.requestFullscreen()}N(!_)}},onClose:c||T,isFullscreen:_,zoomLevel:m,onRotate:()=>{L((e=>(e+90)%360))},onDownload:()=>{if(!F?.src)return;const e=document.createElement("a");e.href=F.src,e.download=F.title||"image-"+(d+1),document.body.appendChild(e),e.click(),document.body.removeChild(e)},onShare:async()=>{if(navigator.share&&F?.src)try{await navigator.share({title:F.title||"Shared Image",text:F.description||"Check out this image",url:F.src})}catch(e){}},showInfo:E,onToggleInfo:()=>x(!E),currentImage:F}),(0,g.jsxs)("div",{className:"c-photo-viewer__content",children:[(0,g.jsx)($e,{show:e.length>1,onPrev:A,onNext:I,currentIndex:d,imagesLength:e.length,enableKeyboardNav:s,onClose:c||T}),F?.src&&(0,g.jsx)(ze,{imageRef:v,containerRef:b,src:F.src,alt:F?.alt||"Image "+(d+1),zoomLevel:m,dragPosition:p,isDragging:h,rotationAngle:S,isTransitioning:f,onMouseDown:y,onMouseMove:R,onMouseUp:w,onWheel:k,onTouchStart:j,onTouchMove:M,onTouchEnd:P,onDoubleClick:B})]}),"none"!==o&&(0,g.jsx)(Fe,{images:z,currentIndex:d,goToImage:O}),(0,g.jsx)(Ue,{show:E,image:F,onClose:()=>x(!1)})]})]}):null};Ge.displayName="PhotoViewer";const Ve=Ge;var Ye=a(6003);const He=(0,u.createContext)({isOpen:!1,setIsOpen:()=>{},triggerRef:{current:null},popoverId:"",triggerType:"click"}),Xe=({content:e,position:t="top",trigger:a="click",className:n="",delay:s=0,offset:i=12,defaultOpen:r=!1,isOpen:o,onOpenChange:l,closeOnClickOutside:c=!0,closeOnEscape:d=!0,id:m,children:h})=>{const{isOpen:_,setIsOpen:S,triggerRef:E,popoverRef:v,arrowRef:b,popoverId:f,currentPosition:C}=(({position:e="top",trigger:t="click",offset:a=12,delay:n=0,defaultOpen:s=!1,isOpen:i,onOpenChange:r,closeOnClickOutside:o=!0,closeOnEscape:l=!0,id:c})=>{const[d,m]=(0,u.useState)(s),[p,h]=(0,u.useState)("auto"===e?"top":e),g=(0,u.useRef)(null),_=(0,u.useRef)(null),S=(0,u.useRef)(null),E=(0,u.useRef)(null),v=c||"popover-"+Math.random().toString(36).slice(2,11),b=void 0!==i,f=b?i:d,C=e=>{b||m(e),r&&r(e)};(0,u.useEffect)((()=>{if("hover"!==t||!g.current||!_.current)return;const e=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),n>0?E.current=setTimeout((()=>{C(!0)}),n):C(!0)},a=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout((()=>{_.current?.matches(":hover")||C(!1)}),100)},s=()=>{null!==E.current&&(clearTimeout(E.current),E.current=null)},i=()=>{C(!1)};return g.current.addEventListener("mouseenter",e),g.current.addEventListener("mouseleave",a),_.current.addEventListener("mouseenter",s),_.current.addEventListener("mouseleave",i),()=>{g.current&&(g.current.removeEventListener("mouseenter",e),g.current.removeEventListener("mouseleave",a)),_.current&&(_.current.removeEventListener("mouseenter",s),_.current.removeEventListener("mouseleave",i)),null!==E.current&&window.clearTimeout(E.current)}}),[t,n,f]);const N=t=>{if(!g.current||!_.current)return;const n=g.current.getBoundingClientRect(),s=_.current.getBoundingClientRect(),i=window.innerWidth,r=window.innerHeight,o=50>n.top||n.bottom>r-50||50>n.left||n.right>i-50;if("scroll"===t?.type&&!o)return;const l=n.top,c=r-n.bottom,d=n.left,u=i-n.right;let m="auto"===e?"top":e;if("auto"===e){const e=[{position:"top",space:l},{position:"right",space:u},{position:"bottom",space:c},{position:"left",space:d}];e.sort(((e,t)=>t.space-e.space)),m=e[0].position}else("top"===e&&s.height+a>l&&c>=s.height+a||"bottom"===e&&s.height+a>c&&l>=s.height+a||"left"===e&&s.width+a>d&&u>=s.width+a||"right"===e&&s.width+a>u&&d>=s.width+a)&&(m={top:"bottom",bottom:"top",left:"right",right:"left",auto:"bottom"}[e]);h(m);let p=0,S=0;switch(m){case"top":p=n.top-s.height-a,S=n.left+n.width/2-s.width/2;break;case"bottom":p=n.bottom+a,S=n.left+n.width/2-s.width/2;break;case"left":p=n.top+n.height/2-s.height/2,S=n.left-s.width-a;break;case"right":p=n.top+n.height/2-s.height/2,S=n.right+a}0>S?S=5:S+s.width>i&&(S=i-s.width-5),0>p?p=5:p+s.height>r&&(p=r-s.height-5);const E=p+window.scrollY,v=S+window.scrollX;_.current.style.position="absolute",_.current.style.top=E+"px",_.current.style.left=v+"px"};return(0,u.useEffect)((()=>{if(!f||!g.current||!_.current)return;N(),window.addEventListener("resize",N);let e=null;const t=t=>{e||(e=setTimeout((()=>{N(t),e=null}),100))};window.addEventListener("scroll",t,{passive:!0});const a=setInterval((()=>{N()}),500);return()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",t),e&&clearTimeout(e),clearInterval(a)}}),[f,e,a]),(0,u.useEffect)((()=>{if(!f||!o)return;const e=e=>{_.current&&!_.current.contains(e.target)&&g.current&&!g.current.contains(e.target)&&C(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[f,o]),(0,u.useEffect)((()=>{if(!f||!l)return;const e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f,l]),(0,u.useEffect)((()=>()=>{null!==E.current&&window.clearTimeout(E.current)}),[]),{isOpen:f,setIsOpen:C,triggerRef:g,popoverRef:_,arrowRef:S,popoverId:v,currentPosition:p,updatePosition:N}})({position:t,trigger:a,offset:i,delay:s,defaultOpen:r,isOpen:o,onOpenChange:l,closeOnClickOutside:c,closeOnEscape:d,id:m});return(0,g.jsxs)(He.Provider,{value:{isOpen:_,setIsOpen:S,triggerRef:E,popoverId:f,triggerType:a},children:[h,"undefined"!=typeof document&&(0,Ye.createPortal)((0,g.jsxs)("div",{ref:v,className:`c-popover c-popover--${C} ${_?p.I6.CLASSES.IS_OPEN:""} ${n}`,id:f,role:"tooltip","aria-hidden":!_,children:[(0,g.jsx)("div",{className:"c-popover__content",children:(0,g.jsx)("div",{className:"c-popover__content-inner",children:e})}),(0,g.jsx)("div",{ref:b,className:"c-popover__arrow"})]}),document.body)]})};Xe.displayName="Popover";const We=Xe;function qe(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ke(e,t){return m().useMemo((()=>null==e&&null==t?null:a=>{qe(e,a),qe(t,a)}),[e,t])}const Ze=(0,u.forwardRef)((({value:e=0,defaultValue:t,maxValue:a=5,allowHalf:n=!1,readOnly:s=!1,size:i="md",color:r,onChange:o,className:l="",label:c,id:d,useVanillaJS:m=!1,...h},_)=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{currentValue:v,hoverValue:b,focusedIndex:f,setHoverValue:C,setFocused:N,handleKeyDown:L}=(({value:e=0,maxValue:t=5,allowHalf:a=!1,readOnly:n=!1,onChange:s})=>{const i=void 0!==s,[r,o]=(0,u.useState)(e),[l,c]=(0,u.useState)(null),[d,m]=(0,u.useState)(null),p=i?e:r,h=(0,u.useCallback)((e=>{n||c(e)}),[n]),g=(0,u.useCallback)((()=>{n||c(null)}),[n]),_=(0,u.useCallback)((e=>{n||(i||o(e),s?.(e))}),[n,s,i]),S=(0,u.useCallback)(((e,r)=>{if(n)return;const l=a?.5:1;let c=p;switch(e.key){case"ArrowRight":case"ArrowUp":c=Math.min(t,p+l),e.preventDefault();break;case"ArrowLeft":case"ArrowDown":c=Math.max(0,p-l),e.preventDefault();break;case"Home":c=0,e.preventDefault();break;case"End":c=t,e.preventDefault();break;case" ":case"Enter":c=r,e.preventDefault();break;default:return}c!==p&&(i||o(c),s?.(c))}),[p,t,a,n,s,i]);return{currentValue:p,hoverValue:l,focusedIndex:d,handleMouseEnter:h,handleMouseLeave:g,handleClick:_,handleKeyDown:S,setFocused:m,setHoverValue:c,isControlled:i}})({value:void 0!==e?e:t,maxValue:a,allowHalf:n,readOnly:s,onChange:o}),x=(0,u.useCallback)(((e,t)=>{if(!s)if(n){const a=e.currentTarget.getBoundingClientRect();C(Math.max(.5,a.left+a.width/2>e.clientX?t-.5:t))}else C(t)}),[s,n,C]),T=(0,u.useCallback)(((e,t)=>{if(s||!n)return;const a=e.currentTarget.getBoundingClientRect();C(Math.max(.5,a.left+a.width/2>e.clientX?t-.5:t))}),[s,n,C]),A=(0,u.useCallback)((()=>{s||C(null)}),[s,C]),I=(0,u.useCallback)(((e,t)=>{if(s)return;let a=t;if(n){const n=e.currentTarget.getBoundingClientRect();a=n.left+n.width/2>e.clientX?t-.5:t,a=Math.max(.5,a)}o?.(a)}),[s,o,n]);(0,u.useEffect)((()=>{if(m&&"undefined"!=typeof window&&S.current)return()=>{E.current&&E.current.destroy()}}),[m,e,t,a,n,s,i,r,o]),(0,u.useEffect)((()=>{m&&E.current&&E.current.updateOptions({value:void 0!==e?e:t,maxValue:a,allowHalf:n,readOnly:s,size:i,color:r})}),[m,e,t,a,n,s,i,r]);const O=["c-rating","sm"===i?p._I.CLASSES.SMALL:"","lg"===i?p._I.CLASSES.LARGE:"",r?"c-rating--"+r:"",l].filter(Boolean).join(" ");if(m)return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,...h});const y=null!==b?b:v;return(0,g.jsx)("div",{className:O,ref:Ke(S,_),id:d,"data-readonly":s?"true":"false",onMouseLeave:A,role:s?"img":"radiogroup","aria-label":c||`Rating: ${v} out of ${a} stars`,...h,children:(()=>{const e=[],t=n?Math.floor(2*y)/2:Math.round(y),i=d||"rating-"+Math.random().toString(36).substring(2,9);for(let o=1;a>=o;o++){const l=["c-rating__star",o>Math.floor(t)?"":p._I.CLASSES.FULL,n&&o-.5===t?p._I.CLASSES.HALF:"",r?"c-rating__star--"+r:"",f===o?"c-rating__star--focused":""].filter(Boolean).join(" ");e.push((0,g.jsx)("div",{id:`${i}-star-${o}`,className:l,"data-value":o,role:s?"presentation":"button",tabIndex:s?-1:0,"aria-label":`${o} ${1===o?"star":"stars"}`,"aria-checked":t>=o,"aria-setsize":a,"aria-posinset":o,onClick:e=>I(e,o),onMouseEnter:e=>x(e,o),onMouseMove:e=>T(e,o),onFocus:()=>N(o),onBlur:()=>N(null),onKeyDown:e=>L(e,o),children:(0,g.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,g.jsx)("path",{className:"c-rating__star-outline",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",strokeWidth:"1"}),(0,g.jsx)("path",{className:"c-rating__star-full",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),(0,g.jsx)("path",{className:"c-rating__star-half",d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",clipPath:`url(#half-star-clip-${i}-${o})`}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:`half-star-clip-${i}-${o}`,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})})]})},o))}return e})()})}));Ze.displayName="Rating";const Je=Ze,Qe=({productName:e,productImage:t,initialRating:a=0,maxRating:n=5,allowHalf:s=!0,ratingColor:i="warning",onSubmit:r,className:o=""})=>{const[l,c]=(0,u.useState)(a),[d,m]=(0,u.useState)(""),[p,h]=(0,u.useState)(!1),_=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return()=>{S.current&&S.current.destroy()}}),[e,t,a,n,s,i,r]);const E=e=>{e.preventDefault(),r&&r(l,d),h(!0)},v=["c-product-review",o].filter(Boolean).join(" ");return p?(0,g.jsx)("div",{className:v,ref:_,children:(0,g.jsxs)("div",{className:"c-product-review__success",children:[(0,g.jsx)("h3",{children:"Thank you for your review!"}),(0,g.jsx)("p",{children:"Your feedback helps us improve our products."}),(0,g.jsx)(w,{variant:"secondary",label:"Write another review",onClick:()=>{h(!1),c(0),m("")}})]})}):(0,g.jsxs)("div",{className:v,ref:_,children:[(0,g.jsxs)("div",{className:"c-product-review__header",children:[(0,g.jsxs)("h3",{className:"c-product-review__title",children:["Review ",e]}),t&&(0,g.jsx)("div",{className:"c-product-review__image-wrapper",children:(0,g.jsx)("img",{src:t,alt:e,className:"c-product-review__image"})})]}),(0,g.jsxs)("form",{className:"c-product-review__form",onSubmit:E,children:[(0,g.jsxs)("div",{className:"c-product-review__rating-container",children:[(0,g.jsx)("label",{className:"c-product-review__label",children:"Your Rating"}),(0,g.jsxs)("div",{className:"c-rating-container",children:[(0,g.jsx)(Ze,{value:l,onChange:c,allowHalf:s,maxValue:n,size:"lg",color:i}),(0,g.jsx)("span",{className:"c-rating__value",children:l>0?l.toFixed(1):"Select a rating"})]})]}),(0,g.jsxs)("div",{className:"c-product-review__comment-container",children:[(0,g.jsx)("label",{htmlFor:"review-comment",className:"c-product-review__label",children:"Your Review"}),(0,g.jsx)("textarea",{id:"review-comment",className:"c-product-review__textarea",value:d,onChange:e=>m(e.target.value),placeholder:"Share your experience with this product...",rows:5})]}),(0,g.jsx)("div",{className:"c-product-review__actions",children:(0,g.jsx)(w,{variant:"primary",label:"Submit Review",disabled:0===l,onClick:()=>E(new Event("click"))})})]})]})};Qe.displayName="ProductReview";const et=Qe,tt=(0,u.forwardRef)((({value:e,variant:t="primary",size:a="md",className:n="",disabled:s=!1,ariaLabel:i=p.Gd.DEFAULTS.ARIA_LABEL},r)=>{const{progressValue:o,progressStyle:l,progressClasses:c}=(({value:e,variant:t="primary",size:a="md",className:n=""})=>{const s=Math.min(Math.max(e,0),100),i="c-progress";return{progressValue:s,progressStyle:{"--atomix-progress-percentage":s+"%"},progressClasses:[i,t?`${i}--${t}`:"",a?`${i}--${a}`:"",n||""].filter(Boolean).join(" ")}})({value:e,variant:t,size:a,className:n});return(0,g.jsx)("div",{ref:r,className:c,style:l,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,"aria-label":i,"aria-disabled":s,children:(0,g.jsx)("div",{className:p.Gd.CLASSES.BAR})})}));function at(e){const t={disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateRadioClass:e=>{const{disabled:a=t.disabled,invalid:n=t.invalid,valid:s=t.valid,className:i=""}=e;let r="";return n?r=p.e8.CLASSES.INVALID:s&&(r=p.e8.CLASSES.VALID),`${p.e8.CLASSES.BASE} ${r} ${a?p.e8.CLASSES.DISABLED:""} ${i}`.trim()}}}const nt=({label:e,checked:t=!1,onChange:a,className:n="",disabled:s=!1,required:i=!1,id:r,name:o,value:l,invalid:c=!1,valid:d=!1,ariaLabel:u,ariaDescribedBy:m})=>{const{generateRadioClass:p}=at({disabled:s,invalid:c,valid:d}),h=p({className:n,disabled:s,invalid:c,valid:d});return(0,g.jsxs)("div",{className:h,children:[(0,g.jsx)("input",{type:"radio",className:"c-radio__input",checked:t,onChange:a,disabled:s,required:i,id:r,name:o,value:l,"aria-label":e?void 0:u,"aria-describedby":m,"aria-invalid":c}),e&&(0,g.jsx)("label",{className:"c-radio__label",htmlFor:r,children:e})]})};nt.displayName="Radio";const st=nt;function it(e){const t={center:!1,breakout:!1,reverse:!1,imageAlt:"Image",showOverlay:!0,...e};return{generateRiverClassNames:(e="")=>{const a=[p.zN.SELECTORS.RIVER.replace(".","")];return t.center&&a.push(p.zN.CLASSES.CENTER),t.breakout&&a.push(p.zN.CLASSES.BREAKOUT),t.reverse&&a.push(p.zN.CLASSES.REVERSE),e&&a.push(e),a.join(" ")},generateContentClass:()=>p.zN.SELECTORS.CONTENT.replace(".",""),generateVisualClass:()=>p.zN.SELECTORS.VISUAL.replace(".",""),hasBackgroundImage:!!t.backgroundImageSrc,hasForegroundImage:!!t.imageSrc,textContent:"string"==typeof t.text?[t.text]:t.text||[]}}const rt=({title:e,text:t,actions:n,imageSrc:s,imageAlt:i="Image",center:r=!1,breakout:o=!1,reverse:l=!1,contentColumns:c,backgroundImageSrc:d,showOverlay:m=!0,contentWidth:h,className:_=""})=>{const S=(0,u.useRef)(null),E=(0,u.useRef)(null),{generateRiverClassNames:v,generateContentClass:b,generateVisualClass:f,hasBackgroundImage:C,hasForegroundImage:N,textContent:L}=it({title:e,text:t,imageSrc:s,imageAlt:i,center:r,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m,contentWidth:h});(0,u.useEffect)((()=>{if("undefined"!=typeof window&&S.current)return a.e(619).then(a.bind(a,5619)).then((({default:e})=>{S.current&&(E.current=new e(S.current,{center:r,breakout:o,reverse:l,backgroundImageSrc:d,showOverlay:m}))})),()=>{E.current&&E.current.destroy()}}),[r,o,l,d,m]);const x=h?{[p.zN.ATTRIBUTES.CONTENT_WIDTH]:h}:void 0,T=()=>C?(0,g.jsxs)("div",{className:p.zN.SELECTORS.BG.replace(".",""),children:[(0,g.jsx)("img",{src:d,alt:"Background",className:p.zN.SELECTORS.BG_IMAGE.replace(".","")}),m&&(0,g.jsx)("div",{className:p.zN.SELECTORS.OVERLAY.replace(".","")})]}):null,A=()=>N?(0,g.jsx)("div",{className:f(),children:(0,g.jsx)("div",{className:p.zN.SELECTORS.IMAGE_WRAPPER.replace(".",""),children:(0,g.jsx)("img",{src:s,alt:i,className:p.zN.SELECTORS.IMAGE.replace(".","")})})}):null;return(0,g.jsxs)("div",c&&c.length>0?{className:v(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:b(),children:[c.map(((e,t)=>(0,g.jsx)("div",{className:`${p.zN.SELECTORS.CONTENT_COL.replace(".","")} ${p.zN.SELECTORS["CONTENT_COL_"+e.type.toUpperCase()].replace(".","")}`,children:e.content},t))),n&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:n})]}),l&&A()]})})]}:{className:v(_),ref:S,style:x,children:[T(),(0,g.jsx)("div",{className:p.zN.SELECTORS.CONTAINER.replace(".","")+" o-container",children:(0,g.jsxs)("div",{className:p.zN.SELECTORS.ROW.replace(".",""),children:[!l&&A(),(0,g.jsxs)("div",{className:b(),children:[e&&(0,g.jsx)("h2",{className:p.zN.SELECTORS.TITLE.replace(".",""),children:e}),L.map(((e,t)=>(0,g.jsx)("p",{className:p.zN.SELECTORS.TEXT.replace(".",""),children:e},t))),n&&(0,g.jsx)("div",{className:p.zN.SELECTORS.ACTIONS.replace(".",""),children:n})]}),l&&A()]})})]})};rt.displayName="River";const ot=rt,lt=({title:e,label:t,text:n,actions:s,alignment:i="left",backgroundImageSrc:r,showOverlay:o=!1,imageSrc:l,imageAlt:c="Section image",size:d="md",skeleton:m=!1,className:h=""})=>{const _=(0,u.useRef)(null),S=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&_.current)return a.e(690).then(a.bind(a,3690)).then((({default:e})=>{_.current&&(S.current=new e(_.current,{alignment:i,backgroundImageSrc:r,showOverlay:o,size:d,skeleton:m}))})),()=>{S.current&&S.current.destroy()}}),[i,r,o,d,m]);const E=["c-sectionintro","center"===i?p.DJ.CLASSES.CENTER:"","sm"===d?p.DJ.CLASSES.SMALL:"","lg"===d?p.DJ.CLASSES.LARGE:"",r?"c-sectionintro--has-bg":"",h].filter(Boolean).join(" ");return m?(0,g.jsx)("div",{className:E,ref:_,children:(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("div",{className:"c-sectionintro__title",children:(0,g.jsx)("span",{className:"c-skeleton"})}),n&&(0,g.jsxs)("div",{className:"c-sectionintro__text",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"})]}),s&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("div",{className:"c-sectionintro__image c-skeleton"})})]})}):(0,g.jsxs)("div",{className:E,ref:_,children:[r?(0,g.jsxs)("div",{className:"c-sectionintro__bg",children:[(0,g.jsx)("img",{src:r,alt:"Background",className:"c-sectionintro__bg-image"}),o&&(0,g.jsx)("div",{className:"c-sectionintro__overlay"})]}):null,(0,g.jsxs)("div",{className:"c-sectionintro__container o-container",children:[t&&(0,g.jsx)("div",{className:"c-sectionintro__label",children:t}),(0,g.jsx)("h2",{className:"c-sectionintro__title",children:e}),n&&(0,g.jsx)("div",{className:"c-sectionintro__text",children:n}),s&&(0,g.jsx)("div",{className:"c-sectionintro__actions",children:s}),l&&(0,g.jsx)("div",{className:"c-sectionintro__image-wrapper",children:(0,g.jsx)("img",{src:l,alt:c,className:"c-sectionintro__image"})})]})]})};lt.displayName="SectionIntro";const ct=lt;function dt(e,t){return e.classList.contains(t)}function ut(e,t){dt(e,t)||e.classList.add(t)}function mt(e,t){dt(e,t)&&e.classList.remove(t)}function pt(e,t,a){e.classList.toggle(t,a)}const ht={House:"M240 121.6V240h-48v-72a24 24 0 0 0-24-24h-80a24 24 0 0 0-24 24v72H16V121.6a16 16 0 0 1 5.4-12L111.4 29a16 16 0 0 1 21.2 0l90 80.6a16 16 0 0 1 5.4 12Z",Package:"M223.68 66.15 135.68 18a15.88 15.88 0 0 0-15.36 0l-88 48.13a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03ZM128 32.59l74.12 40.55-32 17.56-74.12-40.55ZM96 68.08l73.56 40.23-32.04 17.53L64 85.64ZM40 95.83l72 39.39v79.23l-72-39.4Zm144 79.22v-79.23l72-39.39v79.22Z",Folder:"M216 72h-84.7L104.4 44.2A16.05 16.05 0 0 0 92.7 40H40a16 16 0 0 0-16 16v144.3a15.91 15.91 0 0 0 15.9 15.7h176.2a15.91 15.91 0 0 0 15.9-15.7V88a16 16 0 0 0-16-16Z",Tag:"M246.15 128.6 183.06 65.5l.09-24.21A16.05 16.05 0 0 0 167 25.14l-24.1.09L79.4 88.85a16 16 0 0 0 0 22.63l67.26 67.27a16 16 0 0 0 22.63 0l76.86-76.86a16 16 0 0 0 0-23.29ZM160 152l-56-56 56-56 56 56Zm-16-72a16 16 0 1 1-16 16 16 16 0 0 1 16-16Z",CaretRight:"M181.66 133.66l-80 80A8 8 0 0 1 88 208V48a8 8 0 0 1 13.66-5.66l80 80a8 8 0 0 1 0 11.32Z",CaretDown:"M208 96v16a8 8 0 0 1-2.34 5.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 32 112V96a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8Z",User:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z",Home:"M224 115.55V208a16 16 0 0 1-16 16h-40a16 16 0 0 1-16-16v-40a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v40a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-92.45a16 16 0 0 1 5.17-11.78l80-75.48a16 16 0 0 1 21.66 0l80 75.48a16 16 0 0 1 5.17 11.78Z",X:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128l66.35 66.34Z",Calendar:"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z",CaretDoubleLeft:"M181.66 181.66a8 8 0 0 1-11.32 0L120 131.31V160a8 8 0 0 1-13.66 5.66l-48-48a8 8 0 0 1 0-11.32l48-48A8 8 0 0 1 120 64v28.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0L102.63 98 64 128l38.63 30L114.34 146.63a8 8 0 0 1 11.32 0l56 56a8 8 0 0 1 0 11.32Z",CaretDoubleRight:"M74.34 181.66a8 8 0 0 0 11.32 0L136 131.31V160a8 8 0 0 0 13.66 5.66l48-48a8 8 0 0 0 0-11.32l-48-48A8 8 0 0 0 136 64v28.69L85.66 42.34a8 8 0 0 0-11.32 11.32l56 56a8 8 0 0 0 11.32 0l11.71-11.71L192 128l-38.63 30-11.71-11.71a8 8 0 0 0-11.32 0l-56 56a8 8 0 0 0 0 11.32Z"};function gt(e,t=16){return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" fill="currentColor" viewBox="0 0 256 256">\n <path d="${ht[e]||""}"></path>\n </svg>`}function _t(e,t=16,a=""){const n=document.createElement("span");return n.className=a||"c-icon",n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.innerHTML=gt(e,t),n}function St(){return Object.keys(ht)}function Et(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function vt(e){const t={items:[],title:"Todo List",size:"md",placeholder:"Add a new todo",showCompleted:!0,...e},[a,n]=(0,u.useState)(t.items||[]),[s,i]=(0,u.useState)(""),r=e=>{if(!e.trim())return null;const t={id:Et(),text:e.trim(),completed:!1};return n((e=>[...e,t])),i(""),t};return{items:a,inputText:s,setInputText:i,addTodo:r,toggleTodo:e=>{let t=null;return n((a=>a.map((a=>a.id===e?(t={...a,completed:!a.completed},t):a)))),t},deleteTodo:e=>{const t=a.length;return n((t=>t.filter((t=>t.id!==e)))),a.length!==t},handleSubmit:(e,t)=>{if(e.preventDefault(),!s.trim())return;const a=r(s);a&&t&&t(a.text)},generateTodoClasses:e=>{const{size:a=t.size,className:n="",disabled:s=!1}=e;return`${p.Pf.CLASSES.BASE} ${"md"===a?"":"c-todo--"+a} ${s?"c-todo--disabled":""} ${n}`.trim()},generateItemClasses:e=>`${p.Pf.CLASSES.ITEM} ${e.completed?p.Pf.CLASSES.COMPLETED:""}`.trim(),getFilteredItems:(e=!0)=>e?a:a.filter((e=>!e.completed))}}function bt(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateFormGroupClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:r=""}=e;return`${p.fk.CLASSES.BASE} ${"md"===a?"":"sm"===a?p.fk.CLASSES.SMALL:p.fk.CLASSES.LARGE} ${s?p.fk.CLASSES.INVALID:i?p.fk.CLASSES.VALID:""} ${n?p.fk.CLASSES.DISABLED:""} ${r}`.trim()}}}function ft(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateSelectClass:e=>{const{size:a=t.size,disabled:n=t.disabled,invalid:s=t.invalid,valid:i=t.valid,className:r=""}=e;let o="";return s?o=p.Th.CLASSES.INVALID:i&&(o=p.Th.CLASSES.VALID),`${p.Th.CLASSES.BASE} ${"md"===a?"":"sm"===a?p.Th.CLASSES.SMALL:p.Th.CLASSES.LARGE} ${o} ${n?p.Th.CLASSES.DISABLED:""} ${r}`.trim()}}}function Ct(e){const t={size:"md",disabled:!1,invalid:!1,valid:!1,...e};return{defaultProps:t,generateTextareaClass:e=>{const{size:a=t.size,variant:n=t.variant,disabled:s=t.disabled,invalid:i=t.invalid,valid:r=t.valid,className:o=""}=e;let l="";return i?l=p.b4.CLASSES.INVALID:r&&(l=p.b4.CLASSES.VALID),`${p.b4.CLASSES.BASE} ${"md"===a?"":"sm"===a?p.b4.CLASSES.SMALL:p.b4.CLASSES.LARGE} ${n?"c-input--"+n:""} ${l} ${s?p.b4.CLASSES.DISABLED:""} ${o}`.trim()}}}function Nt({isOpen:e,onOpenChange:t,onOpen:a,onClose:n}={}){const[s,i]=(0,u.useState)(!1),r=void 0!==e,o=r?!!e:s;(0,u.useEffect)((()=>{r&&i(!!e)}),[e,r]);const l=(0,u.useCallback)((e=>{r||i(e),t&&t(e),e&&a?a():!e&&n&&n()}),[r,t,a,n]),c=(0,u.useCallback)((()=>{l(!0)}),[l]),d=(0,u.useCallback)((()=>{l(!1)}),[l]),m=(0,u.useCallback)((()=>{l(!o)}),[o,l]);return{isOpen:o,open:c,close:d,toggle:m}}function Lt(e){return{defaultOptions:{items:[],divider:p.ic.DEFAULTS.DIVIDER,className:"",ariaLabel:"Breadcrumb",...e},generateBreadcrumbClass:e=>{const{className:t=""}=e;return[p.ic.CLASSES.BASE,t].filter(Boolean).join(" ").trim()},generateItemClass:(e,t)=>[p.ic.CLASSES.ITEM,e.active||t?p.ic.CLASSES.ACTIVE:""].filter(Boolean).join(" ").trim(),isItemLink:(e,t)=>!(!e.href||e.active||t),parseItemsFromJson:e=>{try{return JSON.parse(e)}catch(t){return[]}}}}const xt=(e={})=>{const{elevationEffect:t=!1,elevationClass:a=p.PE.CLASSES.ACTIVE,flipEffect:n=!1,flipTrigger:s="click",focusEffect:i=!1,clickable:r=!1,onClick:o}=e,l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)(null),[m,h]=(0,u.useState)(!1),[g,_]=(0,u.useState)(!1),[S,E]=(0,u.useState)(!1),[v,b]=(0,u.useState)(!1),f=(0,u.useCallback)((e=>{n&&"click"===s&&h((e=>!e)),o&&o(e)}),[n,s,o]),C=(0,u.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n&&"click"===s&&h((e=>!e)),o&&o(e))}),[n,s,o]),N=(0,u.useCallback)((()=>{b(!0),t&&_(!0),n&&"hover"===s&&h(!0)}),[t,n,s]),L=(0,u.useCallback)((()=>{b(!1),t&&_(!1),n&&"hover"===s&&h(!1)}),[t,n,s]),x=(0,u.useCallback)((()=>{E(!0)}),[]),T=(0,u.useCallback)((()=>{E(!1)}),[]),A=(0,u.useCallback)((()=>({className:[p.PE.CLASSES.BASE,g?a:"",m?p.PE.CLASSES.FLIPPED:"",S&&i?p.PE.CLASSES.FOCUSED:"",r?p.PE.CLASSES.CLICKABLE:""].filter(Boolean).join(" "),ref:l,tabxwIndex:r||n?0:-1,role:r?"button":void 0,onMouseEnter:N,onMouseLeave:L,onFocus:x,onBlur:T,onClick:f,onKeyDown:C})),[g,m,S,a,i,r,N,L,x,T,f,C,n]);return{cardRef:l,frontRef:c,backRef:d,isFlipped:m,isElevated:g,isFocused:S,isHovered:v,handleClick:f,handleKeyDown:C,handleMouseEnter:N,handleMouseLeave:L,handleFocus:x,handleBlur:T,getCardProps:A}},Tt=({options:e=[],value:t,onChange:a,onBlur:n,onFocus:s,placeholder:i="Select an option",className:r="",disabled:o=!1,required:l=!1,id:c,name:d,size:m="md",invalid:h=!1,valid:_=!1,multiple:S=!1,ariaLabel:E,ariaDescribedBy:v})=>{const{generateSelectClass:b}=ft({size:m,disabled:o,invalid:h,valid:_}),f=b({className:r,size:m,disabled:o,invalid:h,valid:_}),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(i),T=(0,u.useRef)(null),A=(0,u.useRef)(null),I=(0,u.useRef)(null),O=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if(t){const a=e.find((e=>e.value===t));a&&x(a.label)}else x(i)}),[t,e,i]),(0,u.useEffect)((()=>{const e=e=>{T.current&&!T.current.contains(e.target)&&(N(!1),I.current&&(I.current.style.height="0px"))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,g.jsxs)("div",{className:`${f} ${C?p.Th.CLASSES.IS_OPEN:""}`,ref:T,"aria-expanded":C,children:[(0,g.jsxs)("select",{ref:O,value:t,onChange:a,onBlur:n,onFocus:s,disabled:o,required:l,id:c,name:d,multiple:S,"aria-label":E,"aria-describedby":v,"aria-invalid":h,style:{display:"none"},children:[i&&(0,g.jsx)("option",{value:"",disabled:!0,children:i}),e.map((e=>(0,g.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))]}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECTED,onClick:()=>{o||(!C&&I.current&&A.current?I.current.style.height=A.current.clientHeight+"px":I.current&&(I.current.style.height="0px"),N(!C))},"aria-disabled":o,children:L}),(0,g.jsx)("i",{className:`${p.Th.CLASSES.ICON_CARET} ${p.Th.CLASSES.TOGGLE_ICON}`}),(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_BODY,ref:I,style:{height:0},children:(0,g.jsx)("div",{className:p.Th.CLASSES.SELECT_PANEL,ref:A,children:(0,g.jsx)("ul",{className:p.Th.CLASSES.SELECT_ITEMS,children:e.map(((e,n)=>(0,g.jsx)("li",{className:p.Th.CLASSES.SELECT_ITEM,"data-value":e.value,onClick:()=>!e.disabled&&(e=>{x(e.label),N(!1),I.current&&(I.current.style.height="0px"),O.current&&(O.current.value=e.value),a&&a({target:{name:d,value:e.value}})})(e),children:(0,g.jsxs)("label",{htmlFor:"SelectItem"+n,className:"c-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:"SelectItem"+n,className:"c-checkbox__input c-select__item-input",checked:t===e.value,readOnly:!0,disabled:e.disabled}),(0,g.jsx)("div",{className:"c-select__item-label",children:e.label})]})},e.value)))})})})]})};Tt.displayName="Select";const At=Tt,It=({items:e,activeIndex:t=0,vertical:n=!1,className:s=""})=>{const[i,r]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return a.e(202).then(a.bind(a,6202)).then((({default:e})=>{o.current&&(l.current=new e(o.current,{activeIndex:i,vertical:n}))})),()=>{l.current&&l.current.destroy()}}),[]),(0,u.useEffect)((()=>{i!==t&&(r(t),l.current&&l.current.setActive(t))}),[t]),(0,g.jsx)("div",{className:`c-steps ${n?p.UT.CLASSES.VERTICAL:""} ${s}`,ref:o,role:"navigation","aria-label":"Steps",children:e.map(((e,t)=>(0,g.jsxs)("div",{className:`c-steps__item ${t>i?"":p.UT.CLASSES.ACTIVE} ${i>t?p.UT.CLASSES.COMPLETED:""}`,"aria-current":t===i?"step":void 0,children:[(0,g.jsx)("div",{className:"c-steps__line"}),(0,g.jsxs)("div",{className:"c-steps__content",children:[(0,g.jsx)("div",{className:"c-steps__number",children:e.number}),(0,g.jsx)("div",{className:"c-steps__text",children:e.text}),e.content&&(0,g.jsx)("div",{className:"c-steps__custom-content",children:e.content})]})]},"step-"+t)))})};It.displayName="Steps";const Ot=It,yt=({items:e,activeIndex:t=p.wn.DEFAULTS.ACTIVE_INDEX,onTabChange:n,className:s=""})=>{const[i,r]=(0,u.useState)(t),o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"!=typeof window&&o.current)return a.e(54).then(a.bind(a,5054)).then((({default:e})=>{o.current&&(l.current=new e(o.current))})),()=>{l.current&&l.current.destroy()}}),[]),(0,g.jsxs)("div",{className:"c-tabs js-atomix-tab "+s,ref:o,children:[(0,g.jsx)("ul",{className:"c-tabs__nav",children:e.map(((e,t)=>(0,g.jsx)("li",{className:"c-tabs__nav-item",children:(0,g.jsx)("button",{className:"c-tabs__nav-btn "+(t===i?p.wn.CLASSES.ACTIVE:""),onClick:()=>(e=>{r(e),n&&n(e)})(t),"data-tabindex":t,role:"tab","aria-selected":t===i,"aria-controls":"tab-panel-"+t,children:e.label})},"tab-nav-"+t)))}),(0,g.jsx)("div",{className:"c-tabs__panels",children:e.map(((e,t)=>(0,g.jsx)("div",{className:"c-tabs__panel "+(t===i?p.wn.CLASSES.ACTIVE:""),"data-tabindex":t,id:"tab-panel-"+t,role:"tabpanel","aria-labelledby":"tab-nav-"+t,style:{height:t===i?"auto":"0px",opacity:t===i?1:0,overflow:"hidden",transition:"height 0.3s ease, opacity 0.3s ease"},children:(0,g.jsx)("div",{className:"c-tabs__panel-body",children:e.content})},"tab-panel-"+t)))})]})};yt.displayName="Tab";const Rt=yt,wt=({quote:e,author:t,size:n="",skeleton:s=!1,className:i=""})=>{const r=(0,u.useRef)(null),o=(0,u.useRef)(null);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&r.current)return a.e(894).then(a.bind(a,3894)).then((({default:e})=>{r.current&&(o.current=new e(r.current,{size:n,skeleton:s}))})),()=>{o.current&&o.current.destroy()}}),[n,s]);const l=["c-testimonial","sm"===n?p.sr.CLASSES.SMALL:"","lg"===n?p.sr.CLASSES.LARGE:"",i].filter(Boolean).join(" ");return(0,g.jsxs)("div",s?{className:l,ref:r,children:[(0,g.jsxs)("blockquote",{className:"c-testimonial__quote",children:[(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton"}),(0,g.jsx)("span",{className:"c-skeleton u-w-75"}),(0,g.jsx)("span",{className:"c-skeleton u-w-25"})]}),(0,g.jsxs)("div",{className:"c-testimonial__author",children:[(0,g.jsx)("span",{className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle c-skeleton"}),(0,g.jsxs)("div",{className:"c-testimonial__info u-w-75",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:(0,g.jsx)("span",{className:"c-skeleton u-w-25"})})]})]})]}:{className:l,ref:r,children:[(0,g.jsx)("blockquote",{className:"c-testimonial__quote",children:e}),t&&(0,g.jsxs)("div",{className:"c-testimonial__author",children:[t.avatarSrc&&(0,g.jsx)("img",{src:t.avatarSrc,alt:t.avatarAlt||"",className:"c-testimonial__author-avatar c-avatar c-avatar--xxl c-avatar--circle"}),(0,g.jsxs)("div",{className:"c-testimonial__info",children:[(0,g.jsx)("p",{className:"c-testimonial__author-name",children:t.name}),(0,g.jsx)("p",{className:"c-testimonial__author-role",children:t.role})]})]})]})};wt.displayName="Testimonial";const kt=wt,jt=({value:e,onChange:t,onBlur:a,onFocus:n,placeholder:s,className:i="",disabled:r=!1,required:o=!1,readOnly:l=!1,id:c,name:d,rows:u=4,cols:m,maxLength:p,minLength:h,size:_="md",variant:S,invalid:E=!1,valid:v=!1,autoFocus:b=!1,ariaLabel:f,ariaDescribedBy:C})=>{const{generateTextareaClass:N}=Ct({size:_,variant:S,disabled:r,invalid:E,valid:v}),L=N({className:i,size:_,variant:S,disabled:r,invalid:E,valid:v});return(0,g.jsx)("textarea",{className:L,value:e,onChange:t,onBlur:a,onFocus:n,placeholder:s,disabled:r,required:o,readOnly:l,id:c,name:d,rows:u,cols:m,maxLength:p,minLength:h,autoFocus:b,"aria-label":f,"aria-describedby":C,"aria-invalid":E})};jt.displayName="Textarea";const Dt=jt,Mt=({items:e=[],title:t="Todo List",onAddTodo:a,onToggleTodo:n,onDeleteTodo:s,size:i="md",placeholder:r="Add a new todo",showCompleted:o=!0,className:l="",disabled:c=!1})=>{const{inputText:d,setInputText:m,generateTodoClasses:p,generateItemClasses:h}=vt({items:e,title:t,size:i,placeholder:r,showCompleted:o,disabled:c}),[_,S]=(0,u.useState)(e);(0,u.useEffect)((()=>{S(e)}),[e]);const E=o?_:_.filter((e=>!e.completed)),v=p({size:i,className:l,disabled:c});return(0,g.jsxs)("div",{className:v,children:[t&&(0,g.jsx)("h2",{className:"c-todo__title",children:t}),(0,g.jsx)("form",{className:"c-todo__form",onSubmit:e=>{if(e.preventDefault(),c||!d.trim())return;const t={id:Et(),text:d.trim(),completed:!1};S((e=>[...e,t])),a&&a(d),m("")},children:(0,g.jsxs)("div",{className:"c-todo__form-group",children:[(0,g.jsx)("input",{type:"text",className:"c-todo__input c-input",placeholder:r,value:d,onChange:e=>m(e.target.value),disabled:c,"aria-label":"Add a new todo"}),(0,g.jsx)("button",{type:"submit",className:"c-todo__add-btn c-btn c-btn--primary",disabled:c||!d.trim(),"aria-label":"Add todo",children:(0,g.jsx)(b,{name:"Plus",size:"sm"})})]})}),(0,g.jsx)("ul",{className:"c-todo__list",children:0===E.length?(0,g.jsx)("li",{className:"c-todo__empty",children:"No items to display"}):E.map((e=>(0,g.jsx)("li",{className:h(e),children:(0,g.jsxs)("div",{className:"c-todo__item-content",children:[(0,g.jsxs)("label",{className:"c-todo__checkbox-label",children:[(0,g.jsx)("input",{type:"checkbox",className:"c-todo__checkbox c-checkbox",checked:e.completed,onChange:()=>{return t=e.id,void(c||(S((e=>e.map((e=>e.id===t?{...e,completed:!e.completed}:e)))),n&&n(t)));var t},disabled:c,"aria-label":`Mark "${e.text}" as ${e.completed?"incomplete":"complete"}`}),(0,g.jsx)("span",{className:"c-todo__item-text",children:e.text})]}),(0,g.jsx)("button",{type:"button",className:"c-todo__delete-btn c-btn c-btn--error c-btn--sm",onClick:()=>{return t=e.id,void(c||(S((e=>e.filter((e=>e.id!==t)))),s&&s(t)));var t},disabled:c,"aria-label":`Delete "${e.text}"`,children:(0,g.jsx)(b,{name:"Trash",size:"sm"})})]})},e.id)))})]})};Mt.displayName="Todo";const Pt=Mt,Bt=({initialOn:e=!1,onToggleOn:t,onToggleOff:n,disabled:s=!1,className:i=""})=>{const[r,o]=(0,u.useState)(e),l=(0,u.useRef)(null),c=(0,u.useRef)(null);return(0,u.useEffect)((()=>{if("undefined"==typeof window||!l.current)return;a.e(897).then(a.bind(a,897)).then((({default:e})=>{l.current&&(c.current=new e(l.current))}));const s=()=>{o(!0),t&&t()},i=()=>{o(!1),n&&n()},r=l.current;return r?.addEventListener("toggle:on",s),r?.addEventListener("toggle:off",i),e&&c.current&&c.current.turnOn(),()=>{r?.removeEventListener("toggle:on",s),r?.removeEventListener("toggle:off",i),c.current&&c.current.destroy()}}),[e,t,n]),(0,u.useEffect)((()=>{c.current&&(r?c.current.turnOn():c.current.turnOff())}),[r]),(0,g.jsx)("div",{className:`c-toggle ${r?p.DR.CLASSES.IS_ON:""} ${s?"is-disabled":""} ${i}`,ref:l,role:"switch","aria-checked":r,tabIndex:s?-1:0,"aria-disabled":s,children:(0,g.jsx)("div",{className:"c-toggle__switch"})})};Bt.displayName="Toggle";const $t=Bt,zt={trigger:p.UB.DEFAULTS.TRIGGER,position:p.UB.DEFAULTS.POSITION,offset:p.UB.DEFAULTS.OFFSET,delay:p.UB.DEFAULTS.DELAY,activeClass:p.UB.CLASSES.IS_ACTIVE,contentIdAttr:p.UB.ATTRIBUTES.CONTENT_ID,positionAttr:p.UB.ATTRIBUTES.POSITION,triggerAttr:p.UB.ATTRIBUTES.TRIGGER};class Ft{selector;$element;$trigger;$content;options;timeout;hideTimeout;isActive=!1;constructor(e,t={}){this.selector=e||p.UB.SELECTORS.TOOLTIP,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...zt,...t},this.timeout=null,this.hideTimeout=null,this.$trigger=null,this.$content=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._setPosition(),this._bindEvents())}_initializeElements(){if(!this.$element)return;const e=this.$element.parentElement;if(!e)return;this.$trigger=e.querySelector(p.UB.SELECTORS.TRIGGER),this.$content=this.$element.querySelector(p.UB.SELECTORS.CONTENT);const t=this.$element.getAttribute(this.options.positionAttr);t&&(this.options.position=t);const a=this.$element.getAttribute(this.options.triggerAttr);a&&(this.options.trigger=a)}_setPosition(){if(!this.$content||!this.$element)return;switch(this.$element.classList.remove(p.UB.CLASSES.TOP,p.UB.CLASSES.BOTTOM,p.UB.CLASSES.LEFT,p.UB.CLASSES.RIGHT,p.UB.CLASSES.TOP_LEFT,p.UB.CLASSES.TOP_RIGHT,p.UB.CLASSES.BOTTOM_LEFT,p.UB.CLASSES.BOTTOM_RIGHT),this.options.position){case"top":default:this.$element.classList.add(p.UB.CLASSES.TOP);break;case"bottom":this.$element.classList.add(p.UB.CLASSES.BOTTOM);break;case"left":this.$element.classList.add(p.UB.CLASSES.LEFT);break;case"right":this.$element.classList.add(p.UB.CLASSES.RIGHT);break;case"top-left":this.$element.classList.add(p.UB.CLASSES.TOP_LEFT);break;case"top-right":this.$element.classList.add(p.UB.CLASSES.TOP_RIGHT);break;case"bottom-left":this.$element.classList.add(p.UB.CLASSES.BOTTOM_LEFT);break;case"bottom-right":this.$element.classList.add(p.UB.CLASSES.BOTTOM_RIGHT)}const e=this.options.offset;switch(this.options.position){case"top":case"top-left":case"top-right":default:this.$element.style.bottom=e+"px";break;case"bottom":case"bottom-left":case"bottom-right":this.$element.style.top=e+"px";break;case"left":this.$element.style.right=e+"px";break;case"right":this.$element.style.left=e+"px"}}_bindEvents(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.addEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.addEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.addEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.addEventListener("blur",this._handleTriggerLeave.bind(this)))}_handleTriggerEnter(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.timeout||(this.timeout=window.setTimeout((()=>{this.show(),this.timeout=null}),this.options.delay))}_handleTriggerLeave(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout=window.setTimeout((()=>{this.hide(),this.hideTimeout=null}),this.options.delay)}_handleTriggerClick(){this.$element&&this.$element.classList.contains(this.options.activeClass)?this.hide():this.show()}isInitialized(){return!!this.$element&&!!this.$trigger}isVisible(){return this.isActive}getElement(){return this.$element}getTriggerElement(){return this.$trigger}getPosition(){return this.options.position}setPosition(e){this.options.position!==e&&(this.options.position=e,this._setPosition())}show(){if(!this.$element)return;const e=new CustomEvent("tooltip:show",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.add(this.options.activeClass),this.isActive=!0)}hide(){if(!this.$element)return;const e=new CustomEvent("tooltip:hide",{bubbles:!0,cancelable:!0,detail:{tooltip:this}});this.$element.dispatchEvent(e),e.defaultPrevented||(this.$element.classList.remove(this.options.activeClass),this.isActive=!1)}destroy(){this.$trigger&&("hover"===this.options.trigger?(this.$trigger.removeEventListener("mouseenter",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("mouseleave",this._handleTriggerLeave.bind(this))):"click"===this.options.trigger&&this.$trigger.removeEventListener("click",this._handleTriggerClick.bind(this)),this.$trigger.removeEventListener("focus",this._handleTriggerEnter.bind(this)),this.$trigger.removeEventListener("blur",this._handleTriggerLeave.bind(this)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.$element&&this.$element.classList.remove(this.options.activeClass))}static initializeAll(e=p.UB.SELECTORS.TOOLTIP,t={}){const a=document.querySelectorAll(e);return Array.from(a).map((e=>new Ft(e,t)))}}const Ut=({content:e,children:t,position:a=p.UB.DEFAULTS.POSITION,trigger:n=p.UB.DEFAULTS.TRIGGER,className:s="",delay:i=p.UB.DEFAULTS.DELAY,offset:r=p.UB.DEFAULTS.OFFSET})=>{const o=(0,u.useRef)(null),l=(0,u.useRef)(null);return(0,u.useEffect)((()=>(o.current&&(l.current=new Ft(o.current,{position:a,trigger:n,delay:i,offset:r})),()=>{l.current&&l.current.destroy()})),[a,n,i,r]),(0,g.jsxs)("div",{className:"u-position-relative u-d-inline-block",children:[(0,g.jsx)("div",{className:`${p.UB.SELECTORS.TRIGGER.substring(1)}${s?" "+s:""}`,children:t}),(0,g.jsx)("div",{className:"c-tooltip "+p.UB.SELECTORS.TOOLTIP.substring(1),ref:o,"data-tooltip-position":a,"data-tooltip-trigger":n,children:(0,g.jsxs)("div",{className:"c-tooltip__content "+p.UB.SELECTORS.CONTENT.substring(1),children:[(0,g.jsx)("span",{className:p.UB.SELECTORS.ARROW.substring(1)}),e]})})]})};Ut.displayName="Tooltip";const Gt=Ut,Vt=({disabled:e=!1,maxSizeInMB:t=5,acceptedFileTypes:n=["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:s=!1,title:i="Drag and Drop files here",supportedFilesText:r="Files supported: PDF, XSLS, JPEG, PNG, Scanner",buttonText:o="Choose File",helperText:l=`Maximum size: ${t}MB`,icon:c=(0,g.jsx)("i",{className:"icon-lux-cloud-arrow-up-fill"}),onFileSelect:d,onFileUpload:m,onFileUploadComplete:h,onFileUploadError:_,className:S=""})=>{const E=(0,u.useRef)(null),v=(0,u.useRef)(null),b=(0,u.useRef)(null),[f,C]=(0,u.useState)("idle"),[N,L]=(0,u.useState)(!1),[x,T]=(0,u.useState)(null),[A,I]=(0,u.useState)(0),[O,y]=(0,u.useState)(null),[R,w]=(0,u.useState)(null),[k,j]=(0,u.useState)(null),D=(0,u.useRef)(0);(0,u.useEffect)((()=>{if("undefined"!=typeof window&&E.current)return a.e(308).then(a.bind(a,3308)).then((({default:a})=>{E.current&&(b.current=new a(E.current,{disabled:e,maxSizeInMB:t,acceptedFileTypes:n,multiple:s,onFileSelect:d,onFileUpload:(e,t)=>{I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)},onFileUploadComplete:e=>{C("success"),j("Upload successful"),h&&h(e)},onFileUploadError:(e,t)=>{C("error"),w(t),_&&_(e,t)}}))})),()=>{b.current&&b.current.destroy()}}),[e,t,n,s,d,m,h,_]);const M=e=>{if(!e.length)return;const t=(s?e:[e[0]]).filter((e=>P(e)));t.length&&d&&d(t),t.length&&(T(t[0]||null),t[0]&&B(t[0]))},P=e=>e.size>1024*t*1024?(C("error"),w(`File too large. Maximum size is ${t}MB.`),!1):!(n?.length&&!n.some((t=>{if(t.endsWith("/*")){const a=t.split("/")[0];return e.type.startsWith(a+"/")}return e.type===t})))||(C("error"),w("File type not supported."),!1),B=e=>{C("loading"),I(0);let t=0;const a=setInterval((()=>{t+=5,100>t?(I(t),y(Math.ceil((100-t)/5)+" seconds left"),m&&m(e,t)):(clearInterval(a),C("success"),j("Upload successful"),h&&h(e))}),500)},$=["c-upload",e?p.oH.CLASSES.DISABLED:"","loading"===f?p.oH.CLASSES.LOADING:"","success"===f?p.oH.CLASSES.SUCCESS:"","error"===f?p.oH.CLASSES.ERROR:"",N?p.oH.CLASSES.DRAGGING:"",S].filter(Boolean).join(" ");return(0,g.jsxs)("div",{className:$,ref:E,style:A>0?{[p.oH.ATTRIBUTES.PERCENTAGE]:A}:{},onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current++,1===D.current&&L(!0))},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),e||(D.current--,0===D.current&&L(!1))},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),e)return;if(D.current=0,L(!1),!t.dataTransfer.files?.length)return;const a=Array.from(t.dataTransfer.files);M(a)},children:[(0,g.jsxs)("div",{className:"c-upload__inner",children:[(0,g.jsx)("div",{className:"c-upload__icon",children:c}),(0,g.jsx)("h3",{className:"c-upload__title",children:i}),(0,g.jsx)("p",{className:"c-upload__text",children:r}),(0,g.jsx)("button",{className:"c-upload__btn c-btn c-btn--primary",disabled:e,onClick:()=>{v.current&&!e&&v.current.click()},children:o}),(0,g.jsx)("p",{className:"c-upload__helper-text",children:l}),(0,g.jsx)("input",{ref:v,type:"file",accept:n.join(","),multiple:s,style:{display:"none"},onChange:e=>{if(!e.target.files?.length)return;const t=Array.from(e.target.files);M(t)}})]}),("loading"===f||"success"===f||"error"===f)&&x&&(0,g.jsxs)("div",{className:"c-upload__loader",children:[(0,g.jsxs)("div",{className:"c-upload__loader-status",children:[(0,g.jsx)("h5",{className:"c-upload__loader-title",children:x.name}),(0,g.jsxs)("div",{className:"c-upload__loader-progress",children:["loading"===f&&100>A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"c-upload__loader-par",children:[A,"%"]}),O&&(0,g.jsx)("div",{className:"c-upload__loader-time",children:O})]}),"success"===f&&k,"error"===f&&R]})]}),(0,g.jsxs)("div",{className:"c-upload__loader-control",children:["loading"===f&&100>A&&(0,g.jsx)("div",{className:"c-upload__loader-bar",children:(0,g.jsxs)("svg",{children:[(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"}),(0,g.jsx)("circle",{cx:"10",cy:"10",r:"10"})]})}),(0,g.jsx)("button",{className:"c-upload__loader-close c-btn c-btn--icon",onClick:()=>{C("idle"),T(null),I(0),y(null),w(null),j(null),v.current&&(v.current.value="")},children:(0,g.jsx)("i","success"===f?{className:"icon-lux-check-circle-fill"}:{className:"icon-lux-x"})})]})]})]})};Vt.displayName="Upload";const Yt=Vt,Ht=s,Xt=n,Wt=r,qt=o,Kt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:a,alignItems:n,noGutters:s,...i},r)=>{const o=["o-grid"];return a&&o.push("u-justify-content-"+a),n&&o.push("u-align-items-"+n),s&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:r,className:o.join(" "),...i,children:e})}));Kt.displayName="Grid";const Zt=(0,u.forwardRef)((({children:e,className:t="",xs:a,sm:n,md:s,lg:i,xl:r,xxl:o,offsetXs:l,offsetSm:c,offsetMd:d,offsetLg:u,offsetXl:m,offsetXxl:p,...h},_)=>{const S=a||n||s||i||r||o?["o-grid__col"]:["o-grid__col","o-grid__col--auto"];return a&&S.push("auto"===a?"o-grid__col--auto":"o-grid__col--"+a),n&&S.push("auto"===n?"o-grid__col--sm-auto":"o-grid__col--sm-"+n),s&&S.push("auto"===s?"o-grid__col--md-auto":"o-grid__col--md-"+s),i&&S.push("auto"===i?"o-grid__col--lg-auto":"o-grid__col--lg-"+i),r&&S.push("auto"===r?"o-grid__col--xl-auto":"o-grid__col--xl-"+r),o&&S.push("auto"===o?"o-grid__col--xxl-auto":"o-grid__col--xxl-"+o),l&&S.push("o-grid__offset--"+l),c&&S.push("o-grid__offset--sm-"+c),d&&S.push("o-grid__offset--md-"+d),u&&S.push("o-grid__offset--lg-"+u),m&&S.push("o-grid__offset--xl-"+m),p&&S.push("o-grid__offset--xxl-"+p),t&&S.push(t),(0,g.jsx)("div",{ref:_,className:S.join(" "),...h,children:e})}));Zt.displayName="GridCol";const Jt=(0,u.forwardRef)((({children:e,className:t="",type:a,...n},s)=>{let i="o-container";return a&&(i="o-container-"+a),(0,g.jsx)("div",{ref:s,className:`${i} ${t}`.trim(),...n,children:e})}));Jt.displayName="Container";const Qt=(0,u.forwardRef)((({children:e,className:t="",justifyContent:a,alignItems:n,noGutters:s,...i},r)=>{const o=["o-grid"];return a&&o.push("u-justify-content-"+a),n&&o.push("u-align-items-"+n),s&&o.push("o-grid--no-gutters"),t&&o.push(t),(0,g.jsx)("div",{ref:r,className:o.join(" "),...i,children:e})}));Qt.displayName="Row";const ea=(0,u.forwardRef)((({children:e,className:t="",xs:a=1,sm:n,md:s,lg:i,xl:r,xxl:o,gap:l=16,animate:c=!0,imagesLoaded:d=!0,onLayoutComplete:p,onImageLoad:h,..._},S)=>{const[E,v]=(0,u.useState)(a),[b,f]=(0,u.useState)([]),[C,N]=(0,u.useState)(!1),[L,x]=(0,u.useState)(!1),T=(0,u.useRef)(null),A=(0,u.useRef)([]),I=(0,u.useRef)(0),O=(0,u.useRef)(0),y=(0,u.useRef)(new Map);(0,u.useEffect)((()=>{x(!!d)}),[E,d]),(0,u.useImperativeHandle)(S,(()=>T.current));const R=(0,u.useCallback)((()=>{const e=window.innerWidth;return 1400>e||void 0===o?1200>e||void 0===r?992>e||void 0===i?768>e||void 0===s?576>e||void 0===n?a:n:s:i:r:o}),[a,n,s,i,r,o]);(0,u.useEffect)((()=>{const e=()=>v(R());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[R]);const[w,k]=(0,u.useState)([]);(0,u.useEffect)((()=>{const t=[];u.Children.forEach(e,((e,a)=>{(0,u.isValidElement)(e)&&t.push({id:e.key?.toString()||"masonry-item-"+a,element:e,position:null,ref:m().createRef()})})),k(t)}),[e]);const j=(0,u.useCallback)((e=>{if(!y.current.get(e)){if(y.current.set(e,!0),I.current+=1,T.current&&d){const t=e.closest(".o-masonry-grid > div");t&&(t.classList.add("o-masonry-grid__item-loaded"),t.classList.remove("o-masonry-grid__item-loading"))}requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))})),h?.(I.current,O.current),I.current>=O.current&&O.current>0&&(N(!0),x(!1),requestAnimationFrame((()=>{requestAnimationFrame((()=>{M(),x(!1)}))})),p?.())}}),[h,p,d]),D=(0,u.useCallback)((()=>{if(!d||!T.current)return;y.current.clear(),I.current=0;const e=T.current.querySelectorAll("img");return O.current=e.length,0===e.length?(N(!0),x(!1),void p?.()):(x(!0),e.forEach((e=>{const t=e,a=e.closest(".o-masonry-grid > div");if(a&&a.classList.add("o-masonry-grid__item-loading"),e.complete)j(e);else{const a=()=>j(e);e.addEventListener("load",a),e.addEventListener("error",a),t._masonryLoadHandler=a}})),()=>{e.forEach((e=>{const t=e;t._masonryLoadHandler&&(e.removeEventListener("load",t._masonryLoadHandler),e.removeEventListener("error",t._masonryLoadHandler),delete t._masonryLoadHandler)}))})}),[d,j,p]),M=(0,u.useCallback)((()=>{if(!T.current||0===w.length)return;const e=(T.current.offsetWidth-l*(E-1))/E;A.current=Array(E).fill(0);const t=[];w.forEach(((a,n)=>{if(a.ref.current){const s=A.current.indexOf(Math.min(...A.current)),i=s*(e+l),r=A.current[s],o=a.ref.current.offsetHeight;A.current[s]=r+o+l,t[n]={left:i,top:r,width:e,height:o}}})),f(t)}),[w,E,l]);(0,u.useEffect)((()=>{if(!T.current)return;let e=null;const t=new ResizeObserver((()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame((()=>M()))}));return t.observe(T.current),()=>{t.disconnect(),e&&cancelAnimationFrame(e)}}),[M]),m().useLayoutEffect((()=>d?D():(M(),N(!0),void x(!1))),[w,E,M,d,D]),m().useEffect((()=>{const e=[];return w.forEach((t=>{if(t.ref.current){const a=new ResizeObserver((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{M()}))}))}));a.observe(t.ref.current),e.push(a)}})),()=>{e.forEach((e=>e.disconnect()))}}),[w,M]);const P=A.current.length>0?Math.max(...A.current):0,B=["o-masonry-grid",t,c?"o-masonry-grid--animate":"",L?"o-masonry-grid--loading-images":""].filter(Boolean).join(" ");return(0,g.jsx)("div",{ref:T,className:B,style:{position:"relative",width:"100%",height:P+"px",..._.style},..._,children:w.map(((e,t)=>{const a=b[t];return(0,g.jsx)("div",a?{ref:e.ref,className:"o-masonry-grid__item",style:{position:"absolute",left:a.left+"px",top:a.top+"px",width:a.width+"px",opacity:1},children:e.element}:{ref:e.ref,style:{opacity:0,position:"absolute"},children:e.element},e.id)}))})}));ea.displayName="MasonryGrid";const ta=(0,u.forwardRef)((({children:e,className:t="",...a},n)=>{const s=["o-masonry-grid__item-inner"];return t&&s.push(t),(0,g.jsx)("div",{ref:n,className:s.join(" "),...a,children:e})}));ta.displayName="MasonryGridItem";const aa={...l,...c},na={...i,composables:Ht,utils:Xt,constants:qt,types:Wt,layouts:d}}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e].call(a.exports,a,a.exports,l),a.exports}l.m=r,n=[],l.O=(e,t,a,s)=>{if(!t){var i=1/0;for(d=0;n.length>d;d++){for(var[t,a,s]=n[d],r=!0,o=0;t.length>o;o++)(!1&s||i>=s)&&Object.keys(l.O).every((e=>l.O[e](t[o])))?t.splice(o--,1):(r=!1,i>s&&(i=s));if(r){n.splice(d--,1);var c=a();void 0!==c&&(e=c)}}return e}s=s||0;for(var d=n.length;d>0&&n[d-1][2]>s;d--)n[d]=n[d-1];n[d]=[t,a,s]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,a)=>(l.f[a](e,t),t)),[])),l.u=e=>"js/chunks/umd/"+e+"."+{54:"7fdfb4a031989470a70d",202:"5017dd0403d696bf1644",308:"4bc14b9d7b16b6ee0ab8",619:"84a0c35ecee695250085",690:"d7041094a34a4a434be2",894:"c127ee4e9513c22ee97d",897:"26932ac837a39fc91907"}[e]+".js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},i="Atomix:",l.l=(e,t,a,n)=>{if(s[e])s[e].push(t);else{var r,o;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;c.length>d;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==i+a){r=u;break}}r||(o=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,l.nc&&r.setAttribute("nonce",l.nc),r.setAttribute("data-webpack",i+a),r.src=e),s[e]=[t];var m=(t,a)=>{r.onerror=r.onload=null,clearTimeout(p);var n=s[e];if(delete s[e],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach((e=>e(a))),t)return t(a)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=m.bind(null,r.onerror),r.onload=m.bind(null,r.onload),o&&document.head.appendChild(r)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e+"../"})(),(()=>{var e={792:0};l.f.j=(t,a)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)a.push(n[2]);else{var s=new Promise(((a,s)=>n=e[t]=[a,s]));a.push(n[2]=s);var i=l.p+l.u(t),r=Error();l.l(i,(a=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;r.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",r.name="ChunkLoadError",r.type=s,r.request=i,n[1](r)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,a)=>{var n,s,[i,r,o]=a,c=0;if(i.some((t=>0!==e[t]))){for(n in r)l.o(r,n)&&(l.m[n]=r[n]);if(o)var d=o(l)}for(t&&t(a);i.length>c;c++)l.o(e,s=i[c])&&e[s]&&e[s][0](),e[s]=0;return l.O(d)},a=this.webpackChunkAtomix=this.webpackChunkAtomix||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var c=l.O(void 0,[987],(()=>l(7943)));return l.O(c)})()));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=202,exports.ids=[202],exports.modules={6202:function(t,e,i){i.r(e),i.d(e,{initializeSteps:function(){return l}});var s=i(188);const n={activeIndex:0,vertical:!1};class c{selector;$element;options;$items;activeIndex;constructor(t,e={}){this.selector=t||s.UT.SELECTORS.STEPS,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...e},this.$items=null,this.activeIndex=this.options.activeIndex||0,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this.options.vertical&&!this.$element.classList.contains(s.UT.CLASSES.VERTICAL)&&this.$element.classList.add(s.UT.CLASSES.VERTICAL),this.setActive(this.activeIndex))}_initializeElements(){this.$element&&(this.$items=this.$element.querySelectorAll(s.UT.SELECTORS.ITEM))}setActive(t){this.$items&&t>=0&&this.$items.length>t&&(this.$items.forEach(((e,i)=>{t>i?(e.classList.add(s.UT.CLASSES.ACTIVE),e.classList.add(s.UT.CLASSES.COMPLETED)):i===t?(e.classList.add(s.UT.CLASSES.ACTIVE),e.classList.remove(s.UT.CLASSES.COMPLETED)):(e.classList.remove(s.UT.CLASSES.ACTIVE),e.classList.remove(s.UT.CLASSES.COMPLETED))})),this.activeIndex=t)}next(){(this.$items?.length||0)-1>this.activeIndex&&this.setActive(this.activeIndex+1)}previous(){this.activeIndex>0&&this.setActive(this.activeIndex-1)}destroy(){}}function l(t=s.UT.SELECTORS.STEPS,e={}){const i=[],n=document.querySelectorAll(t);return n.length?(n.forEach((t=>{try{const s=new c(t,e);i.push(s)}catch(s){}})),i):i}e.default=c}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=308,exports.ids=[308],exports.modules={3308:function(e,t,s){s.r(t),s.d(t,{initializeUploads:function(){return o}});var i=s(188);const n={disabled:!1,maxSizeInMB:5,acceptedFileTypes:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:!1};class l{selector;$element;$input;$button;$loader;$loaderTitle;$loaderProgress;$loaderClose;options;currentFile;dragCounter;constructor(e,t={}){this.selector=e||i.oH.SELECTORS.UPLOAD,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...n,...t},this.$input=null,this.$button=null,this.$loader=null,this.$loaderTitle=null,this.$loaderProgress=null,this.$loaderClose=null,this.currentFile=null,this.dragCounter=0,this._initialize()}_initialize(){this.$element&&(this._createHiddenInput(),this.$button=this.$element.querySelector(i.oH.SELECTORS.BUTTON),this.$loader=this.$element.querySelector(i.oH.SELECTORS.LOADER),this.$loaderTitle=this.$element?.querySelector(i.oH.SELECTORS.LOADER_TITLE),this.$loaderProgress=this.$element?.querySelector(i.oH.SELECTORS.LOADER_PROGRESS),this.$loaderClose=this.$element?.querySelector(i.oH.SELECTORS.LOADER_CLOSE),this.options.disabled&&this.disable(),this._setupEventListeners())}_createHiddenInput(){if(!this.$element)return;const e=document.createElement("input");e.type="file",e.style.display="none",e.accept=this.options.acceptedFileTypes?.join(",")||"",e.multiple=!!this.options.multiple,this.$element.appendChild(e),this.$input=e}_setupEventListeners(){this.$element&&this.$input&&this.$button&&(this.$button.addEventListener("click",this._handleButtonClick.bind(this)),this.$input.addEventListener("change",this._handleFileSelect.bind(this)),this.$element.addEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.addEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.addEventListener("dragover",this._handleDragOver.bind(this)),this.$element.addEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.addEventListener("click",this._handleClose.bind(this)))}_handleButtonClick(e){e.preventDefault(),this.$input&&!this.options.disabled&&this.$input.click()}_handleFileSelect(e){if(!this.$input?.files?.length)return;const t=Array.from(this.$input.files);this._processFiles(t)}_handleDragEnter(e){e.preventDefault(),this.options.disabled||(this.dragCounter++,1===this.dragCounter&&this.$element?.classList.add(i.oH.CLASSES.DRAGGING))}_handleDragLeave(e){e.preventDefault(),this.options.disabled||(this.dragCounter--,0===this.dragCounter&&this.$element?.classList.remove(i.oH.CLASSES.DRAGGING))}_handleDragOver(e){e.preventDefault()}_handleDrop(e){if(e.preventDefault(),this.options.disabled)return;if(this.dragCounter=0,this.$element?.classList.remove(i.oH.CLASSES.DRAGGING),!e.dataTransfer?.files.length)return;const t=Array.from(e.dataTransfer.files);this._processFiles(t)}_handleClose(e){e.preventDefault(),this.setStatus("idle"),this.setFile(null),this.$input&&(this.$input.value="")}_processFiles(e){if(!e.length)return;const t=(this.options.multiple?e:[e[0]]).filter((e=>this._validateFile(e)));t.length&&this.options.onFileSelect&&this.options.onFileSelect(t),t.length&&(this.setFile(t[0]),this._simulateUpload(t[0]))}_validateFile(e){return e.size>1024*(this.options.maxSizeInMB||5)*1024?(this.setStatus("error",`File too large. Maximum size is ${this.options.maxSizeInMB}MB.`),!1):!(this.options.acceptedFileTypes?.length&&!this.options.acceptedFileTypes.some((t=>{if(t.endsWith("/*")){const s=t.split("/")[0];return e.type.startsWith(s+"/")}return e.type===t})))||(this.setStatus("error","File type not supported."),!1)}_simulateUpload(e){this.setStatus("loading");let t=0;const s=setInterval((()=>{t+=5,100>t?(this.setProgress(t,Math.ceil((100-t)/5)+" seconds left"),this.options.onFileUpload&&this.options.onFileUpload(e,t)):(clearInterval(s),this.setStatus("success","Upload successful"),this.options.onFileUploadComplete&&this.options.onFileUploadComplete(e))}),500)}setFile(e){this.currentFile=e,e&&this.$loaderTitle&&(this.$loaderTitle.textContent=e.name)}setProgress(e,t){if(!this.$element||!this.$loaderProgress)return;this.$element.style.setProperty(i.oH.ATTRIBUTES.PERCENTAGE,""+e);const s=this.$element.querySelector(i.oH.SELECTORS.LOADER_PAR),n=this.$element.querySelector(i.oH.SELECTORS.LOADER_TIME);s&&(s.textContent=e+"%"),n&&t&&(n.textContent=t)}setStatus(e,t){if(this.$element){switch(this.$element.classList.remove(i.oH.CLASSES.LOADING,i.oH.CLASSES.SUCCESS,i.oH.CLASSES.ERROR),e){case"loading":this.$element.classList.add(i.oH.CLASSES.LOADING);break;case"success":this.$element.classList.add(i.oH.CLASSES.SUCCESS);break;case"error":this.$element.classList.add(i.oH.CLASSES.ERROR)}t&&this.$loaderProgress&&(this.$loaderProgress.textContent=t)}}disable(){this.$element&&this.$button&&(this.$element.classList.add(i.oH.CLASSES.DISABLED),this.$button.disabled=!0,this.options.disabled=!0)}enable(){this.$element&&this.$button&&(this.$element.classList.remove(i.oH.CLASSES.DISABLED),this.$button.disabled=!1,this.options.disabled=!1)}destroy(){this.$element&&this.$input&&this.$button&&(this.$button.removeEventListener("click",this._handleButtonClick.bind(this)),this.$input.removeEventListener("change",this._handleFileSelect.bind(this)),this.$element.removeEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.removeEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.removeEventListener("dragover",this._handleDragOver.bind(this)),this.$element.removeEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.removeEventListener("click",this._handleClose.bind(this)),this.$input.parentNode&&this.$input.parentNode.removeChild(this.$input))}}function o(e=i.oH.SELECTORS.UPLOAD,t={}){const s=[],n=document.querySelectorAll("string"==typeof e?e:i.oH.SELECTORS.UPLOAD);return n.length?(n.forEach((e=>{try{const i=new l(e,t);s.push(i)}catch(i){}})),s):s}t.default=l}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=54,exports.ids=[54],exports.modules={5054:function(t,s,e){e.r(s),e.d(s,{initializeTabs:function(){return l}});var i=e(188);const n={navItems:i.wn.SELECTORS.NAV_ITEMS,navBtn:i.wn.SELECTORS.NAV_BTN,panels:i.wn.SELECTORS.PANELS,panelBodys:i.wn.SELECTORS.PANEL_BODIES,activeClass:i.wn.CLASSES.ACTIVE,activeIndex:i.wn.DEFAULTS.ACTIVE_INDEX};class a{selector;$element;options;$navItems;$panels;$panelBodys;constructor(t,s={}){this.selector=t||i.wn.SELECTORS.TAB,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...s},this.$navItems=null,this.$panels=null,this.$panelBodys=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._showTab(this.options.activeIndex),this._bindEvents())}_initializeElements(){this.$element&&(this.$navItems=this.$element.querySelectorAll(this.options.navItems),this.$panels=this.$element.querySelectorAll(this.options.panels),this.$panelBodys=this.$element.querySelectorAll(this.options.panelBodys))}_bindEvents(){this.$navItems&&this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.addEventListener("click",(()=>this._handleTabClick(s)))}))}_handleTabClick(t){const s=t.dataset.tabindex;void 0!==s&&(this._hideAllTabs(),this._showTab(s))}_hideAllTabs(){this.$panels&&this.$navItems&&(this.$panels.forEach((t=>{t.style.height="0px",t.classList.remove(this.options.activeClass),t.style.opacity="0"})),this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.classList.remove(this.options.activeClass)})))}_showTab(t){this.$panels&&this.$navItems&&this.$panelBodys&&(this.$panels.forEach(((s,e)=>{if(s.dataset.tabindex==""+t){const t=this.$panelBodys?.[e];t&&(s.classList.add(this.options.activeClass),requestAnimationFrame((()=>{s.style.height=t.clientHeight+"px",s.style.opacity="1"})))}})),this.$navItems.forEach(((s,e)=>{const i=s.querySelector(this.options.navBtn);i&&i.dataset.tabindex==""+t&&i.classList.add(this.options.activeClass)})))}destroy(){this.$element&&this.$navItems&&this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.removeEventListener("click",(()=>this._handleTabClick(s)))}))}}function l(t=i.wn.SELECTORS.TAB,s={}){const e=[],n=document.querySelectorAll(t);return n.length?(n.forEach((t=>{try{const i=new a(t,s);e.push(i)}catch(i){}})),e):e}s.default=a}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=619,exports.ids=[619],exports.modules={5619:function(e,t,s){s.r(t),s.d(t,{initializeRivers:function(){return r}});var n=s(188);const i={center:!1,breakout:!1,reverse:!1,showOverlay:!0};class o{$element;options;constructor(e,t={}){this.$element=e,this.options={...i,...t},this.init()}init(){this.options.contentWidth&&this.$element.style.setProperty(n.zN.ATTRIBUTES.CONTENT_WIDTH,this.options.contentWidth),this.options.backgroundImageSrc&&this.setupBackgroundImage()}setupBackgroundImage(){if(!this.$element||!this.options.backgroundImageSrc)return;let e=this.$element.querySelector(n.zN.SELECTORS.BG);if(!e){e=document.createElement("div"),e.className=n.zN.SELECTORS.BG.replace(".","");const t=document.createElement("img");if(t.src=this.options.backgroundImageSrc,t.alt="Background",t.className=n.zN.SELECTORS.BG_IMAGE.replace(".",""),e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className=n.zN.SELECTORS.OVERLAY.replace(".",""),e.appendChild(t)}this.$element.firstChild?this.$element.insertBefore(e,this.$element.firstChild):this.$element.appendChild(e)}}destroy(){}}function r(e=n.zN.SELECTORS.RIVER,t={}){const s=[],i=document.querySelectorAll("string"==typeof e?e:n.zN.SELECTORS.RIVER);return i.length?(i.forEach((e=>{try{const n=new o(e,t);s.push(n)}catch(n){}})),s):s}t.default=o}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=690,exports.ids=[690],exports.modules={3690:function(e,t,s){s.r(t),s.d(t,{initializeSectionIntros:function(){return c}});var i=s(188);const n={alignment:"left",showOverlay:!1,size:"md",skeleton:!1};class o{selector;$element;options;constructor(e,t={}){this.selector=e||i.DJ.SELECTORS.SECTION_INTRO,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...n,...t},this._initialize()}_initialize(){if(this.$element&&("center"!==this.options.alignment||this.$element.classList.contains(i.DJ.CLASSES.CENTER)||this.$element.classList.add(i.DJ.CLASSES.CENTER),"sm"!==this.options.size||this.$element.classList.contains(i.DJ.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(i.DJ.CLASSES.LARGE)||this.$element.classList.add(i.DJ.CLASSES.LARGE):this.$element.classList.add(i.DJ.CLASSES.SMALL),this.options.backgroundImageSrc)){let e=this.$element.querySelector(".c-sectionintro__bg");if(!e){e=document.createElement("div"),e.className="c-sectionintro__bg";const t=document.createElement("img");if(t.className="c-sectionintro__bg-image",t.src=this.options.backgroundImageSrc,t.alt="Background",e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className="c-sectionintro__overlay",e.appendChild(t)}this.$element.insertBefore(e,this.$element.firstChild)}}}destroy(){if(this.$element&&(this.$element.classList.remove(i.DJ.CLASSES.CENTER),this.$element.classList.remove(i.DJ.CLASSES.SMALL),this.$element.classList.remove(i.DJ.CLASSES.LARGE),this.options.backgroundImageSrc)){const e=this.$element.querySelector(".c-sectionintro__bg");e&&this.$element.removeChild(e)}}}function c(e=i.DJ.SELECTORS.SECTION_INTRO,t={}){const s=[],n=document.querySelectorAll("string"==typeof e?e:i.DJ.SELECTORS.SECTION_INTRO);return n.length?(n.forEach((e=>{try{const i=new o(e,t);s.push(i)}catch(i){}})),s):s}t.default=o}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=894,exports.ids=[894],exports.modules={3894:function(t,s,e){e.r(s),e.d(s,{initializeTestimonials:function(){return r}});var i=e(188);const n={size:"",skeleton:!1};class o{selector;$element;options;constructor(t,s={}){this.selector=t||i.sr.SELECTORS.TESTIMONIAL,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...s},this._initialize()}_initialize(){this.$element&&("sm"!==this.options.size||this.$element.classList.contains(i.sr.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(i.sr.CLASSES.LARGE)||this.$element.classList.add(i.sr.CLASSES.LARGE):this.$element.classList.add(i.sr.CLASSES.SMALL))}destroy(){}}function r(t=i.sr.SELECTORS.TESTIMONIAL,s={}){const e=[],n=document.querySelectorAll("string"==typeof t?t:i.sr.SELECTORS.TESTIMONIAL);return n.length?(n.forEach((t=>{try{const i=new o(t,s);e.push(i)}catch(i){}})),e):e}s.default=o}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=897,exports.ids=[897],exports.modules={897:function(t,e,s){s.r(e),s.d(e,{initializeToggles:function(){return l}});var n=s(188);class i{element;isOn;constructor(t){this.element=t,this.isOn=!1,this._initialize()}_initialize(){this._bindEvents(),this.element.classList.contains(n.DR.CLASSES.IS_ON)&&(this.isOn=!0)}_bindEvents(){this.element.addEventListener("click",this._handleToggle.bind(this))}_handleToggle(){this.isOn?this.turnOff():this.turnOn()}turnOn(){this.element.classList.add(n.DR.CLASSES.IS_ON),this.isOn=!0,this.element.dispatchEvent(new CustomEvent("toggle:on",{bubbles:!0}))}turnOff(){this.element.classList.remove(n.DR.CLASSES.IS_ON),this.isOn=!1,this.element.dispatchEvent(new CustomEvent("toggle:off",{bubbles:!0}))}destroy(){this.element.removeEventListener("click",this._handleToggle)}}function l(){const t=[],e=document.querySelectorAll(n.DR.SELECTORS.TOGGLE);return e.length?(e.forEach((e=>{try{const s=new i(e);t.push(s)}catch(s){}})),t):t}e.default=i}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[202],{6202:(t,e,i)=>{i.r(e),i.d(e,{default:()=>l,initializeSteps:()=>h});var s=i(188);const n={activeIndex:0,vertical:!1};class c{selector;$element;options;$items;activeIndex;constructor(t,e={}){this.selector=t||s.UT.SELECTORS.STEPS,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...e},this.$items=null,this.activeIndex=this.options.activeIndex||0,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this.options.vertical&&!this.$element.classList.contains(s.UT.CLASSES.VERTICAL)&&this.$element.classList.add(s.UT.CLASSES.VERTICAL),this.setActive(this.activeIndex))}_initializeElements(){this.$element&&(this.$items=this.$element.querySelectorAll(s.UT.SELECTORS.ITEM))}setActive(t){this.$items&&t>=0&&this.$items.length>t&&(this.$items.forEach(((e,i)=>{t>i?(e.classList.add(s.UT.CLASSES.ACTIVE),e.classList.add(s.UT.CLASSES.COMPLETED)):i===t?(e.classList.add(s.UT.CLASSES.ACTIVE),e.classList.remove(s.UT.CLASSES.COMPLETED)):(e.classList.remove(s.UT.CLASSES.ACTIVE),e.classList.remove(s.UT.CLASSES.COMPLETED))})),this.activeIndex=t)}next(){(this.$items?.length||0)-1>this.activeIndex&&this.setActive(this.activeIndex+1)}previous(){this.activeIndex>0&&this.setActive(this.activeIndex-1)}destroy(){}}function h(t=s.UT.SELECTORS.STEPS,e={}){const i=[],n=document.querySelectorAll(t);return n.length?(n.forEach((t=>{try{const s=new c(t,e);i.push(s)}catch(s){}})),i):i}const l=c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[308],{3308:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r,initializeUploads:()=>o});var i=s(188);const n={disabled:!1,maxSizeInMB:5,acceptedFileTypes:["application/pdf","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","image/jpeg","image/png"],multiple:!1};class l{selector;$element;$input;$button;$loader;$loaderTitle;$loaderProgress;$loaderClose;options;currentFile;dragCounter;constructor(e,t={}){this.selector=e||i.oH.SELECTORS.UPLOAD,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...n,...t},this.$input=null,this.$button=null,this.$loader=null,this.$loaderTitle=null,this.$loaderProgress=null,this.$loaderClose=null,this.currentFile=null,this.dragCounter=0,this._initialize()}_initialize(){this.$element&&(this._createHiddenInput(),this.$button=this.$element.querySelector(i.oH.SELECTORS.BUTTON),this.$loader=this.$element.querySelector(i.oH.SELECTORS.LOADER),this.$loaderTitle=this.$element?.querySelector(i.oH.SELECTORS.LOADER_TITLE),this.$loaderProgress=this.$element?.querySelector(i.oH.SELECTORS.LOADER_PROGRESS),this.$loaderClose=this.$element?.querySelector(i.oH.SELECTORS.LOADER_CLOSE),this.options.disabled&&this.disable(),this._setupEventListeners())}_createHiddenInput(){if(!this.$element)return;const e=document.createElement("input");e.type="file",e.style.display="none",e.accept=this.options.acceptedFileTypes?.join(",")||"",e.multiple=!!this.options.multiple,this.$element.appendChild(e),this.$input=e}_setupEventListeners(){this.$element&&this.$input&&this.$button&&(this.$button.addEventListener("click",this._handleButtonClick.bind(this)),this.$input.addEventListener("change",this._handleFileSelect.bind(this)),this.$element.addEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.addEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.addEventListener("dragover",this._handleDragOver.bind(this)),this.$element.addEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.addEventListener("click",this._handleClose.bind(this)))}_handleButtonClick(e){e.preventDefault(),this.$input&&!this.options.disabled&&this.$input.click()}_handleFileSelect(e){if(!this.$input?.files?.length)return;const t=Array.from(this.$input.files);this._processFiles(t)}_handleDragEnter(e){e.preventDefault(),this.options.disabled||(this.dragCounter++,1===this.dragCounter&&this.$element?.classList.add(i.oH.CLASSES.DRAGGING))}_handleDragLeave(e){e.preventDefault(),this.options.disabled||(this.dragCounter--,0===this.dragCounter&&this.$element?.classList.remove(i.oH.CLASSES.DRAGGING))}_handleDragOver(e){e.preventDefault()}_handleDrop(e){if(e.preventDefault(),this.options.disabled)return;if(this.dragCounter=0,this.$element?.classList.remove(i.oH.CLASSES.DRAGGING),!e.dataTransfer?.files.length)return;const t=Array.from(e.dataTransfer.files);this._processFiles(t)}_handleClose(e){e.preventDefault(),this.setStatus("idle"),this.setFile(null),this.$input&&(this.$input.value="")}_processFiles(e){if(!e.length)return;const t=(this.options.multiple?e:[e[0]]).filter((e=>this._validateFile(e)));t.length&&this.options.onFileSelect&&this.options.onFileSelect(t),t.length&&(this.setFile(t[0]),this._simulateUpload(t[0]))}_validateFile(e){return e.size>1024*(this.options.maxSizeInMB||5)*1024?(this.setStatus("error",`File too large. Maximum size is ${this.options.maxSizeInMB}MB.`),!1):!(this.options.acceptedFileTypes?.length&&!this.options.acceptedFileTypes.some((t=>{if(t.endsWith("/*")){const s=t.split("/")[0];return e.type.startsWith(s+"/")}return e.type===t})))||(this.setStatus("error","File type not supported."),!1)}_simulateUpload(e){this.setStatus("loading");let t=0;const s=setInterval((()=>{t+=5,100>t?(this.setProgress(t,Math.ceil((100-t)/5)+" seconds left"),this.options.onFileUpload&&this.options.onFileUpload(e,t)):(clearInterval(s),this.setStatus("success","Upload successful"),this.options.onFileUploadComplete&&this.options.onFileUploadComplete(e))}),500)}setFile(e){this.currentFile=e,e&&this.$loaderTitle&&(this.$loaderTitle.textContent=e.name)}setProgress(e,t){if(!this.$element||!this.$loaderProgress)return;this.$element.style.setProperty(i.oH.ATTRIBUTES.PERCENTAGE,""+e);const s=this.$element.querySelector(i.oH.SELECTORS.LOADER_PAR),n=this.$element.querySelector(i.oH.SELECTORS.LOADER_TIME);s&&(s.textContent=e+"%"),n&&t&&(n.textContent=t)}setStatus(e,t){if(this.$element){switch(this.$element.classList.remove(i.oH.CLASSES.LOADING,i.oH.CLASSES.SUCCESS,i.oH.CLASSES.ERROR),e){case"loading":this.$element.classList.add(i.oH.CLASSES.LOADING);break;case"success":this.$element.classList.add(i.oH.CLASSES.SUCCESS);break;case"error":this.$element.classList.add(i.oH.CLASSES.ERROR)}t&&this.$loaderProgress&&(this.$loaderProgress.textContent=t)}}disable(){this.$element&&this.$button&&(this.$element.classList.add(i.oH.CLASSES.DISABLED),this.$button.disabled=!0,this.options.disabled=!0)}enable(){this.$element&&this.$button&&(this.$element.classList.remove(i.oH.CLASSES.DISABLED),this.$button.disabled=!1,this.options.disabled=!1)}destroy(){this.$element&&this.$input&&this.$button&&(this.$button.removeEventListener("click",this._handleButtonClick.bind(this)),this.$input.removeEventListener("change",this._handleFileSelect.bind(this)),this.$element.removeEventListener("dragenter",this._handleDragEnter.bind(this)),this.$element.removeEventListener("dragleave",this._handleDragLeave.bind(this)),this.$element.removeEventListener("dragover",this._handleDragOver.bind(this)),this.$element.removeEventListener("drop",this._handleDrop.bind(this)),this.$loaderClose&&this.$loaderClose.removeEventListener("click",this._handleClose.bind(this)),this.$input.parentNode&&this.$input.parentNode.removeChild(this.$input))}}function o(e=i.oH.SELECTORS.UPLOAD,t={}){const s=[],n=document.querySelectorAll("string"==typeof e?e:i.oH.SELECTORS.UPLOAD);return n.length?(n.forEach((e=>{try{const i=new l(e,t);s.push(i)}catch(i){}})),s):s}const r=l}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[54],{5054:(t,s,e)=>{e.r(s),e.d(s,{default:()=>o,initializeTabs:()=>l});var i=e(188);const n={navItems:i.wn.SELECTORS.NAV_ITEMS,navBtn:i.wn.SELECTORS.NAV_BTN,panels:i.wn.SELECTORS.PANELS,panelBodys:i.wn.SELECTORS.PANEL_BODIES,activeClass:i.wn.CLASSES.ACTIVE,activeIndex:i.wn.DEFAULTS.ACTIVE_INDEX};class a{selector;$element;options;$navItems;$panels;$panelBodys;constructor(t,s={}){this.selector=t||i.wn.SELECTORS.TAB,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...s},this.$navItems=null,this.$panels=null,this.$panelBodys=null,this._initialize()}_initialize(){this.$element&&(this._initializeElements(),this._showTab(this.options.activeIndex),this._bindEvents())}_initializeElements(){this.$element&&(this.$navItems=this.$element.querySelectorAll(this.options.navItems),this.$panels=this.$element.querySelectorAll(this.options.panels),this.$panelBodys=this.$element.querySelectorAll(this.options.panelBodys))}_bindEvents(){this.$navItems&&this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.addEventListener("click",(()=>this._handleTabClick(s)))}))}_handleTabClick(t){const s=t.dataset.tabindex;void 0!==s&&(this._hideAllTabs(),this._showTab(s))}_hideAllTabs(){this.$panels&&this.$navItems&&(this.$panels.forEach((t=>{t.style.height="0px",t.classList.remove(this.options.activeClass),t.style.opacity="0"})),this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.classList.remove(this.options.activeClass)})))}_showTab(t){this.$panels&&this.$navItems&&this.$panelBodys&&(this.$panels.forEach(((s,e)=>{if(s.dataset.tabindex==""+t){const t=this.$panelBodys?.[e];t&&(s.classList.add(this.options.activeClass),requestAnimationFrame((()=>{s.style.height=t.clientHeight+"px",s.style.opacity="1"})))}})),this.$navItems.forEach(((s,e)=>{const i=s.querySelector(this.options.navBtn);i&&i.dataset.tabindex==""+t&&i.classList.add(this.options.activeClass)})))}destroy(){this.$element&&this.$navItems&&this.$navItems.forEach((t=>{const s=t.querySelector(this.options.navBtn);s&&s.removeEventListener("click",(()=>this._handleTabClick(s)))}))}}function l(t=i.wn.SELECTORS.TAB,s={}){const e=[],n=document.querySelectorAll(t);return n.length?(n.forEach((t=>{try{const i=new a(t,s);e.push(i)}catch(i){}})),e):e}const o=a}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[619],{5619:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c,initializeRivers:()=>r});var n=s(188);const i={center:!1,breakout:!1,reverse:!1,showOverlay:!0};class o{$element;options;constructor(e,t={}){this.$element=e,this.options={...i,...t},this.init()}init(){this.options.contentWidth&&this.$element.style.setProperty(n.zN.ATTRIBUTES.CONTENT_WIDTH,this.options.contentWidth),this.options.backgroundImageSrc&&this.setupBackgroundImage()}setupBackgroundImage(){if(!this.$element||!this.options.backgroundImageSrc)return;let e=this.$element.querySelector(n.zN.SELECTORS.BG);if(!e){e=document.createElement("div"),e.className=n.zN.SELECTORS.BG.replace(".","");const t=document.createElement("img");if(t.src=this.options.backgroundImageSrc,t.alt="Background",t.className=n.zN.SELECTORS.BG_IMAGE.replace(".",""),e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className=n.zN.SELECTORS.OVERLAY.replace(".",""),e.appendChild(t)}this.$element.firstChild?this.$element.insertBefore(e,this.$element.firstChild):this.$element.appendChild(e)}}destroy(){}}function r(e=n.zN.SELECTORS.RIVER,t={}){const s=[],i=document.querySelectorAll("string"==typeof e?e:n.zN.SELECTORS.RIVER);return i.length?(i.forEach((e=>{try{const n=new o(e,t);s.push(n)}catch(n){}})),s):s}const c=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[690],{3690:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l,initializeSectionIntros:()=>c});var i=s(188);const n={alignment:"left",showOverlay:!1,size:"md",skeleton:!1};class o{selector;$element;options;constructor(e,t={}){this.selector=e||i.DJ.SELECTORS.SECTION_INTRO,this.$element="string"==typeof e?document.querySelector(e):e,this.options={...n,...t},this._initialize()}_initialize(){if(this.$element&&("center"!==this.options.alignment||this.$element.classList.contains(i.DJ.CLASSES.CENTER)||this.$element.classList.add(i.DJ.CLASSES.CENTER),"sm"!==this.options.size||this.$element.classList.contains(i.DJ.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(i.DJ.CLASSES.LARGE)||this.$element.classList.add(i.DJ.CLASSES.LARGE):this.$element.classList.add(i.DJ.CLASSES.SMALL),this.options.backgroundImageSrc)){let e=this.$element.querySelector(".c-sectionintro__bg");if(!e){e=document.createElement("div"),e.className="c-sectionintro__bg";const t=document.createElement("img");if(t.className="c-sectionintro__bg-image",t.src=this.options.backgroundImageSrc,t.alt="Background",e.appendChild(t),this.options.showOverlay){const t=document.createElement("div");t.className="c-sectionintro__overlay",e.appendChild(t)}this.$element.insertBefore(e,this.$element.firstChild)}}}destroy(){if(this.$element&&(this.$element.classList.remove(i.DJ.CLASSES.CENTER),this.$element.classList.remove(i.DJ.CLASSES.SMALL),this.$element.classList.remove(i.DJ.CLASSES.LARGE),this.options.backgroundImageSrc)){const e=this.$element.querySelector(".c-sectionintro__bg");e&&this.$element.removeChild(e)}}}function c(e=i.DJ.SELECTORS.SECTION_INTRO,t={}){const s=[],n=document.querySelectorAll("string"==typeof e?e:i.DJ.SELECTORS.SECTION_INTRO);return n.length?(n.forEach((e=>{try{const i=new o(e,t);s.push(i)}catch(i){}})),s):s}const l=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[894],{3894:(t,s,e)=>{e.r(s),e.d(s,{default:()=>l,initializeTestimonials:()=>c});var i=e(188);const n={size:"",skeleton:!1};class o{selector;$element;options;constructor(t,s={}){this.selector=t||i.sr.SELECTORS.TESTIMONIAL,this.$element="string"==typeof t?document.querySelector(t):t,this.options={...n,...s},this._initialize()}_initialize(){this.$element&&("sm"!==this.options.size||this.$element.classList.contains(i.sr.CLASSES.SMALL)?"lg"!==this.options.size||this.$element.classList.contains(i.sr.CLASSES.LARGE)||this.$element.classList.add(i.sr.CLASSES.LARGE):this.$element.classList.add(i.sr.CLASSES.SMALL))}destroy(){}}function c(t=i.sr.SELECTORS.TESTIMONIAL,s={}){const e=[],n=document.querySelectorAll("string"==typeof t?t:i.sr.SELECTORS.TESTIMONIAL);return n.length?(n.forEach((t=>{try{const i=new o(t,s);e.push(i)}catch(i){}})),e):e}const l=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunkAtomix=this.webpackChunkAtomix||[]).push([[897],{897:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l,initializeToggles:()=>h});var i=s(188);class n{element;isOn;constructor(t){this.element=t,this.isOn=!1,this._initialize()}_initialize(){this._bindEvents(),this.element.classList.contains(i.DR.CLASSES.IS_ON)&&(this.isOn=!0)}_bindEvents(){this.element.addEventListener("click",this._handleToggle.bind(this))}_handleToggle(){this.isOn?this.turnOff():this.turnOn()}turnOn(){this.element.classList.add(i.DR.CLASSES.IS_ON),this.isOn=!0,this.element.dispatchEvent(new CustomEvent("toggle:on",{bubbles:!0}))}turnOff(){this.element.classList.remove(i.DR.CLASSES.IS_ON),this.isOn=!1,this.element.dispatchEvent(new CustomEvent("toggle:off",{bubbles:!0}))}destroy(){this.element.removeEventListener("click",this._handleToggle)}}function h(){const t=[],e=document.querySelectorAll(i.DR.SELECTORS.TOGGLE);return e.length?(e.forEach((e=>{try{const s=new n(e);t.push(s)}catch(s){}})),t):t}const l=n}}]);
|