PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
admin
/
source
/
js
!function(){"use strict";var e=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"ui top attached tabular menu"},t._l(t.tabs,function(e){return s("a",{staticClass:"item",class:{active:e.isActive},attrs:{"data-tab":e.tabkey}},[t._v(t._s(e.name))])})),t._v(" "),t._t("default")],2)};e._withStripped=!0;var t,s,i,n=(void 0,!(t={render:e,staticRenderFns:[]}),(i=("function"==typeof(s={data:function(){return{tabs:[]}},mounted:function(){this.tabs=this.$children}})?s.options:s)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Tabs.vue",i.render||(i.render=t.render,i.staticRenderFns=t.staticRenderFns,i._compiled=!0),i._scopeId=void 0,i),a={data:function(){return{msg:"hello vue"}},props:{name:{required:!0},tabkey:{required:!0},isActive:!1}},l=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"ui bottom attached tab segment",class:{active:this.isActive},attrs:{"data-tab":this.tabkey,name:this.name}},[this._t("default")],2)};l._withStripped=!0;var o,r,d=(o={render:l,staticRenderFns:[]},(r=("function"==typeof a?a.options:a)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Tab.vue",r.render||(r.render=o.render,r.staticRenderFns=o.staticRenderFns,r._compiled=!0),r._scopeId=void 0,r),u={props:["settings","parentKey","value"]},c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"field"},[s("label",[t._v(t._s(t.settings.heading))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.value.fields[t.parentKey][t.settings.key],expression:"value.fields[parentKey][settings.key]"}],attrs:{type:"text"},domProps:{value:t.value.fields[t.parentKey][t.settings.key]},on:{input:function(e){e.target.composing||t.$set(t.value.fields[t.parentKey],t.settings.key,e.target.value)}}})])};c._withStripped=!0;var p,v,m=(p={render:c,staticRenderFns:[]},(v=("function"==typeof u?u.options:u)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Input.vue",v.render||(v.render=p.render,v.staticRenderFns=p.staticRenderFns,v._compiled=!0),v._scopeId=void 0,v),f={props:["settings","value","parentKey"]},g=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"field wil-icon-wrap"},[s("div",{staticClass:"wil-icon-box"},[s("i",{class:t.value.fields[t.parentKey][t.settings.key]})]),t._v(" "),s("div",{staticClass:"ui right icon input"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.value.fields[t.parentKey][t.settings.key],expression:"value.fields[parentKey][settings.key]"}],staticClass:"wiloke-icon",attrs:{type:"text"},domProps:{value:t.value.fields[t.parentKey][t.settings.key]},on:{"update-icon":function(e){t.oUsedSection.icon=e.target.value},input:function(e){e.target.composing||t.$set(t.value.fields[t.parentKey],t.settings.key,e.target.value)}}})])])};g._withStripped=!0;var _,y,h=(_={render:g,staticRenderFns:[]},(y=("function"==typeof f?f.options:f)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Icon.vue",y.render||(y.render=_.render,y.staticRenderFns=_.staticRenderFns,y._compiled=!0),y._scopeId=void 0,y),w={props:["settings","parentKey","value"]},k=function(){var a=this,e=a.$createElement,t=a._self._c||e;return"checkbox"===a.settings.type||"wiloke-checkbox"===a.settings.type?t("div",{staticClass:"ui toggle checkbox",class:{checked:"yes"==a.value.fields[a.parentKey][a.settings.key]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:a.value.fields[a.parentKey][a.settings.key],expression:"value.fields[parentKey][settings.key]"}],attrs:{type:"checkbox","true-value":"yes","false-value":"no"},domProps:{checked:Array.isArray(a.value.fields[a.parentKey][a.settings.key])?-1<a._i(a.value.fields[a.parentKey][a.settings.key],null):a._q(a.value.fields[a.parentKey][a.settings.key],"yes")},on:{change:function(e){var t=a.value.fields[a.parentKey][a.settings.key],s=e.target,i=s.checked?"yes":"no";if(Array.isArray(t)){var n=a._i(t,null);s.checked?n<0&&a.$set(a.value.fields[a.parentKey],a.settings.key,t.concat([null])):-1<n&&a.$set(a.value.fields[a.parentKey],a.settings.key,t.slice(0,n).concat(t.slice(n+1)))}else a.$set(a.value.fields[a.parentKey],a.settings.key,i)}}}),a._v(" "),t("label",[a._v(a._s(a.settings.heading))])]):a._e()};k._withStripped=!0;var b,S,C=(b={render:k,staticRenderFns:[]},(S=("function"==typeof w?w.options:w)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Checkbox.vue",S.render||(S.render=b.render,S.staticRenderFns=b.staticRenderFns,S._compiled=!0),S._scopeId=void 0,S),F={props:["settings","value","parentKey"]},x=function(){var t=this,e=t.$createElement,s=t._self._c||e;return"hidden"===t.settings.type||"wiloke-hidden"===t.settings.type?s("div",{staticClass:"field"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.value.fields[t.parentKey][t.settings.key],expression:"value.fields[parentKey][settings.key]"}],attrs:{type:"hidden"},domProps:{value:t.value.fields[t.parentKey][t.settings.key]},on:{input:function(e){e.target.composing||t.$set(t.value.fields[t.parentKey],t.settings.key,e.target.value)}}})]):t._e()};x._withStripped=!0;var K,R,T=(K={render:x,staticRenderFns:[]},(R=("function"==typeof F?F.options:F)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Hidden.vue",R.render||(R.render=K.render,R.staticRenderFns=K.staticRenderFns,R._compiled=!0),R._scopeId=void 0,R),I={data:function(){return{placeVal:null}},props:["settings","value","parentKey"],methods:{printName:function(e){return void 0!==e.name?e.name:e},printValue:function(e){return void 0!==e.value?e.value:e},init:function(){void 0===this.value.fields[this.parentKey][this.settings.key]||""===this.value.fields[this.parentKey][this.settings.key]||null===this.value.fields[this.parentKey][this.settings.key]?this.settings.isMultiple?this.placeVal=[]:this.placeVal="":this.placeVal=this.value.fields[this.parentKey][this.settings.key]}},watch:{placeVal:function(e){this.value.fields[this.parentKey][this.settings.key]=e}},beforeMount:function(){"select"===this.settings.type&&this.init()}},V=function(){var s=this,e=s.$createElement,t=s._self._c||e;return"select"===s.settings.type||"wiloke-select"===s.settings.type?t("div",{staticClass:"field"},[t("label",[s._v(s._s(s.settings.heading))]),s._v(" "),s.settings.isMultiple?t("select",{directives:[{name:"model",rawName:"v-model",value:s.placeVal,expression:"placeVal"}],staticClass:"ui fluid dropdown",attrs:{multiple:"multiple"},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.placeVal=e.target.multiple?t:t[0]}}},s._l(s.settings.options,function(e){return t("option",{domProps:{value:s.printValue(e)}},[s._v(s._s(s.printName(e)))])})):t("select",{directives:[{name:"model",rawName:"v-model",value:s.placeVal,expression:"placeVal"}],staticClass:"ui fluid dropdown",on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.placeVal=e.target.multiple?t:t[0]}}},s._l(s.settings.options,function(e){return t("option",{domProps:{value:s.printValue(e)}},[s._v(s._s(s.printName(e)))])}))]):s._e()};V._withStripped=!0;var O,N,A=(O={render:V,staticRenderFns:[]},(N=("function"==typeof I?I.options:I)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Select.vue",N.render||(N.render=O.render,N.staticRenderFns=O.staticRenderFns,N._compiled=!0),N._scopeId=void 0,N),$={props:{value:{},settings:{type:Object,default:{}},parentKey:{},index:{default:0}},methods:{printPrettyOptions:function(e){if(""===(e=e.trim(" ")))return"";var t=e.split(","),s="";for(var i in t)s+="<li>"+t[i]+"</li>";return s}},mounted:function(){}},E=function(){var t=this,e=t.$createElement,s=t._self._c||e;return"textarea"==t.settings.type||"wiloke-textarea"==t.settings.type?s("div",{staticClass:"field"},[s("label",{staticClass:"settings__heading"},[t._v(t._s(t.settings.heading))]),t._v(" "),""!=t.settings.desc?s("p",{staticClass:"settings__desc"},[s("i",[t._v(t._s(t.settings.desc))])]):t._e(),t._v(" "),t.settings.isOptionField?s("ul",{staticClass:"settings__list",domProps:{innerHTML:t._s(t.printPrettyOptions(t.value.fields[t.parentKey][t.settings.key]))}}):t._e(),t._v(" "),t.settings.isOptionField?s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value.fields[t.parentKey][t.settings.key],expression:"value.fields[parentKey][settings.key]"}],attrs:{"data-vv-name":t.value.fields[t.parentKey][t.settings.key]},domProps:{value:t.value.fields[t.parentKey][t.settings.key]},on:{input:function(e){e.target.composing||t.$set(t.value.fields[t.parentKey],t.settings.key,e.target.value)}}}):t._e(),t._v(" "),t.settings.isRequired?s("p",{directives:[{name:"show",rawName:"v-show",value:t.errors.has(t.value.fields[t.parentKey][t.settings.key]),expression:"errors.has(value.fields[parentKey][settings.key])"}],staticClass:"ui red message"},[t._v(t._s(t.errors.first(t.value.fields[t.parentKey][t.settings.key])))]):t._e(),t._v(" "),t.settings.isOptionField?t._e():s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value.fields[t.parentKey][t.settings.key],expression:"value.fields[parentKey][settings.key]"}],domProps:{value:t.value.fields[t.parentKey][t.settings.key]},on:{input:function(e){e.target.composing||t.$set(t.value.fields[t.parentKey],t.settings.key,e.target.value)}}})]):t._e()};E._withStripped=!0;var M,D,L=(M={render:E,staticRenderFns:[]},(D=("function"==typeof $?$.options:$)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/Textarea.vue",D.render||(D.render=M.render,D.staticRenderFns=M.staticRenderFns,D._compiled=!0),D._scopeId=void 0,D),j={data:function(){return{value:this.std}},props:["label","std","desc"],methods:{onChangedValue:function(){this.$emit("input",this.value)}}},P=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"field"},[s("label",[t._v(t._s(t.label))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{type:"text"},domProps:{value:t.value},on:{change:t.onChangedValue,input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.desc?s("p",[s("i",[t._v(t._s(t.desc))])]):t._e()])};P._withStripped=!0;var H,W,Q=(H={render:P,staticRenderFns:[]},(W=("function"==typeof j?j.options:j)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/Input.vue",W.render||(W.render=H.render,W.staticRenderFns=H.staticRenderFns,W._compiled=!0),W._scopeId=void 0,W),X={data:function(){return{value:this.std}},props:["std","label"],methods:{updateIconManually:function(){this.onChangedIcon(this.value)},updateIcon:function(e){this.value=e},onChangedIcon:function(e){this.value=e,this.$emit("input",e)}}},B=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"field wil-icon-wrap"},[s("label",[t._v(t._s(t.label))]),t._v(" "),s("div",{staticClass:"wil-icon-box"},[s("i",{class:t.value})]),t._v(" "),s("div",{staticClass:"ui right icon input"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"wiloke-icon",attrs:{type:"text"},domProps:{value:t.value},on:{keyup:t.updateIconManually,"update-icon":function(e){t.onChangedIcon(e.target.value)},input:function(e){e.target.composing||(t.value=e.target.value)}}})])])};B._withStripped=!0;var G,q,U=(G={render:B,staticRenderFns:[]},(q=("function"==typeof X?X.options:X)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/Icon.vue",q.render||(q.render=G.render,q.staticRenderFns=G.staticRenderFns,q._compiled=!0),q._scopeId=void 0,q),Y={data:function(){return{value:this.std}},watch:{updateDef:function(e){this.value=e}},props:{label:{type:String,default:""},std:{type:String,default:""},desc:{type:String,default:""},updateDef:{type:String,default:""}},methods:{onChangedValue:function(){this.$emit("input",this.value)}}},z=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"disabled field"},[s("label",[t._v(t._s(t.label))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"wiloke-icon",attrs:{type:"text"},domProps:{value:t.value},on:{change:t.onChangedValue,input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.desc?s("p",[s("i",[t._v(t._s(t.desc))])]):t._e()])};z._withStripped=!0;var J,Z,ee=(J={render:z,staticRenderFns:[]},(Z=("function"==typeof Y?Y.options:Y)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/InputReadOnly.vue",Z.render||(Z.render=J.render,Z.staticRenderFns=J.staticRenderFns,Z._compiled=!0),Z._scopeId=void 0,Z),te={data:function(){return{value:this.std}},props:["isMultiple","std","label","aOptions"],methods:{onChangedValue:function(){this.$emit("input",this.value)}}},se=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"field"},[t("label",[s._v(s._s(s.label))]),s._v(" "),s.isMultiple&&"yes"==s.isMultiple?t("select",{directives:[{name:"model",rawName:"v-model",value:s.value,expression:"value"}],staticClass:"ui fluid dropdown",attrs:{multiple:"multiple"},on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.value=e.target.multiple?t:t[0]},s.onChangedValue]}},s._l(s.aOptions,function(e){return t("option",{domProps:{value:e.value}},[s._v(s._s(e.name))])})):t("select",{directives:[{name:"model",rawName:"v-model",value:s.value,expression:"value"}],staticClass:"ui fluid dropdown",on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.value=e.target.multiple?t:t[0]},s.onChangedValue]}},s._l(s.aOptions,function(e){return t("option",{domProps:{value:e.value}},[s._v(s._s(e.name))])}))])};se._withStripped=!0;var ie,ne,ae=(ie={render:se,staticRenderFns:[]},(ne=("function"==typeof te?te.options:te)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/Select.vue",ne.render||(ne.render=ie.render,ne.staticRenderFns=ie.staticRenderFns,ne._compiled=!0),ne._scopeId=void 0,ne),le={data:function(){return{value:this.std.type,customOptions:this.std.options,aFieldTypes:[{name:"Text",value:"text"},{name:"Textarea",value:"textarea"},{name:"Select",value:"select2"},{name:"Select Multiple",value:"select2-multiple"}]}},props:["std","label","options"],methods:{onChangedValue:function(){this.$emit("input",{type:this.value,options:this.customOptions})}}},oe=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",[t("div",{staticClass:"field"},[t("label",[s._v(s._s(s.label))]),s._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:s.value,expression:"value"}],staticClass:"ui fluid dropdown",on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});s.value=e.target.multiple?t:t[0]},s.onChangedValue]}},s._l(s.aFieldTypes,function(e){return t("option",{domProps:{value:e.value}},[s._v(s._s(e.name))])}))]),s._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"select2"==s.value||"select2-multiple"==s.value,expression:"value=='select2' || value=='select2-multiple'"}]},[t("label",[s._v("Enter in your custom Options")]),s._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:s.customOptions,expression:"customOptions"}],domProps:{innerHTML:s._s(s.options),value:s.customOptions},on:{change:s.onChangedValue,input:function(e){e.target.composing||(s.customOptions=e.target.value)}}}),s._v(" "),s._m(0)])])};oe._withStripped=!0;var re,de,ue=(re={render:oe,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("i",[this._v("Each options should be separated by a comma: Eg: Option a,Option B")])])}]},(de=("function"==typeof le?le.options:le)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/SelectFieldType.vue",de.render||(de.render=re.render,de.staticRenderFns=re.staticRenderFns,de._compiled=!0),de._scopeId=void 0,de),ce={props:{aFields:{type:Array,default:{}},wrapperClass:{type:String,default:"three fields ui segment"}},components:{WilokeInput:Q,WilokeIcon:U,WilokeInputReadOnly:ee,WilokeSelect:ae,WilokeSelectFieldType:ue},methods:{addField:function(){this.aFields.push([{heading:"Label",type:"label",component:"wiloke-input",key:"label"},{heading:"Key",type:"name",component:"wiloke-input",key:"name"},{heading:"Field Type",type:"customField",value:{type:"text",options:""},component:"wiloke-select-field-type"}])},deleteField:function(e){this.aFields.splice(e,1)}}},pe=function(){var s=this,e=s.$createElement,i=s._self._c||e;return i("div",[s._l(s.aFields,function(e,t){return i("div",{class:s.wrapperClass},[s._l(e,function(t){return i(t.component,{tag:"component",attrs:{std:t.value,label:t.heading},on:{input:function(e){t.value=e}}})}),s._v(" "),i("a",{staticClass:"la la-times",staticStyle:{position:"absolute",top:"0",right:"0"},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),s.deleteField(t)}}})],2)}),s._v(" "),i("button",{staticClass:"ui positive basic button",on:{click:function(e){return e.preventDefault(),s.addField(e)}}},[s._v("Add Field")])],2)};pe._withStripped=!0;var ve,me,fe=(ve={render:pe,staticRenderFns:[]},(me=("function"==typeof ce?ce.options:ce)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/new-form-fields/Group.vue",me.render||(me.render=ve.render,me.staticRenderFns=ve.staticRenderFns,me._compiled=!0),me._scopeId=void 0,me);Vue.config.devtools=!0,null!==document.getElementById("wiloke-design-fields")&&new Vue({el:"#wiloke-design-fields",data:{usedSections:WILOKE_LISTING_TOOLS.addListing.usedSections,oAllSections:WILOKE_LISTING_TOOLS.addListing.allSections,oAvailableSections:WILOKE_LISTING_TOOLS.addListing.availableSections,savingXHR:null,errorMsg:"",successMsg:"",aCustomFields:["text","textarea","select","gallery","image"],reviewError:"",reviewSuccess:"",postType:WILOKE_LISTING_TOOLS.postType,ajaxAction:WILOKE_LISTING_TOOLS.addListing.ajaxAction},components:{Tabs:n,Tab:d,"wiloke-icon":h,"wiloke-text":m,"wiloke-checkbox":C,"wiloke-hidden":T,"wiloke-select":A,"wiloke-textarea":L,WilokeGroup:fe,WilokeNewInput:Q},methods:{sectionName:function(e){return e.isCustomSection&&"yes"===e.isCustomSection?"( "+e.type+" - Custom Section )":"( "+e.type+" )"},isFieldEnabled:function(e,t){return!e.dependencyOnToggle||"yes"===this.oUsedSections.fields.isEnabled||"isEnabled"===t.key},uCaseFirst:function(e){var t=e.length,s=e.substr(0,1),i=e.substr(1,t);return s.toUpperCase()+i},addedNewSectionInUsedArea:function(e){return void 0!==e.removed&&"undefined"!==e.removed.element.isNotDeleteAble&&e.removed.element.isNotDeleteAble?(this.usedSections.splice(e.removed.oldIndex,0,e.removed.element),!1):(void 0!==e.added&&"group"===e.added.element.type&&this.oAvailableSections.push(e.added.element),void 0!==e.added&&("yes"===e.added.element.isCustomSection||"yes"===e.added.element.isMultipleBlock)&&void this.oAvailableSections.push(e.added.element))},addedNewSectionInAvailableArea:function(e){return void 0!==e.added&&"undefined"!==e.added.element.isNotDeleteAble&&e.added.element.isNotDeleteAble?(this.oAvailableSections.splice(e.added.newIndex,1),!1):void 0!==e.added&&("no"===e.added.element.isCustomSection||"no"===e.added.element.isMultipleBlock)&&void this.oAvailableSections.splice(e.added.newIndex,1)},saveValue:function(e){var t=this;null!==this.savingXHR&&200!==this.savingXHR.status&&(this.$form.addClass("loading"),this.savingXHR.abort());var s=jQuery(e.currentTarget),i=this.usedSections;s.addClass("loading"),this.savingXHR=jQuery.ajax({type:"POST",url:ajaxurl,data:{results:i,action:this.ajaxAction,postType:this.postType},success:function(e){e.success?(t.successMsg=e.data.msg,setTimeout(function(){t.successMsg=""},1e4)):(t.errorMsg=e.data.msg,setTimeout(function(){t.errorMsg=""},1e4)),s.removeClass("loading")}})},generateKeyFromSectionName:function(e){return(e=(e=e.toLowerCase()).replace(/,|\.,\?/gi,function(){return""})).split(" ").join("_").trim(" ")},changedSectionName:function(e){var t="";jQuery(e.currentTarget).hasClass("isCustomSection")&&(t=jQuery(e.currentTarget).data("sectionid"),this.usedSections[t].key=this.generateKeyFromSectionName(jQuery(e.currentTarget).val()))},expandBlockSettings:function(e){jQuery(e.currentTarget).siblings(".dragArea__form-content").toggleClass("hidden")},addCustomSingleTab:function(e){this.singleTabs.push({name:"Custom Tab",isCustomTab:!0,toggle:!0,content:""})},removeCustomTab:function(e){var t=jQuery(e.currentTarget).data("order");this.singleTabs.splice(t,1)},removeSection:function(e,t){if(t.isNotDeleteAble)return alert("This section is required by the theme!"),!1;if(t.isCustomSection&&"yes"===t.isCustomSection){if(!confirm("You want to delete this block?"))return!1;this.usedSections.splice(e,1)}else{var s=this.usedSections[e];this.usedSections.splice(e,1),this.oAvailableSections.push(s)}},resetDefault:function(){var t=this;if(!confirm("Do you want to reset to the default settings?"))return!1;var e="wilcity_reset_addlisting_settings";"event"===this.postType&&(e="wilcity_reset_event_settings"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:e,postType:this.postType,isReset:"yes"},success:function(e){e.success?(t.successMsg=e.data.msg,setTimeout(function(){t.successMsg=""},1e3)):(t.errorMsg=e.data.msg,setTimeout(function(){t.errorMsg=""},1e3))}})},saveSingleListingSettings:function(e){var t=this;null!==this.savingXHR&&200!==this.savingXHR.status&&this.savingXHR.abort();var s=this.singleTabs,i=jQuery("#wiloke-design-single-listing-form");return i.addClass("loading"),this.savingXHR=jQuery.ajax({type:"POST",url:ajaxurl,data:{results:s,action:"wiloke_save_design_single_listing"},success:function(e){e.success?(t.successMsg=e.data.msg,setTimeout(function(){t.successMsg=""},1e4)):(t.errorMsg=e.data.msg,setTimeout(function(){t.errorMsg=""},1e4)),i.removeClass("loading")}}),!0}},computed:{showingCustomFields:function(){var t=[];return this.usedBlock.length&&this.usedBlock.forEach(function(e){e.isCustomField&&t.push(e)}),!!t.length&&t}}})}();
[+]
..
[-] wil-main-search-form.wil-main-search-form.js
[edit]
[-] claim-script.js
[edit]
[-] promotion-script.js
[edit]
[-] design-single-nav.js
[edit]
[-] listing-tools.js
[edit]
[-] wil-single-nav.wil-single-nav.js
[edit]
[-] script.js
[edit]
[-] default~wil-hero-search-form~wil-main-search-form.default~wil-hero-search-form~wil-main-search-form.js
[edit]
[-] mailtpl-admin.js
[edit]
[-] design-hero-search-form.js
[edit]
[-] design-sidebar.js
[edit]
[-] wil-hero-search-form.wil-hero-search-form.js
[edit]
[-] mobile-menu.js
[edit]
[-] global.js
[edit]
[-] import-export-wiloke-tools.js
[edit]
[-] listing-card.js
[edit]
[-] contactform7.js
[edit]
[-] push-notifications.js
[edit]
[-] wiloke-submission-general.js
[edit]
[-] listing-plan.js
[edit]
[-] wil-schema-markup.wil-schema-markup.js
[edit]
[-] add-custom-posttype.js
[edit]
[-] report-script.js
[edit]
[-] event-script.js
[edit]
[-] quick-search-form-script.js
[edit]
[-] general.js
[edit]
[-] wil-single-sidebar.wil-single-sidebar.js
[edit]
[-] design-fields.js
[edit]
[-] vendors~wil-schema-markup.vendors~wil-schema-markup.js
[edit]
[-] listing-settings.js
[edit]
[-] noticeafterupdating.js
[edit]
[-] wil-listing-card.wil-listing-card.js
[edit]
[-] design-search-form.js
[edit]
[-] design-highlight-boxes.js
[edit]
[-] pw-select2.js
[edit]
[-] verify-purchase-code.js
[edit]
[-] plan-controller.js
[edit]
[-] wil-reviews.wil-reviews.js
[edit]
[-] schema-markup.js
[edit]
[-] wil-single-highlight-boxes.wil-single-highlight-boxes.js
[edit]