text: parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"WHr8":[function(require,module,exports) {
  "use strict";function e(){}Object.defineProperty(exports,"__esModule",{value:!0});var t={},n=[],o=[];function r(r,i){var l,a,p,s,c=o;for(s=arguments.length;s-- >2;)n.push(arguments[s]);for(i&&null!=i.children&&(n.length||n.push(i.children),delete i.children);n.length;)if((a=n.pop())&&void 0!==a.pop)for(s=a.length;s--;)n.push(a[s]);else"boolean"==typeof a&&(a=null),(p="function"!=typeof r)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(p=!1)),p&&l?c[c.length-1]+=a:c===o?c=[a]:c.push(a),l=p;var u=new e;return u.nodeName=r,u.children=c,u.attributes=null==i?void 0:i,u.key=null==i?void 0:i.key,void 0!==t.vnode&&t.vnode(u),u}function i(e,t){for(var n in t)e[n]=t[n];return e}var l="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function a(e,t){return r(e.nodeName,i(i({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,s=[];function c(e){!e._dirty&&(e._dirty=!0)&&1==s.push(e)&&(t.debounceRendering||l)(u)}function u(){var e,t=s;for(s=[];e=t.pop();)e._dirty&&A(e)}function f(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&d(e,t.nodeName):n||e._componentConstructor===t.nodeName}function d(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function _(e){var t=i({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function v(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===p.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,y,l):e.removeEventListener(t,y,l),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)b(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var a=r&&t!==(t=t.replace(/^xlink:?/,""));null==o||!1===o?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function b(e,t,n){try{e[t]=n}catch(e){}}function y(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var x=[],C=0,g=!1,N=!1;function k(){for(var e;e=x.pop();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount()}function w(e,t,n,o,r,i){C++||(g=null!=r&&void 0!==r.ownerSVGElement,N=null!=e&&!("__preactattr_"in e));var l=S(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--C||(N=!1,i||k()),l}function S(e,t,n,o,r){var i=e,l=g;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),L(e,!0))),i.__preactattr_=!0,i;var a=t.nodeName;if("function"==typeof a)return D(e,t,n,o);if(g="svg"===a||"foreignObject"!==a&&g,a=String(a),(!e||!d(e,a))&&(i=v(a,g),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),L(e,!0)}var p=i.firstChild,s=i.__preactattr_,c=t.children;if(null==s){s=i.__preactattr_={};for(var u=i.attributes,f=u.length;f--;)s[u[f].name]=u[f].value}return!N&&c&&1===c.length&&"string"==typeof c[0]&&null!=p&&void 0!==p.splitText&&null==p.nextSibling?p.nodeValue!=c[0]&&(p.nodeValue=c[0]):(c&&c.length||null!=p)&&U(i,c,n,o,N||null!=s.dangerouslySetInnerHTML),P(i,t.attributes,s),g=l,i}function U(e,t,n,o,r){var i,l,a,p,s,c=e.childNodes,u=[],d={},_=0,v=0,h=c.length,b=0,y=t?t.length:0;if(0!==h)for(var x=0;x<h;x++){var C=c[x],g=C.__preactattr_;null!=(N=y&&g?C._component?C._component.__key:g.key:null)?(_++,d[N]=C):(g||(void 0!==C.splitText?!r||C.nodeValue.trim():r))&&(u[b++]=C)}if(0!==y)for(x=0;x<y;x++){var N;if(s=null,null!=(N=(p=t[x]).key))_&&void 0!==d[N]&&(s=d[N],d[N]=void 0,_--);else if(!s&&v<b)for(i=v;i<b;i++)if(void 0!==u[i]&&f(l=u[i],p,r)){s=l,u[i]=void 0,i===b-1&&b--,i===v&&v++;break}s=S(s,p,n,o),a=c[x],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?m(a):e.insertBefore(s,a))}if(_)for(var x in d)void 0!==d[x]&&L(d[x],!1);for(;v<=b;)void 0!==(s=u[b--])&&L(s,!1)}function L(e,t){var n=e._component;n?H(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||m(e),M(e))}function M(e){for(e=e.lastChild;e;){var t=e.previousSibling;L(e,!0),e=t}}function P(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||h(e,o,n[o],n[o]=void 0,g);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||h(e,o,n[o],n[o]=t[o],g)}var T={};function B(e){var t=e.constructor.name;(T[t]||(T[t]=[])).push(e)}function E(e,t,n){var o,r=T[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),j.call(o,t,n)):((o=new j(t,n)).constructor=e,o.render=W),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.nextBase=r[i].nextBase,r.splice(i,1);break}return o}function W(e,t,n){return this.constructor(e,n)}function V(e,n,o,r,i){e._disable||(e._disable=!0,(e.__ref=n.ref)&&delete n.ref,(e.__key=n.key)&&delete n.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=n,e._disable=!1,0!==o&&(1!==o&&!1===t.syncComponentUpdates&&e.base?c(e):A(e,1,i)),e.__ref&&e.__ref(e))}function A(e,n,o,r){if(!e._disable){var l,a,p,s=e.props,c=e.state,u=e.context,f=e.prevProps||s,d=e.prevState||c,v=e.prevContext||u,m=e.base,h=e.nextBase,b=m||h,y=e._component,g=!1;if(m&&(e.props=f,e.state=d,e.context=v,2!==n&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(s,c,u)?g=!0:e.componentWillUpdate&&e.componentWillUpdate(s,c,u),e.props=s,e.state=c,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!g){l=e.render(s,c,u),e.getChildContext&&(u=i(i({},u),e.getChildContext()));var N,S,U=l&&l.nodeName;if("function"==typeof U){var M=_(l);(a=y)&&a.constructor===U&&M.key==a.__key?V(a,M,1,u,!1):(N=a,e._component=a=E(U,M,u),a.nextBase=a.nextBase||h,a._parentComponent=e,V(a,M,0,u,!1),A(a,1,o,!0)),S=a.base}else p=b,(N=y)&&(p=e._component=null),(b||1===n)&&(p&&(p._component=null),S=w(p,l,u,o||!m,b&&b.parentNode,!0));if(b&&S!==b&&a!==y){var P=b.parentNode;P&&S!==P&&(P.replaceChild(S,b),N||(b._component=null,L(b,!1)))}if(N&&H(N),e.base=S,S&&!r){for(var T=e,B=e;B=B._parentComponent;)(T=B).base=S;S._component=T,S._componentConstructor=T.constructor}}if(!m||o?x.unshift(e):g||(e.componentDidUpdate&&e.componentDidUpdate(f,d,v),t.afterUpdate&&t.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);C||r||k()}}function D(e,t,n,o){for(var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,p=a,s=_(t);r&&!p&&(r=r._parentComponent);)p=r.constructor===t.nodeName;return r&&p&&(!o||r._component)?(V(r,s,3,n,o),e=r.base):(i&&!a&&(H(i),e=l=null),r=E(t.nodeName,s,n),e&&!r.nextBase&&(r.nextBase=e,l=null),V(r,s,1,n,o),e=r.base,l&&e!==l&&(l._component=null,L(l,!1))),e}function H(e){t.beforeUnmount&&t.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var o=e._component;o?H(o):n&&(n.__preactattr_&&n.__preactattr_.ref&&n.__preactattr_.ref(null),e.nextBase=n,m(n),B(e),M(n)),e.__ref&&e.__ref(null)}function j(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function z(e,t,n){return w(n,e,{},!1,t,!1)}i(j.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=i({},n)),i(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),c(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),A(this,2)},render:function(){}});var R={h:r,createElement:r,cloneElement:a,Component:j,render:z,rerender:u,options:t};exports.default=R,exports.h=r,exports.createElement=r,exports.cloneElement=a,exports.Component=j,exports.render=z,exports.rerender=u,exports.options=t;
  },{}],"QWZE":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r=require("preact");function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(u){function a(){return n(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return i(a,r.Component),t(a,[{key:"handleKeyPress",value:function(e){var t=e.which?e.which:event.keyCode;46!=t&&t>31&&(t<48||t>57)&&e.preventDefault()}},{key:"render",value:function(t,n){return(0,r.h)("input",e({},t,{onKeyPress:this.handleKeyPress}))}}]),a}();exports.default=u;
  },{"preact":"WHr8"}],"LhXr":[function(require,module,exports) {
  module.exports="icon4.2ab758be.png";
  },{}],"NQKh":[function(require,module,exports) {
  module.exports="plane.25fd472e.png";
  },{}],"INzZ":[function(require,module,exports) {
  module.exports="ship.aceb227a.png";
  },{}],"YPpn":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("preact"),s=function(s){return(0,e.h)("div",{class:"resultContainer"},(0,e.h)("ul",null,(0,e.h)("li",null,(0,e.h)("img",{src:require("../assets/icon4.png"),class:"express"}),(0,e.h)("div",{class:"title"},"Express",(0,e.h)("div",{class:"chargeTxtExpress"},"Chargeable")),(0,e.h)("div",{class:"resultText"},Math.max(s.totalAirExpressVolume,s.totalWeight)?Math.max(s.totalAirExpressVolume,s.totalWeight):"00",(0,e.h)("span",null,"kg"))),(0,e.h)("li",null,(0,e.h)("img",{src:require("../assets/plane.png"),class:"plane"}),(0,e.h)("div",{class:"title"},"Air cargo",(0,e.h)("div",{class:"chargeTxtCargo"},"Chargeable")),(0,e.h)("div",{class:"resultText"},Math.max(s.totalAirFreightVolume,s.totalWeight)?Math.max(s.totalAirFreightVolume,s.totalWeight):"00",(0,e.h)("span",null,"kg")),(0,e.h)("div",{class:"miniTxt"},"Minimum 45 Kg")),(0,e.h)("li",null,(0,e.h)("img",{src:require("../assets/ship.png"),class:"ship"}),(0,e.h)("div",{class:"title"},"Ocean",(0,e.h)("div",{class:"chargeTxtOcean"},"Chargeable")),(0,e.h)("div",{class:"resultText"},s.totalSeaFreightVolume?s.totalSeaFreightVolume:"00",(0,e.h)("span",null,"cbm")),(0,e.h)("div",{class:"miniTxt"},"Minimum  1 cbm"))))};exports.default=s;
  },{"preact":"WHr8","../assets/icon4.png":"LhXr","../assets/plane.png":"NQKh","../assets/ship.png":"INzZ"}],"AFxI":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=require("preact");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(u){function i(){return r(this,i),n(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return o(i,t.Component),e(i,[{key:"render",value:function(){return(0,t.h)("a",{href:"javascript:void(0);",class:"quote-button"},"Quotes")}}]),i}();exports.default=u;
  },{"preact":"WHr8"}],"e1vg":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=require("preact");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(u){function i(){return r(this,i),n(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return o(i,t.Component),e(i,[{key:"render",value:function(e,r){return(0,t.h)("select",e,e.children)}}]),i}();exports.default=u;
  },{"preact":"WHr8"}],"HXQt":[function(require,module,exports) {
  module.exports="icon1.251a7676.png";
  },{}],"a91e":[function(require,module,exports) {
  module.exports="time.b4496b7a.png";
  },{}],"HHa4":[function(require,module,exports) {
  module.exports="icon2.5624d115.png";
  },{}],"Y0SU":[function(require,module,exports) {
  module.exports="add.6c188b9e.png";
  },{}],"Z1ID":[function(require,module,exports) {
  module.exports="copy.3c889b10.png";
  },{}],"NUws":[function(require,module,exports) {
  module.exports="minus.19803767.png";
  },{}],"6Xkn":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),t=require("preact"),a=require("./NumberInput"),n=o(a),i=require("./SelectInput"),l=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(a){function i(e){s(this,i);var t=c(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t.state={quantity:e.quantity,packageType:e.packageType,weight:e.weight,length:e.length,width:e.width,height:e.height},t}return r(i,t.Component),e(i,[{key:"render",value:function(e,a){var i=this;return(0,t.h)("div",{className:"row"},(0,t.h)("div",{class:"pakage1Cont"},(0,t.h)("div",{class:"pakage1ChildCont1"},(0,t.h)("div",{class:"pakage1SiblingContTitle"},(0,t.h)("div",{class:"pakage1SiblingContTitleQ"},0===e.index?"Quantity":null),(0,t.h)("div",{class:"pakage1SiblingContTitlePT"},0===e.index?"Package type":null),(0,t.h)("div",{class:"pakage1SiblingContTitleW"},0===e.index?"Weight":null)),(0,t.h)("div",{class:"pakage1SiblingContainer"},(0,t.h)("div",{class:"pakageQ"},(0,t.h)(n.default,{label:"Quantity",index:e.index,className:"cell",placeholder:"Q",value:e.quantity,onInput:function(t){i.setState({quantity:t.target.value}),e.valueMapper(e.index,"quantity",a.quantity)}})),(0,t.h)("div",{class:"pakageType"},(0,t.h)(l.default,{label:"Package type",index:e.index,value:e.packageType,onInput:function(t){i.setState({packageType:t.target.value}),e.valueMapper(e.index,"packageType",a.packageType)}},(0,t.h)("option",{value:"carton"},"Carton"),(0,t.h)("option",{value:"envelope"},"Envelope"),(0,t.h)("option",{value:"bag"},"Bag"),(0,t.h)("option",{value:"crate"},"Crate"),(0,t.h)("option",{value:"box"},"Box"),(0,t.h)("option",{value:"drum"},"Drum"),(0,t.h)("option",{value:"pieces"},"Pieces"),(0,t.h)("option",{value:"document"},"Document"))),(0,t.h)("div",{class:"pakageW"},(0,t.h)(n.default,{label:"Weight",index:e.index,placeholder:"W",value:e.weight,onInput:function(t){i.setState({weight:t.target.value}),e.valueMapper(e.index,"weight",a.weight)}})),(0,t.h)("div",{class:"pakageUnit"},"kg")),e.rowLength-1===e.index?(0,t.h)("ul",{class:"packageIconContainer"},(0,t.h)("li",{class:"packageIconContainerFirstList"},(0,t.h)("img",{src:require("../assets/icon1.png"),class:"packageIcon1"}),(0,t.h)("span",{class:"totalPackage"},e.totalPackage+" Package")),(0,t.h)("li",{class:"packageIconChildRight"},(0,t.h)("img",{src:require("../assets/time.png"),class:"packageIcon2"}),(0,t.h)("span",{class:"packageIconChildRightkgTxt"},e.totalWeight+" Kg"))):(0,t.h)("ul",{class:"packageIconContainer"},(0,t.h)("li",null,(0,t.h)("br",null)))),(0,t.h)("div",{class:"pakage1ChildCont2"},(0,t.h)("div",{class:"pakage1SiblingContTitle right"},(0,t.h)("div",{class:"pakage1SiblingRightTitle1"},0===e.index?"Specify dimensions":(0,t.h)("br",null))),(0,t.h)("div",{class:"pakage1SiblingContainer1 right"},(0,t.h)("div",{class:"rightIconCont"},(0,t.h)("img",{class:"icon2",src:require("../assets/icon2.png")})),(0,t.h)("div",{class:"lengthCont"},(0,t.h)(n.default,{label:"Length",index:e.index,class:"lengthInput",placeholder:"L",value:e.length,onInput:function(t){i.setState({length:t.target.value}),e.valueMapper(e.index,"length",a.length)}})),(0,t.h)("div",{class:"WidthCont"},(0,t.h)("span",null,"X"),(0,t.h)(n.default,{label:"Width",index:e.index,class:"WidthInput",placeholder:"W",value:e.width,onInput:function(t){i.setState({width:t.target.value}),e.valueMapper(e.index,"width",a.width)}})),(0,t.h)("div",{class:"WidthCont"},(0,t.h)("span",null,"X"),(0,t.h)(n.default,{label:"Height",index:e.index,class:"WidthInput",placeholder:"H",value:e.height,onInput:function(t){i.setState({height:t.target.value}),e.valueMapper(e.index,"height",a.height)}})),(0,t.h)("div",{class:"pakage1Unit"},"cm")),(0,t.h)("ul",{class:"packageIconContainer1"},(0,t.h)("ul",{class:"packageIconChildRight"},(0,t.h)("li",{onClick:function(){return e.addRow()}},(0,t.h)("img",{src:require("../assets/add.png")})," "),(0,t.h)("li",{onClick:function(){return e.duplicationHandler(e.index)}},(0,t.h)("img",{src:require("../assets/copy.png")})," "),(0,t.h)("li",{onClick:function(){return e.removeHandler(e.index)}},(0,t.h)("img",{class:"minusIcon",src:require("../assets/minus.png")})," "))))))}}]),i}();exports.default=u;
  },{"preact":"WHr8","./NumberInput":"QWZE","./SelectInput":"e1vg","../assets/icon1.png":"HXQt","../assets/time.png":"a91e","../assets/icon2.png":"HHa4","../assets/add.png":"Y0SU","../assets/copy.png":"Z1ID","../assets/minus.png":"NUws"}],"Spoh":[function(require,module,exports) {
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t=require("preact"),n=require("./CustomInputRow"),r=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(n){function o(){return a(this,o),u(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return i(o,t.Component),e(o,[{key:"render",value:function(e,n){return(0,t.h)("section",null,e.rows.map(function(n,o){return(0,t.h)(r.default,{key:o,index:o,quantity:n.quantity,packageType:n.packageType,weight:n.weight,length:n.length,width:n.width,height:n.height,duplicationHandler:e.duplicationHandler,removeHandler:e.removeHandler,valueMapper:e.valueMapper,addRow:e.addRow,totalPackage:e.totalPackage,totalWeight:e.totalWeight,totalVolume:e.totalVolume,rowLength:e.rowLength})}))}}]),o}();exports.default=l;
  },{"preact":"WHr8","./CustomInputRow":"6Xkn"}],"uYRk":[function(require,module,exports) {
  module.exports="icon3.0a4c6059.png";
  },{}],"A2T1":[function(require,module,exports) {
  "use strict";var t=function(){function t(t,e){for(var a=0;a<e.length;a++){var l=e[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,a,l){return a&&t(e.prototype,a),l&&t(e,l),e}}(),e=require("preact"),a=require("./components/NumberInput"),l=c(a),i=require("./components/Results"),n=c(i),o=require("./components/QuoteButton"),s=c(o),r=require("./components/customInputSection"),u=c(r);function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function v(t,e){return Math.ceil(t/e)*e}var m=new google.maps.places.AutocompleteService,f=function(a){function l(t){p(this,l);var e=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,t));return e.state={currency:"IDR",currencyValue:"",formattedCurrencyValue:"",expressValueForTVolume:0,totalValue:"Total value $",switchNumber:2,switchNumber1:2,switchStatus:!0,Country:"",State:"",City:"",PostCode:"",places:[],address:"",rows:[{quantity:void 0,packageType:"carton",weight:void 0,length:void 0,width:void 0,height:void 0}],totalQuantity:0,totalWeight:0,totalVolume:0,totalSeaFreightVolume:0,totalAirFreightVolume:0,totalAirExpressVolume:0,onlyWeight:!1},e}return g(l,e.Component),t(l,[{key:"calculateResult",value:function(){var t=0,e=0,a=0,l=0,i=0,n=0;this.state.rows.map(function(o){var s=o.quantity?parseFloat(o.quantity):0,r=o.weight?parseFloat(o.weight):0,u=s*(o.length?parseFloat(o.length):0)*(o.width?parseFloat(o.width):0)*(o.height?parseFloat(o.height):0),c=v(u/1e6,.001),h=v(u/6e3,.5),p=v(u/5e3,.5);t+=c,e+=h,a+=p,l+=s,i+=u/1e6,n+=r*s}),t=v(t,.5),e=v(e,1),a=v(a,1),this.setState({totalSeaFreightVolume:t,totalAirFreightVolume:e,totalAirExpressVolume:a,totalQuantity:l,totalWeight:n,totalVolume:i.toFixed(3)})}},{key:"handleChangeAddress",value:function(t){var e=this;t.preventDefault(),this.setState({address:t.target.value}),m.getPlacePredictions({input:t.target.value,types:["(regions)"]},function(t,a){"OK"===a&&e.setState({places:t})})}},{key:"handleSwitch",value:function(){var t=this,e=this.state,a=e.switchNumber;e.switchStatus?a>=2&&this.setState({switchNumber:52,switchStatus:!1,rows:[{quantity:void 0,packageType:"carton",weight:void 0,length:void 0,width:void 0,height:void 0}]},function(){t.calculateResult()}):a<=52&&this.setState({switchNumber:2,switchStatus:!0})}},{key:"handleKeyPress",value:function(t){var e=t.which?t.which:event.keyCode;46!=e&&e>31&&(e<48||e>57)&&t.preventDefault()}},{key:"handleListClick",value:function(t,e){this.setState({address:t.description,places:[]});var a=new google.maps.places.PlacesService(document.createElement("div")),l=this;a.getDetails({placeId:t.place_id,fields:["address_components"]},function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){console.log(t.address_components);var a=t.address_components.filter(function(t){return t.types.includes("country")})[0],i=t.address_components.filter(function(t){return t.types.includes("postal_code")})[0],n=t.address_components.filter(function(t){return t.types.includes("administrative_area_level_1")})[0],o=t.address_components.filter(function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})[0];l.setState({Country:a?a.long_name:"",State:n?n.long_name:"",City:o?o.long_name:"",PostCode:i?i.long_name:""})}})}},{key:"handlePlaceInput",value:function(t,e){"country"===t?this.setState({Country:e.target.value}):"city"===t?this.setState({City:e.target.value}):"state"===t?this.setState({State:e.target.value}):"postCode"===t&&this.setState({PostCode:e.target.value}),e.preventDefault()}},{key:"handleTotalVolumeField",value:function(t){var e=Number(t.target.value),a=e/5e3*1e6,l=e/6e3*1e6;this.setState({totalAirExpressVolume:Math.ceil(a),totalAirFreightVolume:Math.ceil(l),expressValueForTVolume:Math.ceil(a),totalSeaFreightVolume:e}),t.preventDefault()}},{key:"handleOnlyWeight",value:function(t){var e=t.target.value;if(0===this.state.expressValueForTVolume&&""===e&&this.setState(h({totalWeight:"",totalSeaFreightVolume:"",totalAirFreightVolume:"",totalAirExpressVolume:""},"totalWeight","")),this.state.expressValueForTVolume<e&&this.setState({totalWeight:e,totalSeaFreightVolume:this.state.totalSeaFreightVolume,totalAirFreightVolume:e,totalAirExpressVolume:e}),this.state.totalAirExpressVolume>e)if(""===e){var a=this.state.totalSeaFreightVolume,l=a/5e3*1e6,i=a/6e3*1e6;this.setState({totalSeaFreightVolume:this.state.totalSeaFreightVolume,totalAirFreightVolume:Math.ceil(i),totalAirExpressVolume:Math.ceil(l),totalWeight:0})}else this.setState({totalAirFreightVolume:this.state.totalAirFreightVolume,totalAirExpressVolume:this.state.totalAirExpressVolume});t.preventDefault()}},{key:"render",value:function(t,a){var l=this;return(0,e.h)("div",null,(0,e.h)("h1",{class:"main-heading"},"Shipping Calculator"),a.onlyWeight?null:(0,e.h)("section",null,(0,e.h)("div",{class:"TopInputContainer"},(0,e.h)("div",{class:"TopInputContainerHeading"},"Where do you want to ship ?"),(0,e.h)("div",null,(0,e.h)("div",{class:"autoCompleteCont"},(0,e.h)("input",{id:"autocomplete",placeholder:"Google Auto address",class:"autoCompleteAddress",type:"text",value:this.state.address,onInput:this.handleChangeAddress.bind(this)}),this.state.places!==[]&&this.state.places.length>0?(0,e.h)("ul",{class:"autoComplete"},this.state.places.map(function(t,a){return(0,e.h)("li",{key:a,onClick:function(){return l.handleListClick(t,a)}},t.description)})):null),(0,e.h)("div",{class:"inputCont"},(0,e.h)("input",{placeholder:"Country",value:a.Country,onInput:function(t){return l.handlePlaceInput("country",t)},class:"inputfield"}),(0,e.h)("input",{placeholder:"City",value:a.City,onInput:function(t){return l.handlePlaceInput("city",t)},class:"inputfield1"})),(0,e.h)("div",{class:"inputCont"},(0,e.h)("input",{placeholder:"State",value:a.State,onInput:function(t){return l.handlePlaceInput("state",t)},class:"inputfield"}),(0,e.h)("input",{placeholder:"Postcode",value:a.PostCode,onInput:function(t){return l.handlePlaceInput("postCode",t)},class:"inputfield1"}))),(0,e.h)("div",{class:"pakageHeaderCont"},(0,e.h)("img",{src:require("./assets/icon1.png")}),(0,e.h)("div",{class:"pakageHeading"},"Let’s tell detail of packages"))),(0,e.h)(u.default,{rows:a.rows,duplicationHandler:function(t){var e=Object.assign({},a.rows[t]),i=a.rows;i.splice(t+1,0,e),l.setState({rows:i}),l.calculateResult()},removeHandler:function(t){var e=a.rows;e.length>1?e.splice(t,1):e=[{quantity:void 0,packageType:"carton",weight:void 0,length:void 0,width:void 0,height:void 0}],l.setState({rows:e}),l.calculateResult()},valueMapper:function(t,e,i){var n=a.rows;n[t][e]=i,l.setState({rows:n}),l.calculateResult()},addRow:function(){var t=a.rows;t.push({quantity:void 0,packageType:"carton",weight:void 0,length:void 0,width:void 0,height:void 0}),l.setState({rows:t})},rowLength:a.rows.length,totalPackage:a.totalQuantity,totalWeight:a.totalWeight,totalVolume:a.totalVolume})),(0,e.h)("ul",{class:"lastContainerPackageHide"},(0,e.h)("li",null,(0,e.h)("div",null,(0,e.h)("img",{src:require("./assets/icon1.png"),class:"packageIcon1"}),(0,e.h)("span",{class:"totalPackage"},a.totalQuantity+" Package"))),(0,e.h)("li",null,(0,e.h)("div",null,(0,e.h)("img",{src:require("./assets/time.png"),class:"packageIcon2"}),(0,e.h)("span",{class:"packageIconChildRightkgTxt"},(""!==a.totalWeight?a.totalWeight:"0")+" Kg"))),(0,e.h)("li",null,(0,e.h)("div",null,(0,e.h)("img",{src:require("./assets/icon3.png"),class:"packageIcon1"}),(0,e.h)("span",{class:"packageTextNumber"},a.totalVolume+" cbm")))),(0,e.h)("p",null,"Enter value of package"),(0,e.h)("div",{class:"currency-input-container"},(0,e.h)("select",{class:"currency-select",onInput:function(t){var e="IDR"===t.target.value?Number(a.currencyValue).toLocaleString("id-ID"):Number(a.currencyValue).toLocaleString("en-US");l.setState({currency:t.target.value,formattedCurrencyValue:e})}},(0,e.h)("option",{value:"IDR"},"IDR"),(0,e.h)("option",{value:"USD"},"USD")),(0,e.h)("input",{class:"currency-input",onKeyPress:this.handleKeyPress,placeholder:a.currency,onChange:function(t){var e="IDR"===a.currency?Number(t.target.value).toLocaleString("id-ID"):Number(t.target.value).toLocaleString("en-US");l.setState({currencyValue:t.target.value,formattedCurrencyValue:e})},value:a.formattedCurrencyValue})),(0,e.h)("div",{class:"switchCont"},(0,e.h)("div",{style:{backgroundColor:this.state.switchStatus?"#CCCCCC":"#4683ea"},class:"switch",onClick:function(){return l.handleSwitch()}},(0,e.h)("div",{class:"switchCircle circleRight",style:{left:a.switchNumber}}))),(0,e.h)("div",{class:"tVkg"},"Total volume / Kg"),(0,e.h)("div",{class:a.switchStatus?"hidden":""},(0,e.h)("div",{class:"lastContainerTitle"},(0,e.h)("ul",null,(0,e.h)("li",{class:"tV"},"Total volume"),(0,e.h)("li",{class:"tW"},"Total weight"))),(0,e.h)("ul",{class:"lastContainer"},(0,e.h)("li",{class:"lastContainerSChild"},(0,e.h)("ul",{class:"lastContainerSchildUl"},(0,e.h)("li",{class:"lastContainerInput"},(0,e.h)("input",{placeholder:"V",onKeyPress:this.handleKeyPress,onInput:function(t){return l.handleTotalVolumeField(t)},disabled:!!a.switchStatus})),(0,e.h)("li",{class:"cbmContainer"},(0,e.h)("div",null,"cbm")),(0,e.h)("li",{class:"lastContainerInput"},(0,e.h)("input",{placeholder:"W",onInput:function(t){return l.handleOnlyWeight(t)}})),(0,e.h)("li",{class:"lastContainerkg"},"kg"))))),(0,e.h)(n.default,{totalAirExpressVolume:this.state.totalAirExpressVolume,totalWeight:this.state.totalWeight,totalAirFreightVolume:this.state.totalAirFreightVolume,totalSeaFreightVolume:this.state.totalSeaFreightVolume}),(0,e.h)(s.default,null))}}]),l}(),y=document.getElementById("calc");(0,e.render)((0,e.h)(f,null),y,y.lastChild);
  },{"preact":"WHr8","./components/NumberInput":"QWZE","./components/Results":"YPpn","./components/QuoteButton":"AFxI","./components/customInputSection":"Spoh","./assets/icon1.png":"HXQt","./assets/time.png":"a91e","./assets/icon3.png":"uYRk"}]},{},["A2T1"], null)
  //# sourceMappingURL=/app.af8a1d16.map