!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["live/gift-box"]=e():n["live/gift-box"]=e()}(self,(function(){return function(){var n={894:function(n,e,t){var o=t(645)((function(n){return n[1]}));o.push([n.id,".player-full-win .gift-control-section {\n display: block !important;\n left: unset;\n bottom: unset;\n top: 100vh;\n right: 302px;\n}\n.player-full-win .z-gift-package .wrap {\n right: 0;\n bottom: 74px;\n}\n.player-full-win.hide-aside-area .gift-control-section {\n right: 0;\n}\n\n.live-web-player-controller .fullscreen-gift-box {\n display: none;\n}\n\n@media screen and (min-width: 1038px) {\n .player-full-win:not(.fullscreen-gift-box-unloaded) .gift-control-panel .z-gift-package .arrow-bottom.popup::before, .player-full-win:not(.fullscreen-gift-box-unloaded) .gift-control-panel .z-gift-package .arrow-bottom.popup::after {\n left: 50% !important;\n }\n .player-full-win:not(.fullscreen-gift-box-unloaded) .live-web-player-controller .control-area .fullscreen-gift-box {\n display: flex;\n align-self: center;\n margin: 0 3px;\n padding: 0 3px;\n line-height: 36px;\n cursor: pointer;\n color: #FDFDFD;\n }\n .player-full-win:not(.fullscreen-gift-box-unloaded) .live-web-player-controller .control-area .fullscreen-gift-box:hover {\n color: #FFF;\n }\n}",""]),n.exports=o},645:function(n){"use strict"; // eslint-disable-next-line func-names n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t=n(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")}, // eslint-disable-next-line func-names e.i=function(n,t,o){"string"==typeof n&&( // eslint-disable-next-line no-param-reassign n=[[null,n,""]]);var r={};if(o)for(var l=0;l{let t;(0,n.waitForControlBar)({init:()=>(0,e.addStyle)(i(),"fullscreen-gift-box"),callback:async n=>{const e=dq(n,".right-area");if(e){if(!dq(e,".fullscreen-gift-box")){if(!t){const n=".gift-package";t=document.createElement("div"),t.innerHTML="包裹",t.classList.add(a),t.addEventListener("click",(()=>{dq(n)?.click()}))}e.appendChild(t)}}else console.warn("[fullscreenGiftBox] ref elements not found",null===e)}})},reload:()=>document.body.classList.remove("fullscreen-gift-box-unloaded"),unload:()=>document.body.classList.add("fullscreen-gift-box-unloaded")}}(),o=o.component}()}));