File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/v3/public/assets/public.0ec828d8.js
Back
import{e as _,b as P,a as C,c as h,_ as c}from"./eventBooking.50dd454f.js";import{aF as f,a_ as I,b1 as g,z as i,b2 as v,r as d,P as l,b3 as m,bu as x,bv as A,bw as E,b0 as b}from"./stepForm.82d2c7c1.js";import"./customizeForm.7870e909.js";import"./catalogForm.f9c36883.js";var F={namespaced:!0,state:()=>({preselected:{}}),getters:{getShortcodeParams(e){return e.preselected}},mutations:{setShortcodeParams(e,t){e.preselected=t}},actions:{}};function L(e){return f(e).format("YYYY-MM-DD")}var k={namespaced:!0,state:()=>({params:{id:null,tag:null,search:null,recurring:null,dates:f().toDate(),locationId:null,providers:null}}),getters:{getTag(e){return e.params.tag},getSearch(e){return e.params.search},getLocationIdParam(e){return e.params.locationId},getDates(e){return e.params.dates},getEventParams(e){return{dates:[L(e.params.dates)],id:e.params.id,search:e.params.search,locationId:e.params.locationId,tag:e.params.tag,recurring:e.params.recurring,providers:e.params.providers}},getAllData(e){return{dates:e.params.dates,id:e.params.id,search:e.params.search,locationId:e.params.locationId,tag:e.params.tag,recurring:e.params.recurring,providers:e.params.providers}}},mutations:{setTag(e,t){e.params.tag=t||null},setLocationIdParam(e,t){e.params.locationId=t||null},setId(e,t){e.params.id=t},setParams(e,t){t.eventId&&(e.params.id=t.eventId),t.eventTag&&(e.params.tag=t.eventTag),t.eventRecurring&&(e.params.recurring=t.eventRecurring)},setSearch(e,t){e.params.search=t||null},setDates(e,t){e.params.dates=t},setAllData(e,t){e.params={dates:t.dates,id:t.id?parseInt(t.id):null,search:t.search,locationId:t.locationId?parseInt(t.locationId):null,tag:t.tag,recurring:t.recurring,providers:t.providers}}},actions:{}},D={namespaced:!0,state:()=>({show:1,page:1,count:0}),getters:{getShow(e){return e.show},getPage(e){return e.page},getCount(e){return e.count},getAllData(e){return{show:e.show,page:e.page,count:e.count}}},mutations:{setShow(e,t){e.show=t},setPage(e,t){e.page=t},setCount(e,t){e.count=t},setAllData(e,t){e.show=parseInt(t.show),e.page=parseInt(t.page),e.count=parseInt(t.count)}},actions:{}},U={namespaced:!0,state:()=>({id:null,externalId:null,firstName:"",lastName:"",email:"",phone:"",countryPhoneIso:"",loggedUser:!1}),getters:{getCustomerId(e){return e.id},getCustomerExternalId(e){return e.externalId},getCustomerFirstName(e){return e.firstName},getCustomerLastName(e){return e.lastName},getCustomerEmail(e){return e.email},getCustomerPhone(e){return e.phone},getCustomerCountryPhoneIso(e){return e.countryPhoneIso},getLoggedUser(e){return e.loggedUser},getAllData(e){return{id:e.id,externalId:e.externalId,firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone,countryPhoneIso:e.countryPhoneIso,loggedUser:e.loggedUser}}},mutations:{setCustomerId(e,t){e.id=t},setCustomerExternalId(e,t){e.externalId=t},setCustomerFirstName(e,t){e.firstName=t},setCustomerLastName(e,t){e.lastName=t},setCustomerEmail(e,t){e.email=t},setCustomerPhone(e,t){e.phone=t},setCustomerCountryPhoneIso(e,t){e.countryPhoneIso=t},setLoggedUser(e,t){e.loggedUser=t},setCurrentUser(e,t){e.id=t.id,e.externalid=t.externalid,e.firstName=t.firstName,e.lastName=t.lastName,e.email=t.email,e.phone=t.phone?t.phone:"",e.countryPhoneIso=t.countryPhoneIso?t.countryPhoneIso:""},setAllData(e,t){e.id=t.id,e.externalId=t.externalId,e.firstName=t.firstName,e.lastName=t.lastName,e.email=t.email,e.phone=t.phone,e.countryPhoneIso=t.countryPhoneIso,e.loggedUser=t.loggedUser}},actions:{requestCurrentUserData({commit:e}){if(e("setLoading",!0,{root:!0}),!("ameliaUser"in window)||!window.ameliaUser)I.get("/users/current").then(t=>{t.data.data.user&&(window.ameliaUser=t.data.data.user?t.data.data.user:null,e("setCurrentUser",window.ameliaUser),e("setLoggedUser",!0)),e("setLoading",!1,{root:!0})}).catch(()=>{e("setLoading",!1,{root:!0})});else{let t=setInterval(()=>{"ameliaUser"in window&&(clearInterval(t),e("setCurrentUser",window.ameliaUser),e("setLoggedUser",!0)),e("setLoading",!1,{root:!0})},1e3)}}}},y={namespaced:!0,state:()=>({customFieldsArray:[],customFields:{}}),getters:{getFilteredCustomFieldsArray(e){return e.customFieldsArray},getCustomFields(e){return e.customFields},getCustomFieldValue:e=>t=>e.customFields[t].value,getAllData(e){return{customFields:e.customFields}}},mutations:{setFilteredCustomFieldsArray(e,t){e.customFieldsArray=t},setCustomFields(e,t){e.customFields=t},setCustomFieldValue(e,t){e.customFields[t.key].value=t.value},setAllData(e,t){e.customFields=t.customFields}},actions:{filterEventCustomFields({commit:e,getters:t,rootGetters:a}){let r=a["eventBooking/getSelectedEventId"],n=[],o={};a["eventEntities/getCustomFields"].forEach(s=>{if(s.events.find(u=>u.id===parseInt(r))||s.allEvents){switch(n.push(s),o[`cf${s.id}`]={id:s.id,label:s.label,type:s.type,position:s.position,options:s.options,required:s.required},s.type){case"checkbox":case"file":o[`cf${s.id}`].value=[];break;default:o[`cf${s.id}`].value=""}t.getCustomFields[`cf${s.id}`]&&(o[`cf${s.id}`].value=t.getCustomFields[`cf${s.id}`].value)}}),e("setFilteredCustomFieldsArray",n),e("setCustomFields",o)}}},T={namespaced:!0,state:()=>({persons:1,max:1,min:1}),getters:{getMaxPersons(e){return e.max},getMinPersons(e){return e.min},getPersons(e){return e.persons},getAllData(e){return{persons:e.persons,max:e.max,min:e.min}}},mutations:{setMaxPersons(e,t){e.max=t},setMinPersons(e,t){e.min=t},setPersons(e,t){e.persons=t},setAllData(e,t){e.persons=t.persons,e.max=t.max,e.min=t.min}},actions:{resetPersons({commit:e}){e("setPersons",1),e("setMaxPersons",1),e("setMinPersons",1)}}},S={namespaced:!0,state:()=>({tickets:[],ticketsData:[],maxCustomCapacity:null,maxExtraPeople:null,globalSpots:0}),getters:{getTickets(e){return e.tickets},getMaxCustomCapacity(e){return e.maxCustomCapacity},getMaxExtraPeople(e){return e.maxExtraPeople},getTicketNumber:e=>t=>e.ticketsData.find(a=>a.id===t).persons,getTicketsSum(e){let t=0;return e.ticketsData.forEach(a=>{t+=a.persons}),t},getTicketsData(e){return e.ticketsData},getEventGlobalSpots(e){return e.globalSpots},getAllData(e){return{tickets:e.tickets,ticketsData:e.ticketsData,maxCustomCapacity:e.maxCustomCapacity,maxExtraPeople:e.maxExtraPeople,globalSpots:e.globalSpots}}},mutations:{setTickets(e,t){e.tickets=t,t.forEach(a=>{if(a.enabled){let r={spots:a.spots,sold:a.sold,persons:0,price:a.dateRangePrice?a.dateRangePrice:a.price,name:a.name,id:a.id,eventTicketId:a.id};e.ticketsData.push(r)}})},setMaxCustomCapacity(e,t){e.maxCustomCapacity=t},setReduceMaxExtraPeople(e,t){e.maxExtraPeople=e.maxExtraPeople+1-t},setMaxExtraPeople(e,t){e.maxExtraPeople=t},setTicketNumber(e,t){e.ticketsData.forEach(a=>{a.id===t.id&&(a.persons=parseInt(t.numb))})},setEventGlobalSpots(e,t){e.globalSpots+=t},setAllData(e,t){e.tickets=t.tickets,e.ticketsData=t.ticketsData,e.maxCustomCapacity=t.maxCustomCapacity,e.maxExtraPeople=t.maxExtraPeople,e.globalSpots=t.globalSpots}},actions:{resetCustomTickets({commit:e}){e("setAllData",{tickets:[],ticketsData:[],maxCustomCapacity:null,maxExtraPeople:null,globalSpots:0})}}},N={namespaced:!0,state:()=>({amount:0,gateway:"",deposit:!1,depositAmount:0,depositType:"",data:{},error:""}),getters:{getError(e){return e.error},getPaymentGateway(e){return e.gateway},getPaymentDeposit(e){return e.deposit},getAllData(e){return{amount:e.amount,gateway:e.gateway,deposit:e.deposit,depositAmount:e.depositAmount,depositType:e.depositType,data:e.data}}},mutations:{setError(e,t){e.error=t},setPaymentGateway(e,t){e.gateway=t},setPaymentDeposit(e,t){e.deposit=t},setPaymentDepositAmount(e,t){e.depositAmount=t},setPaymentDepositType(e,t){e.depositType=t},setAllData(e,t){e.amount=t.amount,e.gateway=t.gateway,e.deposit=t.deposit,e.depositAmount=t.depositAmount,e.depositType=t.depositType,e.data=t.data}},actions:{}},R={namespaced:!0,state:()=>({type:""}),getters:{getType(e){return e.type}},mutations:{setType(e,t){e.type=t}},actions:{}},M={namespaced:!0,state:()=>({code:"",discount:"",deduction:"",limit:"",error:"",loading:!1}),getters:{getCoupon(e){return{code:e.code,discount:e.discount,deduction:e.deduction,limit:e.limit}},getCode(e){return e.code},getError(e){return e.error},getLoading(e){return e.loading}},mutations:{setCoupon(e,t){e.code=t.code,e.discount=t.discount,e.deduction=t.deduction,e.limit=t.limit},setCode(e,t){e.code=t},setError(e,t){e.error=t},setLoading(e,t){e.loading=t}},actions:{restCoupon({commit:e}){e("setCoupon",{code:"",discount:"",deduction:"",limit:""})}}};const B=g({loader:()=>c(()=>import(""+(window.__dynamic_handler__||function(e){return e})("./stepForm.82d2c7c1.js")+"").then(function(e){return e.bN}),(window.__dynamic_preload__ || function(importer) { return importer; })(["assets/stepForm.82d2c7c1.js","assets/stepForm.a614a4e6.css"]))}),K=g({loader:()=>c(()=>import(""+(window.__dynamic_handler__||function(e){return e})("./catalogForm.f9c36883.js")+"").then(function(e){return e.C}),(window.__dynamic_preload__ || function(importer) { return importer; })(["assets/catalogForm.f9c36883.js","assets/catalogForm.841158dc.css","assets/stepForm.82d2c7c1.js","assets/stepForm.a614a4e6.css"]))}),$=g({loader:()=>c(()=>import(""+(window.__dynamic_handler__||function(e){return e})("./EventsListForm.297d1c4b.js")+""),(window.__dynamic_preload__ || function(importer) { return importer; })(["assets/EventsListForm.297d1c4b.js","assets/EventsListForm.9a322077.css","assets/stepForm.82d2c7c1.js","assets/stepForm.a614a4e6.css","assets/catalogForm.f9c36883.js","assets/catalogForm.841158dc.css","assets/customizeForm.7870e909.js","assets/customizeForm.0988c9f1.css"]))});typeof window.ameliaShortcodeData=="undefined"&&(window.ameliaShortcodeData=[{counter:null}]);const w=window.wpAmeliaUrls.wpAmeliaPluginURL+"v3/public/";window.__dynamic_handler__=function(e){return w+"assets/"+e};window.__dynamic_preload__=function(e){return e.map(t=>w+t)};window.ameliaShortcodeDataTriggered!==void 0&&window.ameliaShortcodeDataTriggered.forEach(e=>{let t=!1,a=setInterval(function(){let r=e.trigger_type&&e.trigger_type==="class"?[...document.getElementsByClassName(e.trigger)]:[document.getElementById(e.trigger)];!t&&r.length>0&&r[0]!==null&&typeof r[0]!="undefined"&&(t=!0,clearInterval(a),r.forEach(n=>{n.onclick=function(){let o=setInterval(function(){let s=document.getElementsByClassName("amelia-skip-load-"+e.counter);if(s.length){clearInterval(o);for(let u=0;u<s.length;u++)s[u].classList.contains("amelia-v2-booking-"+e.counter+"-loaded")||p(e)}},1e3)}}))},1e3)});window.ameliaShortcodeData.forEach(e=>{p(e)});function p(e){const t=i(window.wpAmeliaSettings);let a=v({setup(){const r=i(window.wpAmeliaUrls),n=i(window.wpAmeliaLabels),o=d(window.localeLanguage[0]),s=i({isBasic:!1,isPro:!1,isDeveloper:!1,isLite:!0});l("settings",m(t)),l("baseUrls",m(r)),l("labels",m(n)),l("localLanguage",m(o)),l("shortcodeData",m(d(e))),l("licence",s)}});t.googleTag.id&&a.use(x,{config:{id:window.wpAmeliaSettings.googleTag.id}}),t.facebookPixel.id&&(A(),E(window.wpAmeliaSettings.facebookPixel.id)),a.component("StepFormWrapper",B).component("CatalogFormWrapper",K).component("EventsListFormWrapper",$).use(b({namespaced:!0,state:()=>({settings:i(window.wpAmeliaSettings),labels:i(window.wpAmeliaLabels),localLanguage:d(window.localeLanguage[0]),baseUrls:i(window.wpAmeliaUrls),ready:!1,loading:!1,formKey:""}),getters:{getSettings(r){return r.settings},getLabels(r){return r.labels},getLocalLanguage(r){return r.localLanguage},getBaseUrls(r){return r.baseUrls},getReady(r){return r.ready},getLoading(r){return r.loading},getFormKey(r){return r.formKey}},mutations:{setReady(r,n){r.ready=n},setLoading(r,n){r.loading=n},setFormKey(r,n){r.formKey=n}},modules:{entities:_,booking:P,eventEntities:C,eventBooking:h,shortcodeParams:F,params:k,pagination:D,customerInfo:U,customFields:y,persons:T,tickets:S,payment:N,bookableType:R,coupon:M}})).mount(`#amelia-v2-booking${e.counter!==null?"-"+e.counter:""}`)}window.amelia={load:p};
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings