(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d4d58d5"],{1395:function(t,n,e){},"61b6":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()])},o=[],a=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",o=e.toStringTag||"@@toStringTag";function a(e,r,o,a){var c=r&&r.prototype instanceof s?r:s,f=Object.create(c.prototype);return i(f,"_invoke",function(e,r,o){var a,c,i,s=0,f=o||[],l=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(n,e){return a=n,c=0,i=t,d.n=e,u}};function p(e,r){for(c=e,i=r,n=0;!l&&s&&!o&&n<f.length;n++){var o,a=f[n],p=d.p,v=a[2];e>3?(o=v===r)&&(i=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=e<2&&p<a[1])?(c=0,d.v=r,d.n=a[1]):p<v&&(o=e<3||a[0]>r||r>v)&&(a[4]=e,a[5]=r,d.n=v,c=0))}if(o||e>1)return u;throw l=!0,r}return function(o,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;){a||(c?c<3?(c>1&&(d.n=-1),p(c,i)):d.n=i:d.v=i);try{if(s=2,a){if(c||(o="next"),n=a[o]){if(!(n=n.call(a,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=a.return)&&n.call(a),c<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((n=(l=d.n<0)?i:e.call(r,d))!==u)break}catch(n){a=t,c=1,i=n}finally{s=1}}return{value:n,done:l}}}(e,o,a),!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,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=l,i(p,"constructor",l),i(l,"constructor",f),f.displayName="GeneratorFunction",i(l,o,"GeneratorFunction"),i(p),i(p,o,"Generator"),i(p,r,(function(){return this})),i(p,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:a,m:v}})()}function i(t,n,e,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}i=function(t,n,e,r){function a(n,e){i(t,n,(function(t){return this._invoke(n,e,t)}))}n?o?o(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e:(a("next",0),a("throw",1),a("return",2))},i(t,n,e,r)}function u(t,n,e,r,o,a,c){try{var i=t[a](c),u=i.value}catch(t){return void e(t)}i.done?n(u):Promise.resolve(u).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var a=t.apply(n,e);function c(t){u(a,r,o,c,i,"next",t)}function i(t){u(a,r,o,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,o;return c().w((function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,a["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,o=n.v,console.error("Gagal mengambil data kontak:",o);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("909e"),e("2877")),p=Object(d["a"])(l,r,o,!1,null,null,null);n["default"]=p.exports},"909e":function(t,n,e){"use strict";e("1395")}}]);