PageSourceSearch

https://mall.caixin.com/shop/_next/static/chunks/3640-43f12be61ae374b2.js

js caixin.com collected 2026-10-01 08:40:25 UTC 30,765 bytes, 1 lines download raw bytes

1"use strict";function _array_like_to_array(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value}catch(error){reject(error);return}if(info.done){resolve(value)}else{Promise.resolve(value).then(_next,_throw)}}function _async_to_generator(fn){return function(){var self1=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self1,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(undefined)})}}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _iterable_to_array_limit(arr,i){var _i=arr==null?null:typeof Symbol!=="undefined"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i==null)return;var _arr=[];var _n=true;var _d=false;var _s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e}}return _arr}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _type_of(obj){"@swc/helpers - typeof";return obj&&typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj}function _unsupported_iterable_to_array(o,minLen){if(!o)return;if(typeof o==="string")return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),"throw":verb(1),"return":verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3640],{3213:function(e,t,a){a.d(t,{Wu:function(){return c},ZB:function(){return u},Zp:function(){return i},aR:function(){return d},wL:function(){return p}});var r=a(28424),o=a(13763),s=a(59784),l=a(35268),n=a(92405);var i=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:t,className:(0,n.cn)("bg-card text-card-foreground bg-white w-full border-none shadow-none rounded-md",_$a)},l))});
1i.displayName="Card";var d=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",_$a)},l))});d.displayName="CardHeader";var u=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("h3",(0,r._)({ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",_$a)},l))});u.displayName="CardTitle",l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("p",(0,r._)({ref:t,className:(0,n.cn)("text-sm text-muted-foreground",_$a)},l))}).displayName="CardDescription";var c=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:t,className:(0,n.cn)("p-6 pt-0",_$a)},l))});c.displayName="CardContent";var p=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",_$a)},l))});p.displayName="CardFooter"},9479:function(e,t,a){a.d(t,{J:function(){return c}});var r=a(28424),o=a(13763),s=a(59784),l=a(35268),n=a(57738),i=a(92466),d=a(92405);var u=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=l.forwardRef(function(e,t){var _$a=e.className,l=(0,o._)(e,["className"]);return(0,s.jsx)(n.b,(0,r._)({ref:t,className:(0,d.cn)(u(),_$a)},l))});c.displayName=n.b.displayName},11015:function(e,t,a){a.d(t,{n:function(){return h},Z:function(){return g}});var r=a(59784),o=a(82626),s=a(35268),l=a(42464),n=a(9479),i=a(46191),d=a(92405);var u=function(){var e,_$t;var _ref=(0,i.v)(),_$a=_ref.data;return(null==_$a?void 0:_$a.data)&&(null==(e=_$a.data)?void 0:e.calDiscountAmount)&&!((null==(_$t=_$a.data)?void 0:_$t.calDiscountAmount)<=0)?(0,r.jsxs)("div",{className:"flex items-center justify-between py-[10px] border-b border-[#F0F0F2]",children:[(0,r.jsxs)(n.J,{htmlFor:"activity",className:"flex items-center justify-between space-x-2 text-[13px] flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2 ",children:[(0,r.jsx)(l.E,{className:" border-none rounded-sm text-xs w-5 font-semibold",children:"减"}),(0,r.jsx)("span",{className:"text-[#181818]",children:_$a.data.activityName})]}),(0,r.jsxs)("span",{className:"text-primary",children:["-",(0,d.Qn)(_$a.data.moneyCode),_$a.data.calDiscountAmount]})]}),(0,r.jsx)(o.C,{value:g.ACTIVITY,id:"activity",className:"ml-1"})]}):null};var c=a(27110);var p=function(){var _ref=(0,c.Q)(),e=_ref.data;return e&&e.canUpgrade?(0,r.jsxs)("div",{className:"flex items-center justify-between py-[10px] border-b border-[#F0F0F2]",children:[(0,r.jsxs)(n.J,{htmlFor:"discount",className:"flex items-center justify-between space-x-2 text-[13px] flex-1",children:[(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.title||""}}),(0,r.jsxs)("span",{className:"text-primary",children:["-¥",e.amt]})]}),(0,r.jsx)(o.C,{value:g.DISCOUNT,id:"discount",className:"ml-1"})]}):null};var m=a(72884),v=a(82798),g=function(e){return e.DISCOUNT="discount",e.ACTIVITY="activity",e}({});var h=function(){var _ref=(0,m.Y0)(),e=_ref.onDoNotUseCoupon,_$t=_ref.onInitialValue,_ref1=(0,c.Q)(),_$a=_ref1.data,_ref2=(0,v.x)(function(e){return{radioValue:e.radioValue,setRadioValue:e.setRadioValue}}),l=_ref2.radioValue,n=_ref2.setRadioValue,_ref3=(0,v.x)(function(e){return{currentCoupon:e.currentCoupon}}),i=_ref3.currentCoupon,d=function(e){i&&"discount"===e&&_$t(),n(e)};return(0,s.useEffect)(function(){(null==_$a?void 0:_$a.canUpgrade)&&d("discount")},[null==_$a?void 0:_$a.canUpgrade]),(0,r.jsxs)(o.z,{value:l,onValueChange:function(t){i&&"discount"===t&&e(),n(t)},children:[(0,r.jsx)(p,{}),(0,r.jsx)(u,{})]})}},21437:function(e,t,a){var r=function r(e,t){var _$a,r;try{_$a=e.toString().split(".")[1].length}catch(e){_$a=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}var s=Math.pow(10,Math.max(_$a,r));return(o(e,s)-o(t,s))/s};var o=function o(e,t){var _$a=0,r=e.toString(),o=t.toString();try{_$a+=r.split(".")[1].length}catch(e){}try{_$a+=o.split(".")[1].length}catch(e){}return Number(r.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,_$a)};var s=function s(e,t){var _$a,r;try{_$a=e.toString().split(".")[1].length}catch(e){_$a=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}var s=Math.pow(10,Math.max(_$a,r));return(o(e,s)+o(t,s))/s};var l=function l(e,t){var _$a=0,r=0;try{_$a=e.toString().split(".")[1].length}catch(e){}try{r=t.toString().split(".")[1].length}catch(e){}return o(Number(e.toString().replace(".",""))/Number(t.toString().replace(".","")),Math.pow(10,r-_$a))};var n=function n(e){var _$t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.trunc(e*Math.pow(10,_$t))/Math.pow(10,_$t)};a.d(t,{JZ:function(){return l},QS:function(){return r},XA:function(){return s},fZ:function(){return o},ur:function(){return n}})},27110:function(e,t,a){a.d(t,{Q:function(){return v}});var r=a(28424),o=a(97428),s=a(17897),l=a(12276),n=a(11015),i=a(50006),d=a(35268),u=a(61365),c=a(82798),p=a(77694);var m=function(e,t,a){switch(e){case 40691:return t.replace("{}",a?"":"折现后");case 4069:case 4061:case 4070:return t.replace("{}","");default:return t}},v=function(){var e;var _$t=(0,i.useSearchParams)(),_ref=(0,p.s)(),_$a=_ref.data,_ref1=(0,c.x)(function(e){return{currentCoupon:e.currentCoupon,setCurrentCoupon:e.setCurrentCoupon,radioValue:e.radioValue,setRadioValue:e.setRadioValue}}),v=_ref1.currentCoupon,g=_ref1.setCurrentCoupon,h=_ref1.radioValue,f=_ref1.setRadioValue,y=null==_$a||null==(e=_$a.data)?void 0:e[0],C=_$t.get("trcode")||"",I=sessionStorage.getItem("activityCode")||"",N=(0,d.useMemo)(function(){var e,_$t;return y&&(null==(e=y.spec)?void 0:e.isRenew)===1?{url:s.Lq.CHECK_RENEWS_INFO,params:{bisCode:s.FV.CAIXIN,gsvId:null==y||null==(_$t=y.spec)?void 0:_$t.gsvId,goodsId:null==y?void 0:y.goodsId,trialPrice:C?y.spec.trialPrice:void 0,bizType:C?3:I?2:void 0,salePrice:I?y.spec.salePrice:void 0}}:null},[y,C]),_ref2=(0,u.Ay)(N||null,/*#__PURE__*/_async_to_generator(function(){var e,_$t,_$a,i,d,u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!N)return[2,null];return[4,(0,l.GO)(N.url,{method:"GET",params:N.params})];case 1:_$a=_state.sent(),i=_$a.code,d=_$a.msg,u=_$a.data;if(!u)return[2,null];c=!!(40691===i&&u&&(null==(e=u.extendData)?void 0:e.discountAmt)>0&&(null==y||null==(_$t=y.spec)?void 0:_$t.currency)===s.UM.RMB);return[2,(c&&(v&&h===n.Z.DISCOUNT&&g(null),f(n.Z.DISCOUNT)),(0,o._)((0,r._)({},_$a),{tips:m(i,d,C),checked:!1,canUpgrade:c,title:c?'<span class="text-primary">'.concat(u.sourcePowerName,'</span>剩余<span class="text-primary">').concat(u.extendData.discountDays,"天</span>可用于折现"):"",amt:c?u.extendData.discountAmt:0}))]}})}),{keepPreviousData:!0,revalidateIfStale:!1,revalidateOnFocus:!1}),_=_ref2.data,x=_ref2.mutate,b=_ref2.isLoading,w=_ref2.error,P=(0,d.useCallback)(function(e){_&&x((0,o._)((0,r._)({},_),{checked:e}),{revalidate:!1})},[_,x]);return{data:_||null,isLoading:b,error:w,updateCheckedStatus:P}}},46191:function(e,t,a){a.d(t,{v:function(){return f}});var r=a(28424),o=a(97428),s=a(17897),l=a(21437),n=a(12276),i=a(92405),d=a(11015),u=a(50006),c=a(35268),p=a(61365),m=a(82798),v=a(27110),g=a(77694),h=a(1173);var f=function(){var e,_$t;var _ref=(0,g.s)(),_$a=_ref.data,f=_ref.isTrial,_ref1=(0,m.x)(function(e){return{currentCoupon:e.currentCoupon}}),y=_ref1.currentCoupon,_ref2=(0,m.x)(function(e){return{currentPayment:e.currentPayment}}),C=_ref2.currentPayment,I=(0,u.useSearchParams)(),N=I.get("trcode"),_=I.get("count"),x=I.get("gid"),_ref3=(0,v.Q)(),b=_ref3.data,w=null==_$a||null==(e=_$a.data)?void 0:e[0],P=function(e,t){return e.map(function(e){return(0,o._)((0,r._)({},e,t&&{quantity:Number(t)}),{couponDiscountAmt:e.calDiscountAmount})})},D=function(e,t){var _$a,r;return{goodsId:e.goodsId,goodsName:e.goodsName,quantity:Number(t||1),specId:e.specId||(null==(r=e.goodsSpecList)||null==(_$a=r.find(function(t){var _$a;return t.specCode===(null==(_$a=e.spec)?void 0:_$a.gsvCode)}))?void 0:_$a.specId),classId:e.cateId,storeGroup:e.storeGroup}},S=(0,c.useMemo)(function(){var e,_$t;if((null==y?void 0:y.goodsDetail)&&(null==y||null==(e=y.goodsDetail)?void 0:e.length)>0){var e1=x?_:void 0;return P(y.goodsDetail,Number(e1))}return x&&w?[D(w,Number(_||1))]:(null==_$a?void 0:_$a.data)&&(null==_$a||null==(_$t=_$a.data)?void 0:_$t.length)>0?_$a.data.map(function(e){return D(e,e.count)}):[]},[x,w,y,_$a,_]),T=(0,c.useMemo)(function(){return x?_||1:null==S?void 0:S.reduce(function(e,t){return e+t.quantity},0)},[_,S,x]),A=(0,c.useMemo)(function(){var e=null==_$a?void 0:_$a.data.reduce(function(e,t){var _$a;return(0,l.XA)(e,(0,l.fZ)(t.count,(null==(_$a=t.spec)?void 0:_$a.salePrice)||0))},0),_$t=(0,l.fZ)(T,(null==w?void 0:w.spec.salePrice)||0);return x?_$t:e},[null==_$a?void 0:_$a.data,w,_,x,T]),_ref4=(0,m.x)(function(e){return{radioValue:e.radioValue,setRadioValue:e.setRadioValue}}),L=_ref4.radioValue,O=_ref4.setRadioValue,V=(0,p.Ay)((null==S?void 0:S.length)&&!N?[s.Lq.ACTIVITY,null==w||null==(_$t=w.spec)?void 0:_$t.currency,T,S,null==y?void 0:y.rawCalDiscountAmt,A,null==C?void 0:C.code,_]:null,function(e){var _e=_sliced_to_array(e,7),_$t=_e[0],_$a=_e[1],l=_e[2],d=_e[3],u=_e[4],
1c=_e[5],p=_e[6];return(0,n.GO)(_$t,{method:"POST",data:{platform:(0,h.u)(),businessType:1001,systemType:100101,uid:(0,i.UM)(s.v8.USER_UID),moneyCode:_$a,totalQuantity:l,goodsDetail:d,couponDiscountAmt:u,orderAmount:c,payType:p}}).then(function(e){var _$t,_$a,s;if(f||(null==w||null==(_$t=w.spec)?void 0:_$t.isDiscount)===0||!e.data)return null;var l=null==(_$a=e.data)?void 0:_$a.calDiscountAmount;return(0,o._)((0,r._)({},e),{data:(0,o._)((0,r._)({},e.data),{rawCalDiscountAmt:l,calDiscountAmount:+(0,i.OY)((null==(s=e.data)?void 0:s.calDiscountAmount)||0)})})})},{keepPreviousData:!0});return(0,c.useEffect)(function(){y||(null==b?void 0:b.canUpgrade)||O(d.Z.ACTIVITY)},[null==b?void 0:b.canUpgrade,y,O]),V}},53910:function(e,t,a){a.d(t,{sZ:function(){return s}});var r=/*#__PURE__*/function(){function r(){_class_call_check(this,r);this.store=new Map}_create_class(r,[{key:"getItem",value:function getItem(e){var _$t;return null!=(_$t=this.store.get(e))?_$t:null}},{key:"setItem",value:function setItem(e,t){this.store.set(e,t)}},{key:"removeItem",value:function removeItem(e){this.store.delete(e)}},{key:"clear",value:function clear(){this.store.clear()}},{key:"key",value:function key(e){var _$t;return null!=(_$t=Array.from(this.store.keys())[e])?_$t:null}},{key:"length",get:function get(){return this.store.size}}]);return r}();var o=/*#__PURE__*/function(){function o(e){_class_call_check(this,o);var _$t=e.storageType,tmp=e.prefix,_$a=tmp===void 0?"":tmp,tmp1=e.serialize,r=tmp1===void 0?!0:tmp1;this.prefix=_$a,this.serialize=r,this.storage=this.createStorage(_$t)}_create_class(o,[{key:"createStorage",value:function createStorage(e){switch(e){case"session":return window.sessionStorage;case"local":return window.localStorage;default:return new r}}},{key:"getKey",value:function getKey(e){return this.prefix?"".concat(this.prefix,":").concat(e):e}},{key:"getItem",value:function getItem(e){try{return this.storage.getItem(this.getKey(e))}catch(t){return console.warn("Failed to get item from storage: ".concat(e),t),null}}},{key:"setItem",value:function setItem(e,t){try{this.storage.setItem(this.getKey(e),t)}catch(t){console.warn("Failed to set item to storage: ".concat(e),t)}}},{key:"get",value:function get(e){var _$t=this.getItem(e);if(null===_$t)return null;if(!this.serialize)return _$t;try{return JSON.parse(_$t)}catch(a){return console.warn("Failed to parse JSON for key: ".concat(e),a),_$t}}},{key:"set",value:function set(e,t){try{var _$a=this.serialize?JSON.stringify(t):String(t);this.setItem(e,_$a)}catch(t){console.warn("Failed to serialize value for key: ".concat(e),t)}}},{key:"removeItem",value:function removeItem(e){try{this.storage.removeItem(this.getKey(e))}catch(t){console.warn("Failed to remove item from storage: ".concat(e),t)}}},{key:"clear",value:function clear(){try{this.prefix?this.clearWithPrefix():this.storage.clear()}catch(e){console.warn("Failed to clear storage",e)}}},{key:"clearWithPrefix",value:function clearWithPrefix(){var _this=this;var e=[],_$t="".concat(this.prefix,":");for(var _$a=0;_$a<this.storage.length;_$a++){var r=this.storage.key(_$a);r&&r.startsWith(_$t)&&e.push(r)}e.forEach(function(e){return _this.storage.removeItem(e)})}},{key:"keys",value:function keys(){var _$e=[],_$t=this.prefix?"".concat(this.prefix,":"):"";try{for(var _$a=0;_$a<this.storage.length;_$a++){var r=this.storage.key(_$a);r&&(this.prefix?r.startsWith(_$t)&&_$e.push(r.substring(_$t.length)):_$e.push(r))}}catch(e){console.warn("Failed to get storage keys",e)}return _$e}},{key:"has",value:function has(e){return null!==this.getItem(e)}},{key:"size",get:function get(){return this.keys().length}},{key:"getUsage",value:function getUsage(){var _this=this;var e=0;return this.keys().forEach(function(t){var _$a=_this.getItem(t);_$a&&(e+=t.length+_$a.length)}),e}}]);return o}();var s=new o({storageType:"session"});new o({storageType:"local"})},72884:function(e,t,a){a.d(t,{Y0:function(){return C},ib:function(){return I}});var r=a(28424),o=a(97428),s=a(17897),l=a(21437),n=a(12276),i=a(92405),d=a(87620),u=a(15543),c=a(11015),p=a(50006),m=a(35268),v=a(61365),g=a(82798),h=a(77694),f=a(1173);var y=function(e){var _$t=e.availableCouponList,_$a=e.currentCoupon,r=e.setCurrentCoupon,o=e.radioValue,l=(0,i.UM)(s.v8.ORDER_VOUCHER_ID),n=_$t.find(function(e){return e.voucherId===l});
1n||(n=_$t[0]);var d=_$t.some(function(e){return e.voucherId===(null==_$a?void 0:_$a.voucherId)&&(e.marketVouchersRules.vouchersMoneyCode!==_$a.marketVouchersRules.vouchersMoneyCode||e.rawCalDiscountAmt!==_$a.rawCalDiscountAmt)||!1});if(n){if(o===c.Z.DISCOUNT)return void r(void 0);void 0===_$a||_$a&&!_$t.some(function(e){return e.voucherId===_$a.voucherId})?r(n):_$a&&d&&r(_$t.find(function(e){return e.voucherId===_$a.voucherId}))}else r(void 0)},C=function(){var e,_$t,_$a;var _ref=(0,h.s)(),u=_ref.data,C=_ref.isTrial,_ref1=(0,g.x)(function(e){return{currentPayment:e.currentPayment}}),I=_ref1.currentPayment,N=(0,p.useSearchParams)(),_=N.get("trcode"),x=N.get("count"),b=N.get("gid"),_ref2=(0,g.x)(function(e){return{radioValue:e.radioValue,setRadioValue:e.setRadioValue}}),w=_ref2.radioValue,P=_ref2.setRadioValue,_ref3=(0,g.x)(function(e){return{currentCoupon:e.currentCoupon,setCurrentCoupon:e.setCurrentCoupon}}),D=_ref3.currentCoupon,S=_ref3.setCurrentCoupon,T=null==u||null==(e=u.data)?void 0:e[0],A=(0,m.useMemo)(function(){var e,_$t;return(console.log(b,"gid"),b&&T)?[{goodsId:T.goodsId,goodsName:T.goodsName,quantity:Number(x||1),specId:T.specId||(null==(_$t=T.goodsSpecList.find(function(e){var _$t;return e.specCode===(null==(_$t=T.spec)?void 0:_$t.gsvCode)}))?void 0:_$t.specId),classId:T.cateId,storeGroup:T.storeGroup}]:null==u||null==(e=u.data)?void 0:e.map(function(e){var _$t;return{goodsId:e.goodsId,goodsName:e.goodsName,quantity:e.count,specId:e.specId||(null==(_$t=e.goodsSpecList.find(function(t){var _$a;return t.specCode===(null==(_$a=e.spec)?void 0:_$a.gsvCode)}))?void 0:_$t.specId),classId:e.cateId,storeGroup:e.storeGroup}})},[D,u,x]),L=(0,m.useMemo)(function(){return b?x||1:(null==A?void 0:A.reduce(function(e,t){return e+t.quantity},0))||1},[x,A,b]),O=(0,m.useMemo)(function(){var e=null==u?void 0:u.data.reduce(function(e,t){var _$a;return(0,l.XA)(e,(0,l.fZ)(t.count,(null==(_$a=t.spec)?void 0:_$a.salePrice)||0))},0),_$t=(0,l.fZ)(L,(null==T?void 0:T.spec.salePrice)||0);return b?_$t:e},[null==u?void 0:u.data,T,x]),V=(0,v.Ay)((null==u?void 0:u.data)&&L&&!_?[s.Lq.COUPON,null==T||null==(_$t=T.spec)?void 0:_$t.currency,L,A,O,null==I?void 0:I.code,x]:null,function(e){var _e=_sliced_to_array(e,6),_$t=_e[0],_$a=_e[1],r=_e[2],o=_e[3],l=_e[4],d=_e[5];return(0,n.GO)(_$t,{method:"POST",data:{platform:(0,f.u)(),businessType:1001,systemType:100101,uid:(0,i.UM)(s.v8.USER_UID),moneyCode:_$a,totalQuantity:r,goodsDetail:o,orderAmount:l,payType:d}}).then(function(e){return C?{availableCouponList:[],unavailableCouponList:[],currentValue:"",currentItem:null}:e.data.reduce(function(e,t){return t.rawCalDiscountAmt=t.calDiscountAmt,t.calDiscountAmt=+(0,i.OY)(t.calDiscountAmt),"true"===t.param1?e.availableCouponList.push(t):e.unavailableCouponList.push(t),e},{availableCouponList:[],unavailableCouponList:[]})})},{keepPreviousData:!0,dedupingInterval:0}),R=function(e){if("object"==(typeof e==="undefined"?"undefined":_type_of(e))&&null===e)S(null);else if(void 0===e)S(void 0);else{var _$t;S(null==(_$t=V.data)?void 0:_$t.availableCouponList.find(function(t){return t.voucherId===e})),P(c.Z.ACTIVITY)}};return(0,m.useEffect)(function(){var e;y({availableCouponList:(null==(e=V.data)?void 0:e.availableCouponList)||[],currentCoupon:D,setCurrentCoupon:S,radioValue:w})},[w,D,V.data]),(0,m.useEffect)(function(){var e;((null==(e=V.data)?void 0:e.availableCouponList)||[]).length>0&&d.c.setShouldBanBack(!1)},[null==(_$a=V.data)?void 0:_$a.availableCouponList]),(0,o._)((0,r._)({},V),{onValueChange:R,onDoNotUseCoupon:function(){R(null)},onInitialValue:function(){R(void 0)}})},I=function(e){return(0,v.Ay)(e?[u.Cu?s.Lq.DEV_COUPON_BY_ID:s.Lq.COUPON_BY_ID,e]:null,function(e){var _e=_sliced_to_array(e,2),_$t=_e[0],_$a=_e[1];return(0,n.Gn)(_$t,{pathTokens:{id:_$a}})})}},77694:function(e,t,a){a.d(t,{m:function(){return h},s:function(){return g}});var r=a(28424),o=a(97428),s=a(17897),l=a(12276),n=a(50006),i=a(35268),d=a(61365),u=a(1173),c=a(16309),p=a(53910),m=a(59211),v=a(21437);var g=function(){var e,_$t,_$a;var m=(0,n.useSearchParams)(),v=m.get("gid")||"",g=m.get("gsvid")||"",h=m.get("sid")||"",f=m.get("count")||"1",y=m.get("params")||"",C=m.get("date")||"",I=m.get("trcode")||"",N=p.sZ.getItem("activityCode")||m.get("activityCode"),_=(0,i.useMemo)(function(){return N?s.Lq.QRY_GROUP_BUY_GOODS_INFO:I?s.Lq.QRY_TRIAL_ACT_GOODS_SPEC:y?s.Lq.CART_LIST_BY_IDS:s.Lq.GET_ORDER_INFO},[I,y]),x=(0,d.Ay)({apiKey:_,gid:v,gsvId:g,params:y,sid:h,trcode:I,date:C,activityCode:N},function(e){var _$t=e.apiKey,_$a=e.gid,n=e.gsvId,i=e.params,d=e.sid,m=e.trcode,v=e.activityCode,g=function(e){return Array.isArray(e)?function(e,t){var _$a,l,n;var i=(l=e,n=t.split(",").reduce(function(e,t){var _t_split=_sliced_to_array(t.split("_"),3),_$a=_t_split[0],r=_t_split[1],o=_t_split[2];return e[_$a]={count:parseInt(r||"0",10),startTime:o||""},e},{}),l.map(function(e){var _$t,_$a,r,o;return{cateId:e.cateId,goodsId:e.goodsId,goodsSpecValueList:void 0,goodsName:e.goodsName,storeGroup:e.storeGroup,storeGroups:e.storeGroups,currency:e.moneyCode,itemType:e.itemType,gsvId:e.gsvId,goodsAttrBo:void 0,innerPurchaseList:void 0,isValidPhone:e.isValidPhone,gsvCodeName:e.specification,moneyCode:e.moneyCode,invoiceRemark:e.invoiceRemark,startTime:null==(_$t=n[e.id])?void 0:_$t.startTime,journalList:e.journalList,defaultImage:e.goodsImage,stock:void 0,count:(null==(_$a=n[e.id])?void 0:_$a.count)||e.quantity||1,goodsSpecList:[],goodsCount:(null==(r=n[e.id])?void 0:r.count)||e.quantity,date:(null==(o=n[e.id])?void 0:o.startTime)||e.startTime||(0,c.w8)(e.journalList),startingDateType:+!!e.startTime,specId:e.specId,gsvCode:e.gsvId,subTerm:e.subTerm,goodsType:e.goodsType+"",isDiscount:void 0,spec:e,isRenew:void 0,isTrial:void 0,trialPrice:void 0,limitOnce:e.limitOnce,salePrice:e.price}}));return{phone:"",isCart:!0,ids:t.split(",").map(function(e){return e.split("_")[0]}),tabCurrency:(null==e||null==(_$a=e[0])?void 0:_$a.moneyCode)||s.UM.RMB,isNeedLogistics:e.some(function(e){return e.ifLogistics}),data:i.map(function(e){return(0,o._)((0,r._)({},e),{isCart:!0,spec:e})})}}(e,i):function(e,t,a){var l,n,i,d,u;var p=(l=e.data.goodsSpecValueList.map(function(t){return(0,r._)({},t,e.data.goodsSpecList.find(function(e){return e.specCode===t.gsvCode}))}),2===(n=t).split(",").length?l.find(function(e){return"DEFAULT"===e.tag})||l.find(function(e){return e.currency===s.UM.RMB}):l.find(function(e){return e.gsvId===n})||l[0]);return(0,o._)((0,r._)({},e),{isCart:!1,phone:"",ids:[],tabCurrency:(null==p?void 0:p.currency)||s.UM.RMB,isNeedLogistics:1===e.data.ifLogistics,data:[(i=e.data,d=p,u=a,(0,o._)((0,r._)({},i),{isCart:!1,date:(0,c.w8)(i.journalList),salePrice:null==d?void 0:d.salePrice,sourcePrice
1:d.sourcePrice,spec:d,specId:void 0,count:parseInt(u,10),goodsCount:u}))]})}(e,n,f)};if(v)return(0,l.GO)(_$t,{method:"GET",pathTokens:{activityCode:v,name:"web"}}).then(function(e){var _$t=p.sZ.getItem("stepValue");if(_$t){var _$a,r,o,s,l;var n=null==e||null==(_$a=e.data.goodsSpecValueList)?void 0:_$a[0],i=null==n?void 0:n.salePrice;"1"==_$t?i=null==e||null==(o=e.data)||null==(r=o.groupBuyInfo)?void 0:r.activityProduct.onePrice:"2"==_$t?i=null==e||null==(s=e.data.groupBuyInfo)?void 0:s.activityProduct.secondPrice:"3"==_$t&&(i=null==e||null==(l=e.data.groupBuyInfo)?void 0:l.activityProduct.thirdPrice),e.data.goodsSpecValueList[0].salePrice=i}return g(e)});if(m)return(0,l.GO)(_$t,{method:"GET",pathTokens:{code:m,name:(0,u.Q)()}}).then(g);var h=i?void 0:{bisCode:s.FV.CAIXIN,goodsId:_$a,tag:"1",name:(0,u.Q)()},y=function(e,t,a){return e?e.split(",").map(function(e){return e.split("_")[0]}):t?{specId:t}:{gsvIdList:a.split(",")}}(i,d,n);return(0,l.GO)(_$t,{method:"POST",pathTokens:h,data:y}).then(g)},{revalidateIfStale:!1}),b=(0,i.useCallback)(function(e){x.mutate((0,o._)((0,r._)({},x.data),{phone:e}),{revalidate:!1})},[x.data]),w=(0,i.useCallback)(function(e,t){x.data&&x.mutate((0,o._)((0,r._)({},x.data),{data:x.data.data.map(function(a){return(0,o._)((0,r._)({},a),{date:a.goodsId===t.goodsId?(0,c.GP)(e,"yyyy-MM-dd"):a.date})})}),{revalidate:!1})},[x.data]),P=(0,i.useCallback)(function(e,t){x.data&&x.mutate((0,o._)((0,r._)({},x.data),{data:x.data.data.map(function(a){return(0,o._)((0,r._)({},a),{count:a.goodsId===t.goodsId?e:a.count,goodsCount:a.goodsId===t.goodsId?e+"":a.goodsCount})})}),{revalidate:!1})},[x.data]),D=(0,i.useCallback)(function(e){x.data&&x.mutate((0,o._)((0,r._)({},x.data),{data:x.data.data.map(function(t){var _$a;return(0,o._)((0,r._)({},t),{spec:(null==(_$a=t.goodsSpecValueList)?void 0:_$a.find(function(t){return t.currency==e}))||t.spec})}),tabCurrency:e}),{revalidate:!1})},[x.data]),S=(0,i.useMemo)(function(){var e,_$t,_$a,r,o,s;return!!x.data&&(null==(_$a=x.data.data)||null==(_$t=_$a[0])||null==(e=_$t.spec)?void 0:e.isTrial)===1&&(null==(s=x.data.data)||null==(o=s[0])||null==(r=o.spec)?void 0:r.haveCount)===0},[null==x||null==(_$a=x.data)||null==(_$t=_$a.data)||null==(e=_$t[0])?void 0:e.spec]);return(0,o._)((0,r._)({},x),{isTrial:S,onDateChange:w,setCount:P,onTabCurrencyChange:D,onPhoneChange:b})},h=function(){var _g=g(),e=_g.data,_$t=(0,n.useSearchParams)(),_ref=_sliced_to_array((0,m.ZA)("count",m.GJ),1),_$a=_ref[0],r=(0,i.useMemo)(function(){if(!(null==e?void 0:e.data))return{totalCount:0,orderAmount:0};if(_$t.get("gid")){var r,o,s,l;var _$t1=e.data[0],n=(null==(r=_$t1.spec)?void 0:r.isTrial)===1&&(null==(o=_$t1.spec)?void 0:o.haveCount)===0?null==(s=_$t1.spec)?void 0:s.trialPrice:null==(l=_$t1.spec)?void 0:l.salePrice,i=_$a||1;return{totalCount:i,orderAmount:(0,v.fZ)(n||0,i)}}return e.data.reduce(function(e,t){var _$a,r,o,s;var l=(null==(_$a=t.spec)?void 0:_$a.isTrial)===1&&(null==(r=t.spec)?void 0:r.haveCount)===0?null==(o=t.spec)?void 0:o.trialPrice:null==(s=t.spec)?void 0:s.salePrice;return e.orderAmount=(0,v.XA)((0,v.fZ)(l||0,t.goodsCount),e.orderAmount),e.totalCount=(0,v.XA)(t.goodsCount,e.totalCount),e},{totalCount:0,orderAmount:0})},[null==e?void 0:e.data,_$a]);return{count:_$a,getTotal:r}}},82626:function(e,t,a){a.d(t,{C:function(){return p},z:function(){return c}});var r=a(28424),o=a(97428),s=a(13763),l=a(59784),n=a(35268),i=a(83643),d=a(6536),u=a(92405);var c=n.forwardRef(function(e,t){var _$a=e.className,n=(0,s._)(e,["className"]);return(0,l.jsx)(d.bL,(0,o._)((0,r._)({className:(0,u.cn)("grid gap-2",_$a)},n),{ref:t}))});c.displayName=d.bL.displayName;var p=n.forwardRef(function(e,t){var _$a=e.className,n=(0,s._)(e,["className"]);return(0,l.jsx)(d.q7,(0,o._)((0,r._)({ref:t,className:(0,u.cn)("aspect-square h-4 w-4 rounded-full  border border-[#D2D2D2] data-[state=checked]:bg-primary data-[state=checked]:border-none text-white shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",_$a)},n),{children:(0,l.jsx)(d.C1,{className:"flex items-center justify-center",children:(0,l.jsx)(i.Srz,{className:"h-3.5 w-3.5 fill-primary"})})}))});p.displayName=d.q7.displayName},82798:function(e,t,a){a.d(t,{x:function(){return r}});var r=(0,a(90416).vt)(function(e){return{openQrDialog:!1,isGoPayPage:!1,phone:"",vkey:"",radioValue:"",vcode:"",code:"",comment:"",summitInfo:{name:"",id:"",tel:"",companyName:"",job:"",email:""},currentPayment:void 0,currentCoupon:void 0,needImageCode:!1,showPhoneDrawer:!1,attendanceDrawerOpen:!1,setIsGoPayPage:function(t){e({isGoPayPage:t})},setAttendanceDrawerOpen:function(t){return e({attendanceDrawerOpen:t})},setOpenQrDialog:function(t){return e({openQrDialog:t})},setCode:function(t){return e({code:t})},setNeedImageCode:function(t){return e({needImageCode:t})},setShowPhoneDrawer:function(t){return e({showPhoneDrawer:t})},setPhone:function(t){return e({phone:t})},setVkey:function(t){return e({vkey:t})},setVcode:function(t){return e({vcode:t})},setCurrentCoupon:function(t){return e({currentCoupon:t})},setCurrentPayment:function(t){return e({currentPayment:t})},setSummitInfo:function(t){return e({summitInfo:t})},setComment:function(t){return e({comment:t})},setRadioValue:function(t){return e({radioValue:t})}}})},90369:function(e,t,a){a.d(t,{Image:function(){return u}});var r=a(28424),o=a(13763),s=a(59784),l=a(92405),n=a(77637),i=a(35268),d=a(22598);var u=function(e){var _$t=e.src,_$a=e.onErrorCapture,u=e.className,c=(0,o._)(e,["src","onErrorCapture","className"]);var _ref=_sliced_to_array((0,i.useState)(!0),2),p=_ref[0],m=_ref[1],v=(0,l.aF)("/assets/images/default.png");return(0,s.jsxs)("div",{className:"relative",style:{width:"inherit",height:"inherit"},children:[p&&(0,s.jsx)(d.E,{className:"absolute inset-0 ".concat(u)}
1),(0,s.jsx)(n.default,(0,r._)({className:"".concat(p?"opacity-0":"opacity-100"," transition-opacity duration-300 ").concat(u),onLoad:function(){return m(!1)},onErrorCapture:function(e){e.currentTarget.src=v,null==_$a||_$a(e)},src:_$t||v},c))]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.