PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
admin
/
source
/
js
!function(){"use strict";var e={data:function(){return{color:this.value}},props:["value"],mounted:function(){var t=this;jQuery(this.$el).find(".color-picker").spectrum({showAlpha:!0,showInput:!0,allowEmpty:!0,change:function(e){t.color=e.toRgbString(),t.$emit("input",t.color)}})}},t=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"field"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.color,expression:"color"}],staticClass:"color-picker",attrs:{type:"text"},domProps:{value:t.color},on:{input:function(e){e.target.composing||(t.color=e.target.value)}}})])};t._withStripped=!0;var s,o,i,n=(void 0,!(s={render:t,staticRenderFns:[]}),(i=("function"==typeof(o=e)?o.options:o)||{}).__file="/Volumes/Dev/wilcity.com/wp-content/plugins/wiloke-listing-tools/admin/source/dev/form-fields/ColorPicker.vue",i.render||(i.render=s.render,i.staticRenderFns=s.staticRenderFns,i._compiled=!0),i._scopeId=void 0,i);null!==document.getElementById("wiloke-design-highlight-boxes")&&new Vue({el:"#wiloke-design-highlight-boxes",data:{aBoxes:WILOKE_LISTING_TOOLS.aBoxes,savingXHR:null,aIsUsingPopupOnFrontend:["message-popup","claim-popup","event","add-photos-videos-popup"],successMsg:"",errorMsg:"",postType:WILOKE_LISTING_TOOLS.postType,ajaxAction:WILOKE_LISTING_TOOLS.aBoxes.ajaxAction},components:{WilokeColorPicker:n},methods:{removeItem:function(e,t){return void 0===t.aItems[e].isCustomSection?(alert("You can not delete the default sections, but you can disable it"),!1):!!confirm("Do you want to delete this section?")&&void this.aBoxes.aItems.splice(e,1)},addNewItem:function(){var e=new Date;this.aBoxes.aItems.push({name:"Custom Section",key:e.getTime(),icon:"la la-image",bgColor:"",type:"custom-link",isCustomSection:"yes",linkTargetType:"self",linkTo:""})},nameChanged:function(e){if(-1===this.aIsUsingPopupOnFrontend.indexOf(this.aBoxes.aItems[e].type)){var t=this.aBoxes.aItems[e].name.toLowerCase();t=(t=t.replace(/,|\.,\?/gi,function(){return""})).split(" ").join("_").trim(" "),this.aBoxes.aItems[e].key=t}},changeBoxType:function(e){var t=this.aIsUsingPopupOnFrontend.indexOf(this.aBoxes.aItems[e].type);if(-1!==t)this.aBoxes.aItems[e].key=this.aIsUsingPopupOnFrontend[t],this.aBoxes.aItems[e].isPopup="yes";else{var s=new Date;this.aBoxes.aItems[e].key=s.getTime(),this.aBoxes.aItems[e].isPopup="no"}},saveChanges:function(e){var t=this;null!==this.savingXHR&&200!==this.savingXHR.status&&(this.$form.addClass("loading"),this.savingXHR.abort());var s=jQuery(e.currentTarget).closest("form");jQuery("#wiloke-design-highlight-boxes").addClass("loading"),this.savingXHR=jQuery.ajax({type:"POST",url:ajaxurl,data:{data:this.aBoxes,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")}})}}})}();
[+]
..
[-] 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]