1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[21538],{538(e,t,r){r.r(t),r.d(t,{default:()=>n});var i=r(795);let{PluginBaseClass:o}=window;class n extends o{init(){this.$emitter.publish("beforeSetHiddenFieldsForPeriodRequestFormInModalInit"),this._registerEvents(),this.$emitter.publish("afterSetHiddenFieldsForPeriodRequestFormInModalInit")}_registerEvents(){let e=i.A.querySelector(document,".period-request-form-modal-btn",!1);if(!e)return;let t=window.PluginManager.getPluginInstanceFromElement(e,"AjaxModal");t&&t.$emitter.subscribe("ajaxModalOpen",()=>{this.$emitter.publish("beforeSetHiddenFieldsForPeriodRequestFormInModalAjaxModalOpen");let t=e.dataset.formElementId,r=t?`.cms-element-period-request-form #period-request-form-card-body-${t}`:".cms-element-period-request-form",o=i.A.querySelector(document,`${r} .form-hidden-fields`,!1);if(!o)return;let n=e.dataset.origin||"",s=e.dataset.originId||"",a=e.dataset.originName||"",d=document.createElement("input"),l=document.createElement("input"),u=document.createElement("input");d.setAttribute("type","hidden"),d.setAttribute("name","origin"),d.setAttribute("value",n),l.setAttribute("type","hidden"),l.setAttribute("name","originId"),l.setAttribute("value",s),u.setAttribute("type","hidden"),u.setAttribute("name","originName"),u.setAttribute("value",a),o.appendChild(d),o.appendChild(l),o.appendChild(u),this.$emitter.publish("afterSetHiddenFieldsForPeriodRequestFormInModalAjaxModalOpen")})}}},707(e,t,r){r.d(t,{A:()=>i});class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=i.toUpperCamelCase(e,t);return i.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}},795(e,t,r){r.d(t,{A:()=>o});var i=r(707);class o{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!o.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===o.hasAttribute(e,t))throw Error(`The required property "${t}" does not exist!`);if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),s=i.A.toLowerCamelCase(n,"-");if(!o.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[s];if(void 0===a){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return a}return i.A.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(r&&!1===i)throw Error(`The required element "${t}" does not exist in parent node!`);return i}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),r&&!1===i)throw Error(`At least one item of "${t}" must exist in parent node!`);return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=` 2 input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]), 3 select:not([tabindex^="-"]):not([disabled]), 4 textarea:not([tabindex^="-"]):not([disabled]), 5 button:not([tabindex^="-"]):not([disabled]), 6 a[href]:not([tabindex^="-"]):not([disabled]),
7 [tabindex]:not([tabindex^="-"]):not([disabled]) 8 `;return e.querySelectorAll(t)}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}}}]);
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.