(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00a4da0b"],{"65a2":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pane"},[a("sidebar-title",[a("span",[e._v(e._s(e.$t("editButton")))])]),a("div",{staticClass:"sidebar-inner-box pt-0"},[a("sidebar-tab-wrapper",{attrs:{defaultTab:"general"},on:{change:e.checkDialInput},scopedSlots:e._u([{key:"content",fn:function(){return[a("sidebar-tab-content",{attrs:{id:"general"}},[a("om-dropdown-input",{attrs:{label:"onClick",property:"data.action",items:e.actionTypes}}),"redirect"===e.actionType?a("div",{staticClass:"sidebar-input-wrapper sidebar-input-wrapper-label pb-0"},[e._v(e._s(e.$t("url")))]):e._e(),"dial"===e.actionType?a("div",{staticClass:"sidebar-input-wrapper sidebar-input-wrapper-label pb-0"},[e._v(e._s(e.$t("phoneNumber")))]):e._e(),a("div",{staticClass:"pb-2"},[e.isTypeRedirect?[a("om-simple-input",{attrs:{label:"",property:"data.redirectUrl",placeholder:"https://www.example.com/"}}),a("om-switches",{attrs:{label:"keepQueryParams",property:"data.keepQueryParams",enabledText:e.$t("yes"),disabledText:e.$t("no"),tooltip:"keepQueryParamsTooltip"}}),a("om-switches",{attrs:{label:"openInNewTab",property:"data.newTab",enabledText:e.$t("yes"),disabledText:e.$t("no")}})]:e._e(),"dial"===e.actionType?a("om-simple-input",{ref:"phoneNumberInput",attrs:{label:"",property:"data.rawPhoneNumber"}}):e._e(),"jumpToPage"===e.actionType?a("om-dropdown-input",{attrs:{label:"choosedPage",property:"data.jumpToPage",items:e.choosablePages,i18n:!1}}):e._e(),e.isTypeBasedOnFeedback||e.isTypeCopyCoupon?e._e():a("om-dropdown-input",{attrs:{label:"reportAs",property:"data.reportAs",items:e.reportAsOptions}}),e.isTypeCopyCoupon?e._e():a("div",{staticClass:"sidebar-help-wrapper mt-4 ml-1"},[a("div",{staticClass:"sidebar-help-content smaller-size"},[e._v(e._s(e.$t("reportAsTooltip."+e.selectedElement.data.reportAs)))])]),e.isTypeBasedOnFeedback||e.isTypeCopyCoupon?e._e():[a("om-switches",{attrs:{label:"buttonCampaignStatus",property:"data.status",enabledText:e.$t("yes"),disabledText:e.$t("no")}}),a("om-dropdown-input",{attrs:{label:"syncToIntegration.label",property:"data.syncToIntegration",items:e.syncToIntegrationTypes}})],e.isTypeCopyCoupon?e._e():a("div",{staticClass:"sidebar-help-wrapper mt-4 ml-1"},[a("div",{staticClass:"sidebar-help-content smaller-size"},[e._v(e._s(e.$t("syncToIntegration."+e.selectedElement.data.syncToIntegration+".tooltip")))])])],2),e.isTypeCopyCoupon?[a("div",{staticClass:"sidebar-help-wrapper ml-1"},[a("div",{staticClass:"sidebar-help-content smaller-size"},[e._v(e._s(e.$t("couponTooltip")))])]),a("div",{staticClass:"mt-5"},[a("div",{staticClass:"sidebar-input-wrapper-label pb-0"},[e._v(e._s(e.$t("couponCopy.title"))),a("om-simple-input",{attrs:{property:"selectedElement.data.coupon.successCopyText"}})],1)]),e.isActiveShopifyDomain(e.campaign.domain)?a("div",{staticClass:"mt-5"},[a("div",{staticClass:"sidebar-input-wrapper-label pb-0 d-flex align-items-center"},[e._v(e._s(e.$t("couponCopy.missing.title"))),a("om-tooltip",{staticClass:"ml-2",attrs:{color:"#23262a"}},[e._v(e._s(e.$t("couponCopy.missing.tooltip")))])],1),a("om-simple-input",{attrs:{property:"selectedElement.data.coupon.failureCopyText"}})],1):e._e()]:e._e()],2),a("sidebar-tab-predefined-style",{attrs:{property:"selectedElement",component:"button",editMobile:""},scopedSlots:e._u([{key:"before",fn:function(){return[a("custom-theme-style"),e.mobilePreview?a("sidebar-accordion",{attrs:{addDeviceSelector:!0,opened:!0,title:e.$t("textSettings")}},[a("om-range-input",{attrs:{label:"fontSize",property:"fontMultiplier",min:0,max:200,step:1,unit:"%",editMobile:!0,typeOfComponent:"text"}}),a("om-dropdown-input",{attrs:{label:"mobileAlign",property:"selectedElement.mobile.textAlign",items:e.textAlign,editMobile:!0,typeOfComponent:"text"}})],1):e._e(),a("om-size",{attrs:{propsProperty:"selectedElement",typeOfComponent:"button"}})]},proxy:!0}])}),a("advanced-tab",{attrs:{slot:"advancedTabContent",spacingProps:{showPadding:!1,typeOfComponent:"button"}},slot:"advancedTabContent"})]},proxy:!0}])})],1)],1)},o=[],i=(a("11ed"),a("ef1f"),a("32a0")),s=a("de79"),r=a("9ce4"),p=a("4f99"),l=a("784f"),c=a("afa3"),d=a("d5a3"),u=a("1732"),m=function(){var e=document.getElementById("workspaceFrame");return e.contentWindow.om.store},b={components:{AdvancedTab:function(){return a.e("chunk-2d0d3677").then(a.bind(null,"5d2d"))},CustomThemeStyle:function(){return a.e("chunk-dc13dbb4").then(a.bind(null,"3ac1"))}},mixins:[p["a"],l["a"],u["a"]],data:function(){return{textAlign:[{key:"left",value:"left"},{key:"center",value:"center"},{key:"right",value:"right"}],iti:null,show:!1,showHover:!1,showAction:!0,showMobile:!1,reportAs:[{key:"conversion",value:"conversion"},{key:"rejected",value:"rejected"},{key:"none",value:"none"}],textJustify:[{key:"left",value:"om-justify-left"},{key:"center",value:"om-justify-center"},{key:"right",value:"om-justify-right"}],syncToIntegrationTypes:[{key:"syncToIntegration.smartSend.label",value:"smartSend"},{key:"syncToIntegration.rightNow.label",value:"rightNow"}]}},computed:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(r["f"])(["selectedElement","selectedPage","pages","mobilePreview","validationError","campaign"])),Object(r["d"])(["isTemplateEditorMode","nestedAccess","pageCount","hasAccountFeature","isActiveShopifyDomain"])),{},{actionType:{get:function(){return this.getValueOf("data.action")},set:function(e){this.setValueOf("data.action",e)}},selectedElementValue:function(){return this.getValueOf("size")},choosablePages:function(){for(var e=m().getters.pages||[],t=[{key:"None",value:"none"}],a=0;a<e.length;a++){var n=e[a];if(n.uid!==this.selectedPage.uid){var o=Object(c["a"])(n,"data.title")||a+1;t.push({key:o,value:a})}}return t},isTypeRedirect:function(){return"redirect"===this.actionType},isTypeCopyCoupon:function(){return"copyCoupon"===this.actionType},isTypeBasedOnFeedback:function(){return"basedOnFeedback"===this.actionType},reportAsOptions:function(){var e=Object(i["a"])(this.reportAs);return this.isEmbedded&&e.splice(1,1),e}}),watch:{actionType:function(e,t){"dial"===t&&this.destroyPhoneNumberInput(),"dial"===e&&this.initPhoneNumberInput(),"redirect"===e&&this.setValueOf("data.newTab",!0),"copyCoupon"===e&&this.handleCopyCoupon(),this.resetCouponRedeemAction()},"selectedElement.data.rawPhoneNumber":Object(d["a"])((function(){this.rawPhoneNumberChanged()}),300)},mounted:function(){this.resetCouponRedeemAction()},methods:Object(s["a"])(Object(s["a"])({},Object(r["e"])(["updateData","updateStyle"])),{},{handleCopyCoupon:function(){this.setValueOf("data.reportAs","none"),this.setValueOf("data.status",!1)},actionAccordion:function(e){e&&"dial"===this.actionType&&this.initPhoneNumberInput()},resetCouponRedeemAction:function(){"couponRedeem"!==this.actionType||this.isActiveShopifyDomain(this.campaign.domain)||(this.actionType="closePopup")},checkDialInput:function(){var e=this;"dial"===this.actionType&&setTimeout((function(){e.$refs.phoneNumberInput&&e.initPhoneNumberInput()}),200)}})},y=b,h=(a("6cca"),a("d802")),f=Object(h["a"])(y,n,o,!1,null,null,null);t["default"]=f.exports},"6cca":function(e,t,a){"use strict";a("a8e1")},a8e1:function(e,t,a){}}]);
//# sourceMappingURL=chunk-00a4da0b.97a80ea3.js.map