(self.webpackChunkcms=self.webpackChunkcms||[]).push([[8365],{94692:(e,t,r)=>{var n={"./company_dashboard/action_button_controller.js":65436,"./example_controller.js":88702,"./form/date_range_picker_controller.js":23704,"./form/datepicker_controller.js":31640,"./form/google_location_controller.js":73425,"./form/view_collection_controller.js":43761};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=94692},38205:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n={}},65436:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});r(60228),r(73964),r(36409),r(5399),r(41517),r(88052),r(76034),r(30050),r(21057),r(68932),r(51013),r(40739),r(69373),r(59903),r(59749),r(86544),r(79288),r(84254),r(752),r(21694),r(76265);var n=r(6599),o=r(19704);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,a=void 0,a=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===i(a)?a:String(a)),n)}var o,a}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(l,e);var t,r,n,i=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"update",value:function(e){var t=e.detail.date,r=e.params.updateUrl,n=document.querySelector("#action_date_loader"),i=new o.o(t);n.style.display="block",fetch(r,{method:"POST",dataType:"json",data:{date:i.format("DD-MM-YYYY HH:mm")},credentials:"same-origin"}).finally((function(){n.style.display="none"}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Qr)},88702:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});r(5399),r(41517),r(88052),r(60228),r(76034),r(30050),r(21057),r(68932),r(51013),r(40739),r(69373),r(59903),r(59749),r(86544),r(79288),r(84254),r(752),r(21694),r(76265);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=u(e);if(t){var i=u(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(c,e);var t,r,n,u=a(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return t=c,(r=[{key:"connect",value:function(){this.element.textContent="Edit this example controller in ./assets/controllers/example_controller.js"}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r(6599).Qr)},23704:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});r(64043),r(57267),r(56532),r(34338),r(49693),r(60228),r(47522),r(70560),r(69373),r(59903),r(59749),r(86544),r(21057),r(68932),r(79288),r(40739),r(5399),r(41517),r(88052),r(76034),r(30050),r(51013),r(84254),r(752),r(21694),r(76265);var n=r(6599),o=r(8920),i=r(59693),a=r(18241),u=r(31418),c=r(945),l=r(94959),s=r(77047);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}var h,v,g,w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,r,n,f=y(m);function m(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),f.apply(this,arguments)}return t=m,(r=[{key:"connect",value:function(){var e=this.element.querySelector('[data-element="start"]'),t=this.element.querySelector('[data-element="end"]'),r={element:e,lang:(0,l.M)().replaceAll("_","-"),calendars:2,grid:2,css:["https://cdn.jsdelivr.net/npm/@easepick/range-plugin@1.2.1/dist/index.css","https://cdn.jsdelivr.net/npm/@easepick/lock-plugin@1.2.1/dist/index.css"].concat(window.datepickerCss),date:this.preselectDateValue||null,zIndex:1080,plugins:[o.H,u.g],AmpPlugin:{dropdown:{months:this.monthDropdownValue,years:this.yearDropdownValue,minYear:this.minYearValue,maxYear:this.maxYearValue},darkMode:!1},RangePlugin:{elementEnd:t},format:(0,s.m)(this.showTimeInputValue),setup:function(e){var t=this;document.body.appendChild(e.ui.wrapper),document.querySelectorAll("link[data-easepick]").forEach((function(t){var r=t.cloneNode();e.ui.shadowRoot.appendChild(r)})),e.on("select",(function(e){t.element.classList.add("has-content")}))}};!0===this.showTimeInputValue&&r.plugins.push(i.a),this.rangeMaxDaysValue>0&&(r.plugins.push(c.S),r.LockPlugin={maxDays:this.rangeMaxDaysValue}),new a.mF.create(r)}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(n.Qr);h=w,v="values",g={monthDropdown:Boolean,yearDropdown:Boolean,showTimeInput:Boolean,preselectDate:String,minYear:null|Number,maxYear:null|Number,rangeMaxDays:null|Number},(v=b(v))in h?Object.defineProperty(h,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[v]=g},31640:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});r(64043),r(57267),r(56532),r(34338),r(49693),r(60228),r(47522),r(70560),r(69373),r(59903),r(59749),r(86544),r(21057),r(68932),r(79288),r(40739),r(5399),r(41517),r(88052),r(76034),r(30050),r(51013),r(84254),r(752),r(21694),r(76265);var n=r(6599),o=r(18241),i=r(8920),a=r(59693),u=r(94959),c=r(77047);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function y(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var m,b,h,v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,r,n,l=p(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.apply(this,arguments)}return t=d,(r=[{key:"connect",value:function(){var e=(0,u.M)().replaceAll("_","-"),t={element:this.element,lang:e,css:["https://cdn.jsdelivr.net/npm/@easepick/range-plugin@1.2.1/dist/index.css","https://cdn.jsdelivr.net/npm/@easepick/lock-plugin@1.2.1/dist/index.css"].concat(window.datepickerCss),date:this.preselectDateValue||null,zIndex:1080,plugins:[i.H],AmpPlugin:{dropdown:{months:this.monthDropdownValue,years:this.yearDropdownValue,minYear:this.minYearValue,maxYear:this.maxYearValue},darkMode:!1},format:(0,c.m)(this.showTimeInputValue),setup:function(e){var t=this;document.body.appendChild(e.ui.wrapper),document.querySelectorAll("link[data-easepick]").forEach((function(t){var r=t.cloneNode();e.ui.shadowRoot.appendChild(r)})),e.on("select",(function(e,r,n){t.element.classList.add("has-content");var o=new CustomEvent("date-selected",{detail:e.detail});t.element.dispatchEvent(o)}))}};!0===this.showTimeInputValue&&t.plugins.push(a.a);var r=new o.mF.create(t),n=new CustomEvent("datepicker:initialized");n.datepicker=r,n.datepickerElement=this.element,document.dispatchEvent(n)}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(n.Qr);m=v,b="values",h={monthDropdown:Boolean,yearDropdown:Boolean,showTimeInput:Boolean,preselectDate:String,minYear:null|Number,maxYear:null|Number},(b=y(b))in m?Object.defineProperty(m,b,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[b]=h},73425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});r(34338),r(69373),r(59903),r(59749),r(86544),r(60228),r(21057),r(68932),r(79288),r(40739),r(5399),r(41517),r(88052),r(76034),r(30050),r(51013),r(89730),r(30024),r(12826),r(34284),r(77049),r(21694),r(64043),r(7409),r(84254),r(752),r(76265),r(63975);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=s(e);if(t){var i=s(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}(this,r)}}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,e);var t,r,n,i=c(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return f(l(e=i.call.apply(i,[this].concat(r))),"places",void 0),e}return t=s,(r=[{key:"connect",value:function(){this.searchTarget.setAttribute("placeholder",this.searchTarget.getAttribute("data-placeholder")),this.places=new google.maps.places.Autocomplete(this.searchTarget,{types:["locality"]}),this.places.stimulusController=this,this.places.addListener("place_changed",this.onPlaceChanged)}},{key:"onPlaceChanged",value:function(){var e,t=o(this.getPlace().address_components);try{for(t.s();!(e=t.n()).done;){var r=e.value;switch(r.types[0]){case"locality":this.stimulusController.cityTarget.value=r.long_name;break;case"country":this.stimulusController.countryTarget.value=r.short_name}}}catch(e){t.e(e)}finally{t.f()}}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r(6599).Qr);f(d,"values",{countriesUrl:String}),f(d,"targets",["search","country","city"])},43761:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});r(49693),r(60228),r(47522),r(64043),r(57267),r(25728),r(69373),r(59903),r(59749),r(86544),r(21057),r(68932),r(79288),r(40739),r(5399),r(41517),r(88052),r(76034),r(30050),r(51013),r(84254),r(752),r(21694),r(76265);var n=r(6599),o=r(77530),i=r(19755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(s,e);var t,r,n,a=l(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,(r=[{key:"connect",value:function(){var e=this;this.listTarget.querySelectorAll('[name$="[locale]"]').forEach((function(t){e.disableListitem(t.value)}))}},{key:"addLanguage",value:function(e){var t=e.params,r=t.locale,n=t.localename,a=this.listTarget.childElementCount,u=this.prototypeValue.replace(/__name__/g,a),c=document.createElement("div");c.innerHTML=u,c.querySelector('[name$="[locale]"]').value=r,c.querySelector('[data-bs-toggle="collapse"]').innerText=n,c.querySelectorAll("[data-ckeditor]").forEach((function(e){(0,o.createCkeditor)(e)}));var l=c.children[0];this.listTarget.appendChild(l),this.disableListitem(r),i(l).find(".modal").modal("show")}},{key:"removeLanguage",value:function(e){var t=e.target.closest(".view-item");i(t).find(".modal").modal("hide"),this.enableListitem(t.querySelector('[name$="[locale]"]').value),t.remove()}},{key:"disableListitem",value:function(e){this.dropdownTarget.querySelector("[data-locale=".concat(e,"]")).classList.add("disabled")}},{key:"enableListitem",value:function(e){this.dropdownTarget.querySelector("[data-locale=".concat(e,"]")).classList.remove("disabled")}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Qr);f(d,"values",{prototype:String}),f(d,"targets",["list","dropdown"])},68144:(e,t,r)=>{"use strict";(0,r(42192).x)(r(94692))},77047:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n="DD-MM-YYYY HH:mm",o="DD-MM-YYYY";function i(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n:o}},94959:(e,t,r)=>{"use strict";function n(){return document.documentElement.getAttribute("lang")||"en"}r.d(t,{M:()=>n})},77530:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createCkeditor:()=>a});r(79288),r(60228),r(73964),r(49693),r(47522);var n=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],o={items:["undo","redo","|","heading","|","bold","italic","strikethrough","underline","code","subscript","superscript","removeFormat","|","bulletedList","numberedList","todoList","|","outdent","indent","|","findAndReplace","selectAll","|","fontColor","fontBackgroundColor","highlight","|","alignment","|","link","insertImage","blockQuote","insertTable","mediaEmbed","codeBlock","htmlEmbed","|","specialCharacters","horizontalLine","pageBreak","|","sourceEditing"],shouldNotGroupWhenFull:!0},i={items:["bold","italic","|","link","unlink","|","alignment","|","bulletedList","numberedList","|"],shouldNotGroupWhenFull:!0},a=function(e){var t=Number(e.dataset.config);CKEDITOR.ClassicEditor.create(e,{toolbar:0===t?o:i,heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},image:{toolbar:["imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","ckboxImageEdit"],insert:{integrations:["url"]},upload:{uploadAdapter:{upload:function(){return new Promise.reject("Image upload is disabled.")}}}},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0}],allowEmpty:n},removePlugins:["CKBoxUploadAdapter","CKBoxEditing","CKBoxImageEditEditing","CKBoxImageEdit","SimpleUploadAdapter","CaseChange","ArticlePluginSet","ImageCaption","LinkImage","ExportPdf","ExportWord","AIAssistant","CKBox","CKFinder","EasyImage","Base64UploadAdapter","RealTimeCollaborativeComments","RealTimeCollaborativeTrackChanges","RealTimeCollaborativeRevisionHistory","PresenceList","Comments","TrackChanges","TrackChangesData","RevisionHistory","Pagination","WProofreader","MathType","SlashCommand","Template","DocumentOutline","FormatPainter","TableOfContents","PasteFromOfficeEnhanced"]}).then((function(t){t.model.document.on("change:data",(function(){t.updateSourceElement()})),e.form.addEventListener("submit",(function(t){e.form.reportValidity()}))}))};document.querySelectorAll("[data-ckeditor]").forEach((function(e){return a(e)}))}},e=>{e.O(0,[9755,3555,1660,4755,4552],(()=>{return t=68144,e(e.s=t);var t}));e.O()}]);