pushfeedback 0.1.36 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function _0x1faa(){var _0x21e429=['583048mIloLp','56JCRbZX','1184229sHwtcY','198825EaeRuv','658042SxRSMQ','9124280fAitzi','24590IuwQNi','113316KbgjwV'];_0x1faa=function(){return _0x21e429;};return _0x1faa();}function _0x28f6(_0x1a83d3,_0x20df2b){var _0x1faa87=_0x1faa();return _0x28f6=function(_0x28f62e,_0x52f015){_0x28f62e=_0x28f62e-0x15d;var _0x2b4a41=_0x1faa87[_0x28f62e];return _0x2b4a41;},_0x28f6(_0x1a83d3,_0x20df2b);}(function(_0x89956e,_0x3668a5){var _0xb98c91=_0x28f6,_0x10b293=_0x89956e();while(!![]){try{var _0x4113f8=-parseInt(_0xb98c91(0x163))/0x1+-parseInt(_0xb98c91(0x160))/0x2+-parseInt(_0xb98c91(0x162))/0x3+-parseInt(_0xb98c91(0x161))/0x4*(parseInt(_0xb98c91(0x15e))/0x5)+-parseInt(_0xb98c91(0x15f))/0x6+parseInt(_0xb98c91(0x164))/0x7+parseInt(_0xb98c91(0x15d))/0x8;if(_0x4113f8===_0x3668a5)break;else _0x10b293['push'](_0x10b293['shift']());}catch(_0x31041e){_0x10b293['push'](_0x10b293['shift']());}}}(_0x1faa,0x3fe4f));export*from'./components';
1
+ export * from './components';
@@ -1 +1,160 @@
1
- const _0x269984=_0x36c7;function _0x36c7(_0x2eb459,_0x109739){const _0x516d0a=_0x516d();return _0x36c7=function(_0x36c762,_0x1509c2){_0x36c762=_0x36c762-0x146;let _0x319722=_0x516d0a[_0x36c762];return _0x319722;},_0x36c7(_0x2eb459,_0x109739);}(function(_0x123701,_0x38963c){const _0xea6709=_0x36c7,_0x3204f4=_0x123701();while(!![]){try{const _0x1ff1bc=parseInt(_0xea6709(0x1cf))/0x1*(parseInt(_0xea6709(0x167))/0x2)+-parseInt(_0xea6709(0x1b5))/0x3+-parseInt(_0xea6709(0x18f))/0x4*(parseInt(_0xea6709(0x1c5))/0x5)+-parseInt(_0xea6709(0x182))/0x6+-parseInt(_0xea6709(0x1b9))/0x7*(-parseInt(_0xea6709(0x157))/0x8)+-parseInt(_0xea6709(0x1d1))/0x9+parseInt(_0xea6709(0x17b))/0xa*(parseInt(_0xea6709(0x16b))/0xb);if(_0x1ff1bc===_0x38963c)break;else _0x3204f4['push'](_0x3204f4['shift']());}catch(_0x1e78a5){_0x3204f4['push'](_0x3204f4['shift']());}}}(_0x516d,0x66850));function _0x516d(){const _0x166cd9=['screenshot-topbar-text','bPHzC','WXnkX','hideEmail','link','HTdPo','modal-title','fDtgA','Email\x20address\x20(optional)','hideIcon','Jlnbb','5744770pniDAf','privacyPolicyText','Please\x20try\x20again\x20later.','bRUzq','https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap','I\x20have\x20read\x20and\x20expressly\x20consent\x20to\x20the\x20terms\x20of\x20the\x20<a\x20href=\x27https://pushfeedback.com/privacy\x27>Privacy\x20Policy</a>.','feather\x20feather-edit-3','3833202bguoOn','componentDidLoad','M16.5\x203.5a2.121\x202.121\x200\x200\x201\x203\x203L7\x2019l-4\x201\x201-4L16.5\x203.5z','wDMUR','jAQHi','ZumGO','mSkUr','ASqJk','dHEiG','sTbKt','rel','disconnectedCallback','hideScreenshotButton','12mKOOaD','buttonStyle','YxpjN','fetch-data','loadInterFont','errorMessage404','ratingPlaceholder','svg','appendChild','RsnUs','WXOGT','querySelector','modal-title-success','xfNFu','light','vZvtv','Comments','LpasK','htADl','errorMessage','Cprrc','__registerHost','The\x20request\x20URL\x20does\x20not\x20match\x20the\x20one\x20defined\x20in\x20PushFeedback\x20for\x20this\x20project.','rating-mode','Thanks\x20for\x20your\x20feedback!','stylesheet','hidePrivacyPolicy','screenshotTopbarText','fetchData','ffbje','qtpjk','button-position','lzCVS','hideRating','http://www.w3.org/2000/svg','sendButtonText','emailPlaceholder','send-button-text','1956396VMIMNU','error-message-4-0-3','body','modalTitleSuccess','120827XizudH','test','undefined','right','xGSGX','modal-title-error','hide-email','feedback-button-content-icon','#0070F4','isSafariBrowser','project','feedbackModal','1035825ZKFkhU','ratingStarsPlaceholder','custom-font','none','errorMessage403','CslWs','feedback-modal','center','ShLny','nWKJi','7IkSoWP','buttonPosition','3081456hIQdrU','modalTitleError','forEach','emailAddress','dark','YaRkG','eyOvr','ratingMode','.feedback-button-content{cursor:pointer;max-width:fit-content;z-index:var(--feedback-button-z-index)}.feedback-button-content--light{align-items:center;background-color:var(--feedback-button-light-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60,\x2064,\x2067,\x200.3)\x200px\x201px\x202px\x200px,\x20rgba(60,\x2064,\x2067,\x200.15)\x200px\x202px\x206px\x202px;box-sizing:border-box;color:var(--feedback-button-light-text-color);display:flex;font-family:var(--feedback-font-family);font-size:var(--feedback-button-text-font-size);font-weight:var(--feedback-button-text-font-weight);padding:8px\x2015px}.feedback-button-content--dark{align-items:center;background-color:var(--feedback-button-dark-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60,\x2064,\x2067,\x200.3)\x200px\x201px\x202px\x200px,\x20rgba(60,\x2064,\x2067,\x200.15)\x200px\x202px\x206px\x202px;box-sizing:border-box;color:var(--feedback-button-dark-text-color);display:flex;font-family:var(--feedback-font-family);font-weight:var(--feedback-button-text-font-weight);font-size:var(--feedback-button-text-font-size);padding:8px\x2015px}.feedback-button-content--bottom-right{bottom:10px;position:fixed;right:10px}.feedback-button-content--center-right{position:fixed;transform:rotate(-90deg)\x20translateY(-50%);top:50%}.feedback-button-content--center-right.feedback-button-content--dark,.feedback-button-content--center-right.feedback-button-content--light{border-radius:4px;border-bottom-left-radius:0px;border-bottom-right-radius:0px}.feedback-button-content-icon{height:16px;margin-right:5px;width:16px}.feedback-button-content--center-right\x20.feedback-button-content-icon{rotate:90deg}','connectedCallback','rating-stars-placeholder','cPxgE','NZIyY','userAgent','hide-screenshot-button','modalTitle','path','modalPosition','offsetWidth','#fff','Share\x20your\x20feedback','PPSjs','get','style','showModal','Add\x20a\x20screenshot','feedback-button','ttZZK','0\x200\x2024\x2024','PGZVx','wXfEG','default','tYyLD','success-message','rating-placeholder','modal-position','shadowRoot','hide-privacy-policy','head','slot','We\x20could\x20not\x20find\x20the\x20provided\x20project\x20id\x20in\x20PushFeedback.','createElement','customFont','successMessage','88fwqdrP','DSpGH','Select\x20an\x20element\x20on\x20this\x20page','tTiDe','feedback-button-content\x20feedback-button-content--','cORbY','hMYFM','CzZMs','screenshot-button-text','screenshotButtonText','ivnmt','messagePlaceholder','Oops!','ulNpL','QXEse','email-address','53434KoxLhk','center-right','LhADP','email-placeholder','44OKZcDx','EpfwC','zXMVm','define','GgcYN'];_0x516d=function(){return _0x166cd9;};return _0x516d();}import{proxyCustomElement,HTMLElement,h,Host}from'@stencil/core/internal/client';import{d as _0x39d9aa}from'./feedback-modal2.js';const feedbackButtonCss=_0x269984(0x1d9),FeedbackButton$1=proxyCustomElement(class extends HTMLElement{constructor(){const _0x42aa2b=_0x269984,_0x2278f8={'ttZZK':_0x42aa2b(0x17d),'PGZVx':_0x42aa2b(0x1a5),'ulNpL':_0x42aa2b(0x153),'WXOGT':_0x42aa2b(0x1e5),'xGSGX':_0x42aa2b(0x163),'vTIbB':_0x42aa2b(0x1cc),'ShLny':'Send','sTbKt':_0x42aa2b(0x1ea),'NZIyY':_0x42aa2b(0x178),'ivnmt':'thumbs','nJwzm':'Was\x20this\x20page\x20helpful?','qtpjk':_0x42aa2b(0x14a)};super(),this[_0x42aa2b(0x1a4)](),this['__attachShadow'](),this[_0x42aa2b(0x155)]=![],this['errorMessage']=_0x2278f8[_0x42aa2b(0x146)],this[_0x42aa2b(0x1c9)]=_0x2278f8[_0x42aa2b(0x148)],this[_0x42aa2b(0x194)]=_0x2278f8[_0x42aa2b(0x164)],this[_0x42aa2b(0x1e0)]=_0x2278f8[_0x42aa2b(0x199)],this[_0x42aa2b(0x1b8)]=_0x42aa2b(0x1a7),this[_0x42aa2b(0x1d2)]=_0x2278f8[_0x42aa2b(0x1bd)],this[_0x42aa2b(0x1e2)]=_0x2278f8['vTIbB'],this['sendButtonText']=_0x2278f8[_0x42aa2b(0x1cd)],this[_0x42aa2b(0x156)]='',this[_0x42aa2b(0x1c3)]='',this[_0x42aa2b(0x160)]=_0x2278f8[_0x42aa2b(0x18b)],this[_0x42aa2b(0x1aa)]=_0x42aa2b(0x159),this[_0x42aa2b(0x173)]=![],this['emailAddress']='',this[_0x42aa2b(0x1b3)]=_0x2278f8[_0x42aa2b(0x1dd)],this[_0x42aa2b(0x162)]=_0x42aa2b(0x19f),this['hideRating']=![],this[_0x42aa2b(0x1d8)]=_0x2278f8[_0x42aa2b(0x161)],this[_0x42aa2b(0x195)]=_0x2278f8['nJwzm'],this[_0x42aa2b(0x1c6)]='How\x20would\x20you\x20rate\x20this\x20page?',this[_0x42aa2b(0x190)]=_0x2278f8[_0x42aa2b(0x1ad)],this['buttonPosition']='default',this[_0x42aa2b(0x179)]=![],this[_0x42aa2b(0x18e)]=![],this[_0x42aa2b(0x1a9)]=!![],this['privacyPolicyText']=_0x42aa2b(0x180),this['fetchData']=!![];}[_0x269984(0x1da)](){const _0x507b7a=_0x269984,_0x1d79b0={'xqJiX':_0x507b7a(0x155),'RsnUs':_0x507b7a(0x1a2),'QXEse':'errorMessage403','WEKYz':_0x507b7a(0x194),'Jvnec':_0x507b7a(0x1e0),'ZumGO':_0x507b7a(0x1b8),'Jlnbb':_0x507b7a(0x1d2),'bPHzC':'modalPosition','dHEiG':'successMessage','HTdPo':_0x507b7a(0x160),'DSpGH':_0x507b7a(0x1aa),'YaRkG':_0x507b7a(0x173),'QroRZ':_0x507b7a(0x1b3),'ASqJk':_0x507b7a(0x162),'bRUzq':_0x507b7a(0x1d8),'Yetab':_0x507b7a(0x195),'HiOgz':_0x507b7a(0x1c6),'aqTMB':_0x507b7a(0x18e),'IjUMN':_0x507b7a(0x1a9),'lzCVS':_0x507b7a(0x17c),'jAQHi':_0x507b7a(0x1ab)};this['feedbackModal']=document[_0x507b7a(0x154)](_0x507b7a(0x1cb));const _0x5355bd=[_0x1d79b0['xqJiX'],_0x1d79b0[_0x507b7a(0x198)],_0x1d79b0[_0x507b7a(0x165)],_0x1d79b0['WEKYz'],_0x1d79b0['Jvnec'],_0x1d79b0[_0x507b7a(0x187)],_0x1d79b0[_0x507b7a(0x17a)],_0x1d79b0[_0x507b7a(0x171)],_0x507b7a(0x1b2),_0x1d79b0[_0x507b7a(0x18a)],'project',_0x1d79b0[_0x507b7a(0x175)],_0x1d79b0[_0x507b7a(0x158)],_0x1d79b0[_0x507b7a(0x1d6)],_0x507b7a(0x1d4),_0x1d79b0['QroRZ'],_0x1d79b0[_0x507b7a(0x189)],_0x507b7a(0x1b0),_0x1d79b0[_0x507b7a(0x17e)],_0x1d79b0['Yetab'],_0x1d79b0['HiOgz'],_0x1d79b0['aqTMB'],_0x1d79b0['IjUMN'],_0x1d79b0[_0x507b7a(0x1af)],_0x1d79b0[_0x507b7a(0x186)]];_0x5355bd['forEach'](_0x3842ac=>{const _0x4a2135=_0x507b7a;this[_0x4a2135(0x1c4)][_0x3842ac]=this[_0x3842ac];}),document[_0x507b7a(0x1b7)][_0x507b7a(0x197)](this[_0x507b7a(0x1c4)]);}[_0x269984(0x18d)](){const _0x22f39b=_0x269984;document[_0x22f39b(0x1b7)]['removeChild'](this['feedbackModal']);}[_0x269984(0x1c2)](){const _0x5e3f18=_0x269984,_0x1c497e=/safari/i[_0x5e3f18(0x1ba)](navigator[_0x5e3f18(0x1de)])&&!/chrome/i['test'](navigator['userAgent']);return _0x1c497e;}[_0x269984(0x183)](){const _0x5971ff=_0x269984,_0x391304={'Cprrc':function(_0x5bb62e,_0x250ffe){return _0x5bb62e===_0x250ffe;},'mSkUr':'.feedback-button-content','JelHf':function(_0x2f1463,_0x1b86ea){return _0x2f1463*_0x1b86ea;},'GgcYN':function(_0x13495b,_0x14e28b){return _0x13495b/_0x14e28b;},'wDMUR':function(_0x186809,_0x5df239){return _0x186809+_0x5df239;}};if(_0x391304[_0x5971ff(0x1a3)](this[_0x5971ff(0x1d0)],_0x5971ff(0x168))){const _0x4036a6=this['el'][_0x5971ff(0x14f)][_0x5971ff(0x19a)](_0x391304[_0x5971ff(0x188)]);let _0xfee3f6=0x0;this['isSafariBrowser']()&&(_0xfee3f6=0xa),_0x4036a6['style'][_0x5971ff(0x1bc)]=_0x391304['JelHf'](_0x391304[_0x5971ff(0x16f)](_0x391304[_0x5971ff(0x185)](_0x4036a6[_0x5971ff(0x1e3)],_0xfee3f6),0x2),-0x1)+'px';}!this['customFont']&&this[_0x5971ff(0x193)]();}[_0x269984(0x193)](){const _0xef3c8e=_0x269984,_0x5c05dc={'EunIk':_0xef3c8e(0x174),'TmYEp':_0xef3c8e(0x1a8)},_0x460158=document[_0xef3c8e(0x154)](_0x5c05dc['EunIk']);_0x460158['href']=_0xef3c8e(0x17f),_0x460158[_0xef3c8e(0x18c)]=_0x5c05dc['TmYEp'],document[_0xef3c8e(0x151)][_0xef3c8e(0x197)](_0x460158);}[_0x269984(0x1e9)](){const _0xc5abf8=_0x269984;this[_0xc5abf8(0x1c4)][_0xc5abf8(0x1e9)]=!![];}['render'](){const _0x1ef2e1=_0x269984,_0x26be7e={'KsrfO':_0x1ef2e1(0x1d5),'wXfEG':'span','htADl':function(_0x22321a,_0x30b5de,_0x17696d,_0x42061b,_0x335e69){return _0x22321a(_0x30b5de,_0x17696d,_0x42061b,_0x335e69);},'cPxgE':_0x1ef2e1(0x196),'YxpjN':_0x1ef2e1(0x1b1),'tTiDe':'none','tYyLD':_0x1ef2e1(0x1e4),'hMYFM':'round','LhADP':_0x1ef2e1(0x181),'LpasK':function(_0x48334d,_0x277e37,_0x5c3ef9){return _0x48334d(_0x277e37,_0x5c3ef9);},'fDtgA':'M12\x2020h9','eyOvr':_0x1ef2e1(0x1e1),'jGYSu':function(_0x5278fc,_0x4646d6){return _0x5278fc===_0x4646d6;},'CslWs':_0x1ef2e1(0x19d),'CzZMs':function(_0x2b1f26,_0x1be956,_0x2e3fe3,_0x30ee0c){return _0x2b1f26(_0x1be956,_0x2e3fe3,_0x30ee0c);},'zXMVm':function(_0x1e6e02,_0x3abd74,_0xbcef8f,_0xa6ddba,_0x1afc9e){return _0x1e6e02(_0x3abd74,_0xbcef8f,_0xa6ddba,_0x1afc9e);},'MJpUF':_0x1ef2e1(0x147),'cORbY':_0x1ef2e1(0x1c1),'MOsry':function(_0x309c72,_0x15ebb1,_0x40d04c){return _0x309c72(_0x15ebb1,_0x40d04c);},'Mnelg':_0x1ef2e1(0x184),'WXnkX':function(_0x2511b1,_0x255c57,_0x18fa15){return _0x2511b1(_0x255c57,_0x18fa15);},'nWKJi':_0x1ef2e1(0x152)};return h(Host,null,h('a',{'class':_0x1ef2e1(0x15b)+this[_0x1ef2e1(0x190)]+'\x20feedback-button-content--'+this[_0x1ef2e1(0x1d0)],'onClick':()=>this[_0x1ef2e1(0x1e9)]()},!this[_0x1ef2e1(0x179)]&&this['buttonStyle']===_0x26be7e['KsrfO']&&h(_0x26be7e[_0x1ef2e1(0x149)],{'class':_0x1ef2e1(0x1c0)},_0x26be7e[_0x1ef2e1(0x1a1)](h,_0x26be7e[_0x1ef2e1(0x1dc)],{'xmlns':_0x26be7e[_0x1ef2e1(0x191)],'width':'16','height':'16','viewBox':_0x1ef2e1(0x147),'fill':_0x26be7e[_0x1ef2e1(0x15a)],'stroke':_0x26be7e[_0x1ef2e1(0x14b)],'stroke-width':'2','stroke-linecap':_0x26be7e['hMYFM'],'stroke-linejoin':_0x26be7e['hMYFM'],'class':_0x26be7e[_0x1ef2e1(0x169)]},_0x26be7e[_0x1ef2e1(0x1a0)](h,_0x1ef2e1(0x1e1),{'d':_0x26be7e[_0x1ef2e1(0x177)]}),h(_0x26be7e[_0x1ef2e1(0x1d7)],{'d':_0x1ef2e1(0x184)}))),!this[_0x1ef2e1(0x179)]&&_0x26be7e['jGYSu'](this['buttonStyle'],_0x26be7e[_0x1ef2e1(0x1ca)])&&_0x26be7e[_0x1ef2e1(0x15e)](h,_0x26be7e[_0x1ef2e1(0x149)],{'class':'feedback-button-content-icon'},_0x26be7e[_0x1ef2e1(0x16d)](h,'svg',{'xmlns':_0x1ef2e1(0x1b1),'width':'16','height':'16','viewBox':_0x26be7e['MJpUF'],'fill':_0x1ef2e1(0x1c8),'stroke':_0x26be7e[_0x1ef2e1(0x15c)],'stroke-width':'2','stroke-linecap':_0x26be7e[_0x1ef2e1(0x15d)],'stroke-linejoin':_0x26be7e['hMYFM'],'class':_0x26be7e[_0x1ef2e1(0x169)]},_0x26be7e['MOsry'](h,_0x26be7e[_0x1ef2e1(0x1d7)],{'d':_0x26be7e[_0x1ef2e1(0x177)]}),_0x26be7e[_0x1ef2e1(0x1a0)](h,_0x26be7e[_0x1ef2e1(0x1d7)],{'d':_0x26be7e['Mnelg']}))),_0x26be7e[_0x1ef2e1(0x172)](h,_0x26be7e[_0x1ef2e1(0x1ce)],null)));}get['el'](){return this;}static get[_0x269984(0x1e8)](){return feedbackButtonCss;}},[0x1,_0x269984(0x1eb),{'customFont':[0x4,_0x269984(0x1c7)],'errorMessage':[0x1,'error-message'],'errorMessage403':[0x1,_0x269984(0x1b6)],'errorMessage404':[0x1,'error-message-4-0-4'],'modalTitle':[0x1,_0x269984(0x176)],'modalTitleSuccess':[0x1,_0x269984(0x19b)],'modalTitleError':[0x1,_0x269984(0x1be)],'modalPosition':[0x1,_0x269984(0x14e)],'sendButtonText':[0x1,_0x269984(0x1b4)],'successMessage':[0x1,_0x269984(0x14c)],'project':[0x1],'screenshotButtonText':[0x1,_0x269984(0x15f)],'screenshotTopbarText':[0x1,_0x269984(0x170)],'hideEmail':[0x4,_0x269984(0x1bf)],'emailAddress':[0x1,_0x269984(0x166)],'emailPlaceholder':[0x1,_0x269984(0x16a)],'messagePlaceholder':[0x1,'message-placeholder'],'hideRating':[0x4,'hide-rating'],'ratingMode':[0x1,_0x269984(0x1a6)],'ratingPlaceholder':[0x1,_0x269984(0x14d)],'ratingStarsPlaceholder':[0x1,_0x269984(0x1db)],'buttonStyle':[0x1,'button-style'],'buttonPosition':[0x1,_0x269984(0x1ae)],'hideIcon':[0x4,'hide-icon'],'hideScreenshotButton':[0x4,_0x269984(0x1df)],'hidePrivacyPolicy':[0x4,_0x269984(0x150)],'privacyPolicyText':[0x1,'privacy-policy-text'],'fetchData':[0x4,_0x269984(0x192)]}]);function defineCustomElement$1(){const _0xb18b6c=_0x269984,_0x57e7e8={'EpfwC':_0xb18b6c(0x1eb),'xfNFu':function(_0xe5ea54){return _0xe5ea54();},'PPSjs':function(_0x2ed0c9,_0x48e240){return _0x2ed0c9===_0x48e240;},'vZvtv':_0xb18b6c(0x1bb),'ffbje':'feedback-modal'};if(_0x57e7e8[_0xb18b6c(0x1e6)](typeof customElements,_0x57e7e8[_0xb18b6c(0x19e)]))return;const _0x5f28a9=[_0x57e7e8[_0xb18b6c(0x16c)],_0x57e7e8[_0xb18b6c(0x1ac)]];_0x5f28a9[_0xb18b6c(0x1d3)](_0x25672d=>{const _0x1f1fb6=_0xb18b6c;switch(_0x25672d){case _0x57e7e8['EpfwC']:!customElements['get'](_0x25672d)&&customElements[_0x1f1fb6(0x16e)](_0x25672d,FeedbackButton$1);break;case'feedback-modal':!customElements[_0x1f1fb6(0x1e7)](_0x25672d)&&_0x57e7e8[_0x1f1fb6(0x19c)](_0x39d9aa);break;}});}const FeedbackButton=FeedbackButton$1,defineCustomElement=defineCustomElement$1;export{FeedbackButton,defineCustomElement};
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './feedback-modal2.js';
3
+
4
+ const feedbackButtonCss = ".feedback-button-content{cursor:pointer;max-width:fit-content;z-index:var(--feedback-button-z-index)}.feedback-button-content--light{align-items:center;background-color:var(--feedback-button-light-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-light-text-color);display:flex;font-family:var(--feedback-font-family);font-size:var(--feedback-button-text-font-size);font-weight:var(--feedback-button-text-font-weight);padding:8px 15px}.feedback-button-content--dark{align-items:center;background-color:var(--feedback-button-dark-bg-color);border-radius:var(--feedback-button-border-radius);box-shadow:rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;box-sizing:border-box;color:var(--feedback-button-dark-text-color);display:flex;font-family:var(--feedback-font-family);font-weight:var(--feedback-button-text-font-weight);font-size:var(--feedback-button-text-font-size);padding:8px 15px}.feedback-button-content--bottom-right{bottom:10px;position:fixed;right:10px}.feedback-button-content--center-right{position:fixed;transform:rotate(-90deg) translateY(-50%);top:50%}.feedback-button-content--center-right.feedback-button-content--dark,.feedback-button-content--center-right.feedback-button-content--light{border-radius:4px;border-bottom-left-radius:0px;border-bottom-right-radius:0px}.feedback-button-content-icon{height:16px;margin-right:5px;width:16px}.feedback-button-content--center-right .feedback-button-content-icon{rotate:90deg}";
5
+
6
+ const FeedbackButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.customFont = false;
12
+ this.errorMessage = "Please try again later.";
13
+ this.errorMessage403 = "The request URL does not match the one defined in PushFeedback for this project.";
14
+ this.errorMessage404 = "We could not find the provided project id in PushFeedback.";
15
+ this.modalTitle = 'Share your feedback';
16
+ this.modalTitleSuccess = 'Thanks for your feedback!';
17
+ this.modalTitleError = "Oops!";
18
+ this.modalPosition = 'center';
19
+ this.sendButtonText = 'Send';
20
+ this.successMessage = "";
21
+ this.project = '';
22
+ this.screenshotButtonText = 'Add a screenshot';
23
+ this.screenshotTopbarText = 'Select an element on this page';
24
+ this.hideEmail = false;
25
+ this.emailAddress = '';
26
+ this.emailPlaceholder = 'Email address (optional)';
27
+ this.messagePlaceholder = 'Comments';
28
+ this.hideRating = false;
29
+ this.ratingMode = 'thumbs';
30
+ this.ratingPlaceholder = 'Was this page helpful?';
31
+ this.ratingStarsPlaceholder = 'How would you rate this page?';
32
+ this.buttonStyle = 'default';
33
+ this.buttonPosition = 'default';
34
+ this.hideIcon = false;
35
+ this.hideScreenshotButton = false;
36
+ this.hidePrivacyPolicy = true;
37
+ this.privacyPolicyText = "I have read and expressly consent to the terms of the <a href='https://pushfeedback.com/privacy'>Privacy Policy</a>.";
38
+ this.fetchData = true;
39
+ }
40
+ connectedCallback() {
41
+ this.feedbackModal = document.createElement('feedback-modal');
42
+ const props = [
43
+ 'customFont',
44
+ 'errorMessage',
45
+ 'errorMessage403',
46
+ 'errorMessage404',
47
+ 'modalTitle',
48
+ 'modalTitleSuccess',
49
+ 'modalTitleError',
50
+ 'modalPosition',
51
+ 'sendButtonText',
52
+ 'successMessage',
53
+ 'project',
54
+ 'screenshotButtonText',
55
+ 'screenshotTopbarText',
56
+ 'hideEmail',
57
+ 'emailAddress',
58
+ 'emailPlaceholder',
59
+ 'messagePlaceholder',
60
+ 'hideRating',
61
+ 'ratingMode',
62
+ 'ratingPlaceholder',
63
+ 'ratingStarsPlaceholder',
64
+ 'hideScreenshotButton',
65
+ 'hidePrivacyPolicy',
66
+ 'privacyPolicyText',
67
+ 'fetchData'
68
+ ];
69
+ props.forEach(prop => {
70
+ this.feedbackModal[prop] = this[prop];
71
+ });
72
+ document.body.appendChild(this.feedbackModal);
73
+ }
74
+ disconnectedCallback() {
75
+ document.body.removeChild(this.feedbackModal);
76
+ }
77
+ isSafariBrowser() {
78
+ const isSafari = /safari/i.test(navigator.userAgent) && !/chrome/i.test(navigator.userAgent);
79
+ return isSafari;
80
+ }
81
+ componentDidLoad() {
82
+ if (this.buttonPosition === 'center-right') {
83
+ const buttonContent = this.el.shadowRoot.querySelector('.feedback-button-content');
84
+ let adjustement = 0;
85
+ if (this.isSafariBrowser()) {
86
+ adjustement = 10;
87
+ }
88
+ buttonContent.style.right = `${(buttonContent.offsetWidth + adjustement) / 2 * -1}px`;
89
+ }
90
+ if (!this.customFont) {
91
+ this.loadInterFont();
92
+ }
93
+ }
94
+ loadInterFont() {
95
+ const link = document.createElement('link');
96
+ link.href = 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap';
97
+ link.rel = 'stylesheet';
98
+ document.head.appendChild(link);
99
+ }
100
+ showModal() {
101
+ this.feedbackModal.showModal = true;
102
+ }
103
+ render() {
104
+ return (h(Host, null, h("a", { class: `feedback-button-content feedback-button-content--${this.buttonStyle} feedback-button-content--${this.buttonPosition}`, onClick: () => this.showModal() }, !this.hideIcon && this.buttonStyle === 'dark' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#fff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), !this.hideIcon && this.buttonStyle === 'light' && (h("span", { class: "feedback-button-content-icon" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "#0070F4", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "feather feather-edit-3" }, h("path", { d: "M12 20h9" }), h("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })))), h("slot", null))));
105
+ }
106
+ get el() { return this; }
107
+ static get style() { return feedbackButtonCss; }
108
+ }, [1, "feedback-button", {
109
+ "customFont": [4, "custom-font"],
110
+ "errorMessage": [1, "error-message"],
111
+ "errorMessage403": [1, "error-message-4-0-3"],
112
+ "errorMessage404": [1, "error-message-4-0-4"],
113
+ "modalTitle": [1, "modal-title"],
114
+ "modalTitleSuccess": [1, "modal-title-success"],
115
+ "modalTitleError": [1, "modal-title-error"],
116
+ "modalPosition": [1, "modal-position"],
117
+ "sendButtonText": [1, "send-button-text"],
118
+ "successMessage": [1, "success-message"],
119
+ "project": [1],
120
+ "screenshotButtonText": [1, "screenshot-button-text"],
121
+ "screenshotTopbarText": [1, "screenshot-topbar-text"],
122
+ "hideEmail": [4, "hide-email"],
123
+ "emailAddress": [1, "email-address"],
124
+ "emailPlaceholder": [1, "email-placeholder"],
125
+ "messagePlaceholder": [1, "message-placeholder"],
126
+ "hideRating": [4, "hide-rating"],
127
+ "ratingMode": [1, "rating-mode"],
128
+ "ratingPlaceholder": [1, "rating-placeholder"],
129
+ "ratingStarsPlaceholder": [1, "rating-stars-placeholder"],
130
+ "buttonStyle": [1, "button-style"],
131
+ "buttonPosition": [1, "button-position"],
132
+ "hideIcon": [4, "hide-icon"],
133
+ "hideScreenshotButton": [4, "hide-screenshot-button"],
134
+ "hidePrivacyPolicy": [4, "hide-privacy-policy"],
135
+ "privacyPolicyText": [1, "privacy-policy-text"],
136
+ "fetchData": [4, "fetch-data"]
137
+ }]);
138
+ function defineCustomElement$1() {
139
+ if (typeof customElements === "undefined") {
140
+ return;
141
+ }
142
+ const components = ["feedback-button", "feedback-modal"];
143
+ components.forEach(tagName => { switch (tagName) {
144
+ case "feedback-button":
145
+ if (!customElements.get(tagName)) {
146
+ customElements.define(tagName, FeedbackButton$1);
147
+ }
148
+ break;
149
+ case "feedback-modal":
150
+ if (!customElements.get(tagName)) {
151
+ defineCustomElement$2();
152
+ }
153
+ break;
154
+ } });
155
+ }
156
+
157
+ const FeedbackButton = FeedbackButton$1;
158
+ const defineCustomElement = defineCustomElement$1;
159
+
160
+ export { FeedbackButton, defineCustomElement };
@@ -1 +1,6 @@
1
- (function(_0x550743,_0x11f23c){const _0x5d6d24=_0x5cdb,_0x33ed93=_0x550743();while(!![]){try{const _0x389b57=parseInt(_0x5d6d24(0x15e))/0x1+parseInt(_0x5d6d24(0x15f))/0x2+parseInt(_0x5d6d24(0x161))/0x3+parseInt(_0x5d6d24(0x15a))/0x4*(parseInt(_0x5d6d24(0x160))/0x5)+parseInt(_0x5d6d24(0x15b))/0x6*(-parseInt(_0x5d6d24(0x15d))/0x7)+parseInt(_0x5d6d24(0x15c))/0x8+-parseInt(_0x5d6d24(0x162))/0x9;if(_0x389b57===_0x11f23c)break;else _0x33ed93['push'](_0x33ed93['shift']());}catch(_0x23cbf5){_0x33ed93['push'](_0x33ed93['shift']());}}}(_0xd9c6,0x41f45));function _0x5cdb(_0x4dda07,_0x152b63){const _0xd9c6ed=_0xd9c6();return _0x5cdb=function(_0x5cdbac,_0x1cbb8c){_0x5cdbac=_0x5cdbac-0x15a;let _0x3df0fa=_0xd9c6ed[_0x5cdbac];return _0x3df0fa;},_0x5cdb(_0x4dda07,_0x152b63);}import{F as _0x1bc3bc,d as _0x50f59d}from'./feedback-modal2.js';const FeedbackModal=_0x1bc3bc,defineCustomElement=_0x50f59d;export{FeedbackModal,defineCustomElement};function _0xd9c6(){const _0x163eef=['451031EVRaMR','407914QeiEPB','659154bzxILx','3195zuQHUN','1465473XSmZVI','13026600IXGnwk','1812FWjlIn','12sqXbbc','2647728kBOXVd'];_0xd9c6=function(){return _0x163eef;};return _0xd9c6();}
1
+ import { F as FeedbackModal$1, d as defineCustomElement$1 } from './feedback-modal2.js';
2
+
3
+ const FeedbackModal = FeedbackModal$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { FeedbackModal, defineCustomElement };