",{class:"elementor-tags-list__group-title"}).text(this.title);i.append(a),o.forEach((function(t){var r=jQuery("
",{class:"elementor-tags-list__item"});r.text(t.title).attr("data-tag-name",t.name),i.append(r)}))}})),!elementor.helpers.hasPro()&&Object.keys(t).length){var a=Marionette.Renderer.render("#tmpl-elementor-dynamic-tags-promo",{promotionUrl:elementor.config.dynamicPromotionURL.replace("%s",this.view.model.get("name"))});i.append(a)}i.on("click",".elementor-tags-list__item",this.onTagsListItemClick.bind(this)),elementorCommon.elements.$body.append(o)},getTagsList:function getTagsList(){return this.ui.tagsList||this.createTagsList(),this.ui.tagsList},toggleTagsList:function toggleTagsList(){var t=this.getTagsList();if(t.is(":visible"))t.hide();else{var r=elementorCommon.config.isRTL?"left":"right";t.show().position({my:"".concat(r," top"),at:"".concat(r," bottom+5"),of:this.ui.dynamicSwitcher})}},setTagView:function setTagView(t,r,o){this.tagView&&this.tagView.destroy();var i=this.tagView=new l({id:t,name:r,settings:o,controlName:this.view.model.get("name"),dynamicSettings:this.getOption("dynamicSettings")}),a=this.view.options.container,u=a.controls[i.options.controlName].label;i.options.container=new elementorModules.editor.Container({type:"dynamic",id:t,model:i.model,settings:i.model,view:i,parent:a,label:a.label+" "+u,controls:i.model.options.controls,renderer:a}),i.render(),this.$el.find(".elementor-control-tag-area").after(i.el),this.listenTo(i,"remove",this.onTagViewRemove.bind(this))},setDefaultTagView:function setDefaultTagView(){var t=elementor.dynamicTags.tagTextToTagData(this.getDynamicValue());this.setTagView(t.id,t.name,t.settings)},tagViewToTagText:function tagViewToTagText(){var t=this.tagView;return elementor.dynamicTags.tagDataToTagText(t.getOption("id"),t.getOption("name"),t.model)},getDynamicValue:function getDynamicValue(){return this.view.container.dynamic.get(this.view.model.get("name"))},destroyTagView:function destroyTagView(){this.tagView&&(this.tagView.destroy(),this.tagView=null)},showPromotion:function showPromotion(){var t=elementor.helpers.hasProAndNotConnected(),r={title:i("Dynamic Content","elementor"),content:i("Create more personalized and dynamic sites by populating data from various sources with dozens of dynamic tags to choose from.","elementor"),targetElement:this.ui.dynamicSwitcher,position:{blockStart:"-10"},actionButton:{url:t?elementorProEditorConfig.urls.connect:elementor.config.dynamicPromotionURL.replace("%s",this.view.model.get("name")),text:i(t?"Connect & Activate":"Upgrade","elementor")}};elementor.promotion.showDialog(r)},onRender:function onRender(){this.$el.addClass("elementor-control-dynamic"),this.renderTools(),this.toggleDynamicClass(),this.isDynamicMode()&&this.setDefaultTagView()},onDynamicSwitcherClick:function onDynamicSwitcherClick(t){t.stopPropagation(),this.getOption("tags").length?this.toggleTagsList():this.showPromotion()},onTagsListItemClick:function onTagsListItemClick(t){var r=jQuery(t.currentTarget);this.setTagView(elementorCommon.helpers.getUniqueId(),r.data("tagName"),{}),this.view.getGlobalKey()&&this.view.triggerMethod("unset:global:value"),this.isDynamicMode()?$e.run("document/dynamic/settings",{container:this.view.options.container,settings:(0,a.default)({},this.view.model.get("name"),this.tagViewToTagText())}):$e.run("document/dynamic/enable",{container:this.view.options.container,settings:(0,a.default)({},this.view.model.get("name"),this.tagViewToTagText())}),this.toggleDynamicClass(),this.toggleTagsList(),this.tagView.getTagConfig().settings_required&&this.tagView.showSettingsPopup()},onTagViewRemove:function onTagViewRemove(){$e.run("document/dynamic/disable",{container:this.view.options.container,settings:(0,a.default)({},this.view.model.get("name"),this.tagViewToTagText())}),this.toggleDynamicClass()},onAfterExternalChange:function onAfterExternalChange(){this.destroyTagView(),this.isDynamicMode()&&this.setDefaultTagView(),this.toggleDynamicClass()},onDestroy:function onDestroy(){this.destroyTagView(),this.ui.tagsList&&this.ui.tagsList.remove()}})},8061:t=>{"use strict";t.exports=Marionette.ItemView.extend({className:"elementor-tag-controls-stack-empty",template:"#tmpl-elementor-tag-controls-stack-empty"})},52099:(t,r,o)=>{"use strict";var i=o(8061);t.exports=elementorModules.editor.views.ControlsStack.extend({activeTab:"content",template:_.noop,emptyView:i,isEmpty:function isEmpty(){return this.collection.length<2},childViewOptions:function childViewOptions(){return{container:this.options.container}},getNamespaceArray:function getNamespaceArray(){var t=elementor.getPanelView().getCurrentPageView(),r=t.getNamespaceArray();return r.push(t.activeSection),r.push(this.getOption("controlName")),r.push(this.getOption("name")),r},onRenderTemplate:function onRenderTemplate(){this.activateFirstSection()}})},12406:(t,r,o)=>{"use strict";var i=o(52099);t.exports=Marionette.ItemView.extend({className:"elementor-dynamic-cover e-input-style",tagControlsStack:null,templateHelpers:function templateHelpers(){var t={};return this.model&&(t.controls=this.model.options.controls),t},ui:{remove:".elementor-dynamic-cover__remove"},events:function events(){var events={"click @ui.remove":"onRemoveClick"};return this.hasSettings()&&(events.click="onClick"),events},getTemplate:function getTemplate(){var t=this.getTagConfig(),r=Marionette.TemplateCache.get("#tmpl-elementor-control-dynamic-cover"),o=Marionette.Renderer.render(r,{hasSettings:this.hasSettings(),isRemovable:!this.getOption("dynamicSettings").default,title:t.title,content:t.panel_template});return Marionette.TemplateCache.prototype.compileTemplate(o.trim())},getTagConfig:function getTagConfig(){return elementor.dynamicTags.getConfig("tags."+this.getOption("name"))},initSettingsPopup:function initSettingsPopup(){var t={className:"elementor-tag-settings-popup",position:{my:"left top+5",at:"left bottom",of:this.$el,autoRefresh:!0},hide:{ignore:".select2-container"}},r=elementorCommon.dialogsManager.createWidget("buttons",t);this.getSettingsPopup=function(){return r}},hasSettings:function hasSettings(){return!!Object.values(this.getTagConfig().controls).length},showSettingsPopup:function showSettingsPopup(){this.tagControlsStack||this.initTagControlsStack();var t=this.getSettingsPopup();t.isVisible()||t.show()},initTagControlsStack:function initTagControlsStack(){this.tagControlsStack=new i({model:this.model,controls:this.model.controls,name:this.options.name,controlName:this.options.controlName,container:this.options.container,el:this.getSettingsPopup().getElements("message")[0]}),this.tagControlsStack.render()},initModel:function initModel(){this.model=new elementorModules.editor.elements.models.BaseSettings(this.getOption("settings"),{controls:this.getTagConfig().controls})},initialize:function initialize(){this.initModel(),this.hasSettings()&&(this.initSettingsPopup(),this.listenTo(this.model,"change",this.render))},onClick:function onClick(){this.showSettingsPopup()},onRemoveClick:function onRemoveClick(t){t.stopPropagation(),this.destroy(),this.trigger("remove")},onDestroy:function onDestroy(){this.hasSettings()&&this.getSettingsPopup().destroy(),this.tagControlsStack&&this.tagControlsStack.destroy()}})},96731:t=>{"use strict";t.exports=elementorModules.Module.extend({errors:[],__construct:function __construct(t){var r=t.customValidationMethod;r&&(this.validationMethod=r)},getDefaultSettings:function getDefaultSettings(){return{validationTerms:{}}},isValid:function isValid(){var t=this.validationMethod.apply(this,arguments);return!t.length||(this.errors=t,!1)},validationMethod:function validationMethod(t){var r=[];return this.getSettings("validationTerms").required&&((""+t).length||r.push("Required value is empty")),r}})},33273:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=o(12161),h=function(t){(0,u.default)(BreakpointValidator,t);var r=_createSuper(BreakpointValidator);function BreakpointValidator(){return(0,a.default)(this,BreakpointValidator),r.apply(this,arguments)}return(0,l.default)(BreakpointValidator,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{validationTerms:{max:5120}}}},{key:"getPanelActiveBreakpoints",value:function getPanelActiveBreakpoints(){var t=elementor.documents.currentDocument.config.settings.settings.active_breakpoints.map((function(t){return t.replace("viewport_","")})),r={};return t.forEach((function(t){r[t]=elementorFrontend.config.responsive.breakpoints[t]})),r}},{key:"initBreakpointProperties",value:function initBreakpointProperties(){var t,r,o=this.getSettings("validationTerms"),i=this.getPanelActiveBreakpoints(),a=Object.keys(i);this.breakpointIndex=a.indexOf(o.breakpointName),this.topBreakpoint=null===(t=i[a[this.breakpointIndex+1]])||void 0===t?void 0:t.value,this.bottomBreakpoint=null===(r=i[a[this.breakpointIndex-1]])||void 0===r?void 0:r.value}},{key:"validationMethod",value:function validationMethod(t){var r=this.getSettings("validationTerms"),o=p.prototype.validationMethod.call(this,t);return(_.isFinite(t)||""===t)&&(this.validateMinMaxForBreakpoint(t,r)||o.push("Value is not between the breakpoints above or under the edited breakpoint")),o}},{key:"validateMinMaxForBreakpoint",value:function validateMinMaxForBreakpoint(t,r){var o=elementorFrontend.config.responsive.breakpoints[r.breakpointName].default_value,i=!0;return this.initBreakpointProperties(),"mobile"===r.breakpointName&&320===this.bottomBreakpoint&&(this.bottomBreakpoint-=1),this.bottomBreakpoint&&(""!==t&&t<=this.bottomBreakpoint&&(i=!1),""===t&&o<=this.bottomBreakpoint&&(i=!1)),this.topBreakpoint&&(""!==t&&t>=this.topBreakpoint&&(i=!1),""===t&&o>=this.topBreakpoint&&(i=!1)),i}}]),BreakpointValidator}(p);r.default=h},12161:(t,r,o)=>{"use strict";var i=o(96731);t.exports=i.extend({validationMethod:function validationMethod(t){var r=this.getSettings("validationTerms"),o=[];return _.isFinite(t)&&(void 0!==r.min&&t
r.max&&o.push("Value is greater than maximum")),o}})},53005:(t,r,o)=>{"use strict";var i=o(73203),a=i(o(40131)),l=i(o(93231)),u=i(o(33273));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 i=0,a=function F(){};return{s:a,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:a}}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 l,u=!0,c=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return u=t.done,t},e:function e(t){c=!0,l=t},f:function f(){try{u||null==o.return||o.return()}finally{if(c)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,i=new Array(r);o{"use strict";var i,a=o(73203)(o(93231));function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread(t){for(var r=1;r{"use strict";var i=o(53005);t.exports=i.extend({setInputValue:function setInputValue(t,r){this.$(t).prop("checked",this.model.get("return_value")===r)}},{onPasteStyle:function onPasteStyle(t,r){return!r||r===t.return_value}})},23933:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Enable=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=function(t){(0,u.default)(Enable,t);var r=_createSuper(Enable);function Enable(){return(0,a.default)(this,Enable),r.apply(this,arguments)}return(0,l.default)(Enable,[{key:"apply",value:function apply(t){$e.components.get("preview/styleguide").enableStyleguidePreview(t)}}]),Enable}($e.modules.CommandBase);r.Enable=p;var h=p;r.default=h},59304:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.GlobalColors=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=function(t){(0,u.default)(GlobalColors,t);var r=_createSuper(GlobalColors);function GlobalColors(){return(0,a.default)(this,GlobalColors),r.apply(this,arguments)}return(0,l.default)(GlobalColors,[{key:"apply",value:function apply(){$e.components.get("preview/styleguide").showStyleguidePreview()}}]),GlobalColors}($e.modules.CommandBase);r.GlobalColors=p;var h=p;r.default=h},55520:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.GlobalTypography=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=function(t){(0,u.default)(GlobalTypography,t);var r=_createSuper(GlobalTypography);function GlobalTypography(){return(0,a.default)(this,GlobalTypography),r.apply(this,arguments)}return(0,l.default)(GlobalTypography,[{key:"apply",value:function apply(){$e.components.get("preview/styleguide").showStyleguidePreview()}}]),GlobalTypography}($e.modules.CommandBase);r.GlobalTypography=p;var h=p;r.default=h},96589:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Hide=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=function(t){(0,u.default)(Hide,t);var r=_createSuper(Hide);function Hide(){return(0,a.default)(this,Hide),r.apply(this,arguments)}return(0,l.default)(Hide,[{key:"apply",value:function apply(){$e.components.get("preview/styleguide").hideStyleguidePreview()}}]),Hide}($e.modules.CommandBase);r.Hide=p;var h=p;r.default=h},42052:(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Enable",{enumerable:!0,get:function get(){return i.Enable}}),Object.defineProperty(r,"GlobalColors",{enumerable:!0,get:function get(){return a.GlobalColors}}),Object.defineProperty(r,"GlobalTypography",{enumerable:!0,get:function get(){return l.GlobalTypography}}),Object.defineProperty(r,"Hide",{enumerable:!0,get:function get(){return u.Hide}}),Object.defineProperty(r,"SwitcherChange",{enumerable:!0,get:function get(){return c.SwitcherChange}});var i=o(23933),a=o(59304),l=o(55520),u=o(96589),c=o(96654)},96654:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.SwitcherChange=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(58724)),c=i(o(71173)),d=i(o(74910));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,d.default)(t);if(r){var a=(0,d.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,c.default)(this,o)}}var p=function(t){(0,u.default)(SwitcherChange,t);var r=_createSuper(SwitcherChange);function SwitcherChange(){return(0,a.default)(this,SwitcherChange),r.apply(this,arguments)}return(0,l.default)(SwitcherChange,[{key:"validateArgs",value:function validateArgs(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.requireArgumentType("name","string",t),this.requireArgumentType("value","string",t)}},{key:"apply",value:function apply(t){t.name.includes("enable_styleguide_preview")&&$e.components.get("preview/styleguide").enableStyleguidePreview({value:t.value})}}]),SwitcherChange}($e.modules.CommandBase);r.SwitcherChange=p;var h=p;r.default=h},40342:(t,r,o)=>{"use strict";var i=o(73203);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=i(o(78983)),l=i(o(42081)),u=i(o(51121)),c=i(o(58724)),d=i(o(71173)),p=i(o(74910)),h=i(o(4073)),g=i(o(53005));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,p.default)(t);if(r){var a=(0,p.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,d.default)(this,o)}}var m=function(t){(0,c.default)(_default,t);var r=_createSuper(_default);function _default(){return(0,a.default)(this,_default),r.apply(this,arguments)}return(0,l.default)(_default,[{key:"initialize",value:function initialize(){g.default.prototype.initialize.apply(this,arguments),this.$el.addClass("elementor-control-type-switcher")}},{key:"onBeforeRender",value:function onBeforeRender(){for(var t,r=arguments.length,o=new Array(r),i=0;i{"use strict";var i=o(73203),a=o(7501);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=i(o(78983)),u=i(o(42081)),c=i(o(58724)),d=i(o(71173)),p=i(o(74910)),h=function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var o=_getRequireWildcardCache(r);if(o&&o.has(t))return o.get(t);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=l?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(i,u,c):i[u]=t[u]}i.default=t,o&&o.set(t,i);return i}(o(42052)),g=i(o(40342));function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(t){return t?o:r})(t)}function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,p.default)(t);if(r){var a=(0,p.default)(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return(0,d.default)(this,o)}}var m=function(t){(0,c.default)(_default,t);var r=_createSuper(_default);function _default(t){var o;return(0,l.default)(this,_default),o=r.call(this,t),elementor.addControlView("global-style-switcher",g.default),o.registerStyleguideDialogType(),elementor.once("preview:loaded",(function(){o.initModal()})),o}return(0,u.default)(_default,[{key:"getNamespace",value:function getNamespace(){return"preview/styleguide"}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(h)}},{key:"registerStyleguideDialogType",value:function registerStyleguideDialogType(){DialogsManager.addWidgetType("styleguide",DialogsManager.getWidgetType("lightbox").extend("alert",{buildWidget:function buildWidget(){DialogsManager.getWidgetType("lightbox").prototype.buildWidget.apply(this,arguments);var t=this.addElement("widgetContent"),r=this.getElements();t.append(r.message),r.widget.html(t)}}))}},{key:"initModal",value:function initModal(){var t;this.getModal=function(){return t||(t=elementorCommon.dialogsManager.createWidget("styleguide",{id:"e-styleguide-preview-dialog",message:'
',position:{my:"center center",at:"center center"},hide:{onOutsideClick:!1,onEscKeyPress:!1,onClick:!1,onBackgroundClick:!1},container:elementor.$previewContents.find("body")}))}}},{key:"showStyleguidePreview",value:function showStyleguidePreview(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.getModal().isVisible()||!t&&!elementor.getPreferences("enable_styleguide_preview")||(this.getPreviewFrame().postMessage({name:"elementor/styleguide/preview/show"},"*"),this.getModal().show())}},{key:"hideStyleguidePreview",value:function hideStyleguidePreview(){this.getPreviewFrame().postMessage({name:"elementor/styleguide/preview/hide"},"*"),this.getModal().hide()}},{key:"enableStyleguidePreview",value:function enableStyleguidePreview(t){t.value?this.showStyleguidePreview(!0):this.hideStyleguidePreview(),$e.run("document/elements/settings",{container:elementor.settings.editorPreferences.getEditedView().getContainer(),settings:{enable_styleguide_preview:t.value},options:{external:!0}})}},{key:"isInEditor",value:function isInEditor(){return!!window.elementor}},{key:"getPreviewFrame",value:function getPreviewFrame(){return this.isInEditor()?elementor.$preview[0].contentWindow:window}}]),_default}($e.modules.ComponentBase);r.default=m},38003:t=>{"use strict";t.exports=wp.i18n},98106:t=>{t.exports=function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,i=new Array(r);o{t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},77266:t=>{t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},78983:t=>{t.exports=function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},42081:(t,r,o)=>{var i=o(74040);function _defineProperties(t,r){for(var o=0;o{var i=o(74040);t.exports=function _defineProperty(t,r,o){return(r=i(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports},51121:(t,r,o)=>{var i=o(79443);function _get(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=_get=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=_get=function _get(t,r,o){var a=i(t,r);if(a){var l=Object.getOwnPropertyDescriptor(a,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}},t.exports.__esModule=!0,t.exports.default=t.exports),_get.apply(this,arguments)}t.exports=_get,t.exports.__esModule=!0,t.exports.default=t.exports},74910:t=>{function _getPrototypeOf(r){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,_getPrototypeOf(r)}t.exports=_getPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},58724:(t,r,o)=>{var i=o(96196);t.exports=function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&i(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports},73203:t=>{t.exports=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},40608:t=>{t.exports=function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i,a,l,u,c=[],d=!0,p=!1;try{if(l=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;d=!1}else for(;!(d=(i=l.call(o)).done)&&(c.push(i.value),c.length!==r);d=!0);}catch(t){p=!0,a=t}finally{try{if(!d&&null!=o.return&&(u=o.return(),Object(u)!==u))return}finally{if(p)throw a}}return c}},t.exports.__esModule=!0,t.exports.default=t.exports},56894:t=>{t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},71173:(t,r,o)=>{var i=o(7501).default,a=o(77266);t.exports=function _possibleConstructorReturn(t,r){if(r&&("object"===i(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return a(t)},t.exports.__esModule=!0,t.exports.default=t.exports},96196:t=>{function _setPrototypeOf(r,o){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,r){return t.__proto__=r,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(r,o)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},40131:(t,r,o)=>{var i=o(17358),a=o(40608),l=o(35068),u=o(56894);t.exports=function _slicedToArray(t,r){return i(t)||a(t,r)||l(t,r)||u()},t.exports.__esModule=!0,t.exports.default=t.exports},79443:(t,r,o)=>{var i=o(74910);t.exports=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=i(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},56027:(t,r,o)=>{var i=o(7501).default;t.exports=function _toPrimitive(t,r){if("object"!==i(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var a=o.call(t,r||"default");if("object"!==i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},74040:(t,r,o)=>{var i=o(7501).default,a=o(56027);t.exports=function _toPropertyKey(t){var r=a(t,"string");return"symbol"===i(r)?r:String(r)},t.exports.__esModule=!0,t.exports.default=t.exports},7501:t=>{function _typeof(r){return t.exports=_typeof="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},t.exports.__esModule=!0,t.exports.default=t.exports,_typeof(r)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},35068:(t,r,o)=>{var i=o(98106);t.exports=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return i(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function __webpack_require__(o){var i=r[o];if(void 0!==i)return i.exports;var a=r[o]={exports:{}};return t[o](a,a.exports,__webpack_require__),a.exports}(()=>{"use strict";var t=__webpack_require__(73203),r=t(__webpack_require__(78983)),o=t(__webpack_require__(42081)),i=t(__webpack_require__(58724)),a=t(__webpack_require__(71173)),l=t(__webpack_require__(74910)),u=t(__webpack_require__(78006));function _createSuper(t){var r=function _isNativeReflectConstruct(){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(t){return!1}}();return function _createSuperInternal(){var o,i=(0,l.default)(t);if(r){var u=(0,l.default)(this).constructor;o=Reflect.construct(i,arguments,u)}else o=i.apply(this,arguments);return(0,a.default)(this,o)}}new(function(t){(0,i.default)(Styleguide,t);var a=_createSuper(Styleguide);function Styleguide(){return(0,r.default)(this,Styleguide),a.apply(this,arguments)}return(0,o.default)(Styleguide,[{key:"onInit",value:function onInit(){$e.components.register(new u.default),this.addHooks()}},{key:"getGlobalRoutes",value:function getGlobalRoutes(){return{"global-colors":"panel/global/global-colors","global-typography":"panel/global/global-typography"}}},{key:"addHooks",value:function addHooks(){elementor.hooks.addAction("panel/global/tab/before-show",this.show.bind(this)),elementor.hooks.addAction("panel/global/tab/before-destroy",this.hide.bind(this))}},{key:"show",value:function show(t){t.id&&t.id in this.getGlobalRoutes()&&$e.run("preview/styleguide/".concat(t.id))}},{key:"hide",value:function hide(t){t.id&&t.id in this.getGlobalRoutes()&&(Object.values(this.getGlobalRoutes()).some((function(t){return $e.routes.current.panel===t}))||$e.run("preview/styleguide/hide"))}}]),Styleguide}(elementorModules.editor.utils.Module))})()})();
Discount on bonds payable definition – 107Global Ventures
+234 8096452812 79 Lewis Street Obalende Lagos
Discount on bonds payable (or bond discount) occurs when a corporation issues bonds and receives less than the bonds’ face or maturity amount. The root cause of the bond discount is the bonds have a stated interest rate which is lower than the market interest rate for similar bonds. The investors want to earn a higher effective interest rate on these bonds, so they only pay $950,000 for the bonds. The $50,000 amount is recorded in a Discount on Bonds Payable contra liability account. Over time, the balance in this account is reduced as more of it is recognized as interest expense.
One is zero-percent financing, which is essentially an interest-free loan. This saves borrowers money because they do not have to pay interest on their loans, which can amount to quite a savings. Another incentive car manufacturers may offer is a rebate, which is an up-front reduction off the purchase price, similar to a coupon for a food purchase.
When a bond is issued at a discount, the carrying value is less than the face value of the bond. When a bond is issued at par, the carrying value is equal to the face value of the bond. Accountants have devised a more precise approach to account for bond issues called the effective-interest method. Be aware that the more theoretically correct effective-interest method is actually the required method, except in those cases where the straight-line results do not differ materially. Effective-interest techniques are introduced in a following section of this chapter.
The second way to amortize the discount is with the effective interest method.
In this case, the corporation is offering a 12% interest rate, or a payment of $6,000 every six months, when other companies are offering an 11% interest rate, or a payment of $5,500 every six months.
For the past 52 years, Harold Averkamp (CPA, MBA) has worked as an accounting supervisor, manager, consultant, university instructor, and innovator in teaching accounting online.
This is essentially paying them the $5,000 difference in interest up front since it will still pay bondholders the full $100,000 face amount at the end of the five-year term.
Over the life of the bond, the balance in the account Discount on Bonds Payable must be reduced to $0.
Since the corporation is selling its 9% bond in a bond market which is demanding 10%, the corporation will receive less than the bond’s face amount. To illustrate the discount on bonds payable, let’s assume that in early December 2021 a corporation prepares a 9% $100,000 bond dated January 1, 2022. The interest payments of $4,500 ($100,000 x 9% x 6/12) will be required on each June 30 and December 31 until the bond matures on December 31, 2026. Discount amortizations are likely to be reviewed by a company’s auditors, and so should be carefully documented. Auditors prefer that a company use the effective interest method to amortize the discount on bonds payable, given its higher level of precision.
The actual interest paid out (also known as the coupon) will be higher than the expense. The balances of both current and long-term liabilities are presented in the liabilities section of the balance sheet at the end of each accounting period. When a company has a significant number of liabilities, they are typically presented in categories for clearer presentation. As mentioned previously, a financial statement that organizes its liability (and asset) accounts into categories is called a classified balance sheet. To compensate for the fact that the corporation will pay out $5,000 more in interest, it will charge investors $5,000 more to purchase the bonds and will collect $105,000 instead of $100,000. This is essentially collecting the $5,000 difference in interest up front from investors and essentially using it to pay them the higher interest rate over time.
Discount on Bonds Payable with Straight-Line Amortization
In this example, the straight-line amortization would be $770.20 ($3,851 divided by the 5-year life of the bond). Next, let’s assume that just prior to offering the bond to investors on January 1, the market interest rate for this bond increases to 10%. The corporation decides to sell the 9% bond rather than changing the bond documents to the market interest rate.
At that point, the carrying value of the bond should equal the bond’s face value. If a $1,000,000 bond issue promises to pay interest of 8% per year and the bond market demands 8.125%, the bonds will sell for less than $1,000,000. The difference between the $1,000,000 of face value and the amount the bond market is willing to pay is the discount on bonds payable. In our example, the bond discount of $3,851 results from the corporation receiving only $96,149 from investors, but having to pay the investors $100,000 on the date that the bond matures. The discount of $3,851 is treated as an additional interest expense over the life of the bonds. When the same amount of bond discount is recorded each year, it is referred to as straight-line amortization.
A business or government may issue bonds when it needs a long-term source of cash funding. When an organization issues bonds, investors are likely to pay less than the face value of the bonds when the stated interest rate on the bonds is less than the prevailing market interest rate. By doing so, investors earn a greater return on their reduced investment. The net result is a total recognized amount of interest expense over the life of the bond that is greater than the amount of interest actually paid to investors. The amount recognized equates to the market rate of interest on the date when the bonds were sold.
The total of each liability category appears in the far-right column of the classified balance sheet, and the sum of these totals appears as total liabilities. The following four examples show bonds at both a discount and a premium that are called at both a gain and a loss. As with the sale of fixed assets or investments, it is important to note that any gain or loss when bonds are repaid early is incurred on a transaction that is outside of what occurs in normal business operations.
4.6 Calling Bonds
Notice on the ledger at the right below that each time the end-of-year adjusting entry is posted, the credit balance of the Premium on Bonds Payable decreases. As a result, the carrying amount decreases and gets closer and closer to face amount over time. There are four journal entries that relate to bonds that are issued at a premium. The carrying amount can be thought of as “what the bond is worth” at a given point in time.
Compare the contract rate with the market rate since this will impact the selling price of the bond when it is issued. The people or companies who purchase bonds from a corporation are called bondholders, and they are essentially lending their money as an investment. The reason bondholders lend their money is because they are paid interest by the corporation on the amount they lend throughout the term of the bond. Bondholders do not become owners of a corporation like stockholders do. When a bond is issued at a premium, the carrying value is higher than the face value of the bond.
What is the Amortization of Discount on Bonds Payable?
To compensate for the fact that the corporation will pay out $5,000 less in interest, it will charge investors $5,000 less to purchase the bonds and collect $95,000 instead of $100,000. This is essentially paying them the $5,000 difference in interest up front since it will still pay bondholders the full $100,000 face amount accounting scandals at the end of the five-year term. In return the corporation will pay the bondholders interest every six months and, at the end of the term, repay the bondholders the face amount. The number of payments bondholders will receive in the future from the corporation is always twice the number of years in the term plus 1.
discount on bonds payable definition
Assume the investors pay $9,800,000 for the bonds having a face or maturity value of $10,000,000. The difference of $200,000 will be recorded by the issuing corporation as a debit to Discount on Bonds Payable, a debit to Cash for $9,800,000, and a credit to Bonds Payable for $10,000,000. The amount of the discount is a function of 1) the number of years before the bonds mature, and 2) the difference in the bond’s stated interest rate and the market’s interest rate. Calling bonds – A journal entry is recorded when a corporation redeems bonds early. Redeeming bonds – A journal entry is recorded when a corporation redeems bonds.
That is similar to paying more than carrying amount to redeem a bond, and that is a loss. A loss is similar to an expense, except it involves a transaction that is not directly related to the business’ operations. Redeeming bonds is not a corporation’s primary line of business, so these transactions are non-operational. A bond’s contract rate of interest may be equal to, less than, or more than the going market rate. This same journal entry for $6,000 is made every six months, on 6/30 and 12/31, for a total of 10 times over the term of the five-year bond.
A corporation often needs to raise money from outside sources for operations, purchases, or expansion. Investors contribute cash to the business and are issued stock in return to recognize their shares of ownership. As a result, interest expense each year is not exactly equal to the effective rate of interest (6%) https://www.kelleysbookkeeping.com/your-third-stimulus-check-can-be-seized-here-s/ that was implicit in the pricing of the bonds. For 20X1, interest expense can be seen to be roughly 5.8% of the bond liability ($6,294 expense divided by beginning of year liability of $108,530). For 20X4, interest expense is roughly 6.1% ($6,294 expense divided by beginning of year liability of $103,412).