1/*! For license information please see 2982.114eaa94.js.LICENSE.txt */ 2"use strict";(self.webpackChunk_sunwebgroup_design_system=self.webpackChunk_sunwebgroup_design_system||[]).push([[2982],{17300(t,e,n){n.d(e,{C:()=>p}),n(65302),n(14758),n(99488),n(2795),n(16667),n(17177),n(66993),n(93555),n(26177),n(98398),n(76341),n(26979),n(36630),n(2851),n(80755),n(4514);var r=n(95265),o=n(19306);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=n(88165).T,u=function(){try{return Object(function(){var t=new Error("Cannot find module '../../../../brands/sunweb/modules/components/box/data/c-absolute-dialog__tokens.json'");throw t.code="MODULE_NOT_FOUND",t}())}catch(t){return{}}}(),f=s(s({},l),u),h={id:"",title:"",body:"",closable:!0,alertType:"default",dialogType:"default",headerSize:"default",attributes:{},extraContent:""},p=function(t){return t=s(s({},h),t),'\n <div id="'.concat(t.id,'" class="c-absolute-dialog\n ').concat((0,o.i)("alertType",t.alertType,f),"\n ").concat((0,o.i)("dialogType",t.dialogType,f),"\n ").concat(t.closable?"c-absolute-dialog--closable":"",'"\n data-js-component="c-absolute-dialog" ').concat(t.attributes?(0,r.cI)(t.attributes):"","> ")+"".concat(t.title?'<div class="c-absolute-dialog__header">\n <h2 class="c-absolute-dialog__title m-heading '.concat((0,o.i)("header__size",t.headerSize,f),'">\n <span class="c-absolute-dialog__title-icon m-icon--').concat((0,o.i)("icon",t.alertType,f),'"></span>\n <span class="c-absolute-dialog__title-text">').concat(t.title,"</span>\n </h2>\n </div>"):"")+"".concat(t.closable?'<span class="m-icon--cross c-absolute-dialog__close" data-js-component="c-absolute-dialog--button"></span>':"")+'<div class="c-absolute-dialog__content m-body--small">\n <div class="c-absolute-dialog__body sp-stack-children--small">'.concat(t.body,"</div>\n </div>\n ").concat(t.extraContent,"\n </div>\n ")}},425(t,e,n){n.r(e),n.d(e,{default:()=>p}),n(65302),n(14758),n(99488),n(2795),n(66993),n(93555),n(19453),n(26177),n(24652),n(36630),n(65254),n(2851),n(4514);var r=n(25139),o=n(71215);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(t,e,n){return e=u(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h={name:"c-absolute-dialog"},p=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c(this,e,[t,h.name])).button=n.element.querySelector('[data-js-component*="'.concat("c-absolute-dialog",'--button"]')),n.bindEvents(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"bindEvents",value:function(){var t=this;this.button&&this.button.addEventListener("click",function(e){t.element.classList.add("is-hidden")}),this.element.addEventListener("webkitTransitionEnd",this.closeDialogIfIsHidden.bind(this)),this.element.addEventListener("msTransitionEnd",this.closeDialogIfIsHidden.bind(this)),this.element.addEventListener("oTransitionEnd",this.closeDialogIfIsHidden.bind(this)),this.element.addEventListener("otransitionend",this.closeDialogIfIsHidden.bind(this)),this.element.addEventListener("transitionend",this.closeDialogIfIsHidden.bind(this))}},{key:"closeDialogIfIsHidden",value:function(){this.element.classList.contains("is-hidden")&&this.closeDialog()}},{key:"closeDialog",value:function(){this.element.parentNode.removeChild(this.element)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A);(0,o.N)(p,h.name,h)},42943(t,e,n){n.d(e,{F:()=>O,E:()=>w}),n(65302),n(14758),n(99488),n(2795),n(16667),n(17177),n(66993),n(62563),n(8293),n(93555),n(261
277),n(98398),n(76341),n(26979),n(36630),n(2851),n(80755),n(4514);var r=n(19306),o=(n(90666),n(59744)),i=n(37480);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function l(t,e,n){return(e=function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=n(95025).r,f=function(){try{return n(12479).r}catch(t){return{}}}(),h=c(c({},u),f),p={id:0,icon:"",size:"",title:"",subtitle:"",isOpened:!1,track:"",collapseAttributes:"",ariaLabelTextForArrow:""};function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(e){y(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(t,e,n){return(e=function(t){var e=function(t){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=n(95025).r,g=function(){try{return n(12479).r}catch(t){return{}}}(),S=b(b({},v),g),w={id:0,size:"",extraClasses:"",items:[]},O=function(t){return t=b(b({},w),t),'\n <div class="c-accordion '.concat((0,r.i)("size",t.size||"default",S)," ").concat(t.extraClasses,'"\n data-c-accordion__id="').concat(t.id,'"> \n ').concat(t.items.map(function(e){return function(t){return t=c(c({},p),t),'<div class="c-accordion__item">\n <div class="c-accordion__item-heading" data-c-collapse__id="'.concat(t.id,'" data-c-collapse__action="toggle">\n ').concat(t.icon?'<span class="m-icon m-icon--'+t.icon+' c-accordion__item-title-icon"></span>':"",'\n <div class="c-accordion__item-title ').concat((0,r.i)("title__material",t.size||"default",h),'">').concat(t.title,"</div>\n ").concat(t.subtitle&&!t.size?'<div class="c-accordion__item-subtitle '+(0,r.i)("subtitle__material",t.size||"default",h)+'">'+t.subtitle+"</div>":"","\n ").concat((0,i.E)(c(c({},i.b),{},{id:t.id,text:"",textPattern:null,arrow:!0,smooth:!0,extraClasses:"c-accordion__item-trigger",ariaLabel:t.ariaLabelTextForArrow})),"\n </div>\n ").concat((0,o.W)(Object.assign({},o.L,{id:t.id,opened:t.isOpened,maxItems:null,childrenWrapper:null,attributes:t.collapseAttributes,extraClasses:"c-accordion__item-collapse",track:t.track,html:'\n <div class="c-accordion__item-content '.concat((0,r.i)("content__material",t.size||"default",h),'">\n ').concat(t.innerHTML?"".concat(t.innerHTML):"","\n </div>\n ")})),"\n</div>")}(b({size:t.size},e))}
2).join(""),"\n </div>\n ")}},87022(t,e,n){n.r(e),n.d(e,{default:()=>b}),n(65302),n(14758),n(99488),n(2795),n(66993),n(93555),n(19453),n(26177),n(24652),n(36630),n(65254),n(2851),n(80755),n(4514);var r=n(25139),o=n(71215),i=n(31077);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function c(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function l(t,e,n){return e=f(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var p={name:"c-actionable-list",props:[]},d="c-actionable-list",m={itemElement:"[data-".concat(d,"__item]"),itemId:"data-".concat(d,"__item_id")},b=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=l(this,e,[t,p.name]);var r=[];return n.element.querySelectorAll(m.itemElement).forEach(function(t){r.push([t,{click:function(t){return n.onClick(t)}}])}),i.A.attachEvents(r,p.name),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(r=[{key:"onClick",value:function(t){var e=t.currentTarget.getAttribute(m.itemId);this.events.emit("selectItem",e)}}])&&s(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A);(0,o.N)(b,p.name,p)},18945(t,e,n){n.d(e,{da:()=>r,de:()=>o,en:()=>i,fr:()=>s,nb:()=>a,nl:()=>c,sv:()=>l});var r={searchingFor:"Searching for"},o={searchingFor:"Suche nach"},i={searchingFor:"Searching for"},a={searchingFor:"Leter etter"},s={searchingFor:"à la recherche de"},c={searchingFor:"Zoeken naar"},l={searchingFor:"Söker efter"}},99457(t,e,n){n.r(e),n.d(e,{default:()=>H}),n(65302),n(14758),n(99488),n(2795),n(16667),n(17177),n(14211),n(29690),n(66993),n(62563),n(8293),n(12925),n(35737),n(62391),n(93555),n(19453),n(26177),n(36343),n(98398),n(76341),n(24652),n(26979),n(36630),n(23535),n(66001),n(69977),n(33768),n(25800),n(97060),n(2851),n(23428),n(22549),n(33969),n(80755),n(4514),n(30845),n(88317),n(43453);var r=n(25213),o=n(82676),i=n(18319),a=n(35507),s=n(31077),c=n(24912),l=n(58447),u=n(25753),f=n(68644),h=n(64752),p=n(72308),d=n(6895),m=n(97534),b=n(52608),y=n(10700),v=n(25139),g=n(95265);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||j(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return E(l,"_invoke",function(n,r,o){var i,s,c,l=0,u=o||[],f=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,s=0,c=t,h.n=n,a}};function p(n,r){for(s=n,c=r,e=0;!f&&l&&!o&&e<u.length;e++){var o,i=u[e],p=h.p,d=i[2];n>3?(o=d===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,h.v=r,h.n=i[1]):p<d&&(o=n<3||i[0]>r||r>d)&&(i[4]=n,i[5]=r,h.n=d,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,u,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,d),s=u,c=d;(e=s<2?t:c)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,c)):h.n=c:h.v=c);try{if(l=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(f=h.n<0)?c:n.call(r,h))!==a)break}catch(e){i=t,s=1,c=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][r]?e(e([][r]())):(E(e={},r,function(){return this}),e),f=l.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,E(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=l,E(f,"constructor",l),E(l,"constructor",c),c.displayName="GeneratorFunction",E(l,o,"GeneratorFunction"),E(f),E(f,o,"Generator"),E(f,r,function(){return this}),E(f,"toString",function(){return"[object Generator]"}),(O=function(){return{w:i,m:h}})()}function E(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}E=function(t,e,n,r){function i(e,n){E(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},E(t,e,n,r)}function _(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function x(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){_(i,r,o,a,s,"next",t)}function s(t){_(i,r,o,a,s,"throw",t)}a(void 0)})}}function j(t,e){if(t){if("string"==typeof t)return k(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){A(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function A(t,e,n){return(e=C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,C(r.key),r)}}function C(t){var e=function(t){if("object"!=S(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}var I=(0,d.k)("window.sundio.i18n.".concat(m.B,".global")),B=(0,d.k)("window.sundio.i18n.".concat(m.B,".autocomplete")),R=window.Request&&"signal"in new window.Request("")?window.fetch:f.fetch,L=n(75583);n(62271);var F="c-autocomplete",M={textBox:"[data-".concat(F,"__textbox]"),floatsFrom:"data-".concat(F,"__floats-from"),forceOpenUntil:"data-".concat(F,"__force-open-until"),track:"data-track"},N=n(28508),z={data:new o.A([]),url:null,urlSearchParam:null,urlParam
2s:{},urlConfig:{credentials:"include",headers:{Accept:"application/json"}},filterAndSort:!0,searchAttributes:[],selection:null,delay:150,minChars:1,maxResults:null,displayAttributes:[],emptyShownResults:!0,emptyShownResultsData:null,cache:!0,minHeight:"120px",maxHeight:"400px",floatsFrom:"xs",forceOpenUntil:null,resultClassName:"c-autocomplete__result",selectedClassName:"is-selected"},H=function(){return t=function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.events=new L,this.options=D(D({},z),o),this.options.floatsFrom=this.element.getAttribute(M.floatsFrom)||this.options.floatsFrom,this.options.forceOpenUntil=this.element.getAttribute(M.forceOpenUntil)||this.options.forceOpenUntil,this.locales=this._getLocales(),this.textBox=this.element.querySelector(M.textBox),this.textBoxApi=this.textBox["c-textbox"],this.textBoxInput=this.textBox.querySelector("input"),this.options.selection&&this.options.selection.model&&(this.selection=this.selection||this.options.selection,this.setSelectionFromModel(this.options.selection.model,this.selection).updateInputValueFromSelection(this.selection)),this.selection=this.selection||this.newSelectionFromInput(),this.tempSelection=null,this.currentSearch=null,this.searchCache=this.options.cache?{}:void 0,this.dataCache=this.options.cache?{}:void 0,this.debouncedInputChange=(0,r.s)(function(){return n.onInputChange()},this.options.delay),this.textBoxApi.events.on("keydown",this.onKeyDown,this),this.textBoxApi.events.on("keyup",this.onKeyUp,this),this.options.disableTextBoxOnBlur||this.textBoxApi.events.on("blur",this.onBlur,this),this.textBoxApi.events.on("focus",this.onFocus,this),this.textBoxApi.events.on("clear",this.resetSelection,this),e[F]={element:this.element,events:this.events,textBox:this.textBox,setOptions:this.setOptions.bind(this),remove:this.remove.bind(this)},b.A.registerComponentEvents(F,this.events,D({},this.element.hasAttribute(M.track)&&{track:this.element.attributes[M.track].value}))},e=[{key:"setOptions",value:function(t){return this.options=D(D({},this.options),t),this.options.selection&&this.setSelectionFromModel(this.options.selection.model,this.options.selection).updateInputValueFromSelection(this.options.selection),this.searchCache=this.options.cache?{}:void 0,this.dataCache=this.options.cache?{}:void 0,this}},{key:"remove",value:function(){s.A.attachEvents(this.resultsElementEvents,F),this.removeResultsElement(),delete this.resultsElement,delete this.element[F]}},{key:"_getLocales",value:function(){var t=document.querySelector('[data-type="i18n"][data-uid="'.concat(this.element.id,'"]')),e=null;try{e=JSON.parse(t.textContent)}catch(t){}return D(D(D({},I),B),e||{})}},{key:"newSelectionFromInput",value:function(){var t=this.isAsyncSearch()?this.options.asyncSearchMinChars:this.options.minChars,e=this.textBoxInput.value.length>=t?this.textBoxInput.value.trim():"";return this.newSelectionFromText(e)}},{key:"newSelectionFromText",value:function(t){return{text:t,model:this.options.data.findWhere(this.options.searchAttributes[0],t)||null,resultElement:null}}},{key:"newSelectionFromModel",value:function(t){return{text:t.getAttribute(this.options.searchAttributes[0]).toString(),model:t,resultElement:null}}},{key:"setSelectionFromModel",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tempSelection;return e&&e.model===t||(e=t?this.newSelectionFromModel(t):{text:"",model:null,resultElement:null}),this}},{key:"setSelectionResultElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tempSelection;if(!t||!t.model)return this;var e=this.resultsElement.querySelector('[data-cid="'.concat(t.model.cid,'"]'))||null;return e?(e.classList.add(this.options.selectedClassName),t.resultElement=e,this):this}},{key:"unsetSelectionResultElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tempSelection;return t.resultElement&&t.resultElement.classList.remove(this.options.selectedClassName),t.resultElement=null,this}},{key:"updateInputValueFromSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tempSelection;return this.textBoxApi.setProp("value",t.model?t.model.getAttribute(this.options.searchAttributes[0]):""),this}},{key:"isAsyncSearch",value:function(){return this.options.url&&this.options.urlSearchParam}},{key:"newEmptySearch",value:function(){return{term:"",termRegExp:null,results:[],resultsShown:this.options.emptyShownResults&&this.options.emptyShownResultsData.length?this.options.emptyShownResultsData:[]}}},{key:"getResults",value:function(t){var e=this,n=[];
2this.options.searchAttributes.forEach(function(r){e.options.data.models.filter(function(e){return N.clean(e.attributes[r]).match(t)}).forEach(function(t){n.includes(t)||n.push(t)})});var r={},o=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[].concat(e).reduce(function(t,e){return t+e},0)},i=function(e){return o.apply(void 0,function(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||j(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){return e&&e.match(t)||[]}(e).map(function(t){return t.length})))};return n.forEach(function(t){r[t.cid]=i(t.getAttribute(e.options.searchAttributes[0]))}),n.sort(function(t,e){var n=r[t.cid],o=r[e.cid];return n<o?1:n>o?-1:0})}},{key:"getSearchFromText",value:(d=x(O().m(function t(e){var n,r,o,i,a,s,c,l;return O().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!this.options.cache||!this.searchCache[e]){t.n=1;break}return this.isAsyncSearch()&&(this.options.data=this.dataCache[e]),t.a(2,this.searchCache[e]);case 1:if(n=this._getSafeText(e),r=this._getSafeText(N.clean(e)),o=this._getRegExp(n),i=this._getRegExp(r),!this.isAsyncSearch()){t.n=6;break}return t.p=2,t.n=3,this.getFreshData(e);case 3:this.options.data=t.v,t.n=5;break;case 4:throw t.p=4,l=t.v,this.asyncSearchInProgress=!1,l;case 5:this.asyncSearchInProgress=!1;case 6:return a=i?this.options.filterAndSort?this.getResults(i):this.options.data.models:[],s=e?this.options.maxResults?a.slice(0,this.options.maxResults):a:this.options.emptyShownResults?this.options.emptyShownResultsData||this.options.data.models:[],c={term:n,termRegExp:o,results:a,resultsShown:s},this.options.cache&&(this.searchCache[e]=c),this.options.cache&&this.isAsyncSearch()&&(this.dataCache[e]=this.options.data),t.a(2,c)}},t,this,[[2,4]])})),function(t){return d.apply(this,arguments)})},{key:"getFreshData",value:(f=x(O().m(function t(e){var n,r;return O().w(function(t){for(;;)switch(t.n){case 0:return this.abortController&&this.abortController.abort(),this.abortController=new window.AbortController,n=new window.URL((0,u.Lo)(this.options.url)),Object.entries(this.options.urlParams).forEach(function(t){var e=w(t,2),r=e[0],o=e[1];n.searchParams.append(r,o)}),n.searchParams.append(this.options.urlSearchParam,e),t.n=1,R(n.href,D({signal:this.abortController.signal},this.options.urlConfig)).then(function(t){return t.json()}).catch(function(t){throw new Error(t)});case 1:return r=t.v,this.abortController=null,t.a(2,new o.A(this.processFreshData(r)))}},t,this)})),function(t){return f.apply(this,arguments)})},{key:"processFreshData",value:function(t){return t}},{key:"updateResults",value:function(){var t=!!this.options.forceOpenUntil&&window.innerWidth<p.A[this.options.forceOpenUntil];return(this.currentSearch||t)&&(t||this.currentSearch.term||this.currentSearch.resultsShown.length||this.asyncSearchInProgress)?this.appendResultsElement().setSelectionResultElement().updateResultsScroll():(this.removeResultsElement(),this)}},{key:"updateResultsScroll",value:function(){return this.tempSelection&&this.currentSearch.resultsShown.includes(this.tempSelection.model)?this.ensureResultVisibility():this.resultsScrollElement.scrollTop=0,this}},{key:"ensureResultVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tempSelection;if(!t.resultElement)return this;var e=(0,i.yV)(this.resultsScrollElement),n=[this.resultsScrollElement.scrollTop,this.resultsScrollElement.scrollTop+e],r=[t.resultElement.offsetTop,t.resultElement.offsetTop+t.resultElement.offsetHeight];return r[0]<n[0]&&(0,a.Jp)(this.resultsScrollElement,0,r[0]-20),r[1]>n[1]&&(0,a.Jp)(this.resultsScrollElement,0,r[1]-e+20),this}},{key:"appendResultsElement",value:function(){return this.resultsElement||(this.resultsElement=(0,c.WF)(this.getResultsElementHtml()),this.resultsElementApi=new l.default(this.resultsElement),this.attachEvents(this.resultsElement)),this.currentSearch=this.currentSearch||this.newEmptySearch(),this.resultsScrollElement=this.resultsElement.querySelector(".c-floating-box__body-content"),this.resultsScrollElement.innerHTML=this.currentSearch.results&&this.currentSearch.results.length?this.getResultsHtml().trim():this.asyncSearchInProgress?this.get
2SearchingResultsHtml().trim():this.getNoResultsHtml().trim(),this.resultsElement.isConnected||this.textBoxInput.parentElement.appendChild(this.resultsElement),this.levitateTextbox(),this.resultsElementApi.getProp("opened")?this.resultsElementApi.adjustSize():this.resultsElementApi.setProp("opened",!0),this.events.emit("open"),v.A.initDocumentComponentsFromAPI(this.resultsElement),v.A.initComponentActionElements(this.resultsElement),this}},{key:"removeResultsElement",value:function(){return this.resultsElement&&this.resultsElementApi?(this.unLevitateTextbox(),this.resultsElementApi.setProp("opened",!1),this.events.emit("close"),this):this}},{key:"levitateTextbox",value:function(){var t=this;if(this.textBoxLevitating||"fixed"!==(0,i.gd)(this.resultsElement,"position"))return this;this.textBoxLevitating=!0;var e=this.textBoxInput.getBoundingClientRect(),n=this.textBoxInput.parentElement.getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth;return this.textBoxInputInitialStyle={width:"".concat(e.width,"px"),position:"fixed",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),zIndex:parseInt((0,i.gd)(this.resultsElement,"z-index"))+1},Object.keys(this.textBoxInputInitialStyle).forEach(function(e){t.textBoxInput.style[e]=t.textBoxInputInitialStyle[e]}),this.textBoxInput.parentElement.style.height="".concat(n.height,"px"),(0,i.V$)(this.textBoxInput),this.textBoxInput.style.transitionDuration=(0,i.gd)(this.resultsElement,"transition-duration"),this.textBoxInput.style.transitionTimingFunction="cubic-bezier(.07, .28, .32, 1.22)",this.textBoxInput.style.transitionProperty="all",(0,i.V$)(this.textBoxInput),this.textBoxInput.style.top="".concat(20,"px"),this.textBoxInput.style.left="".concat(20,"px"),this.textBoxInput.style.width="".concat(r-40,"px"),this.resultsElement.style.paddingTop="".concat(e.height+-40,"px"),this}},{key:"unLevitateTextbox",value:function(){var t=this;if(!this.textBoxLevitating)return this;this.textBoxLevitating=!1,this.textBoxInput.style.transitionTimingFunction="cubic-bezier(.38, -.4, .88, .65)",Object.keys(this.textBoxInputInitialStyle).forEach(function(e){t.textBoxInput.style[e]=t.textBoxInputInitialStyle[e]});var e=function(){["position","left","top","width","height","z-index","transition-duration","transition-timing-function","transition-property"].forEach(function(e){t.textBoxInput.style[e]=null}),t.resultsElement.style.paddingTop=null,t.textBoxInput.parentElement.style.height=null,t.textBoxInput.removeEventListener("transitionend",e,!1)};return this.textBoxInput.addEventListener("transitionend",e,!1),this}},{key:"getModelFromResultElement",value:function(t){if(!t)return null;var e=t.getAttribute("data-cid");return this.options.data.findWhere("cid",e)||null}},{key:"onFocus",value:function(t){this.resultsElementApi&&this.resultsElementApi.getProp("opened")||(this.tempSelection=D({},this.selection),this.resultsElementApi||(this.currentSearch=this.newEmptySearch())),this.asyncSearchInProgress=!1,this.events.emit("focus"),this.updateResults()}},{key:"onInputChange",value:(n=x(O().m(function t(){var e;return O().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e=this.newSelectionFromInput(),!this.tempSelection||e.text!==this.tempSelection.text){t.n=1;break}return t.a(2);case 1:if(this.tempSelection=e,this.tempSelection.text){t.n=2;break}this.currentSearch=this.newEmptySearch(),this.isAsyncSearch()&&(this.asyncSearchInProgress=!1),this.updateResults(),t.n=6;break;case 2:return!this.isAsyncSearch()||this.options.cache&&this.searchCache[this.tempSelection.text]||(this.currentSearch=this.newEmptySearch(),this.asyncSearchInProgress=!0,this.updateResults()),t.p=3,t.n=4,this.getSearchFromText(this.tempSelection.text);case 4:this.currentSearch=t.v,this.updateResults(),t.n=6;break;case 5:t.p=5,t.v,this.currentSearch=this.newEmptySearch();case 6:this.events.emit("change",this.tempSelection);case 7:return t.a(2)}},t,this,[[3,5]])})),function(){return n.apply(this,arguments)})},{key:"submitSelection",value:function(){return this.tempSelection.model&&this.tempSelection.model!==this.selection.model?(this.selection=D({},this.tempSelection),this.onBlur(),this.events.emit("submit",this.selection),this):this}},{key:"resetSelection",value:function(){return this.selection.model?(this.selection={text:"",model:null,resultElement:null},this.events.emit("submit",this.selection),this):this}},{key:"onBlur",value:function(t){this.removeResultsElement(),this.tempSelection=null,this.currentSearch=this.newEmptySearch(),this.updateInputValueFromSelection(this.selection),this.abortController&&(this.abortController.abort(),this.abortController=null)}},{key:"onKeyDown",value:function(t){if(this.resultsElement&&this.resultsElement.isConnected){var e=t.keyCode;if(40===e||38===e){var n=40===e?this.tempSelection.resultElement?this.tempSelection.resultElement.nextElementSibling||this.tempSelection.resultElement:this.resultsElement.querySelector(".".concat(this.options.resultClassName)):this.tempSelection.resultElement?this.tempSelection.resultElement.previousElementSibling||this.tempSelection.resultElement:this.resultsElement.querySelector(".".concat(this.options.resultClassName,":last-child")),r=this.getModelFromResultElement(n);r!==this.tempSelection.model&&(this.tempSelection.model=r,this.unsetSelectionResultElement().setSelectionResultElement().ensureResultVisibility(),this.events.emit("change",this.tempSelection))}
2if(13===e||9===e){if(13===e&&this.isAsyncSearch()&&this.asyncSearchInProgress)return;if(!(13!==e||this.tempSelection&&this.tempSelection.model))return;this.submitSelection(),this.textBoxInput.blur()}27===e&&this.textBoxInput.blur()}}},{key:"onKeyUp",value:function(t){var e=t.keyCode;!e||e>=35&&e<=40||13===e||27===e||9===e||this.debouncedInputChange()}},{key:"onMouseMove",value:function(t){var e=this._findResultByMouseEvent(t);if(e&&this.tempSelection&&e!==this.tempSelection.resultElement){var n=this.getModelFromResultElement(e);n!==this.tempSelection.model&&(this.tempSelection.model=n,this.unsetSelectionResultElement().setSelectionResultElement(),this.events.emit("change",this.tempSelection))}}},{key:"onMouseClick",value:function(t){var e=this._findResultByMouseEvent(t);e&&(this.tempSelection.model=this.getModelFromResultElement(e),this.tempSelection.model?(this.unsetSelectionResultElement().setSelectionResultElement(),this.events.emit("change",this.tempSelection),this.submitSelection()):t.stopPropagation())}},{key:"_findResultByMouseEvent",value:function(t){var e=this;return function(t,n){do{if(t===n)return null;if(t.matches(".".concat(e.options.resultClassName)))return t;t=t.parentElement||t.parentNode}while(null!==t&&t!==n&&1===t.nodeType);return null}(t.target,this.resultsElement)}},{key:"getResultsElementHtml",value:function(){return'\n<div\n class="c-floating-box c-floating-box--with-gradient c-floating-box--floats-from@'.concat(this.options.floatsFrom,' c-autocomplete__floating-box"\n data-c-autocomplete__floating-box=""\n data-js-component="c-floating-box"\n data-c-floating-box__min-height="').concat(this.options.minHeight,'"\n data-c-floating-box__max-height="').concat(this.options.maxHeight,'">\n <div class="c-floating-box__header"></div>\n <div class="c-floating-box__body">\n <div class="c-floating-box__body-content">\n </div>\n </div>\n <div class="c-floating-box__footer">\n <div class="c-autocomplete__actions u-align--right">\n <button type="button" class="c-btn c-btn--flat-neutral c-autocomplete__cancel" data-c-autocomplete__action="cancel">').concat(this.locales.cancel,"</button>\n </div>\n </div>\n</div>")}},{key:"getResultsHtml",value:function(){var t=this;return'\n<ul class="c-autocomplete__results c-autocomplete__results--from-search" role="listbox">\n '.concat(this.currentSearch.resultsShown.map(function(e){return t.getResultHtml(e)}).join(""),"\n</ul>\n")}},{key:"getResultHtml",value:function(t){var e=this;return'\n<li class="c-autocomplete__result" aria-selected="false" data-cid="'.concat(t.cid,'">\n ').concat(this.options.displayAttributes.map(function(n){return t.getAttribute(n)&&e.options.searchAttributes.includes(n)?'\n <span data-attribute="'.concat(n,'">\n ').concat(t.getAttribute(n).toString().replace(e.currentSearch.termRegExp,"<mark>$1</mark>"),"\n </span>"):t.getAttribute(n)?'\n <span data-attribute="'.concat(n,'">\n ').concat(t.getAttribute(n).toString(),"\n </span>"):""}).join(""),"\n</li>\n")}},{key:"getNoResultsHtml",value:function(){var t=this;return this.events.emit(y.sR.NO_RESULTS,{term:this.currentSearch.term}),'\n <ul class="c-autocomplete__results c-autocomplete__results--from-search" role="listbox">\n '.concat(this.currentSearch.term?'<li class="c-autocomplete__result c-autocomplete__result--no-result" aria-selected="false">\n '.concat(this.locales.sorryNoMatches," <mark>").concat((0,g.o4)(this.tempSelection.text),"</mark>\n </li>"):this.currentSearch.resultsShown?this.currentSearch.resultsShown.map(function(e){return t.getResultHtml(e)}).join(""):"","\n </ul>\n ")}},{key:"getSearchingResultsHtml",value:function(){return'\n <ul class="c-autocomplete__results c-autocomplete__results--from-search" role="listbox">\n '.concat(this.tempSelection.text?'<li class="c-autocomplete__result c-autocomplete__result--searching" aria-selected="false">\n '.concat(this.locales.searchingFor," <mark>").concat((0,g.o4)(this.tempSelection.text),"</mark>
2 ...\n ").concat((0,h.m)({size:"tiny",extraClasses:"c-autocomplete__result-loader"}),"\n </li>"):"","\n </ul>\n ")}},{key:"_getSafeText",value:function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"_getRegExp",value:function(t){return t?new RegExp("("+t.split(" ").join("|")+")","gi"):null}},{key:"attachEvents",value:function(t){var e=this;this.resultsElementEvents=[[t,{mousemove:function(t){return e.onMouseMove(t)}}],[t,{mousedown:function(t){return e.onMouseClick(t)}},!0],[t.querySelector('[data-c-autocomplete__action="cancel"]'),{click:function(t){return e.removeResultsElement(t)}}]],s.A.attachEvents(this.resultsElementEvents,F)}},{key:"detachEvents",value:function(){this.resultsElementEvents&&s.A.detachEvents(this.resultsElementEvents,F)}}],e&&T(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,f,d}()},53495(t,e,n){n.r(e),n.d(e,{default:()=>h});var r=n(18319),o=n(6895),i=n(35507),a=o.k("sundio.components"),s="c-backdrop",c="c-backdrop:",l={open:new window.CustomEvent(c+"open"),opened:new window.CustomEvent(c+"opened"),close:new window.CustomEvent(c+"close"),closed:new window.CustomEvent(c+"closed")},u="is-opening",f="is-closing";function h(t){var e=!(t&&t instanceof window.HTMLElement),n=!1;if(e&&(t=document.createElement("div")).classList.add("c-backdrop","c-backdrop--ds"),void 0===t[s]){var o={element:t,open:function(e){t.dispatchEvent(l.open),t.classList.add(u),r.gd(t,"width"),t.classList.add("in"),n||(i.b8(t),n=!n),setTimeout(a,r.gr(r.gd(t,"transition-duration")),e)},close:function(e){t.dispatchEvent(l.close),p(),t.classList.add(f),t.classList.remove("in"),setTimeout(c,r.gr(r.gd(t,"transition-duration")),e)},remove:h,destroy:function(){h(),t[s]=null,delete t[s]}};return t[s]=o,e&&document.body.appendChild(t),o}function a(e){t.classList.remove(u),t.dispatchEvent(l.opened),"function"==typeof e&&e()}function c(e){t.classList.remove(f),t.dispatchEvent(l.closed),"function"==typeof e&&e()}function h(){p(),e&&document.body.removeChild(t)}function p(){n&&(i.sS(t),n=!n)}}a.backdrop=h},58092(t,e,n){n.d(e,{M:()=>p,z:()=>h}),n(65302),n(14758),n(99488),n(2795),n(16667),n(17177),n(66993),n(93555),n(26177),n(98398),n(76341),n(26979),n(36630),n(2851),n(80755),n(4514);var r=n(95265),o=n(19306);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l=n(18431).E,u=function(){try{return Object(function(){var t=new Error("Cannot find module '../../../../brands/sunweb/modules/components/box/data/c-box__tokens.json'");throw t.code="MODULE_NOT_FOUND",t}())}catch(t){return{}}}(),f=s(s({},l),u),h={html:"",variant:"default",extraClasses:"",attributes:{}},p=function(t){return t=s(s({},h),t),'\n <div class="c-box o-box \n '.concat(t.variant?(0,o.i)("variant",t.variant,f):""," \n ").concat(t.extraClasses?t.extraClasses:"",'"\n ').concat(t.attributes?(0,r.cI)(t.attributes):"",'>\n <div class="c-box__content o-box__content ').concat((0,o.i)("space-stack-children","default",f),'">\n ').concat(t.html,"\n </div>\n </div>\n ")}},99717(t,e,n){n.r(e),n.d(e,{default:()=>_}),n(65302),n(14758),n(99488),n(2795),n(17177),n(14211),n(29690),n(66993),n(35737),n(93555),n(19453),n(26177),n(98398),n(76341),n(24652),n(26979),n(36630),n(65254),n(33768),n(25800),n(97060),n(2851),n(22549),n(80755),n(4514);var r=n(25139),o=n(71215),i=n(64752),a=n(24912),s=n(31077),c=n(52608);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?f(Object(n),!0).forEach(function(e){p(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function b(t,e,n){return e=v(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var S="c-btn",w={textElement:".".concat(S,"__text")},O={name:S,props:[{name:"block",type:"boolean",attr:".c-btn--block",defaultValue:!1},{name:"disabled",type:"boolean",attr:"disabled",defaultValue:!1},{name:"icon",type:"string"},{name:"iconPosition",type:"string",allowedValues:["left","right"],defaultValue:"left"},{name:"loading",type:"boolean",defaultValue:!1},{name:"text",type:"string"},{name:"variant",type:"string",attr:".c-btn--",allowedValues:["default","flat","flow","icon-only","neutral","delete"],defaultValue:"default"}]},E="data-track",_=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=b(this,e,[t,O.name]),s.A.attachEvents([[n.element,{click:function(t){return n._onClick(t)}}]],O.name),n.textNode=void 0,n.eventData=n._getEventData(),t[O.name]=h(h({},t[O.name]),{},{getText:n.getText.bind(n),setText:n.setText.bind(n),getIcon:n.getIcon.bind(n),setIcon:n.setIcon.bind(n),getIconPosition:n.getIconPosition.bind(n),setIconPosition:n.setIconPosition.bind(n),getLoading:n.getLoading.bind(n),setLoading:n.setLoading.bind(n),getDataAttributes:n.getDataAttributes.bind(n)}),c.A.registerComponentEvents(O.name,n.events,h({},n.element.hasAttribute(E)&&{track:n.element.attributes[E].value})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,(r=[{key:"getText",value:function(){var t=this._getTextNode(this.element);return t?t.innerText:""}},{key:"setText",value:function(t){var e=this._getTextNode(this.element);e&&(e.innerText=t)}},{key:"getIcon",value:function(){var t,e=this._getIconNode(this.element),n=e?null===(t=function(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.classList).filter(function(t){return t.includes("m-icon--")})[0])||void 0===t?void 0:t.split("m-icon--")[1]:null;return n&&""!==n?n:null}},{key:"setIcon",value:function(t){this._getIconNode(this.element).classList.replace("m-icon--".concat(this.props.icon),"m-icon--".concat(t))}},{key:"getIconPosition",value:function(){return this._getIconNode(this.element)===this.element.firstChild?"left":"right"}},{key:"setIconPosition",value:function(t){this.element.appendChild("left"===t?this._getTextNode(this.element):this._getIconNode(this.element));
2var e="left"===t?"right":"left";this._getIconNode(this.element).classList.replace("c-btn__icon--".concat(e),"c-btn__icon--".concat(t))}},{key:"getLoading",value:function(){return this._getLoadingNode(this.element).parentElement===this.element}},{key:"setLoading",value:function(t){var e=this._getLoadingNode(this.element);e&&(t?(this.element.appendChild(e),this.element.classList.add("c-btn--loading")):(this.element.removeChild(e),this.element.classList.remove("c-btn--loading")))}},{key:"getDataAttributes",value:function(){return this.element.dataset}},{key:"_getEventData",value:function(){var t={};return this.element&&(t.attr=this.element.dataset),t}},{key:"_onClick",value:function(t){var e=t.currentTarget;this.events.emit("clickButton",e,this._getEventData())}},{key:"_getTextNode",value:function(){return this.textNode=this.textNode||this.element.querySelector(w.textElement),this.textNode}},{key:"_getIconNode",value:function(){return this.iconNode=this.iconNode||this.element.querySelector(".c-btn__icon"),this.iconNode}},{key:"_getLoadingNode",value:function(){return this.loadingNode=this.loadingNode||this.element.querySelector(".c-btn__loader")||(0,a.WF)((0,i.m)({size:"tiny",extraClasses:"c-btn__loader"})),this.loadingNode}}])&&d(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A);(0,o.N)(_,O.name,O)},95275(t,e,n){n.r(e),n.d(e,{default:()=>p}),n(65302),n(14758),n(99488),n(2795),n(38597),n(14211),n(66993),n(93555),n(19453),n(26177),n(24652),n(36630),n(65254),n(2851),n(80755),n(4514);var r=n(25139),o=n(71215);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(t,e,n){return e=u(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h={name:"c-button-group",props:[{name:"activeIndex",type:"number"},{name:"activeElement",type:"HTMLElement"},{name:"disabled",type:"boolean",attr:".is-disabled",defaultValue:!1}]},p=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c(this,e,[t,h.name]))._setActiveOnClick();var r=n.getActiveIndex();return n.setProp("activeIndex",-1!==r?r:0),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"getActiveElement",value:function(){return this._getButtonElements()[this.props.activeIndex]}},{key:"getActiveIndex",value:function(){return this._getButtonElements().findIndex(function(t){return t.classList.contains("is-active")})}},{key:"setActiveIndex",value:function(t){this._getButtonElements().forEach(function(e,n){return e.classList[n===t?"add":"remove"]("is-active")});var e=this._getButtonElements()[t];
2this.setProp("activeElement",e,{forceUpdate:!0}),this.events.emit("changeActiveElement",e)}},{key:"_getButtonElements",value:function(){return this.buttonElements=this.buttonElements||Array.from(this.element.querySelectorAll("button")),this.buttonElements}},{key:"_setActiveOnClick",value:function(){var t=this;this._getButtonElements().forEach(function(e,n){return e.addEventListener("click",function(e){t.getProp("disabled")||t.setProp("activeIndex",n)})})}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A);(0,o.N)(p,h.name,h)},3493(t,e,n){n.d(e,{A:()=>g}),n(65302),n(14758),n(99488),n(2795),n(17177),n(14211),n(66993),n(35737),n(93555),n(19453),n(26177),n(98398),n(76341),n(24652),n(26979),n(36630),n(65254),n(69977),n(33768),n(25800),n(2851),n(22549),n(80755),n(4514);var r=n(91923),o=n(97534),i=n(75723),a=n(6895);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function m(t,e,n){return e=y(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,e,[f(f({},{selectedDates:[],selectedDate:"",disabledDates:[],startDate:"",endDate:""}),t)])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(r=[{key:"humanizedSelectedDates",value:function(){var t=(0,i.vz)(this.getAttribute("selectedDates"));if(t.length<=0)return"";
2if(1===t.length)return t[0].toLocaleString(o.B,{day:"numeric",month:"long",year:"numeric"});if(t.length>1){var e=(0,i.t$)(t);if(i.d6.apply(void 0,c(e)))return t[0].toLocaleString(o.B,{month:"long",year:"numeric"});var n=(0,a.k)("window.sundio.i18n.".concat(o.B,".flatpickr.rangeSeparator"))||" - ";if(i.vY.apply(void 0,c(e))){var r=e[1].toLocaleString(o.B,{day:"numeric"});return e[1].toLocaleString(o.B,{day:"numeric",month:"short",year:"numeric"}).replace(RegExp("("+r+")"),e[0].toLocaleString(o.B,{day:"numeric"})+n+"$1")}return e[0].toLocaleString(o.B,f({day:"numeric",month:"short"},i.St.apply(void 0,c(e))?{}:{year:"numeric"}))+n+e[1].toLocaleString(o.B,{day:"numeric",month:"short",year:"numeric"})}}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A)},77401(t,e,n){n.r(e);var r=n(99600),o=n(69867);r.add(function(){o.A.createInstancesOnDocument()})},69867(t,e,n){n.d(e,{A:()=>w}),n(65302),n(14758),n(99488),n(2795),n(17177),n(29690),n(66993),n(8293),n(93555),n(26177),n(98398),n(76341),n(26979),n(36630),n(97060),n(2851),n(80755),n(4514);var r=n(75723),o=n(97534),i=n(6895),a=n(3493),s=n(35570),c=n.n(s);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}var m=n(75583),b="c-calendar",y="".concat(b,"__container"),v="".concat(b,"__input"),g=(0,i.k)("window.sundio.i18n.".concat(o.B,".flatpickr")),S=(0,i.k)("window.sundio.i18n.".concat(o.B,".dates")),w=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.events=new m,this.input=this.element.querySelector('[data-js-api="'.concat(v,'"]')),this.input&&(this.container=this.element.querySelector('[data-js-api="'.concat(y,'"]')),this.calendarDataModel=n instanceof a.A?n:new a.A(n),this.calendarDataModel.events.on("change",this.updateFlatpickr,this),this.flatpickr=this.initFlatpickr(r),e[b]={element:this.element,input:this.input,events:this.events,calendarDataModel:this.calendarDataModel,updateCalendarData:this.updateCalendarData.bind(this),jumpToDate:this.jumpToDate.bind(this),setSelectionPreprocessingCallback:this.setSelectionPreprocessingCallback.bind(this)},this.parentInstance=o)}return e=t,n=[{key:"updateCalendarData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.calendarDataModel=t instanceof a.A?t:new a.A(t),this.updateFlatpickr(),this.calendarDataModel.events.on("change",this.updateFlatpickr,this),this}},{key:"jumpToDate",value:function(t){return this.flatpickr.jumpToDate(t),this}},{key:"initFlatpickr",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={mode:"single",minDate:this.calendarDataModel.getAttribute("startDate"),maxDate:this.calendarDataModel.getAttribute("endDate"),inline:!0,appendTo:this.container||void 0,weekNumbers:S.weekNumbers,locale:g||"en",animate:!1,onChange:function(e,n,r){return t.onCalendarChange(e,n,r)},onDayCreate:function(e,n,r,o){return t.onDayCreate(e,n,r,o)}};n.locale.scrollTitle="";var r=f(f({},n),e);return this.mode=r.mode,r.defaultDate=this.getCalendarSelectedDatesFromModel(),c()(this.input,r)}},{key:"getCalendarSelectedDatesFromModel",value:function(){switch(this.mode){case"single":var t=this.calendarDataModel.getAttribute("selectedDates");return Array.isArray(t)?[t[0]]:[this.calendarDataModel.getAttribute("selectedDate")];case"multiple":return this.calendarDataModel.getAttribute("selectedDates");case"range":var e=this.calendarDataModel.getAttribute("selectedDates");return[(0,r.pg)(e),(0,r.Lu)(e)]}}},{key:"setCalendarSelectedDatesOnModel",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;switch(this.mode){case"single":if(!(t=(0,r.$T)(e[0]))||t===this.calendarDataModel.getAttribute("selectedDate"))break;this.calendarDataModel.setAttributes({selectedDate:t,selectedDates:[t]});break;case"multiple":if(!(t=e.map(function(t){return(0,r.$T)(t)}))||t===this.calendarDataModel.getAttribute("selectedDates"))break;n?this.calendarDataModel.setAttributes({selectedDate:(0,r.Yq)(n),selectedDates:t}):this.calendarDataModel.setAttribute("selectedDates",t);break;case"range":if(!(t=(0,r.aR)(e[0],e[1]).map(function(t){return(0,r.$T)(t)}))||t===this.calendarDataModel.getAttribute("selectedDates"))break;this.calendarDataModel.setAttribute("selectedDates",t)}}},{key:"updateFlatpickr",value:function(){return this.flatpickr.set("minDate",this.calendarDataModel.getAttribute("startDate")),this.flatpickr.set("maxDate",this.calendarDataModel.getAttribute("endDate")),this.flatpickr.setDate(this.getCalendarSelectedDatesFromModel()),this}},{key:"onCalendarChange",value:function(t,e,n){if(!("range"===this.mode&&t.length<2)&&("single"!==this.mode||t.length)&&void 0!==t&&t.length){var r;if(this.selectionPreprocessingCallback){var o=this.selectionPreprocessingCallback(t,this.parentInstance);this.mode=o.mode,r=o.selectedDate,t=o.selectedDates}this.setCalendarSelectedDatesOnModel(t,r),this.flatpickr.redraw()}}},{key:"onDayCreate",value:function(t,e,n,o){var i=(0,r.$T)(o.dateObj);this.calendarDataModel.getAttribute("disabledDates").includes(i)&&(o.className+=" is-disabled "),"single"===this.mode&&this.calendarDataModel.getAttribute("selectedDates").includes(i)&&(o.className+=" is-selection-offset ")}},{key:"setSelectionPreprocessingCallback",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.selectionPreprocessingCallback=t}}],o=[{key:"createInstancesOnDocument",value:function(){for(var e=window.document.querySelectorAll('[data-js-api="'.concat(b,'"]')),n=[],r=0;r<e.length;r++)n.push(t.createInstanceOnElement(e[r]));return n}},{key:"createInstanceOnElement",value:function(e){return new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}],n&&p(e.prototype,n),o&&p(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}()},94047(t,e,n){n.r(e),n.d(e,{default:()=>g}),n(65302),n(14758),n(99488),n(2795),n(17177),n(66993),n(93555),n(19453),n(26177),n(98398),n(76341),n(24652),n(26979),n(36630),n(65254),n(2851),n(80755),n(4514);var r=n(25139),o=n(52608),i=n(71215),a=n(31077);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function h(t,e,n){return e=d(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}
2function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var b={name:"c-card",props:[]},y={titleLinkElement:".".concat(b.name,"__title-link"),titleElement:".".concat(b.name,"__title")},v="data-track",g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=h(this,e,[t,b.name]),a.A.attachEvents([[n.element,{click:function(t){return n._onClick(t)}}]],b.name),n.element[b.name].getTitle=n.getTitle.bind(n),n.element[b.name].getDataAttributes=n.getDataAttributes.bind(n),o.A.registerComponentEvents(b.name,n.events,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n.element.hasAttribute(v)&&{track:n.element.attributes[v].value})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(r=[{key:"getDataAttributes",value:function(){if(this.element)return this.element.dataset}},{key:"_onClick",value:function(t){var e=t.currentTarget;this.events.emit("clickCard",e)}},{key:"getTitle",value:function(){var t=this.element.querySelector(y.titleLinkElement);return t||(t=this.element.querySelector(y.titleElement)),t?t.innerText:""}}])&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.A);(0,i.N)(g,b.name,b)},88165(t){t.exports=JSON.parse('{"T":{"dialogType":{"description":"Defines the dialog type, size and positioning","values":[{"name":"default","class":""},{"name":"toast","class":"c-absolute-dialog--toast"}]},"alertType":{"description":"Defines the alert level","values":[{"name":"default","class":"cs-default"},{"name":"default-dark","class":"c-absolute-dialog--dark cs-default--dark"},{"name":"success","class":"cs-state-success cs-state-success--light"},{"name":"success-white","class":"cs-state-success cs-state-success--white"},{"name":"success-dark","class":"cs-state-success"},{"name":"warning","class":"cs-state-warning cs-state-warning--light"},{"name":"warning-white","class":"cs-state-warning cs-state-warning--white"},{"name":"warning-dark","class":"cs-state-warning"},{"name":"info","class":"cs-state-info cs-state-info--light"},{"name":"info-white","class":"cs-state-info cs-state-info--white"},{"name":"info-dark","class":"cs-state-info"},{"name":"danger","class":"cs-state-error cs-state-error--light"},{"name":"danger-white","class":"cs-state-error cs-state-error--white"},{"name":"danger-dark","class":"cs-state-error"}]},"icon":{"description":"Icon glyph","variantLink":"alertType","values":[{"name":"default","class":""},{"name":"default-dark","class":""},{"name":"success","class":"checkmark"},{"name":"success-white","class":"checkmark"},{"name":"success-dark","class":"checkmark"},{"name":"warning","class":"warning-circle"},{"name":"warning-white","class":"warning-circle"},{"name":"warning-dark","class":"warning-circle"},{"name":"info","class":"information-circle"},{"name":"info-white","class":"information-circle"},{"name":"info-dark","class":"information-circle"},{"name":"danger","class":"warning-triangle"},{"name":"danger-white","class":"warning-triangle"},{"name":"danger-dark","class":"warning-triangle"}]},"header__size":{"description":"Header material size","values":[{"name":"default","class":"m-heading--small"}]}}}')},95025(t){t.exports=JSON.parse('{"r":{"size":{"description":"Accordion Size","values":[{"name":"default","class":""},{"name":"small","class":"c-accordion--small"}]}
2,"title__material":{"description":"Sets the accordion title material related with the size","values":[{"name":"default","class":"m-heading m-heading--tiny"},{"name":"small","class":"m-body m-body--medium"}]},"subtitle__material":{"description":"Sets the accordion subtitle material related with the size","values":[{"name":"default","class":"m-body m-body--small"}]},"content__material":{"description":"Sets the accordion content material related with the size","values":[{"name":"default","class":"m-body m-body--medium"},{"name":"small","class":"m-body m-body--small"}]}}}')},18431(t){t.exports=JSON.parse('{"E":{"variant":{"description":"Box variant","values":[{"name":"default","class":""},{"name":"flat","class":"c-box--flat"},{"name":"arrow","class":"c-box--arrow"}]},"space-stack-children":{"description":"Vertical spacing on child elements","values":[{"name":"default","class":"sp-stack-children--medium"}]}}}')},59517(t){t.exports=JSON.parse('{"r":{"variant":{"description":"Button variant","values":[{"name":"default","class":"c-btn--default"},{"name":"neutral","class":"c-btn--neutral"},{"name":"secondary","class":"c-btn--secondary"},{"name":"flow","class":"c-btn--flow"},{"name":"flat","class":"c-btn--flat"},{"name":"flat-neutral","class":"c-btn--flat-neutral"},{"name":"icon-only","class":"c-btn--icon-only"},{"name":"trust","class":"c-btn--trust"},{"name":"delete","class":"c-btn--flat c-btn--delete"}]},"icon-position":{"description":"Icon position","values":[{"name":"default","class":"c-btn__icon--left"},{"name":"left","class":"c-btn__icon--left"},{"name":"right","class":"c-btn__icon--right"}]}}}')}}]); 3//# sourceMappingURL=2982.114eaa94.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.