UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 64.5 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/BScroll/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/BScroll/index.js"],e):"object"==typeof exports?exports.GoldFinanceV2=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/BScroll/index.js")):t.GoldFinanceV2=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/BScroll/index.js"])}("undefined"!=typeof self?self:this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=2003)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var r=n(31)("wks"),i=n(24),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(4),i=n(41),o=n(38),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},100:function(t,e,n){"use strict";var r=n(9),i=n(2),o=n(0),a=n(64),s=n(67);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},101:function(t,e,n){"use strict";var r=n(9),i=n(44),o=n(66);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},11:function(t,e){t.exports={}},111:function(t,e,n){t.exports={default:n(117),__esModule:!0}},117:function(t,e,n){var r=n(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1215:function(t,e,n){"use strict";var r=n(111),i=n.n(r),o=n(130),a=n.n(o),s=n(71),c=n.n(s),u=n(792),l=n.n(u),f=n(92),d=n.n(f),h=n(262),p=n.n(h),v=n(263),m=n.n(v),b=n(2006),g=n(2024),y=n(2027),x=n(2030),_=n(39),w=(n.n(_),{});e.a={name:"ActGoldFinance",components:{GoldBenefit:b.a,GoldCaseDemo:g.a,GoldCostTable:y.a},data:function(){return{realAurora:null,realAuroraRender:null,loading:!0,benefitElems:null,caseDemoInfo:null,costTableInfo:{},costSlideVar:-1,costTableVisible:!1,moduleData:null}},props:{financeInfo:{type:Object,default:function(){return{}}},brandColor:{type:String,default:""},requestUrl:{type:String,default:"/buy/getAnnuityCostTable"},requestParams:{type:Object,default:function(){return{}}},pxToRem:{type:Number,default:0},aurora:{type:Object,default:function(){return null}},auroraRender:{type:Object,default:function(){return null}}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.realTheme.brandColor},curtime:function(){return this.financeInfo&&this.financeInfo.curtime},genes:function(){return this.financeInfo&&this.financeInfo.genes},sourceModule:function(){if(this.financeInfo&&this.financeInfo.insureAttribute&&this.financeInfo.insureAttribute.attrModules){return{insureAttribute:{attrModules:Object(x.b)(this.genes,this.financeInfo.insureAttribute.attrModules)}}}return null},tableId:function(){return this.financeInfo&&this.financeInfo.tableId?this.financeInfo.tableId:this.genes&&this.genes.tableId?this.genes.tableId:this.financeInfo&&this.financeInfo.insureAttribute&&this.financeInfo.insureAttribute.insuranceInfo&&this.financeInfo.insureAttribute.insuranceInfo.costTables&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0]&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0].id?this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0].id:""},annuity:function(){return this.financeInfo&&this.financeInfo.annuity},genesRules:function(){return this.annuity&&this.annuity.tplVariables||{}},costSlideMin:function(){var t=this.costTableInfo.rows&&this.costTableInfo.rows[0];return~~(t&&t[1])||0},costSlideMax:function(){var t=this.costTableInfo.rows&&this.costTableInfo.rows[this.costTableInfo.rows.length-1];return~~(t&&t[1])||106},costSlideRealVar:function(){return this.costSlideVar<this.costSlideMin?this.costSlideMin:this.costSlideVar>this.costSlideMax?this.costSlideMax:this.costSlideVar}},methods:{onShowTable:function(){this.costTableVisible=!0},onBenefitChange:function(t){this.costSlideVar=t,this.getBenefitElems(),this.getCaseDemoInfo()},onElementChange:function(t){var e=this;return m()(p.a.mark(function n(){var r,i;return p.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.realAurora.getSiteData({key:"plan.interest",site:["plan"],allAttr:!0});case 2:r=n.sent,i=Object(x.e)(t,r),e.realAurora.changeValues({changeData:i}).catch(function(t){Object(_.isError)(t)&&e.$throw(t)});case 5:case"end":return n.stop()}},n,e)}))()},getModuleData:function(){var t=this;return m()(p.a.mark(function e(){var n;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.$import("getSpecifyModules")({cleanKey:!0});case 2:n=e.sent,t.moduleData=Object(x.a)(t.genes,n);case 4:case"end":return e.stop()}},e,t)}))()},getCostTableInfo:function(){var t=this;return m()(p.a.mark(function e(){var n,r,i,o,a,s,u,f,h,v,m,b,g,y,x,_,T,S,P;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.genes,r=n.groupId,i=n.common,o=void 0===i?{}:i,a=t.moduleData,s=a.plan,u=void 0===s?{}:s,f=a.insureds,h=void 0===f?[]:f,v=a.benefitDemo,m=void 0===v?{}:v,b=a.applicant,g=void 0===b?{}:b,y=h[0],x=void 0===y?{}:y,_=d()({},t.requestParams,{genes:{groupId:r,common:o,insured:x,plan:u,benefitDemo:m,applicant:g},tableId:t.tableId}),T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l()(t).join("_")},S=T(o)+"_"+T(x)+"_"+T(u)+"_"+T(g)+"_"+T(m)+"_"+t.tableId,!w[S]){e.next=9;break}return t.costTableInfo=w[S],e.abrupt("return",c.a.resolve(w[S]));case 9:return t.loading=!0,e.next=12,t.$fetch(t.requestUrl,_).then(function(e){var n=e.ret,r=e.data,i=e.errmsg;return 0===n?(t.costTableInfo=r,w[S]=r,t.$emit("changeCostTable",r),c.a.resolve(r)):(t.costTableInfo={},c.a.reject(i))}).catch(function(t){return c.a.reject(t||"系统繁忙,请稍后再试")});case 12:return P=e.sent,e.abrupt("return",P);case 14:case"end":return e.stop()}},e,t)}))()},getBenefitElems:function(){var t=this;return m()(p.a.mark(function e(){var n,r,i,o,s,u,l,f,h,v,m,b,g,y,w,T,S,P,E,O,C,k,j,A,I,D,R,M,L,W,V,N,G;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.getRenderData();case 2:if(n=e.sent,!(r=n.benefitDemo)||!r._elements){e.next=43;break}i=[],o=t.moduleData,s=o.applicant,u=void 0===s?{}:s,l=o.plan,f=void 0===l?{}:l,h=o.insureds,v=void 0===h?[]:h,m=v[0],b=void 0===m?{}:m,g=r._elements,y=Array.isArray(g),w=0,g=y?g:a()(g);case 9:if(!y){e.next=15;break}if(!(w>=g.length)){e.next=12;break}return e.abrupt("break",25);case 12:T=g[w++],e.next=19;break;case 15:if(w=g.next(),!w.done){e.next=18;break}return e.abrupt("break",25);case 18:T=w.value;case 19:if(S=T,1!=~~S.display||18!=~~S.type){e.next=23;break}return-1===t.costSlideVar&&(t.costSlideVar=~~S.defaultValue),e.abrupt("break",25);case 23:e.next=9;break;case 25:P=r._elements,E=Array.isArray(P),O=0,P=E?P:a()(P);case 26:if(!E){e.next=32;break}if(!(O>=P.length)){e.next=29;break}return e.abrupt("break",40);case 29:C=P[O++],e.next=36;break;case 32:if(O=P.next(),!O.done){e.next=35;break}return e.abrupt("break",40);case 35:C=O.value;case 36:k=C,1==~~k.display&&(j=t.costTableInfo.rows,A=t.costSlideRealVar,I=t.genesRules,D=t.curtime,R={visible:!0,range:k.attributeValues||[],type:k.type,key:k.key,site:k.site,attr:k.element_attr?JSON.parse(k.element_attr):{},value:k.defaultValue},Object(_.isString)(k.defaultValue)&&(M=17==~~k.type?k.defaultValue:Object(x.c)(k.defaultValue,t.realTheme),L=void 0!==R.attr.isHideEqZero&&"1"===R.attr.isHideEqZero?["0",0]:[],W=Object(x.d)({applicant:u,insured:b,plan:f,costSlideVar:A,costTable:j,genesValue:M,genesRules:I,dontValue:L,curtime:D}),"null"!==W?R.value=W:R.visible=!1),18==~~k.type&&(V=R.range,R.range[0]&&Object(_.isString)(R.range[0])&&(N=R.range[0],(G=Object(x.d)({applicant:u,insured:b,plan:f,costSlideVar:A,costTable:j,genesValue:N,genesRules:I,curtime:D}))&&(V=d()({},V,JSON.parse(G)))),R.range=[V],R.value=A+""),i.push(R));case 38:e.next=26;break;case 40:return t.loading=!1,t.benefitElems=i,e.abrupt("return",c.a.resolve(i));case 43:case"end":return e.stop()}},e,t)}))()},getCaseDemoInfo:function(){var t=this;return m()(p.a.mark(function e(){var n,r,o,s,u,l,f,h,v,m,b,g,y,_,w,T,S,P,E,O,C,k,j,A,I,D,R,M,L,W;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.getRenderData();case 2:if(n=e.sent,!(r=n.caseDemo)||!r._elements){e.next=49;break}o={caseData:{},caseEdge:{},caseAccount:[]},s={},u=t.moduleData,l=u.applicant,f=void 0===l?{}:l,h=u.plan,v=void 0===h?{}:h,m=u.insureds,b=void 0===m?[]:m,g=b[0],y=void 0===g?{}:g,_=r._elements,w=Array.isArray(_),T=0,_=w?_:a()(_);case 10:if(!w){e.next=16;break}if(!(T>=_.length)){e.next=13;break}return e.abrupt("break",47);case 13:S=_[T++],e.next=20;break;case 16:if(T=_.next(),!T.done){e.next=19;break}return e.abrupt("break",47);case 19:S=T.value;case 20:if(P=S,1!=~~P.display){e.next=45;break}if(E=t.costTableInfo.rows||[],O=t.costSlideRealVar,C=t.genesRules,k=P.defaultValue,j=t.curtime,A=Object(x.d)({applicant:f,insured:y,plan:v,costSlideVar:O,costTable:E,genesValue:k,genesRules:C,curtime:j}),I=P.element_attr?JSON.parse(P.element_attr):{},22!=~~P.type){e.next=35;break}D=d()({},I,{title:A,desc:P.name}),s[A]?s[A].caseType<D.title?D.display=!1:o.caseData[s[A].key].display=!1:s[A]={caseType:I.caseType,dotKey:P.key},o.caseData[P.key]=D,e.next=45;break;case 35:if(23!=~~P.type){e.next=44;break}if(R=I.bindStartPoint,M=I.bindEndPoint,L=I.caseType,R&&M&&L){e.next=40;break}return console.log("%c 产品演示模块传参错误,元素类型: "+P.type+", 参数:"+i()(I),"color:red"),e.abrupt("continue",45);case 40:W=I.bindStartPoint+"_"+I.bindEndPoint,o.caseEdge[W]={caseType:L},e.next=45;break;case 44:24==~~P.type&&o.caseAccount.push(d()({},I,{name:P.name,text:A}));case 45:e.next=10;break;case 47:return t.caseDemoInfo=o,e.abrupt("return",c.a.resolve(o));case 49:case"end":return e.stop()}},e,t)}))()},updatePage:function(){var t=this;return m()(p.a.mark(function e(){return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getModuleData();case 2:return e.next=4,t.getCostTableInfo().catch(function(t){});case 4:t.getBenefitElems(),t.getCaseDemoInfo();case 6:case"end":return e.stop()}},e,t)}))()},initAurora:function(){var t=this;if(this.aurora)return this.realAurora=this.aurora,void(this.realAuroraRender=this.auroraRender);if(this.sourceModule){var e={pageName:"financeComponent",standardData:this.sourceModule,isCache:!1,render:function(e){var n=e.renderData;t.realAuroraRender=n}};window.AuroraV2.create(["aurora-plugin-deal"]).then(function(n){t.realAurora=n,t.realAurora.$on("render",function(){e.render&&e.render({renderData:new Date})}),t.realAurora.init(e).catch(function(t){console.log(t)})})}}},mounted:function(){this.initAurora()},watch:{auroraRender:function(){this.updatePage()},realAuroraRender:function(){this.updatePage()}}}},1216:function(t,e,n){"use strict";var r=n(2008),i=n(2011),o=n(2014),a=n(2017),s=n(2020),c={16:"benefitTitle",17:"benefitAmount",18:"benefitSlider",19:"benefitText",20:"benefitSelect"};e.a={name:"ActGoldBenefit",props:{elements:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1}},components:{benefitTitle:r.a,benefitAmount:i.a,benefitSlider:o.a,benefitText:a.a,benefitSelect:s.a},computed:{type:function(){return this.elements.map(function(t){return Number(t.type)})},components:function(){return this.type.map(function(t){return c[t]})}},methods:{showTable:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.$emit.apply(this,["showTable"].concat(e))},updateAge:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.$emit.apply(this,["updateAge"].concat(e))},onElementChange:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];this.$emit.apply(this,["onElementChange"].concat(e))}}}},1217:function(t,e,n){"use strict";e.a={name:"ActGoldBenefitTitle",data:function(){return{trackName:{"/":"titleqm_sx","/my":"titleqm_xq","/addmore":"titleqm_zj"}}},props:{element:{type:Object,default:function(){return{}}},path:{type:String,default:""},theme:{type:Object,default:function(){return{}}}},computed:{hasQuesMask:function(){return this.element.attr&&this.element.attr.hasQuesMask&&~~this.element.attr.hasQuesMask}},methods:{showTable:function(){this.$emit("showTable")}}}},1218:function(t,e,n){"use strict";e.a={name:"ActGoldBenefitAmount",props:{element:{type:Object,default:function(){}},loading:{type:Boolean,default:!1}},filters:{fixedTwoNumber:function(t){return t?Math.round(100*t)/100:0}}}},1219:function(t,e,n){"use strict";var r=n(196),i=n.n(r);e.a={name:"ActGoldBenefitSlider",data:function(){return{windowX:0,listScroll:null,forbidScrollEnd:!1}},props:{element:{type:Object,default:function(){return{}}}},computed:{unit:function(){return~~this.element.range[0].unit||""},step:function(){return~~(this.element.attr&&this.element.attr.step)||5},min:function(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function(){var t=~~this.element.value||80;return t<this.min?this.min:t>this.max?this.max:t},during:function(){return this.max-this.min+1},width:function(){return 12*(this.max-this.min)+1}},methods:{initScroll:function(){var t=this,e=document.querySelector(".wrapper"),n=12*(this.min-this.chooseAge);this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px",this.$nextTick(function(){var r=t;t.listScroll?(n>=0&&(t.$emit("updateAge",t.min),n=0),t.listScroll.refresh(),t.forbidScrollEnd=!0,t.listScroll.scrollTo(n,0,0)):(t.listScroll=new i.a(e,{probeType:3,startX:n,scrollX:!0,scrollY:!1}),r.listScroll.on("scrollEnd",function(t){if(r.forbidScrollEnd)return void(r.forbidScrollEnd=!1);var e=void 0;if(t.x>=0)e=r.min;else if(Math.abs(t.x)>=r.width)e=r.max;else{e=Math.floor(Math.abs(t.x)/12+1+r.min);var n=-12*Math.floor(Math.abs(t.x)/12+1);r.forbidScrollEnd=!0,r.listScroll.scrollTo(n,0,0)}r.$emit("updateAge",e)}))})}},mounted:function(){var t=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=t||window.innerWidth||document.body&&document.body.clientWidth,this.windowX=this.windowX>750?750:this.windowX,this.initScroll()},watch:{min:function(){this.initScroll()}}}},1220:function(t,e,n){"use strict";e.a={name:"ActGoldBenefitText",props:{element:{type:Object,default:function(){return{}}}}}},1221:function(t,e,n){"use strict";e.a={name:"ActGoldBenefitSelect",data:function(){return{index:0,picker:null,trackName:{"/":"level_sx","/my":"level_xq","/addmore":"level_zj"}}},props:{element:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},path:{type:String,default:""}},methods:{exchange:function(){this.picker||(this.picker=this.$createPicker({data:[this.element.range],selectedIndex:[this.index],onSelect:this.selectExchange,confirmColor:this.theme&&this.theme.brandColor||""})),this.picker.show()},selectExchange:function(t){var e=t[0],n=this.element.range.findIndex(function(t){return t.value===e});this.index=n,this.$emit("onElementChange",[{key:this.element.key,value:e,site:this.element.site}])}},mounted:function(){var t=this.element.value,e=this.element.range.findIndex(function(e){return e.value===t});this.index=e}}},1222:function(t,e,n){"use strict";function r(t){return t?JSON.parse(a()(t)):t}function i(t){return void 0===t}var o=n(111),a=n.n(o);e.a={name:"ActGoldCaseDemo",data:function(){return{caseData:{},caseEdge:{},caseAccount:[],tempData:{},tempEdge:{},tempAccount:[],hasName:!1,minWidth:4.8,maxWidth:32,textExtraWidth:3.2,singleNumWidth:.6675,singleTextWidth:1.2,edgeOffset:.4,accountOffset:.3,errorOffset:-1.2,prevWidth:[0],residueWidth:[],repeatPoint:{}}},props:{caseInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},isCps:{type:Boolean,default:!1},pxToRem:{type:Number,default:0}},computed:{infoPaddingTop:function(){return this.residueWidth.length<2?0:3*(this.residueWidth.length-1)},edgeColor:function(){return this.isCps?{1:"#72b2fc",2:"#ffab45",3:"#ff5a6e"}:{1:"#8c7fee",2:"#ffb229",3:"#ff5a6e"}},colorType:function(){return this.isCps?{1:"linear-gradient(90deg,#73b3fc,#499eff)",2:"linear-gradient(90deg,#ffab45,#ffa142)",3:"linear-gradient(90deg,#ff8695,#ff5a6e)"}:{1:"linear-gradient(90deg,#a59bff,#8b7fed)",2:"linear-gradient(90deg,#ffc85a,#ffae1f)",3:"linear-gradient(90deg,#ff8695,#ff5a6e)"}},matchUnit:function(){return this.pxToRem>0?"rem":"px"},matchRatio:function(){return this.pxToRem>0?10*this.pxToRem:10}},methods:{calTextWidth:function(t){var e=new RegExp(/[^0-9]/gi),n=t.text.replace(e,"").length,r=t.text.length-n;return n*this.singleNumWidth+r*this.singleTextWidth+this.textExtraWidth},calAccountWidth:function(t){for(var e=this.calTextWidth(t);;){if(!(e>this.residueWidth[t.row])){this.residueWidth[t.row]=(this.residueWidth[t.row]||this.maxWidth)-e;break}t.row+=1}return t.bindStartPoint&&t.bindEndPoint?e>this.minWidth?e:this.minWidth:"1"===t.caseType&&e>this.minWidth?e:this.minWidth},calAccountLeft:function(t,e){this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint?t.right=-1:this.tempData[e.split("_")[1]]&&"1"===this.tempData[e.split("_")[1]].isEndPoint&&(t.right=0),i(this.repeatPoint[t.bindPoint])?(this.repeatPoint[t.bindPoint]={},t.left=this.accountOffset+(this.tempData[t.bindStartPoint].left||this.prevWidth[this.prevWidth.length-1]),this.repeatPoint[t.bindPoint].left=t.left,this.repeatPoint[t.bindPoint].count=1):(t.left=this.repeatPoint[t.bindPoint].left,this.repeatPoint[t.bindPoint].count++)},calEdgeLeft:function(t){this.tempEdge[t]&&i(this.tempEdge[t].left)&&(this.tempEdge[t].left=this.edgeOffset+this.prevWidth[this.prevWidth.length-1])},calEdgeWidth:function(t,e,n){this.tempEdge[e]&&(this.tempEdge[e].width||("1"===this.tempData[e.split("_")[1]].isEndPoint?this.tempEdge[e].right=0:this.tempEdge[e].width=n+("1"===t?this.errorOffset:1.5*this.errorOffset)))},calStartPointLeft:function(t){if(this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint)return void(this.tempData[t.bindPoint].right=0);i(this.tempData[t.bindStartPoint].left)&&(this.tempData[t.bindStartPoint].left=this.prevWidth[this.prevWidth.length-1])},calEndPointLeft:function(t,e){i(this.tempData[t.bindEndPoint])||i(this.tempData[t.bindEndPoint].left)&&(this.tempData[t.bindEndPoint]&&"1"===this.tempData[t.bindEndPoint].isEndPoint?this.tempData[t.bindEndPoint].right=0:this.tempData[t.bindEndPoint].left=e+this.prevWidth[this.prevWidth.length-1]+("1"===t.caseType?this.errorOffset:1.5*this.errorOffset))},calPrevWidth:function(t,e,n){i(this.tempEdge[t])?"1"!==n.caseType||this.prevWidth[this.prevWidth.length-1]?this.hasName?this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]):this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]+this.minWidth):this.prevWidth.push(e):this.repeatPoint[n.bindPoint].count?this.prevWidth.push(this.tempEdge[t].width+this.minWidth):this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]+this.minWidth)},calAccountBindEndPoint:function(t){var e=this.calTextWidth(t);this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint&&(t.left=this.maxWidth-this.edgeOffset,t.textLeft=-e)},sortAccountDataByCaseType:function(){var t=[[],[],[]];this.tempAccount.forEach(function(e){return t[Number(e.caseType)-1].push(e)}),t.forEach(function(t){return t.sort(function(t,e){return t.order&&e.order?~~e.order-~~t.order:(e.bindEndPoint||"").length-(t.bindEndPoint||"").length})}),this.tempAccount=t.flat()},reducePrevWidth:function(t){!1===this.tempData[t.bindStartPoint].display&&(this.prevWidth[this.prevWidth.length-1]=this.prevWidth[this.prevWidth.length-1]-this.minWidth+.8)},accountHasName:function(t){t.name&&(this.hasName=!0)},calPosition:function(){var t=this;this.prevWidth=[0],this.residueWidth=[],this.repeatPoint={},this.tempData=r(this.caseInfo.caseData),this.tempEdge=r(this.caseInfo.caseEdge),this.tempAccount=r(this.caseInfo.caseAccount),this.sortAccountDataByCaseType(),this.tempAccount.forEach(function(e){var n=e.bindStartPoint+"_"+e.bindEndPoint;t.accountHasName(e);var r=t.calAccountWidth(e);t.reducePrevWidth(e),t.calAccountLeft(e,n),t.calEdgeWidth(e.caseType,n,r),t.calEdgeLeft(n),t.calStartPointLeft(e),t.calEndPointLeft(e,r),t.calAccountBindEndPoint(e),t.calPrevWidth(n,r,e)}),this.caseData=this.tempData,this.caseEdge=this.tempEdge,this.caseAccount=this.tempAccount}},beforeMount:function(){this.calPosition()},watch:{caseInfo:{handler:function(){this.calPosition()},deep:!0}}}},1223:function(t,e,n){"use strict";var r=n(196),i=n.n(r);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new i.a(n,{})})}}}}},13:function(t,e,n){var r=n(34),i=n(15);t.exports=function(t){return r(i(t))}},130:function(t,e,n){t.exports={default:n(144),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},144:function(t,e,n){n(50),n(48),t.exports=n(145)},145:function(t,e,n){var r=n(4),i=n(56);t.exports=n(2).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},17:function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},196:function(t,e){t.exports=n},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var r=n(31)("keys"),i=n(24);t.exports=function(t){return r[t]||(r[t]=i(t))}},2003:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),i=n.n(r),o=n(2004);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceV2=i()(o.a,t)},e.default=o.a},2004:function(t,e,n){"use strict";function r(t){s||n(2005)}var i=n(1215),o=n(2031),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-49d41bd8",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\index.vue",e.a=u.exports},2005:function(t,e){},2006:function(t,e,n){"use strict";function r(t){s||n(2007)}var i=n(1216),o=n(2023),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-21328635",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\index.vue",e.a=u.exports},2007:function(t,e){},2008:function(t,e,n){"use strict";function r(t){s||n(2009)}var i=n(1217),o=n(2010),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-f670e202",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\components\\title.vue",e.a=u.exports},2009:function(t,e){},2010:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return""!==t.element.value?n("p",[n("span",{domProps:{innerHTML:t._s(t.element.value)}}),t._v(" "),1===t.hasQuesMask?n("button",{staticClass:"question",style:{background:t.theme.brandColor},on:{click:t.showTable}},[t._v("\n 利益演示 >\n ")]):t._e()]):t._e()},i=[];r._withStripped=!0},2011:function(t,e,n){"use strict";function r(t){s||n(2012)}var i=n(1218),o=n(2013),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-2b9032c1",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\components\\amount.vue",e.a=u.exports},2012:function(t,e){},2013:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"price"},[t.loading?n("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir3",color:"red"}}):[t._v("\n "+t._s(t._f("fixedTwoNumber")(t.element.value))+"\n ")]],2)},i=[];r._withStripped=!0},2014:function(t,e,n){"use strict";function r(t){s||n(2015)}var i=n(1219),o=n(2016),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-7b26226c",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\components\\slider.vue",e.a=u.exports},2015:function(t,e){},2016:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{ref:"chooseContainer",staticClass:"choose"},[n("div",{staticClass:"choose-container wrapper"},[n("div",{ref:"wrappercontent",staticClass:"choose-content"},t._l(t.during,function(e){return n("div",{key:e,staticClass:"choose-item"},[n("span",{staticClass:"number-item",class:{"number-part":(e+t.min-1)%t.step==0}}),t._v(" "),(e+t.min-1)%t.step==0?n("span",{staticClass:"number-text"},[t._v(t._s(e+t.min-1)+t._s(t.unit))]):t._e()])}),0)]),t._v(" "),n("div",{staticClass:"choose-value skin-bg"})])])},i=[];r._withStripped=!0},2017:function(t,e,n){"use strict";function r(t){s||n(2018)}var i=n(1220),o=n(2019),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-da9b1554",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\components\\text.vue",e.a=u.exports},2018:function(t,e){},2019:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"desc",domProps:{innerHTML:t._s(t.element.value)}})])},i=[];r._withStripped=!0},2020:function(t,e,n){"use strict";function r(t){s||n(2021)}var i=n(1221),o=n(2022),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-1dca2565",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\benefit\\components\\select.vue",e.a=u.exports},2021:function(t,e){},2022:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gears"},[n("p",[t._v("\n "+t._s(t.element.range[t.index].textPrefix)+"\n "),n("span",{style:{color:t.theme.brandColor}},[t._v(" "+t._s(t.element.range[t.index].text)+" ")]),t._v("\n "+t._s(t.element.range[t.index].textSuffix)+"\n ")]),t._v(" "),n("a",{staticClass:"btn-exchange",style:{color:t.theme.brandColor,borderColor:t.theme.brandColor},attrs:{href:"javascript:;"},on:{click:t.exchange}},[t._v("切换")])])},i=[];r._withStripped=!0},2023:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"benefit",class:t.isCps?"cps":""},t._l(t.elements,function(e,r){return n(t.components[r],{key:r,tag:"component",class:{"visible-hide":!e.visible},attrs:{element:e,loading:t.loading,theme:t.theme,path:t.$route.path},on:{showTable:t.showTable,updateAge:t.updateAge,onElementChange:t.onElementChange}})}),1)},i=[];r._withStripped=!0},2024:function(t,e,n){"use strict";function r(t){s||n(2025)}var i=n(1222),o=n(2026),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-c6d4490a",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\caseDemo.vue",e.a=u.exports},2025:function(t,e){},2026:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"box",class:t.isCps?"cps":"",style:"padding-bottom: "+t.infoPaddingTop*t.matchRatio+t.matchUnit},[n("div",{staticClass:"main-line",style:t.hasName?"":"margin-left: "+3*t.matchRatio+t.matchUnit},[t._l(t.caseData,function(e,r){return n("div",{key:r,staticClass:"pay-point",style:"\n left: "+e.left*t.matchRatio+t.matchUnit+";\n right: "+e.right*t.matchRatio+t.matchUnit+";\n background: "+t.colorType[e.colorType]},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(!1===e.display),expression:"!(item.display === false)"}],staticClass:"head",style:"1"===e.isEndPoint?"left: unset;right: -"+1*t.matchRatio+t.matchUnit:""},[n("div",{staticClass:"title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),n("div",{staticClass:"sub-title"},[t._v("\n "+t._s(e.desc)+"\n ")])])])}),t._v(" "),t._l(t.caseEdge,function(e,r){return n("div",{key:r,staticClass:"pay-line",style:"\n width: "+e.width*t.matchRatio+t.matchUnit+";\n left: "+e.left*t.matchRatio+t.matchUnit+";\n right: "+e.right*t.matchRatio+t.matchUnit+";\n border-top: 1px dotted "+t.edgeColor[e.caseType]})}),t._v(" "),t._l(t.caseAccount,function(e,r){return n("div",{key:r,staticClass:"desc",style:"\n left: "+(e.left.length?e.left*t.matchRatio:""+e.left*t.matchRatio+t.matchUnit)+";\n right: "+e.right*t.matchRatio+t.matchUnit},[e.text?[n("div",{staticClass:"desc-vertical-line",style:"\n height: "+(2+4*(e.row-1))*t.matchRatio+t.matchUnit+";\n margin-left: "+e.lineLeft*t.matchRatio+";\n margin-right: "+e.lineRight*t.matchRatio+t.matchUnit+";\n background: "+t.colorType[t.caseData[e.bindPoint].caseType]}),t._v(" "),n("div",{staticClass:"text",style:"\n margin-left: "+e.textLeft*t.matchRatio+t.matchUnit+";\n margin-right: "+e.textRight*t.matchRatio+t.matchUnit+";\n background: "+t.colorType[t.caseData[e.bindPoint].caseType]},[n("div",{class:{icon:!0,"icon-pay":"1"===t.caseData[e.bindPoint].caseType,"icon-get":"1"!==t.caseData[e.bindPoint].caseType}}),t._v(" "),n("span",[t._v(t._s(e.text))]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.name,expression:"item.name"}],staticClass:"account"},[t._v(t._s(e.name))])])]:t._e()],2)})],2)])},i=[];r._withStripped=!0},2027:function(t,e,n){"use strict";function r(t){s||n(2028)}var i=n(1223),o=n(2029),a=n(7),s=!1,c=r,u=Object(a.a)(i.a,o.a,o.b,!1,c,"data-v-0ecfbee9",null);u.options.__file="src\\components\\GoldFinanceV2\\src\\components\\costTable.vue",e.a=u.exports},2028:function(t,e){},2029:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,r){return[t.showCol(r)?n("span",{key:"head-"+r,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,r){return n("tr",{key:"tr-"+r,staticClass:"table-tr"},[t._l(e,function(e,i){return[t.showCol(i)?n("td",{key:"td-"+r+"-"+i,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},i=[];r._withStripped=!0},2030:function(t,e,n){"use strict";function r(t,e){if(/(\d{4})(\d{2})(\d{2})/.test(t)){var n=1e3*(e||window.g_curtime),r=new Date(n),i=new Date((t+"").replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3")),o=r.getDate()>=i.getDate()?0:-1,a=r.getMonth()+o>=i.getMonth()?0:-1,s={};return s.y=r.getFullYear()+a-i.getFullYear(),s.d=~~((r.getTime()-i.getTime())/36e5/24),s}}n.d(e,"d",function(){return u}),n.d(e,"c",function(){return l}),n.d(e,"a",function(){return f}),n.d(e,"b",function(){return d}),n.d(e,"e",function(){return h});var i=n(111),o=n.n(i),a=n(130),s=n.n(a),c=n(39),u=(n.n(c),function t(e){var n=e.applicant,i=e.insured,a=e.plan,u=e.costTable,l=e.costSlideVar,f=e.genesValue,d=e.genesRules,h=e.dontValue,p=void 0===h?[]:h,v=e.curtime,m=void 0===v?0:v;if(""===f)return f;var b=f.replace(/g\((\d+)\)/g,function(e,h){if(!d[h])return"";var v=d[h],b=v.detail,g=void 0===b?{}:b,y=v.source,x="";switch(~~y){case 1:if(!n||!n.hasOwnProperty(g.data)||""===n[g.data])break;if(13===g.transType){var _=r(n[g.data],m);_&&(x=_.y+(~~g.offsetYear||0))}else 0===g.transType&&(x=n[g.data]);break;case 2:if(!i.hasOwnProperty(g.data)||""===i[g.data])break;if(13===g.transType){var w=r(i[g.data],m);Object(c.isObject)(w)&&(x=w.y+(~~g.offsetYear||0))}else 0===g.transType&&(x=i[g.data]);break;case 3:if(!a.hasOwnProperty(g.data)||""===a[g.data])break;if(14===g.transType){if(!g.exdata||!g.exdata.birth)break;var T=t({applicant:n,insured:i,plan:a,costTable:u,costSlideVar:l,genesValue:g.exdata.birth,genesRules:d,curtime:m}),S=a[g.data].replace(/[^0-9]/gi,"");""!==T&&(x=~~T+~~S+(~~g.offsetYear||0))}else 0===g.transType&&(x=a[g.data]);break;case 8:if(!Object(c.isObject)(g.exdata)||!Object(c.isArray)(u)||u.length<1)break;var P=g.exdata.slideCol-1,E=g.exdata.targetCol-1;if(11===g.transType){var O=l;if(g.exdata.slideVar){var C=t({applicant:n,insured:i,plan:a,costTable:u,costSlideVar:l,genesValue:g.exdata.slideVar,genesRules:d,curtime:m});""!==C&&(O=~~C)}if(void 0===O)break;for(var k=u,j=Array.isArray(k),A=0,k=j?k:s()(k);;){var I;if(j){if(A>=k.length)break;I=k[A++]}else{if(A=k.next(),A.done)break;I=A.value}var D=I;if(~~D[P]===O){x=void 0!==D[E]?D[E]:"";break}}}else if(12===g.transType){var R=u[0],M=u[u.length-1];void 0!==R[E]&&void 0!==M[E]&&(x=o()({min:R[E],max:M[E]}))}break;case 9:0===g.transType&&(x=g.data||"")}return""===x&&console.log("%c 模板变量替换失败,模板参数: "+f+", 滑动参数:"+l,"color:red"),p.indexOf(x)>-1?(console.log("%c 替换结果命中dotValue,模板参数: "+f+", 替换结果:"+x,"color:red"),"##null##"):x});return/##null##/.test(b)?"null":b}),l=function(t,e){return""===t?t:t.replace(/g\((\d+)\)/g,function(t){return'<span style="color:'+e.brandColor+';">'+t+"</span>"})},f=function(t,e){var n=t.insureds&&t.insureds[0]||{},r=n.insured,i=n.plan,o=t.applicant;if(r)if(e.insureds){var a=e.insureds[0].insured,s=void 0===a?{}:a;for(var c in r)s.hasOwnProperty(c)||(s[c]=r[c])}else e.insureds=[],e.insureds.push(r);if(i)if(e.plan)for(var u in i)e.plan.hasOwnProperty(u)||(e.plan[u]=i[u]);else e.plan=i;if(o)if(e.applicant)for(var l in o)e.applicant.hasOwnProperty(l)||(e.applicant[l]=o[l]);else e.applicant=o;return p(e)},d=function(t,e){var n=t.insureds&&t.insureds[0]||{},r=n.insured,i=n.plan,o=t.applicant;if(i&&e.plan&&Object(c.isArray)(e.plan.productAttributes))for(var a=0;a<e.plan.productAttributes.length;a++){var s=e.plan.productAttributes[a],u=s.key.split(".").pop();i.hasOwnProperty(u)&&(s.defaultValue=i[u])}if(o&&e.applicant&&Object(c.isArray)(e.applicant.productAttributes))for(var l=0;l<e.applicant.productAttributes.length;l++){var f=e.applicant.productAttributes[l],d=f.key.split(".").pop();o.hasOwnProperty(d)&&(f.defaultValue=o[d])}if(r&&e.insureds&&e.insureds.subModules&&e.insureds.subModules[0]&&Object(c.isArray)(e.insureds.subModules[0].productAttributes))for(var h=0;h<e.insureds.subModules[0].productAttributes.length;h++){var p=e.insureds.subModules[0].productAttributes[h],v=p.key.split(".").pop();r.hasOwnProperty(v)&&(p.defaultValue=r[v])}return e},h=function(t,e){if(t&&t.length>0&&e)for(var n=t,r=Array.isArray(n),i=0,n=r?n:s()(n);;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if("benefitDemo.gears"===a.key){var c=[].concat(t);return c.push({site:e.site,key:e.key,value:a.value}),c}}return t},p=function(t){return t.plan&&void 0!==t.plan.interest&&t.benefitDemo&&void 0!==t.benefitDemo.gears&&(t.plan.interest=t.benefitDemo.gears),t}},2031:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[t.benefitElems&&t.benefitElems.length>0?n("gold-benefit",{attrs:{elements:t.benefitElems,loading:t.loading,theme:t.realTheme,isCps:t.isCps},on:{showTable:t.onShowTable,updateAge:t.onBenefitChange,onElementChange:t.onElementChange}}):t._e(),t._v(" "),t.caseDemoInfo?t._t("caseHerder"):t._e(),t._v(" "),t.caseDemoInfo?n("gold-case-demo",{attrs:{pxToRem:t.pxToRem,isCps:t.isCps,loading:t.loading,caseInfo:t.caseDemoInfo}}):t._e(),t._v(" "),t.caseDemoInfo?t._t("caseFooter"):t._e(),t._v(" "),n("gold-cost-table",{attrs:{visible:t.costTableVisible,tables:t.costTableInfo,theme:t.realTheme},on:{cancelCost:function(e){t.costTableVisible=!1}}})],2)},i=[];r._withStripped=!0},22:function(t,e,n){var r=n(6),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},26:function(e,n){e.exports=t},262:function(t,e,n){t.exports=n(265)},263:function(t,e,n){"use strict";e.__esModule=!0;var r=n(71),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),c=s.value}catch(t){return void n(t)}if(!s.done)return i.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}return r("next")})}}},265:function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(266),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},266:function(t,e){!function(e){"use strict";function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new h(r||[]);return a._invoke=u(t,n,s),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(n,i,o,a){var s=r(t[n],t,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&g.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}function n(t,n){function r(){return new Promise(function(r,i){e(t,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function u(t,e,n){var i=P;return function(o,a){if(i===O)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=l(s,n);if(c){if(c===k)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===P)throw i=C,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=O;var u=r(t,e,n);if("normal"===u.type){if(i=n.done?C:E,u.arg===k)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=C,n.method="throw",n.arg=u.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return k;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,k;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,k):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,k)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function d(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function p(t){if(t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:m,done:!0}}var m,b=Object.prototype,g=b.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},x=y.iterator||"@@iterator",_=y.asyncIterator||"@@asyncIterator",w=y.toStringTag||"@@toStringTag",T="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(T&&(t.exports=S));S=e.regeneratorRuntime=T?t.exports:{},S.wrap=n;var P="suspendedStart",E="suspendedYield",O="executing",C="completed",k={},j={};j[x]=function(){return this};var A=Object.getPrototypeOf,I=A&&A(A(p([])));I&&I!==b&&g.call(I,x)&&(j=I);var D=a.prototype=i.prototype=Object.create(j);o.prototype=D.constructor=a,a.constructor=o,a[w]=o.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(D),t},S.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[_]=function(){return this},S.AsyncIterator=c,S.async=function(t,e,r,i){var o=new c(n(t,e,r,i));return S.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(D),D[w]="Generator",D[x]=function(){return this},D.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=p,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),s=g.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,k):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),k},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),k}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;d(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),k}}}(function(){return this}()||Function("return this")())},27:function(t,e,n){var r=n(10).f,i=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},28:function(t,e,n){var r=n(42),i=n(32);t.exports=Object.keys||function(t){return r(t,i)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},34:function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},35:function(t,e,n){var r=n(16),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},36:function(t,e,n){"use strict";var r=n(18),i=n(9),o=n(54),a=n(5),s=n(11),c=n(60),u=n(27),l=n(62),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,v,m,b){c(n,e,p);var g,y,x,_=function(t){if(!d&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",T="values"==v,S=!1,P=t.prototype,E=P[f]||P["@@iterator"]||v&&P[v],O=E||_(v),C=v?T?_("entries"):O:void 0,k="Array"==e?P.entries||E:E;if(k&&(x=l(k.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),r||"function"==typeof x[f]||a(x,f,h)),T&&E&&"values"!==E.name&&(S=!0,O=function(){return E.call(this)}),r&&!b||!d&&!S&&P[f]||a(P,f,O),s[e]=O,s[w]=h,v)if(g={values:T?O:_("values"),keys:m?O:_("keys"),entries:C},b)for(y in g)y in P||o(P,y,g[y]);else i(i.P+i.F*(d||S),e,g);return g}},38:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},39:function(t,n){t.exports=e},4:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var r=n(8),i=n(13),o=n(46)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},43:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},44:function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i