(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d38f31b0"],{"66fa":function(t,n,e){},"9e1b":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t._self._c;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.contact?n("div",[n("div",{staticClass:"container-alamat"},[n("div",{staticClass:"alamat-item"},[n("span",{staticClass:"nama-kontak"},[t._v(t._s(t.contact.name))]),t.contact.contact?n("span",{staticClass:"telepon-kontak"},[t._v(t._s(t.contact.contact))]):t._e(),t.contact.address?n("span",{staticClass:"alamat-kontak"},[t._v(t._s(t.contact.address))]):t._e()])])]):t._e()])},a=[],o=e("0d5e");function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",a=e.toStringTag||"@@toStringTag";function o(e,r,a,o){var c=r&&r.prototype instanceof s?r:s,f=Object.create(c.prototype);return i(f,"_invoke",function(e,r,a){var o,c,i,s=0,f=a||[],l=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(n,e){return o=n,c=0,i=t,d.n=e,u}};function p(e,r){for(c=e,i=r,n=0;!l&&s&&!a&&n<f.length;n++){var a,o=f[n],p=d.p,v=o[2];e>3?(a=v===r)&&(i=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=t):o[0]<=p&&((a=e<2&&p<o[1])?(c=0,d.v=r,d.n=o[1]):p<v&&(a=e<3||o[0]>r||r>v)&&(o[4]=e,o[5]=r,d.n=v,c=0))}if(a||e>1)return u;throw l=!0,r}return function(a,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&p(f,v),c=f,i=v;(n=c<2?t:i)||!l;){o||(c?c<3?(c>1&&(d.n=-1),p(c,i)):d.n=i:d.v=i);try{if(s=2,o){if(c||(a="next"),n=o[a]){if(!(n=n.call(o,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,c<2&&(c=0)}else 1===c&&(n=o.return)&&n.call(o),c<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),c=1);o=t}else if((n=(l=d.n<0)?i:e.call(r,d))!==u)break}catch(n){o=t,c=1,i=n}finally{s=1}}return{value:n,done:l}}}(e,a,o),!0),f}var u={};function s(){}function f(){}function l(){}n=Object.getPrototypeOf;var d=[][r]?n(n([][r]())):(i(n={},r,(function(){return this})),n),p=l.prototype=s.prototype=Object.create(d);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,i(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=l,i(p,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(p),i(p,a,"Generator"),i(p,r,(function(){return this})),i(p,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:o,m:v}})()}function i(t,n,e,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}i=function(t,n,e,r){function o(n,e){i(t,n,(function(t){return this._invoke(n,e,t)}))}n?a?a(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e:(o("next",0),o("throw",1),o("return",2))},i(t,n,e,r)}function u(t,n,e,r,a,o,c){try{var i=t[o](c),u=i.value}catch(t){return void e(t)}i.done?n(u):Promise.resolve(u).then(r,a)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var o=t.apply(n,e);function c(t){u(o,r,a,c,i,"next",t)}function i(t){u(o,r,a,c,i,"throw",t)}c(void 0)}))}}var f={data:function(){return{loading:!0,contact:null,id:null}},created:function(){var t=this;return s(c().m((function n(){return c().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.getDataFromURL();case 1:return n.a(2)}}),n)})))()},methods:{getDataFromURL:function(){var t=this;return s(c().m((function n(){return c().w((function(n){while(1)switch(n.n){case 0:if(t.id=t.$route.query.id,!t.id){n.n=2;break}return n.n=1,t.getContact();case 1:n.n=3;break;case 2:t.loading=!1;case 3:return n.a(2)}}),n)})))()},getContact:function(){var t=this;return s(c().m((function n(){var e,r,a;return c().w((function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,o["a"].get("/contact");case 1:e=n.v,r=e.data.contact||e.data.data||[],t.contact=r.find((function(n){return n.id==t.id})),n.n=3;break;case 2:n.p=2,a=n.v,console.error("Gagal mengambil data kontak:",a);case 3:return n.p=3,t.loading=!1,setTimeout(s(c().m((function n(){return c().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.print();case 1:return n.a(2)}}),n)}))),1200),n.f(3);case 4:return n.a(2)}}),n,null,[[0,2,3,4]])})))()},print:function(){return s(c().m((function t(){return c().w((function(t){while(1)switch(t.n){case 0:return t.n=1,window.print();case 1:setTimeout((function(){window.close()}),5e3);case 2:return t.a(2)}}),t)})))()}}},l=f,d=(e("da24"),e("2877")),p=Object(d["a"])(l,r,a,!1,null,null,null);n["default"]=p.exports},da24:function(t,n,e){"use strict";e("66fa")}}]);