!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d7e7f292-b1e0-4a0a-b61f-1ff1b99fe707",e._sentryDebugIdIdentifier="sentry-dbid-d7e7f292-b1e0-4a0a-b61f-1ff1b99fe707")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2b2354c41f21fdc720e088172a22a7ca883e542d"},(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-15b19d4b"],{"5e76":function(e,t,i){"use strict";i.r(t);var n=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("d25f"),i("ac6a"),i("456d"),i("7514"),i("bd86")),o=i("ebc7"),s=i("2f62");function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){Object(n.a)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l={name:"FragileRequest",extends:o.a,components:{FragileRequestInfo:function(){return i.e("chunk-5ed84abc").then(i.bind(null,"c284"))}},props:{type:{type:String,default:"checkbox"},id:{type:String,require:!0},iconUrl:{type:String},value:{},price:{default:0},optionCode:{type:String},optionDetail:{type:String},label:{type:String},description:{type:String},onAddRequest:{type:Function},onRemoveRequest:{type:Function},model:{type:Object},typeUICheckbox:{type:Boolean,default:!1}},data:function(){return{checkboxInputValue:this.value||!1,visibleFragileInfo:!1,param:{_id:this.id,option_code:this.optionCode,option_detail:this.optionDetail}}},computed:c(c({},Object(s.b)(["localeSuffix"])),{},{checkbox:function(){return"checkbox"===this.type},selectedFragileName:function(){var e=this,t=this.model&&this.model.options&&this.model.options.find((function(t){return t.code===e.optionCode}));return this.optionCode===this.model.options[this.model.options.length-1].code?this.optionDetail:t["name"+this.localeSuffix]||""}}),methods:{handleClickLabel:function(){this.checkboxInputValue?(this.checkboxInputValue=!this.checkboxInputValue,this.$emit("onRemoveRequest",this.param)):(this.checkboxInputValue=!this.checkboxInputValue,this.handleCheck(this.checkboxInputValue))},tracking:function(e,t){this.$analyticTracking.logEvent(this.$trackingEvents.ACTIONS.CLICK,e,{_id:this.id,name:this.label},void 0,t||{_id:this.id})},handleCheck:function(){this.showFragileRequestInfo(),this.tracking(this.$trackingEvents.EVENTS.NEW_ORDER_SPECIAL_REQUEST_FRAGILE_PACKAGE)},showFragileRequestInfo:function(){this.visibleFragileInfo=!0},hideRequestInfoDialog:function(){this.visibleFragileInfo=!1,this.checkboxInputValue=!1,this.$forceUpdate()},selectFragile:function(e){this.checkboxInputValue=!0,this.param=c({_id:this.id},e),this.$emit("onAddRequest",this.param),this.visibleFragileInfo=!1,this.$forceUpdate(),this.tracking(this.$trackingEvents.EVENTS.NEW_ORDER_SPECIAL_REQUEST_FRAGILE_PACKAGE_CONFIRM,this.param)}},beforeMount:function(){this.optionCode&&(this.checkboxInputValue=!0)}},r=(i("9622"),i("2877")),d=Object(r.a)(l,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.model.options&&e.model.options.length>0?i("div",{staticClass:"request-wrapper"},[i("div",{staticClass:"request-avatar"},[i("img",{attrs:{width:"24",src:e.iconUrl}})]),i("div",{staticClass:"request-detail"},[i("div",{staticClass:"request-detail__info",class:{selectable:e.checkbox}},[i("span",{on:{click:e.handleClickLabel}},[e._v(e._s(e.label))]),e.description?i("v-tooltip",{staticClass:"icon-info",attrs:{right:"","content-class":"v-tooltip__custom-content"}},[i("div",{attrs:{slot:"activator"},slot:"activator"},[i("SvgIcon",{attrs:{icon:"InfoOutline",width:"15",height:"15"}})],1),i("div",{staticClass:"request-detail__info__hint"},[e._v(e._s(e.description))])]):e._e()],1),i("div",{staticClass:"request-detail__price"},[0!==e.price?i("div",[i("vue-numeric",{attrs:{currency:e.$constants.CURRENCY_CONFIG.prefix,value:e.price,"read-only":""}}),e.optionCode&&e.selectedFragileName?i("span",[e._v(" • "+e._s(this.selectedFragileName))]):e._e()],1):e._e()])]),i("div",{staticClass:"request-action",on:{click:e.handleClickLabel}},[e.typeUICheckbox?[e.checkboxInputValue?i("v-icon",{attrs:{color:"accent"}},[e._v("check_box")]):i("v-icon",[e._v("check_box_outline_blank")])]:[e.checkboxInputValue?i("v-btn",{staticClass:"request-action__cancel",attrs:{depressed:"",small:""}},[e._v("\n        "+e._s(e.$t("request.unselect"))+"\n      ")]):i("v-btn",{staticClass:"request-action__add",attrs:{depressed:"",small:""}},[e._v("\n        "+e._s(e.$t("add"))+"\n      ")])]],2),e.visibleFragileInfo?i("FragileRequestInfo",{attrs:{model:e.model,options:e.model.options},on:{onClose:e.hideRequestInfoDialog,onSelect:e.selectFragile}}):e._e()],1):e._e()}),[],!1,null,"36b8cad3",null);t.default=d.exports},9622:function(e,t,i){"use strict";var n=i("c0ab");i.n(n).a},c0ab:function(e,t,i){}}]);