1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5674],{35578:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"notificationCountQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getNotificationCount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"accountType"},value:{kind:"Variable",name:{kind:"Name",value:"accountType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"celebrityNoteCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"newGiftCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstReceivedNoteReferenceId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstReceivedGiftReferenceId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:258}};n.loc.source={body:"query notificationCountQuery($accountId: ID!, $accountType: String!) {\n getNotificationCount(accountId: $accountId, accountType: $accountType) {\n celebrityNoteCount\n newGiftCount\n firstReceivedNoteReferenceId\n firstReceivedGiftReferenceId\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.notificationCountQuery=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=t[n]||new Set,d=new Set,o=new Set;for(r.forEach((function(e){o.add(e)}));o.size>0;){var c=o;o=new Set,c.forEach((function(e){d.has(e)||(d.add(e),(t[e]||new Set).forEach((function(e){o.add(e)})))}))}return d.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(n,"notificationCountQuery")},93632:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"receivedGift"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderReferenceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"receivedGift"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderReferenceId"},value:{kind:"Variable",name:{kind:"Name",value:"orderReferenceId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCelebrity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profilePicture"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isVerified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"giftMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"giftVideoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fulfillmentGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"workflowHistory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tracking"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trackingUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productVendor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productSlug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageURLs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"medium"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayAmount"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"referenceId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:723}};n.loc.source={body:"query receivedGift($orderReferenceId: String!) {\n receivedGift(orderReferenceId: $orderReferenceId) {\n _id\n account {\n _id\n isCelebrity\n username\n profilePicture\n profileUrl\n isVerified\n }\n giftMessage\n giftVideoUrl\n fulfillmentGroups {\n _id\n status\n workflowHistory {\n status\n createdAt\n }\n tracking\n trackingUrl\n items {\n nodes {\n _id\n title\n productVendor\n productSlug\n imageURLs {\n medium\n thumbnail\n }\n price {\n displayAmount\n }\n }\n totalCount\n }\n }\n referenceId\n updatedAt\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.receivedGift=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=t[n]||new Set,d=new Set,o=new Set;for(r.forEach((function(e){o.add(e)}));o.size>0;){var c=o;o=new Set,c.forEach((function(e){d.has(e)||(d.add(e),(t[e]||new Set).forEach((function(e){o.add(e)})))}))}return d.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(n,"receivedGift")},65674:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return N}});var t=i(4942),a=i(70885),r=i(41120),d=i(48005),o=i(86622),c=i(33424),l=i(51010),u=i(64496),s=i(89529),f=i(11163),m=(i(67294),i(12113)),v=i(85893);function k(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?k(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var g=(0,r.Z)((function(e){return{headerInfoBar:{background:e.palette.luxylist.grey2,textAlign:"center",fontSize:14,fontWeight:"bold",letterSpacing:"0.36px",textTransform:"uppercase",color:e.palette.luxylist.black,padding:e.spacing(.5),display:"flex",alignItems:"center",justifyContent:"center",minHeight:48}}}));function N(){var e=g(),n=(0,u.Z)("common").t,i=(0,u.Z)("profile").t,t=(0,o.Z)(),r=t.isMissingAddress,k=t.account,N=t.accountUserType,y=(0,l.Z)(),S=y.celebrityNoteCount,h=y.newGiftCount,b=y.firstReceivedGiftReferenceId,F=(0,c.Z)().openGiftReceivedDrawer,w=(0,s.Z)(b),I=(0,a.Z)(w,1)[0],C=(0,f.useRouter)().route,R=(0,m.z$)().track;return r&&"/profile/addresses"!==C?(0,v.jsx)(d.Z,{href:"/profile/addresses",children:(0,v.jsx)("div",{className:e.headerInfoBar,children:n("alertAddShipping")})}):"celebrity"===N&&h>0?(0,v.jsx)(d.Z,{href:"".concat("celebrity"===N?"/[profileUrl]":"/fan/profile","/?gifts=show"),as:"".concat("celebrity"===N?"/".concat(null===k||void 0===k?void 0:k.profileUrl):"/fan/profile","/?gifts=show"),onClick:function(){if(I){var e,n,t=Math.floor(100*Math.random())+1,a=null!==(e=null===I||void 0===I||null===(n=I.account)||void 0===n?void 0:n.username)&&void 0!==e?e:"".concat(i("anonymousFan")).concat(null!==t&&void 0!==t?t:1);F(p(p({},I),{},{username:a}))}},children:(0,v.jsx)("div",{className:e.headerInfoBar,children:n("alertNewGift")})}):S>0?(0,v.jsx)(d.Z,{href:"".concat("celebrity"===N?"/[profileUrl]":"/fan/profile","/?gifts=show"),as:"".concat("celebrity"===N?"/".concat(null===k||void 0===k?void 0:k.profileUrl):"/fan/profile","/?gifts=show"),onClick:function(){return"fan"===N&&R("fan_profile_click_new_msg_banner",{})},children:(0,v.jsx)("div",{className:e.headerInfoBar,children:n("alertNewMessage")})}):null}},51010:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var t=i(46829),a=i(86622),r=i(35578),d=i.n(r);function o(){var e,n=(0,a.Z)(),i=n.accountId,r=n.accountUserType,o=!i,c=(0,t.useQuery)(d(),{skip:o,variables:{accountId:i,accountType:r},pollInterval:o?0:1e4}),l=c.loading,u=c.data,s=c.refetch,f=null!==(e=null===u||void 0===u?void 0:u.getNotificationCount)&&void 0!==e?e:{};return{celebrityNoteCount:f.celebrityNoteCount,newGiftCount:f.newGiftCount,firstReceivedGiftReferenceId:f.firstReceivedGiftReferenceId,loading:l,refetch:s}}},89529:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var t=i(46829),a=i(86622),r=i(93632),d=i.n(r);function o(e){var n=!(0,a.Z)().accountId||!e,i=(0,t.useQuery)(d(),{skip:n,variables:{orderReferenceId:e}}),r=i.loading,o=i.data,c=i.refetch;return[null===o||void 0===o?void 0:o.receivedGift,r,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.