pushfeedback 0.1.33 → 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.
Files changed (35) hide show
  1. package/dist/cjs/feedback-button_2.cjs.entry.js +8238 -1
  2. package/dist/cjs/index-d64bfb06.js +1547 -1
  3. package/dist/cjs/index.cjs.js +2 -1
  4. package/dist/cjs/loader.cjs.js +22 -1
  5. package/dist/cjs/pushfeedback.cjs.js +23 -1
  6. package/dist/collection/components/feedback-button/feedback-button.js +620 -1
  7. package/dist/collection/components/feedback-modal/feedback-modal.css +29 -4
  8. package/dist/collection/components/feedback-modal/feedback-modal.js +814 -1
  9. package/dist/collection/index.js +1 -1
  10. package/dist/components/feedback-button.js +160 -1
  11. package/dist/components/feedback-modal.js +6 -1
  12. package/dist/components/feedback-modal2.js +8183 -1
  13. package/dist/components/index.js +3 -1
  14. package/dist/esm/feedback-button_2.entry.js +8233 -1
  15. package/dist/esm/index-b07fba3a.js +1519 -1
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/loader.js +18 -1
  18. package/dist/esm/polyfills/core-js.js +11 -1
  19. package/dist/esm/polyfills/css-shim.js +1 -1
  20. package/dist/esm/polyfills/dom.js +79 -1
  21. package/dist/esm/polyfills/es5-html-element.js +1 -1
  22. package/dist/esm/polyfills/index.js +34 -1
  23. package/dist/esm/polyfills/system.js +6 -1
  24. package/dist/esm/pushfeedback.js +18 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/pushfeedback/p-a0681be3.js +2 -1
  28. package/dist/pushfeedback/p-ea59cbec.entry.js +22 -0
  29. package/dist/pushfeedback/pushfeedback.css +1 -1
  30. package/dist/pushfeedback/pushfeedback.esm.js +1 -1
  31. package/dist/types/components/feedback-button/feedback-button.d.ts +2 -0
  32. package/dist/types/components/feedback-modal/feedback-modal.d.ts +2 -0
  33. package/dist/types/components.d.ts +8 -0
  34. package/package.json +5 -4
  35. package/dist/pushfeedback/p-8cae1eb0.entry.js +0 -1
@@ -1 +1 @@
1
- (function(_0x21eab1,_0x403ede){var _0xbd6e41=_0x5eed,_0x5c503e=_0x21eab1();while(!![]){try{var _0x2883c9=parseInt(_0xbd6e41(0x18d))/0x1*(-parseInt(_0xbd6e41(0x197))/0x2)+parseInt(_0xbd6e41(0x193))/0x3*(-parseInt(_0xbd6e41(0x196))/0x4)+-parseInt(_0xbd6e41(0x190))/0x5+parseInt(_0xbd6e41(0x18c))/0x6*(-parseInt(_0xbd6e41(0x18e))/0x7)+-parseInt(_0xbd6e41(0x194))/0x8*(parseInt(_0xbd6e41(0x18f))/0x9)+parseInt(_0xbd6e41(0x191))/0xa*(-parseInt(_0xbd6e41(0x195))/0xb)+parseInt(_0xbd6e41(0x198))/0xc*(parseInt(_0xbd6e41(0x192))/0xd);if(_0x2883c9===_0x403ede)break;else _0x5c503e['push'](_0x5c503e['shift']());}catch(_0x1bf733){_0x5c503e['push'](_0x5c503e['shift']());}}}(_0x4336,0x71ecc));function _0x4336(){var _0x457ffb=['6rdGiZh','1869553cywOCD','60948KGpayN','1577845ZQzlJP','210grxWJB','455tgzdtr','204XhozHv','880zxmuox','451165ntrBqJ','51364XdSyxy','288176qYsIQS','1506252hmNyaI','6eazufF'];_0x4336=function(){return _0x457ffb;};return _0x4336();}function _0x5eed(_0x41b523,_0x43faef){var _0x4336fe=_0x4336();return _0x5eed=function(_0x5eed2e,_0x184214){_0x5eed2e=_0x5eed2e-0x18c;var _0x53fd82=_0x4336fe[_0x5eed2e];return _0x53fd82;},_0x5eed(_0x41b523,_0x43faef);}export*from'./components';
1
+ export * from './components';
@@ -1 +1,160 @@
1
- const _0x3113b9=_0x1343;(function(_0x44fcc0,_0x5e889a){const _0xc1c4f8=_0x1343,_0x2c6246=_0x44fcc0();while(!![]){try{const _0x84cab4=-parseInt(_0xc1c4f8(0x1f7))/0x1+-parseInt(_0xc1c4f8(0x1bc))/0x2+-parseInt(_0xc1c4f8(0x1e3))/0x3*(-parseInt(_0xc1c4f8(0x1b8))/0x4)+parseInt(_0xc1c4f8(0x1b6))/0x5+-parseInt(_0xc1c4f8(0x1cf))/0x6+parseInt(_0xc1c4f8(0x1ec))/0x7*(parseInt(_0xc1c4f8(0x176))/0x8)+-parseInt(_0xc1c4f8(0x1ca))/0x9*(-parseInt(_0xc1c4f8(0x1d9))/0xa);if(_0x84cab4===_0x5e889a)break;else _0x2c6246['push'](_0x2c6246['shift']());}catch(_0x75887e){_0x2c6246['push'](_0x2c6246['shift']());}}}(_0xda38,0xd69cf));import{proxyCustomElement,HTMLElement,h,Host}from'@stencil/core/internal/client';function _0x1343(_0x50cb0c,_0x2f0f62){const _0xda3840=_0xda38();return _0x1343=function(_0x13439a,_0x760742){_0x13439a=_0x13439a-0x163;let _0x470d57=_0xda3840[_0x13439a];return _0x470d57;},_0x1343(_0x50cb0c,_0x2f0f62);}import{d as _0x344396}from'./feedback-modal2.js';const feedbackButtonCss=_0x3113b9(0x17a),FeedbackButton$1=proxyCustomElement(class extends HTMLElement{constructor(){const _0x4203ec=_0x3113b9,_0x3b11c4={'vCjgd':_0x4203ec(0x170),'nHGfa':_0x4203ec(0x1a1),'EEWXd':_0x4203ec(0x16a),'ibRta':_0x4203ec(0x1e0),'umADJ':_0x4203ec(0x174),'ruvgU':_0x4203ec(0x1cd),'PULMo':_0x4203ec(0x1df),'USkud':_0x4203ec(0x195),'iesRg':_0x4203ec(0x163),'TzlwW':_0x4203ec(0x189),'rRkmG':_0x4203ec(0x1fa),'LatTo':'Comments','zjZyw':_0x4203ec(0x1c6)},_0x134606=_0x3b11c4[_0x4203ec(0x1c2)]['split']('|');let _0x372c7c=0x0;while(!![]){switch(_0x134606[_0x372c7c++]){case'0':this[_0x4203ec(0x1e2)]='';continue;case'1':super();continue;case'2':this[_0x4203ec(0x1f4)]=_0x3b11c4[_0x4203ec(0x1dc)];continue;case'3':this[_0x4203ec(0x1bd)]=_0x3b11c4[_0x4203ec(0x18a)];continue;case'4':this['screenshotTopbarText']=_0x3b11c4[_0x4203ec(0x1c0)];continue;case'5':this['hidePrivacyPolicy']=!![];continue;case'6':this[_0x4203ec(0x17f)]='';continue;case'7':this[_0x4203ec(0x1ad)]=_0x3b11c4[_0x4203ec(0x1fc)];continue;case'8':this[_0x4203ec(0x17c)]=_0x3b11c4[_0x4203ec(0x1f8)];continue;case'9':this[_0x4203ec(0x1ab)]=_0x3b11c4[_0x4203ec(0x16b)];continue;case'10':this[_0x4203ec(0x1d2)]=_0x3b11c4[_0x4203ec(0x18b)];continue;case'11':this[_0x4203ec(0x19e)]();continue;case'12':this[_0x4203ec(0x167)]=![];continue;case'13':this[_0x4203ec(0x1eb)]=_0x3b11c4['iesRg'];continue;case'14':this[_0x4203ec(0x168)]=![];continue;case'15':this[_0x4203ec(0x18e)]=_0x3b11c4['TzlwW'];continue;case'16':this[_0x4203ec(0x1a8)]=_0x4203ec(0x1a5);continue;case'17':this[_0x4203ec(0x1ff)]=_0x3b11c4[_0x4203ec(0x196)];continue;case'18':this[_0x4203ec(0x1f5)]='Please\x20try\x20again\x20later.';continue;case'19':this[_0x4203ec(0x1c7)]=_0x3b11c4[_0x4203ec(0x1f8)];continue;case'20':this[_0x4203ec(0x1b5)]();continue;case'21':this[_0x4203ec(0x1d0)]=_0x4203ec(0x183);continue;case'22':this['fetchData']=!![];continue;case'23':this['hideRating']=![];continue;case'24':this[_0x4203ec(0x1a2)]=![];continue;case'25':this[_0x4203ec(0x18c)]='';continue;case'26':this[_0x4203ec(0x180)]=_0x3b11c4['LatTo'];continue;case'27':this[_0x4203ec(0x1f0)]=_0x3b11c4[_0x4203ec(0x1b1)];continue;case'28':this['hideScreenshotButton']=![];continue;}break;}}['connectedCallback'](){const _0x2a534e=_0x3113b9,_0x19bb25={'YxDbc':'feedback-modal','eLDLa':'errorMessage403','cfRaM':_0x2a534e(0x1f0),'SHXXG':_0x2a534e(0x1ad),'HHjFZ':_0x2a534e(0x1d0),'EDdwb':_0x2a534e(0x1f4),'KMhVe':'sendButtonText','ZPTae':_0x2a534e(0x1e2),'FFWQV':'screenshotButtonText','CpFgt':_0x2a534e(0x1d1),'QpYkr':_0x2a534e(0x1a2),'xUqsb':_0x2a534e(0x17f),'HbtpZ':_0x2a534e(0x1ab),'cWkoH':_0x2a534e(0x180),'YNvbC':_0x2a534e(0x1fb),'hvmDV':_0x2a534e(0x1eb),'tJtXb':_0x2a534e(0x1bf),'OhAIc':_0x2a534e(0x1ff)};this[_0x2a534e(0x1da)]=document[_0x2a534e(0x1ed)](_0x19bb25[_0x2a534e(0x1e6)]);const _0x541b3d=[_0x2a534e(0x168),_0x2a534e(0x1f5),_0x19bb25[_0x2a534e(0x19a)],'errorMessage404',_0x19bb25[_0x2a534e(0x17e)],_0x19bb25[_0x2a534e(0x1c3)],_0x19bb25[_0x2a534e(0x171)],_0x19bb25['EDdwb'],_0x19bb25[_0x2a534e(0x1c4)],_0x2a534e(0x18c),_0x19bb25[_0x2a534e(0x18f)],_0x19bb25['FFWQV'],_0x19bb25[_0x2a534e(0x197)],_0x19bb25['QpYkr'],_0x19bb25[_0x2a534e(0x194)],_0x19bb25[_0x2a534e(0x1c1)],_0x19bb25[_0x2a534e(0x1dd)],_0x19bb25[_0x2a534e(0x16c)],_0x19bb25[_0x2a534e(0x169)],_0x19bb25[_0x2a534e(0x1e5)],_0x2a534e(0x1ac),_0x19bb25[_0x2a534e(0x192)],_0x2a534e(0x1cc)];_0x541b3d[_0x2a534e(0x19d)](_0x167a2f=>{const _0x295b83=_0x2a534e;this[_0x295b83(0x1da)][_0x167a2f]=this[_0x167a2f];}),document[_0x2a534e(0x177)][_0x2a534e(0x198)](this[_0x2a534e(0x1da)]);}[_0x3113b9(0x184)](){const _0x36af47=_0x3113b9;document[_0x36af47(0x177)][_0x36af47(0x166)](this[_0x36af47(0x1da)]);}['isSafariBrowser'](){const _0x15e1f9=_0x3113b9,_0x566841=/safari/i[_0x15e1f9(0x1d5)](navigator[_0x15e1f9(0x1e7)])&&!/chrome/i[_0x15e1f9(0x1d5)](navigator[_0x15e1f9(0x1e7)]);return _0x566841;}[_0x3113b9(0x1aa)](){const _0x35ecbc=_0x3113b9,_0x416b4f={'VTlMT':_0x35ecbc(0x17d),'yLBXt':'.feedback-button-content','JlqVu':function(_0x44eb71,_0xff917d){return _0x44eb71/_0xff917d;},'JRECX':function(_0x357343,_0x56bfb7){return _0x357343+_0x56bfb7;}};if(this[_0x35ecbc(0x1c7)]===_0x416b4f[_0x35ecbc(0x1c9)]){const _0x2a4745=this['el']['shadowRoot'][_0x35ecbc(0x1be)](_0x416b4f['yLBXt']);let _0x229b98=0x0;this['isSafariBrowser']()&&(_0x229b98=0xa),_0x2a4745[_0x35ecbc(0x172)][_0x35ecbc(0x1a3)]=_0x416b4f['JlqVu'](_0x416b4f[_0x35ecbc(0x1de)](_0x2a4745['offsetWidth'],_0x229b98),0x2)*-0x1+'px';}!this[_0x35ecbc(0x168)]&&this['loadInterFont']();}[_0x3113b9(0x1db)](){const _0x5c1b92=_0x3113b9,_0x130651={'AZeKq':_0x5c1b92(0x1ba),'atHWE':_0x5c1b92(0x1b2)},_0x550d1b=document['createElement'](_0x130651[_0x5c1b92(0x17b)]);_0x550d1b['href']=_0x5c1b92(0x1f9),_0x550d1b['rel']=_0x130651[_0x5c1b92(0x16f)],document[_0x5c1b92(0x1b4)][_0x5c1b92(0x198)](_0x550d1b);}[_0x3113b9(0x1e1)](){const _0x45b5a8=_0x3113b9;this[_0x45b5a8(0x1da)][_0x45b5a8(0x1e1)]=!![];}[_0x3113b9(0x19f)](){const _0x2f2f4a=_0x3113b9,_0x391e79={'UfPAh':function(_0x2126d7,_0x5437fc,_0x699860,_0x1ffbb7,_0x122716,_0x357ccf){return _0x2126d7(_0x5437fc,_0x699860,_0x1ffbb7,_0x122716,_0x357ccf);},'LjqBD':_0x2f2f4a(0x1a0),'fdTpx':function(_0xcf1a05,_0x5d30aa,_0x1ba7d3,_0x2aeaf8){return _0xcf1a05(_0x5d30aa,_0x1ba7d3,_0x2aeaf8);},'ZAEyn':_0x2f2f4a(0x187),'bGZEI':function(_0x46686e,_0x3a9ef2,_0x6b1944,_0x265432,_0x3b161e){return _0x46686e(_0x3a9ef2,_0x6b1944,_0x265432,_0x3b161e);},'XfqFc':_0x2f2f4a(0x165),'wIcvq':_0x2f2f4a(0x16d),'cwNWy':_0x2f2f4a(0x1ae),'ScnXA':_0x2f2f4a(0x1ea),'tAVqb':_0x2f2f4a(0x1cb),'EpTXF':function(_0x542ab3,_0x3d6de1,_0x2e8e13){return _0x542ab3(_0x3d6de1,_0x2e8e13);},'GtQpG':'path','zgdTQ':'M16.5\x203.5a2.121\x202.121\x200\x200\x201\x203\x203L7\x2019l-4\x201\x201-4L16.5\x203.5z','MqNQp':'feedback-button-content-icon','lluVq':_0x2f2f4a(0x19c),'OilsA':'none','MxJVT':_0x2f2f4a(0x185),'IBebL':function(_0x3f0b9a,_0x38ddbe,_0x387b63){return _0x3f0b9a(_0x38ddbe,_0x387b63);},'GdJCh':_0x2f2f4a(0x1d8),'NhJZk':function(_0x369a5e,_0x11256e,_0x39d0c8){return _0x369a5e(_0x11256e,_0x39d0c8);},'soVpx':_0x2f2f4a(0x1e8)};return h(Host,null,_0x391e79[_0x2f2f4a(0x1af)](h,'a',{'class':'feedback-button-content\x20feedback-button-content--'+this[_0x2f2f4a(0x17c)]+_0x2f2f4a(0x173)+this[_0x2f2f4a(0x1c7)],'onClick':()=>this['showModal']()},!this['hideIcon']&&this[_0x2f2f4a(0x17c)]===_0x391e79[_0x2f2f4a(0x186)]&&_0x391e79[_0x2f2f4a(0x188)](h,_0x391e79[_0x2f2f4a(0x1e4)],{'class':_0x2f2f4a(0x1a9)},_0x391e79['bGZEI'](h,_0x391e79[_0x2f2f4a(0x1f3)],{'xmlns':_0x2f2f4a(0x19c),'width':'16','height':'16','viewBox':_0x391e79[_0x2f2f4a(0x1d3)],'fill':_0x2f2f4a(0x1f1),'stroke':_0x391e79['cwNWy'],'stroke-width':'2','stroke-linecap':_0x391e79[_0x2f2f4a(0x16e)],'stroke-linejoin':_0x391e79[_0x2f2f4a(0x16e)],'class':_0x391e79['tAVqb']},_0x391e79[_0x2f2f4a(0x181)](h,_0x391e79[_0x2f2f4a(0x1a4)],{'d':_0x2f2f4a(0x1d8)}),h(_0x391e79[_0x2f2f4a(0x1a4)],{'d':_0x391e79[_0x2f2f4a(0x190)]}))),!this['hideIcon']&&this[_0x2f2f4a(0x17c)]===_0x2f2f4a(0x1a7)&&h(_0x391e79[_0x2f2f4a(0x1e4)],{'class':_0x391e79['MqNQp']},_0x391e79[_0x2f2f4a(0x1f2)](h,_0x391e79['XfqFc'],{'xmlns':_0x391e79['lluVq'],'width':'16','height':'16','viewBox':_0x391e79['wIcvq'],'fill':_0x391e79[_0x2f2f4a(0x1c5)],'stroke':_0x391e79[_0x2f2f4a(0x182)],'stroke-width':'2','stroke-linecap':_0x2f2f4a(0x1ea),'stroke-linejoin':'round','class':'feather\x20feather-edit-3'},_0x391e79[_0x2f2f4a(0x1d4)](h,_0x391e79['GtQpG'],{'d':_0x391e79[_0x2f2f4a(0x175)]}),_0x391e79[_0x2f2f4a(0x181)](h,_0x2f2f4a(0x1b7),{'d':_0x391e79[_0x2f2f4a(0x190)]}))),_0x391e79[_0x2f2f4a(0x1d6)](h,_0x391e79[_0x2f2f4a(0x1bb)],null)));}get['el'](){return this;}static get['style'](){return feedbackButtonCss;}},[0x1,_0x3113b9(0x178),{'customFont':[0x4,'custom-font'],'errorMessage':[0x1,'error-message'],'errorMessage403':[0x1,_0x3113b9(0x191)],'errorMessage404':[0x1,_0x3113b9(0x1f6)],'modalTitle':[0x1,_0x3113b9(0x200)],'modalTitleSuccess':[0x1,_0x3113b9(0x1c8)],'modalTitleError':[0x1,_0x3113b9(0x1b3)],'modalPosition':[0x1,'modal-position'],'sendButtonText':[0x1,_0x3113b9(0x1e9)],'successMessage':[0x1,_0x3113b9(0x1b0)],'project':[0x1],'screenshotButtonText':[0x1,_0x3113b9(0x1fd)],'screenshotTopbarText':[0x1,'screenshot-topbar-text'],'hideEmail':[0x4,_0x3113b9(0x1fe)],'emailAddress':[0x1,'email-address'],'emailPlaceholder':[0x1,_0x3113b9(0x193)],'messagePlaceholder':[0x1,'message-placeholder'],'hideRating':[0x4,_0x3113b9(0x19b)],'ratingPlaceholder':[0x1,'rating-placeholder'],'buttonStyle':[0x1,_0x3113b9(0x1ee)],'buttonPosition':[0x1,_0x3113b9(0x1a6)],'hideIcon':[0x4,_0x3113b9(0x164)],'hideScreenshotButton':[0x4,'hide-screenshot-button'],'hidePrivacyPolicy':[0x4,'hide-privacy-policy'],'privacyPolicyText':[0x1,_0x3113b9(0x1ef)],'fetchData':[0x4,'fetch-data']}]);function defineCustomElement$1(){const _0x358ba7=_0x3113b9,_0x203c18={'KCrJc':_0x358ba7(0x178),'krJBk':_0x358ba7(0x1d7),'RykIN':function(_0x538999){return _0x538999();},'tNJgR':_0x358ba7(0x179)};if(typeof customElements===_0x203c18['tNJgR'])return;const _0xa71004=[_0x203c18[_0x358ba7(0x1b9)],_0x203c18['krJBk']];_0xa71004[_0x358ba7(0x19d)](_0x5a0dc9=>{const _0x36ab27=_0x358ba7;switch(_0x5a0dc9){case _0x203c18[_0x36ab27(0x1b9)]:!customElements[_0x36ab27(0x199)](_0x5a0dc9)&&customElements[_0x36ab27(0x1ce)](_0x5a0dc9,FeedbackButton$1);break;case _0x203c18[_0x36ab27(0x18d)]:!customElements[_0x36ab27(0x199)](_0x5a0dc9)&&_0x203c18[_0x36ab27(0x201)](_0x344396);break;}});}const FeedbackButton=FeedbackButton$1,defineCustomElement=defineCustomElement$1;function _0xda38(){const _0x628e15=['hideIcon','customFont','hvmDV','The\x20request\x20URL\x20does\x20not\x20match\x20the\x20one\x20defined\x20in\x20PushFeedback\x20for\x20this\x20project.','PULMo','YNvbC','0\x200\x2024\x2024','ScnXA','atHWE','1|11|20|14|18|3|16|27|7|21|2|15|25|0|10|4|24|6|9|26|23|13|8|19|12|28|5|17|22','HHjFZ','style','\x20feedback-button-content--','Thanks\x20for\x20your\x20feedback!','GdJCh','11503048doqbFZ','body','feedback-button','undefined','.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}','AZeKq','buttonStyle','center-right','cfRaM','emailAddress','messagePlaceholder','EpTXF','MxJVT','Oops!','disconnectedCallback','#0070F4','LjqBD','span','fdTpx','Send','EEWXd','USkud','successMessage','krJBk','sendButtonText','ZPTae','zgdTQ','error-message-4-0-3','OhAIc','email-placeholder','xUqsb','Add\x20a\x20screenshot','rRkmG','CpFgt','appendChild','get','eLDLa','hide-rating','http://www.w3.org/2000/svg','forEach','__registerHost','render','dark','center','hideEmail','right','GtQpG','We\x20could\x20not\x20find\x20the\x20provided\x20project\x20id\x20in\x20PushFeedback.','button-position','light','errorMessage404','feedback-button-content-icon','componentDidLoad','emailPlaceholder','hidePrivacyPolicy','modalTitleSuccess','#fff','UfPAh','success-message','zjZyw','stylesheet','modal-title-error','head','__attachShadow','5492070Iehtto','path','4TrePEF','KCrJc','link','soVpx','2266330ftaftc','errorMessage403','querySelector','hideScreenshotButton','ibRta','HbtpZ','vCjgd','SHXXG','KMhVe','OilsA','Share\x20your\x20feedback','buttonPosition','modal-title-success','VTlMT','297BNBAKA','feather\x20feather-edit-3','fetchData','default','define','9426654ZYurao','modalTitleError','screenshotTopbarText','screenshotButtonText','wIcvq','IBebL','test','NhJZk','feedback-modal','M12\x2020h9','691080qjLcnO','feedbackModal','loadInterFont','nHGfa','cWkoH','JRECX','Email\x20address\x20(optional)','Select\x20an\x20element\x20on\x20this\x20page','showModal','project','89937szHcui','ZAEyn','tJtXb','YxDbc','userAgent','slot','send-button-text','round','ratingPlaceholder','7eZshiY','createElement','button-style','privacy-policy-text','modalTitle','none','bGZEI','XfqFc','modalPosition','errorMessage','error-message-4-0-4','1263509lMXvpK','ruvgU','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>.','hideRating','umADJ','screenshot-button-text','hide-email','privacyPolicyText','modal-title','RykIN','How\x20would\x20you\x20rate\x20this\x20page?','hide-icon','svg','removeChild'];_0xda38=function(){return _0x628e15;};return _0xda38();}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(_0x59dfe7,_0x5bc5c6){const _0x4d7dbb=_0x52e0,_0x8a8709=_0x59dfe7();while(!![]){try{const _0x2e6329=parseInt(_0x4d7dbb(0x1e7))/0x1*(-parseInt(_0x4d7dbb(0x1ea))/0x2)+parseInt(_0x4d7dbb(0x1f0))/0x3+-parseInt(_0x4d7dbb(0x1e6))/0x4*(parseInt(_0x4d7dbb(0x1e9))/0x5)+-parseInt(_0x4d7dbb(0x1ee))/0x6*(-parseInt(_0x4d7dbb(0x1eb))/0x7)+-parseInt(_0x4d7dbb(0x1ed))/0x8+parseInt(_0x4d7dbb(0x1e8))/0x9+parseInt(_0x4d7dbb(0x1ec))/0xa*(parseInt(_0x4d7dbb(0x1ef))/0xb);if(_0x2e6329===_0x5bc5c6)break;else _0x8a8709['push'](_0x8a8709['shift']());}catch(_0x400b50){_0x8a8709['push'](_0x8a8709['shift']());}}}(_0x55ca,0xdb5f8));function _0x55ca(){const _0x18ba74=['419091MKxboO','84wclRaC','182076gYggTr','9114516PmlXoe','79635cYPJxJ','2eBTvcW','233534SHhwqm','10oGvURO','7481832mpBtlp','36SyKUlo','10975041PAnlzX'];_0x55ca=function(){return _0x18ba74;};return _0x55ca();}import{F as _0x24823a,d as _0x28c3fc}from'./feedback-modal2.js';function _0x52e0(_0x526a87,_0x5146ea){const _0x55ca29=_0x55ca();return _0x52e0=function(_0x52e0f4,_0xcec5b5){_0x52e0f4=_0x52e0f4-0x1e6;let _0x50369e=_0x55ca29[_0x52e0f4];return _0x50369e;},_0x52e0(_0x526a87,_0x5146ea);}const FeedbackModal=_0x24823a,defineCustomElement=_0x28c3fc;export{FeedbackModal,defineCustomElement};
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 };