1"use strict";(globalThis.webpackChunkhkg_web_mui=globalThis.webpackChunkhkg_web_mui||[]).push([[3737],{493:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var r=a(84863),o=a(33225);const n=(0,r.A)(e=>({root:{},gutters:{},regular:{minHeight:e.variables.toolbar.regular.height},dense:{minHeight:e.variables.toolbar.dense.height}}))(o.A)},12853:(e,t,a)=>{a.d(t,{A:()=>d});var r,o=a(20931);class n extends o.A{}r=n,n.getApp=async(e,t)=>{const a=`/v1/marketplace/app/${e}?${t?`&platform=${t}`:""}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,a)},n.getAppBasicInfo=async e=>{const t=`v1/marketplace/app/details/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,t)},n.getAppDetails=async(e,t)=>{const a=`v1/marketplace/app/details/${t}/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,a)},n.retriveDownloadAward=async(e,t)=>{const a=`v1/marketplace/downloadaward/${e}`,o=new FormData;return o.append("token",t),await r.HKGRequest(r.REQUEST_METHOD.GET,a,o)},n.getRedeem=async e=>{const t=`/v1/redeem/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,t)},n.getRedeemDetails=async e=>{const t=`/v1/redeem/details/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,t)},n.redeemConfirm=async(e,t,a)=>{const o=new FormData;return o.append("recaptcha",e),o.append("pin",t),o.append("option_id",a),await r.HKGRequest(r.REQUEST_METHOD.POST,"v1/redeem/confirm",o)},n.getRedeemHistory=async e=>{const t=`v1/redeem/history/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,t)},n.getRedeemHistoryRecord=async e=>{const t=`v1/redeem/history/details/${e}`;return await r.HKGRequest(r.REQUEST_METHOD.GET,t)},n.getRedeemCode=async()=>await r.HKGRequest(r.REQUEST_METHOD.GET,"v1/redeem"),n.transaction=async(e,t)=>{const a=new FormData;return a.append("id",e),a.append("image",t),await r.HKGRequest(r.REQUEST_METHOD.POST,"v1/redeem/transaction",a)};const l=n;var i=a(87420);class s{}s.getRedeem=async function(e){const t=await i.A.marketRedeemList();if(!t.result||!t.data)return{result:!0,data:{list:[],maxPage:1}};const a=Array.isArray(t.data)?t.data:t.data.data||t.data.Data||t.data.list||t.data.List||[];return{result:!0,data:{list:(Array.isArray(a)?a:[]).filter(e=>{var t,a,r,o;const n=null!==(t=null!==(a=null!==(r=null!==(o=e.redeem_type)&&void 0!==o?o:e.redeemType)&&void 0!==r?r:e.type)&&void 0!==a?a:e.RedeemType)&&void 0!==t?t:e.Type;if(0===n||"0"===n)return!0;return"REROLLICON"===String(null!==n&&void 0!==n?n:"").toUpperCase().replace(/_/g,"")}).map(e=>{var t,a,r,o,n,l,i,s,d,u,c,m,p,v,g,y,h;return{id:null!==(t=null!==(a=null!==(r=null!==(o=null!==(n=e.id_key)&&void 0!==n?n:e.idKey)&&void 0!==o?o:e.redeem_id)&&void 0!==r?r:e.redeemId)&&void 0!==a?a:e.id)&&void 0!==t?t:e.Id,name:null!==(l=null!==(i=null!==(s=e.redeem_name)&&void 0!==s?s:e.redeemName)&&void 0!==i?i:e.name)&&void 0!==l?l:e.Name,icon:null!==(d=e.icon)&&void 0!==d?d:e.Icon,type:null!==(u=null!==(c=null!==(m=e.redeem_type)&&void 0!==m?m:e.redeemType)&&void 0!==c?c:e.type)&&void 0!==u?u:e.Type,description:null!==(p=e.description)&&void 0!==p?p:e.Description,fromDate:null!==(v=e.fromDate)&&void 0!==v?v:e.FromDate,toDate:null!==(g=e.toDate)&&void 0!==g?g:e.ToDate,userMaxQuota:null!==(y=e.userMaxQuota)&&void 0!==y?y:e.UserMaxQuota,userQuotaType:null!==(h=e.userQuotaType)&&void 0!==h?h:e.UserQuotaType}}),maxPage:1}}},s.getRedeemDetails=async e=>{var t,a,r,o,n,l,s;const d=await i.A.redeemDetail(e);if(!d.result||!d.data)return d;const u=d.data,c=null!=u.fromDate&&"number"===typeof u.fromDate&&u.fromDate<1e12?1e3*u.fromDate:u.fromDate,m=null!=u.toDate&&"number"===typeof u.toDate&&u.toDate<1e12?1e3*u.toDate:u.toDate,p=(u.options||u.Options||[]).map(e=>{var t,a,r,o,n,l,i,s,d,u,c;const m=null!=e.fromDate&&"number"===typeof e.fromDate&&e.fromDate<1e12?1e3*e.fromDate:e.fromDate,p=null!=e.toDate&&"number"===typeof e.toDate&&e.toDate<1e12?1e3*e.toDate:e.toDate;return{id:null!==(t=e.id)&&void 0!==t?t:e.Id,name:null!==(a=e.name)&&void 0!==a?a:e.Name,description:null!==(r=e.description)&&void 0!==r?r:e.Description,cashAmount:null!==(o=e.cashAmount)&&void 0!==o?o:e.CashAmount,coinAmount:null!==(n=e.coinAmount)&&void 0!==n?n:e.CoinAmount,fromDate:m,toDate:p,lifetimeMaxQuota:null!==(l=e.lifetimeMaxQuota)&&void 0!==l?l:e.LifetimeMaxQuota,periodM
1axQuota:null!==(i=e.periodMaxQuota)&&void 0!==i?i:e.PeriodMaxQuota,periodQuotaType:null!==(s=e.periodQuotaType)&&void 0!==s?s:e.PeriodQuotaType,periodRemark:null!==(d=e.periodRemark)&&void 0!==d?d:e.PeriodRemark,userMaxQuota:null!==(u=e.userMaxQuota)&&void 0!==u?u:e.UserMaxQuota,userQuotaType:null!==(c=e.userQuotaType)&&void 0!==c?c:e.UserQuotaType,preview:(e.previews||e.Previews||[]).map(e=>{var t,a,r,o;return{id:null!==(t=e.id)&&void 0!==t?t:e.Id,url:null!==(a=e.url)&&void 0!==a?a:e.Url,width:null!==(r=e.width)&&void 0!==r?r:e.Width,height:null!==(o=e.height)&&void 0!==o?o:e.Height}})}}),v=(u.previews||u.Previews||[]).map(e=>{var t,a,r,o;return{id:null!==(t=e.id)&&void 0!==t?t:e.Id,url:null!==(a=e.url)&&void 0!==a?a:e.Url,width:null!==(r=e.width)&&void 0!==r?r:e.Width,height:null!==(o=e.height)&&void 0!==o?o:e.Height}});return{result:!0,data:{id:null!==(t=u.id)&&void 0!==t?t:u.Id,name:null!==(a=u.name)&&void 0!==a?a:u.Name,description:null!==(r=u.description)&&void 0!==r?r:u.Description,icon:null!==(o=u.icon)&&void 0!==o?o:u.Icon,fromDate:c,toDate:m,remark:null!==(n=u.remark)&&void 0!==n?n:u.Remark,userMaxQuota:null!==(l=u.userMaxQuota)&&void 0!==l?l:u.UserMaxQuota,userQuotaType:null!==(s=u.userQuotaType)&&void 0!==s?s:u.UserQuotaType,option:p,preview:v}}},s.redeemConfirm=async(e,t,a)=>await i.A.replace(a,t),s.getRedeemHistory=async e=>{var t,a,r,o;const n=await l.getRedeemHistory(e);if(!n.result||!n.data)return{result:!1,data:{list:[],maxPage:1,total:0}};const i=(n.data.List||n.data.list||[]).map(e=>{var t,a,r,o,n,l;const i=null!==(t=e.Id)&&void 0!==t?t:e.id,s=null!==(a=e.CreateDate)&&void 0!==a?a:e.createDate,d=null!=s?"number"===typeof s&&s<1e12?1e3*s:s:null;return{id:i,name:null!==(r=e.Name)&&void 0!==r?r:e.name,icon:null!==(o=e.Icon)&&void 0!==o?o:e.icon,status:null!==(n=e.Status)&&void 0!==n?n:e.status,createDate:d,coinAmount:null!==(l=e.CoinAmount)&&void 0!==l?l:e.coinAmount}}),s=null!==(t=null!==(a=n.data.Total)&&void 0!==a?a:n.data.total)&&void 0!==t?t:i.length;return{result:!0,data:{list:i,maxPage:Math.max(1,null!==(r=null!==(o=n.data.MaxPage)&&void 0!==o?o:n.data.maxPage)&&void 0!==r?r:1),total:s}}},s.getRedeemHistoryRecord=async e=>await l.getRedeemHistoryRecord(e),s.getRedeemCode=async()=>await l.getRedeemCode(),s.transaction=async(e,t)=>await l.transaction(e,t);const d=s},15555:(e,t,a)=>{a.d(t,{A:()=>p});var r=a(15917),o=a(56296),n=a(493),l=a(86371),i=a(80101),s=a(74871),d=a(84863),u=a(22979),c=a(62566);class m extends r.PureComponent{render(){const{openDrawer:e,showSettingModal:t,classes:a}=this.props;return r.createElement(r.Fragment,null,r.createElement(o.A,{position:"fixed",className:a.appBar},r.createElement(n.default,{className:a.toolBar,disableGutters:!0,variant:"dense"},r.createElement(s.A,{container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap"},r.createElement(s.A,{container:!0,onClick:e,alignItems:"center",justifyContent:"center"},r.createElement(i.A,{color:"inherit","aria-label":""},r.createElement(l.Ay,{type:"menu2"}))),r.createElement(s.A,{container:!0,alignItems:"center",justifyContent:"center"},r.createElement(i.A,{onClick:t,color:"inherit","aria-label":""},r.createElement(l.Ay,{type:"settings"}))))),r.createElement("div",{className:a.iphoneXFooter})),r.createElement("div",{className:a.toolbar}),r.createElement("div",{className:a.iphoneXFooter}))}}const p=(0,c.connect)(null,e=>({openDrawer:()=>{e((0,u._R)({configKey:"drawerVisible",configValue:!0}))},showSettingModal:()=>{e((0,u.Lv)())}}))((0,d.A)(e=>({toolbar:{...e.mixins.toolbar,[e.breakpoints.down("sm")]:{minHeight:e.variables.toolbar.dense.height}},iphoneXFooter:e.mixins.iphoneXFooter,appBar:{zIndex:e.zIndex.drawer+1,bottom:0,top:"unset","[data-theme=DF] &":{backgroundColor:e.palette.custom.primary.light},"[data-theme=DK] &":{backgroundColor:e.palette.custom.primary.dark},"[data-theme=DB] &":{backgroundColor:e.palette.custom.primary.darkblue}},toolBar:{width:"100%"},arrow:{fontSize:"0.3em"},item:{flex:1,display:"flex",justifyContent:"center",alignItems:"center"}}))(m))},29617:(e,t,a)=>{a.d(t,{A:()=>o});const r=(0,a(43749).Record)({id:null,name:null,description:null,publisherName:null,icon:null,coinAward:null,hasIosApp:null,hasAndroidApp:null});class o extends r{}},32137:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(15917),o=a(56296),n=a(493),l=a(74871),i=a(84863);class s extends r.PureComponent{render(){const{classes:e,title:t}=this.props;return r.createElement(o.A,{position:"fixed",className:e.appBar},r.createElement(n.default,{className:e.toolBar,disableGutters:!0,variant:"dense"},r.createElement(l.A,{container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap"},r.createElement(l.A,{container:!0,alignItems:"center",justifyContent:"center"},t))))}}const d=(0,i.A)(e=>({appBar:{zIndex:e.zIndex.drawer+1,"[data-theme=DF] &":{backgroundColor:e.palette.custom.primary.light},"[data-theme=DK] &":{backgroundColor:e.palette.custom.primary.dark},"[data-theme=DB] &":{backgroundColor:e.palette.custom.primary.darkblue}},toolBar:{width:"100%"}}))(s)},82069:(e,t,a)=>{a.d(t,{A:()=>g});var r=a(58168),o=a(45458),n=a(80045),l=a(15917),i=(a(22496),a(40070)),s=a(84863),d=a(41513),u=a(6096);const c=(0,a(62391).A)(l.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var m=a(47870);const p=(0,s.A)(function(e){return{root:{display:"flex",marginLeft:e.spacing(.5),marginRight:e.spacing(.5),backgroundColor:e.palette.grey[100],c
1olor:e.palette.grey[700],borderRadius:2,cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:(0,u.tL)(e.palette.grey[200],.12)}},icon:{width:24,height:16}}},{name:"PrivateBreadcrumbCollapsed"})(function(e){var t=e.classes,a=(0,n.A)(e,["classes"]);return l.createElement(m.A,(0,r.A)({component:"li",className:t.root,focusRipple:!0},a),l.createElement(c,{className:t.icon}))});var v=l.forwardRef(function(e,t){var a=e.children,s=e.classes,u=e.className,c=e.component,m=void 0===c?"nav":c,v=e.expandText,g=void 0===v?"Show path":v,y=e.itemsAfterCollapse,h=void 0===y?1:y,f=e.itemsBeforeCollapse,E=void 0===f?1:f,D=e.maxItems,w=void 0===D?8:D,A=e.separator,T=void 0===A?"/":A,R=(0,n.A)(e,["children","classes","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),x=l.useState(!1),b=x[0],k=x[1],C=l.Children.toArray(a).filter(function(e){return l.isValidElement(e)}).map(function(e,t){return l.createElement("li",{className:s.li,key:"child-".concat(t)},e)});return l.createElement(d.A,(0,r.A)({ref:t,component:m,color:"textSecondary",className:(0,i.default)(s.root,u)},R),l.createElement("ol",{className:s.ol},function(e,t,a){return e.reduce(function(r,o,n){return n<e.length-1?r=r.concat(o,l.createElement("li",{"aria-hidden":!0,key:"separator-".concat(n),className:t},a)):r.push(o),r},[])}(b||w&&C.length<=w?C:function(e){return E+h>=e.length?e:[].concat((0,o.A)(e.slice(0,E)),[l.createElement(p,{"aria-label":g,key:"ellipsis",onClick:function(e){k(!0);var t=e.currentTarget.parentNode.querySelector("a[href],button,[tabindex]");t&&t.focus()}})],(0,o.A)(e.slice(e.length-h,e.length)))}(C),s.separator,T)))});const g=(0,s.A)({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"},li:{},separator:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"MuiBreadcrumbs"})(v)},94276:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(82069);const o=(0,a(84863).A)(e=>({root:{"[data-theme=DF] &":{color:e.palette.custom.modal.text.light},"[data-theme=DK] &":{color:e.palette.custom.modal.text.dark},"[data-theme=DB] &":{color:e.palette.custom.modal.text.darkblue}}}))(r.A)}}]);
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.