PageSourceSearch

https://www.momoyoga.com/build/585.8209bef2.js

js momoyoga.com collected 2026-09-24 08:44:32 UTC 9,912 bytes, 1 lines download raw bytes

1(self.webpackChunkmomoyoga=self.webpackChunkmomoyoga||[]).push([[585],{94599:function(e,t,i){"use strict";i.d(t,{K:function(){return r}});i(60350);class r{mapHttpErrorToForm(e,t,i={}){if(e.clearErrors(),t.data.violations){const i=this.mapValidationErrors(t.data.violations);return void e.setErrors([],i)}if(t.data.description){const r=i[t.status]??t.data.description;e.setErrors([r],{})}}mapValidationErrors(e){const t={};return e.forEach(e=>{const i=e.propertyPath.replace(/(\..)/,(e,t)=>t.replace(".","").toUpperCase());t[i]=e.message}),t}}},76348:function(e,t){var i,r,o,n;n=function(){var e={__esModule:!0};e.Routing=e.Router=void 0;var t=function(){function t(e,t){this.context_=e||{base_url:"",prefix:"",host:"",port:"",scheme:"",locale:""},this.setRoutes(t||{})}return t.getInstance=function(){return e.Routing},t.setData=function(e){t.getInstance().setRoutingData(e)},t.prototype.setRoutingData=function(e){this.setBaseUrl(e.base_url),this.setRoutes(e.routes),void 0!==e.prefix&&this.setPrefix(e.prefix),void 0!==e.port&&this.setPort(e.port),void 0!==e.locale&&this.setLocale(e.locale),this.setHost(e.host),void 0!==e.scheme&&this.setScheme(e.scheme)},t.prototype.setRoutes=function(e){this.routes_=Object.freeze(e)},t.prototype.getRoutes=function(){return this.routes_},t.prototype.setBaseUrl=function(e){this.context_.base_url=e},t.prototype.getBaseUrl=function(){return this.context_.base_url},t.prototype.setPrefix=function(e){this.context_.prefix=e},t.prototype.setScheme=function(e){this.context_.scheme=e},t.prototype.getScheme=function(){return this.context_.scheme},t.prototype.setHost=function(e){this.context_.host=e},t.prototype.getHost=function(){return this.context_.host},t.prototype.setPort=function(e){this.context_.port=e},t.prototype.getPort=function(){return this.context_.port},t.prototype.setLocale=function(e){this.context_.locale=e},t.prototype.getLocale=function(){return this.context_.locale},t.prototype.buildQueryParams=function(e,t,i){var r,o=this,n=new RegExp(/\[\]$/);if(t instanceof Array)t.forEach(function(t,r){n.test(e)?i(e,t):o.buildQueryParams(e+"["+("object"==typeof t?r:"")+"]",t,i)});else if("object"==typeof t)for(r in t)this.buildQueryParams(e+"["+r+"]",t[r],i);else i(e,t)},t.prototype.getRoute=function(e){var t=[this.context_.prefix+e,e+"."+this.context_.locale,this.context_.prefix+e+"."+this.context_.locale,e];for(var i in t)if(t[i]in this.routes_)return this.routes_[t[i]];throw new Error('The route "'+e+'" does not exist.')},t.prototype.generate=function(e,i,r){var o=this.getRoute(e),n=i||{},s=Object.assign({},n),a="",l=!0,u="",c=void 0===this.getPort()||null===this.getPort()?"":this.getPort();if(o.tokens.forEach(function(i){if("text"===i[0]&&"string"==typeof i[1])return a=t.encodePathComponent(i[1])+a,void(l=!1);if("variable"!==i[0])throw new Error('The token type "'+i[0]+'" is not supported.');
16===i.length&&!0===i[5]&&(l=!1);var r=o.defaults&&!Array.isArray(o.defaults)&&"string"==typeof i[3]&&i[3]in o.defaults;if(!1===l||!r||"string"==typeof i[3]&&i[3]in n&&!Array.isArray(o.defaults)&&n[i[3]]!=o.defaults[i[3]]){var u=void 0;if("string"==typeof i[3]&&i[3]in n)u=n[i[3]],delete s[i[3]];else{if("string"!=typeof i[3]||!r||Array.isArray(o.defaults)){if(l)return;throw new Error('The route "'+e+'" requires the parameter "'+i[3]+'".')}u=o.defaults[i[3]]}if(!0!==u&&!1!==u&&""!==u||!l){var c=t.encodePathComponent(u);"null"===c&&null===u&&(c=""),a=i[1]+c+a}l=!1}else r&&"string"==typeof i[3]&&i[3]in s&&delete s[i[3]]}),""===a&&(a="/"),o.hosttokens.forEach(function(e){var t;"text"!==e[0]?"variable"===e[0]&&(e[3]in n?(t=n[e[3]],delete s[e[3]]):o.defaults&&!Array.isArray(o.defaults)&&e[3]in o.defaults&&(t=o.defaults[e[3]]),u=e[1]+t+u):u=e[1]+u}),a=this.context_.base_url+a,o.requirements&&"_scheme"in o.requirements&&this.getScheme()!=o.requirements._scheme){var p=u||this.getHost();a=o.requirements._scheme+"://"+p+(p.indexOf(":"+c)>-1||""===c?"":":"+c)+a}else void 0!==o.schemes&&void 0!==o.schemes[0]&&this.getScheme()!==o.schemes[0]?(p=u||this.getHost(),a=o.schemes[0]+"://"+p+(p.indexOf(":"+c)>-1||""===c?"":":"+c)+a):u&&this.getHost()!==u+(u.indexOf(":"+c)>-1||""===c?"":":"+c)?a=this.getScheme()+"://"+u+(u.indexOf(":"+c)>-1||""===c?"":":"+c)+a:!0===r&&(a=this.getScheme()+"://"+this.getHost()+(this.getHost().indexOf(":"+c)>-1||""===c?"":":"+c)+a);if(Object.keys(s).length>0){var d=[],f=function(e,i){i=null===(i="function"==typeof i?i():i)?"":i,d.push(t.encodeQueryComponent(e)+"="+t.encodeQueryComponent(i))};for(var h in s)s.hasOwnProperty(h)&&this.buildQueryParams(h,s[h],f);a=a+"?"+d.join("&")}return a},t.customEncodeURIComponent=function(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/%40/g,"@").replace(/%3A/g,":").replace(/%21/g,"!").replace(/%3B/g,";").replace(/%2C/g,",").replace(/%2A/g,"*").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")},t.encodePathComponent=function(e){return t.customEncodeURIComponent(e).replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%21/g,"!").replace(/%7C/g,"|")},t.encodeQueryComponent=function(e){return t.customEncodeURIComponent(e).replace(/%3F/g,"?")},t}();return e.Router=t,e.Routing=new t,e.default=e.Routing,{Router:e.Router,Routing:e.Routing}}(),r=[],i=n.Routing,void 0===(o="function"==typeof i?i.apply(t,r):i)||(e.exports=o)},32768:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var r=i(20641);const o={class:"text-center p-5"};var n=(0,r.pM)({name:"Spinner",setup(){return{}}});var s=(0,i(66262).A)(n,[["render",function(e,t,i,n,s,a){return(0,r.uX)(),(0,r.CE)("div",o,[...t[0]||(t[0]=[(0,r.Lk)("span",{class:"spinner spinner-border",role:"status","aria-hidden":"true"},null,-1)])])}]])},22733:function(e,t,i){"use strict";i.d(t,{A:function(){return a}});var r=i(20641),o=i(90033);const n=["disabled"];var s=(0,r.pM)({name:"SubmitButton",props:{isSaving:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e,t){return{}}});var a=(0,i(66262).A)(s,[["render",function(e,t,i,s,a,l){return(0,r.uX)(),(0,r.CE)("button",{type:"submit",class:(0,o.C4)(["btn btn-primary",{"btn-loading-state":e.isSaving}]),disabled:e.disabled||e.isLoading||e.isSaving},[(0,r.RG)(e.$slots,"default",{},()=>[(0,r.eW)((0,o.v_)(e.$t.trans("global.save")),1)]),t[0]||(t[0]=(0,r.Lk)("span",{class:"spinner spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1))],10,n)}]])},59752:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return w}});var r=i(20641),o=i(90033);const n={class:"page-header-with-subtitle mb-6"},s={class:"page-header-title"},a={class:"form-section-body mb-6"},l=["innerHTML"],u={class:"actions"};var c=i(50953),p=i(73943),d=i(32768),f=i(96231),h=i(60350),m=i(77625),g=i(5240);const y=(0,f.nY)("memberships",{state:()=>({byId:{}}),actions:{async update(e,t){return(0,h.YA)(fetch(m.JR+"users/me/memberships/"+e,{credentials:"include",method:"PATCH",headers:{"Content-Type":"application/merge-patch+json"},body:JSON.stringify(t)}),"Could not update membership").then(e=>{this.setMembership(e)})},setMembership(e){this.byId[e.id]=e}}});var b=i(88204),v=i(42942),_=i(22733),x=i(94599),k=(0,r.pM)({name:"LessonLiabilityWaiverView",components:{SubmitButton:_.A,FormKitMessages:b.f5,Spinner:d.A},methods:{path:v.A},props:{id:{type:Number,required:!0},slug:{type:String,required:!0},profileName:{type:String,required:!0},navigateToNextStep:{type:Function,required:!0},lesson:{type:Object,required:!0},client:{type:Object,required:!0},context:{type:String,required:!1}},setup(e){const t=(0,c.Kh)({isSaving:!1}),i=(0,p.Pj)(),o=(0,g.Bk)(),n=y(),s=new x.K,a=(0,r.EW)(()=>o.getMembership(e.profileName)),l=(0,r.EW)(()=>i.state.liabilityWaiver.byProfileName[e.profileName]),u=(0,b.Qe)("liabilityWaiver"),d=(0,r.EW)(()=>u.value?.context?.state.valid||!1);return(async()=>{const t=[];l.value||t.push(i.dispatch("liabilityWaiver/get",e.profileName)),await Promise.all(t)})(),{agree:async(i,r)=>{try{return t.isSaving=!0,await n.update(a.value.id,{agreedToLiabilityWaiver:i.agreeToLiabilityWaiver}),await o.fetchAuthenticatedUser(),void e.navigateToNextStep()}catch(e){if(401===e.status)throw e;s.mapHttpErrorToForm(r,e)}finally{t.isSaving=!1}},formCanBeSubmitted:d,liabilityWaiver:l,membership:a,state:t}}});var w=(0,i(66262).A)(k,[["render",function(e,t,i,c,p,d){const f=(0,r.g2)("FormKit"),h=(0,r.g2)("FormKitMessages"),m=(0,r.g2)("submit-button"),g=(0,r.g2)("spinner");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",n,[(0,r.Lk)("h2",s,(0,o.v_)(e.$t.trans("booking.liability_waiver.title",{},"schedule")),1),(0,r.Lk)("p",null,(0,o.v_)(e.$t.trans("booking.liability_waiver.body",{clientName:e.client.companyName},"schedule")),1)]),void 0!==e.liabilityWaiver?((0,r.uX)(),(0,r.Wv)(f,{key:0,t
1ype:"form",id:"liabilityWaiver",actions:!1,onSubmit:e.agree,classes:{form:"form-section",messages:"$reset alert alert-danger list-unstyled",message:"$reset"}},{default:(0,r.k6)(()=>[(0,r.Lk)("div",a,[(0,r.bF)(f,{type:"textarea",disabled:!0,value:e.liabilityWaiver.text,rows:"7",outerClass:"$reset mb-6"},null,8,["value"]),(0,r.bF)(f,{type:"checkbox",name:"agreeToLiabilityWaiver",label:e.$t.trans("booking.liability_waiver.form.agree_to_liability_waiver",{url:e.path("MomoScheduleBundle_show-liability-waiver",{profile:e.profileName})}),validation:"accepted","validation-messages":{accepted:e.$t.trans("booking.liability_waiver.form.validation.agree_to_liability_waiver")},outerClass:"$reset mb-6"},{label:(0,r.k6)(e=>[(0,r.Lk)("span",{class:"formkit-label form-label form-check-label",innerHTML:e.label},null,8,l)]),_:1},8,["label","validation-messages"]),(0,r.bF)(h)]),(0,r.Lk)("div",u,[(0,r.bF)(m,{class:"w-100 mb-0",disabled:!e.formCanBeSubmitted,"is-saving":e.state.isSaving},{default:(0,r.k6)(()=>[(0,r.eW)((0,o.v_)(e.$t.trans("booking.liability_waiver.form.continue")),1)]),_:1},8,["disabled","is-saving"])])]),_:1},8,["onSubmit"])):((0,r.uX)(),(0,r.Wv)(g,{key:1}))],64)}]])}}]);

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.