geno/wp-content/plugins/elementor/assets/js/announcements-app.min.js

3 lines
27 KiB
JavaScript
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
/*! elementor - v3.18.0 - 20-12-2023 */
/*! For license information please see announcements-app.min.js.LICENSE.txt */
(()=>{var t={92602:(t,r)=>{"use strict";function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}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 u,c=!0,l=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){l=!0,u=t},f:function f(){try{c||null==o.return||o.return()}finally{if(l)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=new Array(r);o<r;o++)a[o]=t[o];return a}Object.defineProperty(r,"__esModule",{value:!0}),r.appsEventTrackingDispatch=void 0;r.appsEventTrackingDispatch=function appsEventTrackingDispatch(t,r){var o=function objectCreator(t,o){var a,i=_createForOfIteratorHelper(t);try{for(i.s();!(a=i.n()).done;){var u=a.value;r.hasOwnProperty(u)&&null!==r[u]&&(o[u]=r[u])}}catch(t){i.e(t)}finally{i.f()}return o},a=[],i=["layout","site_part","error","document_name","document_type","view_type_clicked","tag","sort_direction","sort_type","action","grid_location","kit_name","page_source","element_position","element","event_type","modal_type","method","status","step","item","category","element_location","search_term","section","site_area"],u={},c={};!function init(){o(i,c),o(a,u);var r=t.split("/");u.placement=r[0],u.event=r[1],Object.keys(c).length&&(u.details=c)}(),$e.run(t,u)}},55459:(t,r,o)=>{"use strict";var a=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=Announcement;var i=a(o(87363)),u=a(o(70966)),c=o(69201),l=a(o(23615)),p=["cta"];function Announcement(t){var r=t.announcement,o=t.onClose,a=r.cta,l=(0,u.default)(r,p);return i.default.createElement("div",{className:"announcement-item"},i.default.createElement(c.AnnouncementBody,{announcement:l}),i.default.createElement(c.AnnouncementFooter,{buttons:a,onClose:o}))}Announcement.propTypes={announcement:l.default.object.isRequired,onClose:l.default.func.isRequired}},82427:(t,r,o)=>{"use strict";var a=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=AnnouncementBody;var i=a(o(87363)),u=a(o(23615));function AnnouncementBody(t){var r=t.announcement,o=r.title,a=r.description,u=r.media;return i.default.createElement("div",{className:"announcement-body-container"},"image"===u.type&&i.default.createElement("div",{className:"announcement-body-media announcement-body-".concat(u.type)},i.default.createElement("img",{src:u.src,alt:"Announcement"})),i.default.createElement("div",{className:"announcement-body-content"},i.default.createElement("div",{className:"announcement-body-title"},o),i.default.createElement("div",{className:"announcement-body-description",dangerouslySetInnerHTML:{__html:a}})))}AnnouncementBody.propTypes={announcement:u.default.object.isRequired}},81527:(t,r,o)=>{"use strict";var a=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=AnnouncementFooter;var i=a(o(87363)),u=a(o(23615));function AnnouncementFooter(t){var r=t.buttons,o=t.onClose;return i.default.createElement("div",{className:"announcement-footer-container"},Object.values(r).map((function(t,r){return i.default.createElement("a",{key:"button".concat(r),className:"button-item ".concat(t.variant),href:t.url,target:t.target,onClick:function onClick(){return o("cta")}},t.label)})))}AnnouncementFooter.propTypes={buttons:u.default.oneOfType([u.default.array,u.default.object]),onClose:u.default.func.isRequired}},49504:(t,r,o)=>{"use stric