PageSourceSearch

https://www.yogarenewteachertraining.com/wp-content/plugins/gravit…/gform-products.5e9be8e3f97ac40bee14.min.js

js yogarenewteachertraining.com collected 2026-09-24 11:11:09 UTC 2,921 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgravityforms=self.webpackChunkgravityforms||[]).push([[157],{9845:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var r=n(5798),i=n(8134),o=n(455),u=n(9280),c=n.n(u),d=n(3771),a=n(8773),p=function(t){var e=a.getFormId(t.target),n=a.getFieldId(t.target),i=t.target;(0,r.trigger)({event:"gform/products/product_field_changed",data:{event:t,formId:e,productFieldId:n,htmlInput:i},native:!1}),l(e)},l=function(){var t=(0,o.A)(c().mark(function t(e){var n,i,o,u;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,r.getNode)("#gform_".concat(e),document,!0)){t.next=3;break}return t.abrupt("return");case 3:return i={products:[]},a.getProductFields(n).forEach(function(t){var e=a.getProductMeta(n,t);if(0!==e.length){var r=e[0];r.quantity=a.getProductQuantity(n,t),r.options=g(n,t),i.products.push(r)}}),(o=f(n))&&(i.shipping=o),t.next=10,(0,r.filter)({event:"gform/products/product_changed",data:{formId:e,products:i}});case 10:u=t.sent,i=u.products,e=u.formId,d.hZ(e,"products",i);case 14:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),f=function(t){var e=a.getShippingField(t);if(!e)return null;var n=a.getProductMeta(t,e);return n.length>0?n[0]:null},g=function(t,e){var n=[];return a.getOptionFields(t,e).forEach(function(e){var r=a.getProductMeta(t,e);0!==r.length&&(r.forEach(function(t){t.field_label=a.getFieldLabel(e)}),n.push.apply(n,(0,i.A)(r)))}),n};window.gform.products={getPaymentAmount:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=d.Jt(t,"products");if(0===(null==r||null===(e=r.products)||void 0===e?void 0:e.length))return 0;for(var i=0,o=0;o<r.products.length;o++){for(var u=r.products[o],c=u.price,a=0;a<u.options.length;a++)c+=u.options[a].price;if(c*=u.quantity,n&&parseFloat(n)===parseFloat(u.id))return c;i+=c}if(n)return 0;r.shipping&&(i+=r.shipping.price);var p=i;return!((i=window.gform.applyFilters("gform_product_total",i,t))!==p)&&r.discount&&(i-=r.discount),i},handleConditionalLogicExecuted:function(t){var e=t.detail.formId;l(e)},handleProductChange:p,updateProducts:l,parser:a};var s=n(428),h=n.n(s),v=function(){document.addEventListener("gform/conditionalLogic/applyRules/end",function(t){l(t.detail.formId)}),document.addEventListener("gform/frontend_pages/evaluated",function(t){l(t.detail.formId)}),m("input",'.gfield_price input[type="text"], .gfield_price input[type="number"]',p),m("change",'.gfield_price input[type="text"], .gfield_price input[type="number"]',p),m("change",".ginput_calculated_price",p),m("click",'.gfield_price input[type="radio"], .gfield_price input[type="checkbox"]',p),h()(document).on("change",".gfield_price select",p)},m=function(t,e,n){document.addEventListener(t,function(t){t.target.closest(e)&&n.call(t.target,t)})},y=function(t){l(t),v(),(0,r.consoleInfo)("Gravity Forms Theme: Initialized product field.")}}}]);

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.