1"use strict";(self.webpackChunktinyurl=self.webpackChunktinyurl||[]).push([[3381,5762],{75256(e,t,s){s.d(t,{A:()=>c});var r=s(3139),i=s(91212),o=s(10741),n=s(94736),a=s(77063),u=s(2543);function c(){var e=(0,n.A)().getters,t=(0,a.A)().notifyError,s=function(e){return e=u.startCase(e),"true"===localStorage.getItem("isSurvey".concat(e,"Skipped"))},c=function(t){var r,i=e.isUserLoggedIn,o=null===(r=e.getUserCurrentSubscription)||void 0===r?void 0:r.isPastDue;return!(!i||o)&&!s(t)};return{fetchSurvey:function(e,s){c(s)&&axios.get(e,{DISABLE_ERROR_INTERCEPTORS:!0}).then(function(e){var t=(0,r.A)("survey/TinyurlSurvey"),s=e.data.data;(0,o.yy)(500).then(function(){Bus.$emit("showModal",t,{questions:s},{},{},!0)})}).catch(function(e){if(e.response)throw e;t(),(0,i.vV)("Unable to load survey: "+e.message)})},isSurveySkipped:s}}},5762(e,t,s){s.r(t),s.d(t,{default:()=>d});var r=s(95353),i=s(75256);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function n(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function a(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){u(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function u(e,t,s){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var r=s.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const c={name:"DomainUpsellPaymentVerify",setup:function(){var e=(0,i.A)();return{fetchSurvey:e.fetchSurvey,isSurveySkipped:e.isSurveySkipped}},data:function(){return{session:void 0,order:{id:void 0,status:17,items:[]},status:"processing"}},computed:a(a({},(0,r.L8)(["isOrderOnReview"])),{},{reviewing:function(){return this.isOrderOnReview(this.order.status)},processing:function(){this.session;return[0,16,17].includes(this.order.status)},succeeded:function(){this.session;return[48].includes(this.order.status)},failed:function(){this.session;return[18,49,50].includes(this.order.status)}}),created:function(){var e,t;(this.session=null===(e=this.$route.query)||void 0===e?void 0:e.session,this.session)?this.checkStatus():(this.order.id=null===(t=this.$route.query)||void 0===t?void 0:t.order,this.order.id?this.checkOrder():this.status="failed")},methods:a(a({},(0,r.i0)(["refreshState"])),{},{closeAction:function(){this.$emit("close"),this.loadSurvey(),sessionStorage.removeItem("orderPurchaseSource")},checkOrder:function(){var e=this,t=this.$apiUrl("shopping-cart/order/{id}",{id:this.order.id});axios.get(t,{DISABLE_ERROR_INTERCEPTORS:!0}).then(function(t){var s=t.data;e.order=s.data,e.processing?setTimeout(e.checkOrder,1e3):e.orderProcessed()}).catch(function(){e.status="failed"})},checkStatus:function(){var e=this,t=this.$apiUrl("shopping-cart/status/{session}",{session:this.session});axios.get(t,{DISABLE_ERROR_INTERCEPTORS:!0}).then(function(t){var s=t.data;e.order=s.data,e.processing?setTimeout(e.checkStatus,1e3):e.orderProcessed()}).catch(function(){e.status="failed"})},loadSurvey:function(){if(this.isSurveySkipped("onboarding"))this.$router.replace({name:"freetrial.get-started-modal"});else{this.$router.replace({query:{to:"freetrial.get-started-modal"}});try{var e="onboarding",t=this.$apiUrl("survey/".concat(e));this.fetchSurvey(t,e)}catch(e){this.$router.replace({name:"freetrial.get-started-modal"})}}},orderProcessed:function(){this.refreshState(),this.succeeded?this.status="success":this.reviewing||(this.status="failed")}})};const d=(0,s(14486).A)(c,function(){var e=this,t=e._self._c;return t("focus-trap",[t("div",{staticClass:"modal d-block",attrs:{tabindex:"-1"}},[t("div",{staticClass:"modal-dialog modal-dialog-centered modal
1-557px"},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-header"},[t("h5",{staticClass:"modal-title font-weight-semibold"},[e._v("\n Order\n "),"processing"==e.status?t("span",[e._v("is Processing")]):e._e(),e._v(" "),"success"==e.status?t("span",[e._v("Confirmed")]):e._e(),e._v(" "),"failed"==e.status?t("span",[e._v("Unsuccessful")]):e._e()])]),e._v(" "),t("div",{staticClass:"modal-body"},[t("p",["processing"==e.status?t("span",[e._v("\n Your "+e._s(e.order.items.length>1?"domains":"domain")+" will be\n available soon. Please wait a moment as we process your order.\n ")]):e._e(),e._v(" "),"success"==e.status?t("span",[e._v("\n To view your orders, you may check the Orders page.\n ")]):e._e(),e._v(" "),"failed"==e.status?t("span",[e._v("\n One or more of your domains was unsuccessfully processed.\n ")]):e._e()])]),e._v(" "),t("div",{staticClass:"modal-footer"},[t("button",{staticClass:"btn btn-blue",attrs:{type:"button",disabled:"processing"==e.status},on:{click:e.closeAction}},[e._v("\n Continue\n ")])])])])])])},[],!1,null,null,null).exports}}]);
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.